*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --petrol: #2a8a7e;
    --petrol-light: #b8dbd8;
    --navy: #1a3358;
    --teal: #8ec5c0;
    --teal-light: #e8f4f3;
    --crème: #f4f7f9;
    --white: #ffffff;
    --text: #1a2a3a;
    --text-light: #5a7080;
    --border: #d0e4e2;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: auto; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--crème);
    overflow-x: hidden;
}

/* ─── MAX WIDTH WRAPPER ──────────────────────────── */
.content-wrap {
    max-width: 1920px;
    margin: 0 auto;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(244,247,249,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(26,51,88,0.10); }

.nav-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4rem;
    height: 72px;
    display: flex; align-items: center; justify-content: space-between;
}

/* ── SVG Logo ── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-logo-tooth {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.nav-logo-name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 0.01em;
}
.nav-logo-name em {
    font-style: italic;
    color: var(--petrol);
}
.nav-logo-sub {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 50px;
    transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--petrol) !important; }

/* ─── HERO ─────────────────────────────────────── */
/* Slider is full-width, no max-width */
#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

/* Strong dark overlay on every slide so text is ALWAYS readable */
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
            to right,
            rgba(10, 20, 40, 0.72) 0%,
            rgba(10, 20, 40, 0.55) 50%,
            rgba(10, 20, 40, 0.20) 100%
    );
}

.slide-1 { background-image: url(../img/slide1.jpg); }
.slide-2 { background-image: url(../img/slide2.jpg); }
.slide-3 { background-image: url(../img/slide3.jpg); }
.slide-4 { background-image: url(../img/slide4.jpg); }

/* Hero content lives inside a max-width wrapper */
.hero-content-wrap {
    position: relative; z-index: 2;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4rem 6rem;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    max-width: 640px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--petrol-light);
    background: rgba(42,138,126,0.30);
    border: 1px solid rgba(184,219,216,0.35);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 5.2rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-title em {
    font-style: italic;
    color: var(--teal);
}
.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.80);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 460px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    background: var(--petrol);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 24px rgba(42,138,126,0.35);
}
.btn-primary:hover { background: #1f6e64; transform: translateY(-2px); }

.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.65);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute; bottom: 2.5rem; right: 4rem; z-index: 2;
    display: flex; gap: 0.6rem;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer; transition: all 0.3s;
    border: none;
}
.hero-dot.active {
    background: var(--white);
    transform: scale(1.35);
}

/* ─── SECTIONS (all use content-wrap) ─────────────── */
section { padding: 7rem 0; }
section > .content-wrap { padding-left: 4rem; padding-right: 4rem; }

.section-label {
    font-size: 0.73rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--petrol);
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.4rem;
}
.section-title em { font-style: italic; color: var(--petrol); }
.section-body {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 560px;
}

/* ─── WILLKOMMEN ─────────────────────────────────── */
#willkommen { background: var(--white); padding: 7rem 0; }
#willkommen .content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    padding-left: 4rem;
    padding-right: 4rem;
}
.welcome-image {
    position: relative;
    border-radius: 8px;
    overflow: visible;
}
.welcome-image img {
    display: block;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.welcome-badge {
    position: absolute;
    bottom: -1.5rem; right: -1.5rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    width: 120px; height: 120px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    box-shadow: 0 12px 32px rgba(26,51,88,0.35);
    z-index: 2;
}
.welcome-badge strong { font-size: 1.6rem; display: block; }
.welcome-pills {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin-top: 2rem;
}
.pill {
    background: var(--teal-light);
    color: var(--navy);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
}

/* ─── TEAM ─────────────────────────────────────── */
#team { background: linear-gradient(170deg, #e8f4f3 0%, #f4f7f9 100%); }
.team-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
/* Card flip */
.team-card-wrapper {
    perspective: 1000px;
    height: 380px;
    cursor: pointer;
}
.team-card {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.team-card-wrapper:hover .team-card,
.team-card-wrapper.flipped .team-card {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}
.card-front {
    background: var(--white);
    box-shadow: 0 8px 32px rgba(42,138,126,0.13);
    display: flex; flex-direction: column;
}
.card-avatar {
    flex: 1;
    background: linear-gradient(135deg, #b8dbd8, #8ec5c0);
    display: flex; align-items: center; justify-content: center;
}
.card-info {
    padding: 1.2rem 1.2rem 1rem;
    background: var(--white);
}
.card-info h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.card-info p {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}
.card-flip-hint {
    font-size: 0.68rem;
    color: var(--petrol);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}
.card-back {
    background: var(--navy);
    transform: rotateY(180deg);
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 1.6rem 1.3rem;
    color: var(--white);
}
.card-back h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
}
.card-back .role {
    font-size: 0.72rem;
    color: var(--petrol-light);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.card-back p {
    font-size: 0.8rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin-bottom: 1rem;
}
.card-back .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-back .tag {
    background: rgba(255,255,255,0.14);
    color: var(--white);
    border-radius: 50px;
    padding: 0.22rem 0.65rem;
    font-size: 0.68rem;
}
.avatar-icon { width: 72px; height: 72px; }

/* ─── LEISTUNGEN ─────────────────────────────────── */
#leistungen { background: var(--white); }
#leistungen .content-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
    padding-left: 4rem;
    padding-right: 4rem;
}
.leistungen-intro { position: sticky; top: 8rem; }
.accordion { display: flex; flex-direction: column; }
.accordion-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 0;
    background: none; border: none; cursor: pointer;
    text-align: left; gap: 1rem;
}
.accordion-btn-label { display: flex; align-items: center; gap: 1rem; }
.acc-icon {
    width: 36px; height: 36px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}
.accordion-item.open .acc-icon { background: var(--navy); }
.accordion-item.open .acc-icon svg path,
.accordion-item.open .acc-icon svg circle,
.accordion-item.open .acc-icon svg line { stroke: var(--white); }
.accordion-btn h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    transition: color 0.2s;
}
.accordion-item.open .accordion-btn h3 { color: var(--navy); }
.accordion-arrow {
    width: 20px; height: 20px; flex-shrink: 0;
    color: var(--petrol);
    transition: transform 0.4s;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}
