*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* ── Navigation ─────────────────────────────────────── */

nav {
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
}

ul {
    list-style: none;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 3rem;
    margin-right: 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 2.5rem;
    margin-left: 5rem;
    cursor: pointer;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-right: 5rem;
}

.burger span {
    width: 30px;
    height: 2px;
    background-color: #001C2E;
    transition: all 0.3s ease;
}

.verlinkungen {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.verlinkungen:hover {
    cursor: pointer;
    color: #2c62834e;
}

/* ── Language Switcher ──────────────────────────────── */

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
}

.lang-btn.active {
    color: #2C6183;
}

.lang-btn:hover {
    color: #2C6183;
}

.lang-divider {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #001C2E;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-top: 1rem;
        justify-content: center;
        gap: 1rem;
    }
}




.services {
    padding: 0;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 6rem);
    height: calc(100dvh - 6rem);
    overflow: hidden;
}

/* ── Full-viewport Image Grid ──────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 1; /* Automatically fill all space until the footer starts */
    width: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
    cursor: default;
    display: flex;
    align-items: flex-end;
}

/* full-bleed photo behind each card */
.service-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* no zoom — image stays static */
}

/* dark gradient overlay — always visible, slightly more opaque on hover */
.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.42) 50%,
            rgba(0, 0, 0, 0.14) 100%);
    transition: background 0.35s ease;
    z-index: 1;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.55) 55%,
            rgba(0, 0, 0, 0.20) 100%);
}

/* content sits above overlay — slides up from bottom on hover */
.service-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 2.2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transform: translateY(calc(100% - 5.5rem));
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-content h2 {
    font-family: "Roboto Flex", sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: white;
    pointer-events: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 0.2rem;
}

.service-content p {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 340px;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}

.service-card:hover .service-content p {
    opacity: 1;
}

.price {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.70);
    text-transform: uppercase;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.service-card:hover .price {
    opacity: 1;
}

.service-btn {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.65rem 1.6rem;
    border-radius: 2px;
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.25s, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-btn {
    opacity: 1;
}

.service-btn:hover {
    background: white;
    color: #001C2E;
    border-color: white;
}

/* ── Footer ─────────────────────────────────────────── */

.footer {
    padding: 1.8rem 5rem;
    background: white;
    border-top: 1px solid #e5e5e5;
    margin: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: "Roboto Flex", sans-serif;
    font-size: 0.79rem;
    color: #001C2E;
}

.instagram-link {
    font-weight: 400;
}

.instagram-link:hover {
    color: #2C6183;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1024px) {
    ul {
        gap: 2rem;
        margin-right: 2rem;
    }

    .logo {
        margin-left: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: auto;
        min-height: unset;
    }

    .service-card {
        height: 50vw;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    nav {
        height: 5rem;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    #nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        margin-right: 0;
        transition: 0.5s ease;
        z-index: 1000;
    }

    #nav-links.active {
        right: 0;
    }

    .logo {
        margin-left: 1.5rem;
        height: 1.8rem;
    }

    .burger {
        margin-right: 1.5rem;
    }

    .services {
        height: auto; /* Allow scrolling on mobile */
        min-height: calc(100vh - 5rem);
        display: flex;
        flex-direction: column;
    }

    .services-hero {
        padding: 3.5rem 1.5rem 2rem;
    }

    .services-hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .service-card {
        height: 75vw;
        min-height: 260px;
    }

    /* always show text on mobile (no hover) */
    .service-content p,
    .price,
    .service-btn {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }

    .service-card:hover .service-content {
        transform: none; /* No movement on mobile */
    }

    .footer {
        position: relative; /* Not absolute on mobile */
        padding: 2.5rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ── Globals ─────────────────────────────────────────── */
html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}