:root {
    --pm-dark: #444e69;
    --pm-light: #99c6ee;
    --pm-bg: #f4f7fb;
    --pm-text: #2f3a54;
    --pm-white: #ffffff;
    --pm-header-h: 60px;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/metropolis/Metropolis-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/metropolis/Metropolis-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/metropolis/Metropolis-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Metropolis";
    src: url("../fonts/metropolis/Metropolis-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Metropolis", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    color: var(--pm-text);
    background: var(--pm-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 247, 251, 0.88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(68, 78, 105, 0.12);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.85rem 0;
    position: relative;
}

.brand img {
    width: 180px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(68, 78, 105, 0.22);
    border-radius: 0.7rem;
    background: var(--pm-white);
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.55rem;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--pm-light);
    outline-offset: 2px;
}

.nav-toggle__line {
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--pm-dark);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav a {
    text-decoration: none;
    color: var(--pm-dark);
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--pm-light);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 4.5rem;
}

.anim-decor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.25s ease-out;
    z-index: 0;
}

.anim-decor--one {
    width: 320px;
    height: 320px;
    background: rgba(153, 198, 238, 0.22);
    right: 2rem;
    top: 1.4rem;
}

.anim-decor--two {
    width: 240px;
    height: 240px;
    background: rgba(68, 78, 105, 0.1);
    left: 1rem;
    bottom: 1rem;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 2rem;
}

.eyebrow {
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pm-dark);
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
}

h1,
h2,
h3 {
    color: var(--pm-dark);
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    margin-bottom: 0.9rem;
}

h3 {
    margin-bottom: 0.45rem;
}

.lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 58ch;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    border: none;
    background: linear-gradient(135deg, var(--pm-dark), #566182);
    color: var(--pm-white);
    padding: 0.82rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(68, 78, 105, 0.25);
    background: linear-gradient(135deg, #3f4760, #5f6b8e);
}

.btn-icon {
    width: 1.18rem;
    height: 1.18rem;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-icon--stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-image img {
    border-radius: 1.2rem;
    box-shadow: 0 20px 40px rgba(68, 78, 105, 0.24);
    object-fit: cover;
    min-height: 360px;
}

.section {
    padding: 4rem 0;
}

section[id] {
    scroll-margin-top: var(--pm-header-h);
}

.section-head {
    margin-bottom: 1.4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.offer-card {
    background: var(--pm-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(51, 66, 100, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 40px rgba(51, 66, 100, 0.22);
}

.offer-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 26px 40px rgba(51, 66, 100, 0.22);
}

.offer-card.reveal.is-visible:hover,
.offer-card.reveal.is-visible:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 26px 40px rgba(51, 66, 100, 0.22);
}

.offer-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-content {
    padding: 1rem 1rem 1.15rem;
}

.list-check {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.list-check li {
    margin-bottom: 0.45rem;
}

.alt-section {
    background: linear-gradient(180deg, rgba(153, 198, 238, 0.28), rgba(153, 198, 238, 0.1));
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1.8rem;
}

.image-stack img {
    border-radius: 1rem;
    box-shadow: 0 18px 35px rgba(68, 78, 105, 0.18);
}

.behandlungsradius-image {
    background: var(--pm-white);
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.info-card {
    background: var(--pm-white);
    border-radius: 1rem;
    padding: 1.2rem;
    box-shadow: 0 14px 28px rgba(51, 66, 100, 0.12);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.cta {
    text-align: center;
    padding: 2.3rem;
    border-radius: 1.2rem;
    background: var(--pm-white);
    box-shadow: 0 16px 34px rgba(58, 73, 106, 0.16);
}

.site-footer {
    padding: 1.4rem 0 2rem;
    text-align: center;
    color: rgba(47, 58, 84, 0.86);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 640px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(68, 78, 105, 0.1);
}

.timeline-item:first-child {
    padding-top: 0;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-year {
    font-weight: 700;
    color: var(--pm-dark);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.timeline-desc {
    margin: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-grid,
    .split-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    #domizil .image-stack {
        order: 1;
    }

    .hero {
        padding-top: 4.3rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image img {
        min-height: 300px;
    }

    .anim-decor--one {
        width: 260px;
        height: 260px;
    }

    .anim-decor--two {
        width: 190px;
        height: 190px;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-wrap: nowrap;
        gap: 0.8rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 25;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0.8rem 0.9rem 0.7rem;
        border: 1px solid transparent;
        border-radius: 0.8rem;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 16px 28px rgba(51, 66, 100, 0.18);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-0.35rem);
        transition:
            max-height 0.28s ease,
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0.28s;
    }

    .main-nav.is-open {
        max-height: 14rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        border-color: rgba(68, 78, 105, 0.15);
        transition:
            max-height 0.28s ease,
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0s;
    }

    .main-nav a:hover {
        transform: none;
    }

    .brand img {
        width: 150px;
    }

    .main-nav a {
        font-size: 0.95rem;
    }

    .section {
        padding: 3.2rem 0;
    }

    .cta {
        padding: 1.8rem 1rem;
    }

    .anim-decor--one {
        right: 1.2rem;
        top: 1.2rem;
    }

    .anim-decor--two {
        left: -1rem;
        bottom: 0.7rem;
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .hero {
        padding: 3.8rem 0 3.2rem;
    }

    .nav-wrap {
        gap: 0.55rem;
    }

    .anim-decor--one {
        width: 180px;
        height: 180px;
        right: -0.9rem;
        top: 1.1rem;
    }

    .anim-decor--two {
        width: 130px;
        height: 130px;
        left: -1.8rem;
    }
}