.accordion-body-inner { padding: 0 0 1.6rem 3.5rem; }
.accordion-body-inner p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}
.acc-list {
    margin-top: 0.8rem;
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.acc-list li {
    background: var(--teal-light);
    color: var(--navy);
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
}

/* ─── KONTAKT ─────────────────────────────────── */
#kontakt {
    background: linear-gradient(160deg, #1a3358 0%, #0f2040 100%);
    color: var(--white);
}
#kontakt .content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    padding-left: 4rem;
    padding-right: 4rem;
}
#kontakt .section-label { color: var(--petrol-light); }
#kontakt .section-title { color: var(--white); }
#kontakt .section-title em { color: var(--teal); }
#kontakt .section-body { color: rgba(255,255,255,0.70); max-width: 480px; }
.contact-cards { display: grid; gap: 1rem; margin-top: 2.5rem; }
.contact-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    display: flex; align-items: flex-start; gap: 1rem;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}
.contact-card:hover { background: rgba(255,255,255,0.14); }
.contact-card-icon {
    width: 40px; height: 40px;
    background: rgba(42,138,126,0.30);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-card-icon svg { color: var(--teal); }
.contact-card h4 {
    font-size: 0.70rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--petrol-light);
    margin-bottom: 0.3rem;
}
.contact-card p, .contact-card a {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    line-height: 1.6;
    text-decoration: none;
}
.contact-card a:hover { color: var(--teal); }
.map-area {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.06);
    padding: 0.8rem;
}
.map-area iframe {
    width: 100%; height: 320px; border: none;
    border-radius: 10px; display: block;
}
.opening-hours { margin-top: 1.5rem; display: grid; gap: 0.55rem; }
.oh-row {
    display: flex; justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.80);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    padding-bottom: 0.5rem;
}
.oh-row span:first-child { color: rgba(255,255,255,0.50); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}
footer .content-wrap {
    padding: 2.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: var(--petrol-light); }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.70);
    font-weight: 300;
}
.footer-logo em { font-style: italic; color: var(--teal); }

/* ─── ANIMATIONS ─────────────────────────────── */
.fade-in {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s, transform 0.7s;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ─── HAMBURGER BUTTON ───────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
    opacity   0.25s,
    width     0.3s;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU OVERLAY ────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}
.mobile-menu.open {
    pointer-events: all;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0);
    transition: background 0.4s;
}
.mobile-menu.open .mobile-menu-backdrop {
    background: rgba(10, 20, 40, 0.45);
}
.mobile-menu-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    padding: 6rem 2.5rem 3rem;
    box-shadow: -8px 0 40px rgba(26,51,88,0.15);
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}
.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-menu-links li {
    border-bottom: 1px solid var(--border);
}
.mobile-menu-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu-links a:hover { color: var(--petrol); padding-left: 0.4rem; }
.mobile-menu-cta {
    margin-top: 2.5rem;
}
.mobile-menu-cta a {
    display: block;
    text-align: center;
    background: var(--navy);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s;
}
.mobile-menu-cta a:hover { background: var(--petrol); }
.mobile-menu-footer {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .nav-inner { padding: 0 1.5rem; }
    .nav-links  { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu   { display: block; }

    section > .content-wrap,
    #willkommen .content-wrap,
    #leistungen .content-wrap,
    #kontakt .content-wrap,
    footer .content-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }

    #willkommen .content-wrap,
    #leistungen .content-wrap,
    #kontakt .content-wrap { grid-template-columns: 1fr; gap: 3rem; }

    .team-header { grid-template-columns: 1fr; }
    .team-grid   { grid-template-columns: 1fr 1fr; }

    .hero-content-wrap { padding: 0 1.5rem 5rem; }
    .hero-dots { right: 1.5rem; }
    .leistungen-intro { position: static; }
    footer .content-wrap { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 580px) {
    .team-grid { grid-template-columns: 1fr; }
}