:root {
    --navy: #18253E;
    --gruen: #739518;
    --gruen-hell: #A6C837;
    --tuerkis: #17A9BC;
    --tuerkis-dunkel: #128A99;
    --himmelblau: #8FC9E8;
    --lavendel: #C0A0D8;
    --rosa: #EFA6C3;
    --gelb: #F6DC7C;
    --coral: #FF7F50;
    --offwhite: #F7F9FA;
    --grau: #5B6572;
    --linie: #D8ECF4;
    --faq-bg: #E9F3F8;
    --prophylaxe-gradient: linear-gradient(135deg, #D6ECF8, #8FC9E8);
    --zahnerhalt-gradient: linear-gradient(135deg, #DDEBC0, #A9D97B);
    --chirurgie-gradient: linear-gradient(135deg, #E7DAF2, #C0A0D8);
    --zahnersatz-gradient: linear-gradient(135deg, #F9DCE6, #EFA6C3);
    --aesthetik-gradient: linear-gradient(135deg, #FDF1C4, #F6DC7C);
    --kiefergelenkstherapie-gradient: linear-gradient(135deg, #FFE0E6, #FF7F50);
    --prophylaxe-soft: #E9F3F8;
    --zahnerhalt-soft: #EBF2EC;
    --chirurgie-soft: #EEE3F5;
    --zahnersatz-soft: #F9E3EC;
    --aesthetik-soft: #FFF6D8;
    --kiefergelenkstherapie-soft: #fec2ac;
    --prophylaxe-accent: #128A99;
    --zahnerhalt-accent: #7E9B56;
    --chirurgie-accent: #C0A0D8;
    --zahnersatz-accent: #EFA6C3;
    --aesthetik-accent: #F6C74E;
    --kiefergelenkstherapie-accent: #FF7F50;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    background: var(--offwhite);
    color: var(--grau);
    line-height: 1.65;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2.25% 0 24px;
    gap: 20px;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
    font-weight: 700;
}

header {
    background: #fff;
    border-bottom: 1px solid var(--himmelblau);
    position: sticky;
    top: 0;
    z-index: 60;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
}

.logo .lt {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo .lt b {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 700;
}

.logo .lt small {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gruen);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links>a,
.nav-dropdown-toggle {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    background: transparent;
    border: none;
}

.nav-links>a:hover,
.nav-dropdown-toggle:hover {
    color: var(--gruen);
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font: inherit;
}

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 0.72rem;
    line-height: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #DCE7EE;
    border-radius: 4px;
    box-shadow: 0 16px 30px rgba(24, 37, 62, 0.12);
    padding: 10px;
    display: none;
    z-index: 100;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 3px;
}

.nav-dropdown-menu a:hover {
    background: #F4F8FB;
    color: var(--gruen);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #DCE7EE;
    background: #fff;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
    display: block;
    border-radius: 2px;
}

.section {
    padding: 90px 0;
}

.sec-head {
    max-width: 660px;
    margin-bottom: 50px;
}

.sec-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    color: var(--gruen);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 16px;
}

h1 {
    color: var(--navy);
    font-size: 2.8rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

p.lead {
    margin-bottom: 32px;
    font-size: 1.05rem;
    color: #3D4A5C;
    line-height: 1.7;
}

/* Angebotsseiten */
.leistung-prophylaxe {
    background: var(--prophylaxe-gradient);
    color: #fff;
}

.leistung-zahnerhalt {
    background: var(--zahnerhalt-gradient);
    color: #fff;
}

.leistung-chirurgie {
    background: var(--chirurgie-gradient);
    color: #fff;
}

.leistung-zahnersatz {
    background: var(--zahnersatz-gradient);
    color: #fff;
}

.leistung-aesthetik {
    background: var(--aesthetik-gradient);
    color: #fff;
}

.leistung-kiefergelenkstherapie {
    background: var(--kiefergelenkstherapie-gradient);
    color: #fff;
}

.details-prophylaxe {
    background: var(--prophylaxe-soft);
}

.details-zahnerhalt {
    background: var(--zahnerhalt-soft);
}

.details-chirurgie {
    background: var(--chirurgie-soft);
}

.details-zahnersatz {
    background: var(--zahnersatz-soft);
}

.details-aesthetik {
    background: var(--aesthetik-soft);
}

.details-kiefergelenkstherapie {
    background: var(--kiefergelenkstherapie-soft);
}

.card-prophylaxe {
    border-top: 3px solid var(--prophylaxe-accent);
}

.card-zahnerhalt {
    border-top: 3px solid var(--zahnerhalt-accent);
}

.card-chirurgie {
    border-top: 3px solid var(--chirurgie-accent);
}

.card-zahnersatz {
    border-top: 3px solid var(--zahnersatz-accent);
}

.card-aesthetik {
    border-top: 3px solid var(--aesthetik-accent);
}

.card-kiefergelenkstherapie {
    border-top: 3px solid var(--kiefergelenkstherapie-accent);
}

.leistung-hero {
    padding: 90px 0;
}

.leistung-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
}

.leistung-hero .lead {
    max-width: 620px;
    margin-top: 18px;
    margin-bottom: 28px;
}

.leistung-highlight {
    display: grid;
    gap: 16px;
}

.leistung-stat {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 4px;
    padding: 22px 24px;
    backdrop-filter: blur(8px);
}

.leistung-stat span {
    display: block;
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: .85;
}

.leistung-stat strong {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
}

.details-section,
.leistung-inhalt,
.leistung-ablauf {
    padding: 90px 0;
}

.details-grid,
.leistung-grid,
.ablauf-grid {
    display: grid;
    gap: 20px;
}

.details-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.leistung-grid,
.ablauf-grid {
    grid-template-columns: repeat(3, 1fr);
}

.detail-card {
    background: #fff;
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(24, 37, 62, 0.04);
}

.detail-card h3,
.leistung-card h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.detail-card p,
.leistung-card p,
.ablauf-step p {
    font-size: .92rem;
    color: #33405A;
}

.leistung-card {
    background: #fff;
    border: 1px solid #E2E8EE;
    padding: 32px;
    border-radius: 4px;
    min-height: 220px;
}

.ablauf-step {
    background: #fff;
    border: 1px solid #E2E8EE;
    border-top: 3px solid var(--gruen);
    padding: 30px;
    border-radius: 4px;
}

.ablauf-step span {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--gruen);
    margin-bottom: 12px;
}

.ablauf-step h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.carousel-section {
    background: #fff;
    padding: 90px 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform .5s ease-in-out;
    width: max-content;
}

.testimonial-slide {
    width: 320px;
    background: var(--offwhite);
    border: 1px solid #E2E8EE;
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(24, 37, 62, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sterne {
    color: var(--gruen);
    letter-spacing: 3px;
    font-size: .85rem;
    margin-bottom: 6px;
}

.platform {
    font-size: .75rem;
    color: var(--tuerkis-dunkel);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #CBD5E1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-btn.prev {
    left: -24px;
}

.carousel-btn.next {
    right: -24px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--navy);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
}

.dot.active {
    background: var(--gruen);
}

.faq details {
    background: #fff;
    border: 1px solid #DCE7EE;
    border-radius: 4px;
    margin-bottom: 14px;
}

.faq summary {
    cursor: pointer;
    padding: 22px 24px;
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary .tag {
    font-size: 0.7rem;
    background: var(--faq-bg);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    font-weight: 400;
}

.faq summary::after {
    content: "+";
    color: var(--gruen);
    font-size: 1.4rem;
}

.faq details[open] summary::after {
    content: "–";
}

.faq .antwort {
    padding: 0 24px 22px;
    font-size: .92rem;
}

.cta-lavendel {
    background: linear-gradient(90deg, rgba(24, 37, 62, 0.65), rgba(24, 37, 62, 0.3));
    text-align: center;
    color: #fff;
    padding: 100px 0;
}

.cta-lavendel h2 {
    color: #fff;
    font-size: 2.3rem;
    margin-bottom: 14px;
}

.cta-lavendel p {
    max-width: 520px;
    margin: 0 auto 30px;
    font-size: 1rem;
    opacity: 0.95;
}

.cta-lavendel .btn {
    background: #fff;
    color: var(--navy);
}

.cta-lavendel .btn:hover {
    background: var(--gruen);
    color: #fff;
}

/* ===== Anamnesebogen-CTA: Text links, Buttons rechts übereinander ===== */
.cta-anamnese-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.cta-anamnese-text p {
    margin: 0;
    max-width: 480px;
}

.cta-anamnese-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-download svg {
    flex-shrink: 0;
}

.final p {
    max-width: 520px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.final .btn {
    background: var(--navy);
    color: #fff;
}

footer {
    padding: 64px 0 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.4fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

footer .flogo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

footer .flogo svg {
    width: 30px;
    height: 30px;
}

footer .flogo b {
    color: var(--navy);
    font-size: 1.1rem;
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #33405A;
}

footer h4 {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 16px;
}

footer a {
    font-size: 0.85rem;
    color: #33405A;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.gmap {
    margin-top: 16px;
    height: 150px;
    border-radius: 3px;
    border: 1px solid #BCDDE4;
    position: relative;
    overflow: hidden;
    background: linear-gradient(35deg, transparent 49.4%, #fff 49.4%, #fff 50.6%, transparent 50.6%),
        linear-gradient(-55deg, transparent 49.4%, #fff 49.4%, #fff 50.6%, transparent 50.6%),
        linear-gradient(80deg, transparent 49.6%, #fff 49.6%, #fff 50.4%, transparent 50.4%),
        #CFE3E8;
}

.gmap .pin {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -100%);
}

.gmap .pin svg {
    width: 30px;
    height: 30px;
    fill: var(--tuerkis-dunkel);
}

.gmap .lbl {
    position: absolute;
    left: 10px;
    bottom: 8px;
    font-size: 0.68rem;
    color: #5B6572;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 8px;
    border-radius: 2px;
}

.zeiten {
    width: 100%;
    font-size: 0.85rem;
    color: #33405A;
    border-collapse: collapse;
}

.zeiten td {
    padding: 5px 0;
    border-bottom: 1px solid #C4E0E6;
}

.zeiten tr:last-child td {
    border-bottom: none;
}

.zeiten td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--navy);
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--navy);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.social a:hover {
    background: var(--navy);
}

.social svg {
    width: 15px;
    height: 15px;
    fill: var(--navy);
}

.social a:hover svg {
    fill: #fff;
}

.foot-bottom {
    border-top: 1px solid #BCDDE4;
    padding: 20px 0;
    font-size: 0.75rem;
    background-color: var(--navy);
    color: white;
}

.foot-bottom .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.foot-bottom a {
    display: inline;
    color: #5B6572;
}

.foot-bottom .sep {
    display: inline-block;
    margin: 0 10px;
}

/* ===== Header (Basiswerte, ggf. redundant zu oben – bewusst beibehalten) ===== */
.btn {
    display: inline-block;
    background: var(--gruen);
    color: #fff;
    padding: 14px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background .2s;
}

.btn:hover {
    background: #688145;
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
}

/* ===== Hero mit Visual ===== */
.hero {
        background: #fff;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        padding: 80px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text .kicker {
    color: var(--gruen);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 16px;
}

h1 em {
    font-style: normal;
    color: var(--gruen);
}

.hero p.lead {
    margin-bottom: 32px;
    font-size: 1.05rem;
    color: #3D4A5C;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* .hero-img-wrap {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--linie);
} */
/* ===== Expertise (Dr. Fabian Görlach) ===== */
.expertise {
    padding: 80px 0;
    background: var(--offwhite);
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.exp-card {
    background: #fff;
    padding: 36px 30px;
    border-radius: 4px;
    border: 1px solid #E2E8EE;
    border-top: 3px solid var(--gruen);
}

.exp-card h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.exp-card p {
    font-size: 0.9rem;
}

/* ===== Bento Grid Leistungen ===== */
section {
    padding: 90px 0;
    background-position: left bottom;
}

h2 {
    color: var(--navy);
    font-size: 2.2rem;
    letter-spacing: -0.3px;
    line-height: 1.22;
}

.sec-head p {
    margin-top: 14px;
    font-size: 0.96rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    border-radius: 4px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(24, 37, 62, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(24, 37, 62, 0.12);
}

.bento-card.large {
    grid-column: span 2;
}

.bento-card h3 {
    color: var(--navy);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.bento-card .sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.7;
    margin-bottom: 14px;
}

.bento-card p {
    font-size: 0.9rem;
    color: #33405A;
    max-width: 420px;
}

.bento-card .mehr {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 3px;
    text-decoration: none;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}

.bento-card .mehr:hover {
    background: var(--navy);
    color: #fff;
}

.bc-1 {
    background: linear-gradient(135deg, #DDEBC0, #A9D97B);
}

.bc-2 {
    background: linear-gradient(135deg, #D6ECF8, #8FC9E8);
}

.bc-3 {
    background: linear-gradient(135deg, #E7DAF2, #C0A0D8);
}

.bc-4 {
    background: linear-gradient(135deg, #F9DCE6, #EFA6C3);
}

.bc-5 {
    background: linear-gradient(135deg, #FDF1C4, #F6DC7C);
}

.bc-6 {
    background: linear-gradient(135deg, #FFB6A0, #FF7F50);
}

/* ===== Story-Bereich (heller Hintergrund) ===== */
.story {
    background: #fff;
    color: var(--grau);
    border-top: 1px solid var(--himmelblau);
    border-bottom: 1px solid var(--himmelblau);
}

.story-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: stretch;

    /* statt center: Bild füllt die volle Zeilenhöhe, kein Gap mehr unten */
    margin-bottom: 50px;
}

.story .kicker {
    color: var(--gruen);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 14px;
}

.story h2 {
    color: var(--navy);
    font-size: 2.2rem;
    line-height: 1.22;
}

.story p {
    margin-top: 16px;
    color: #33405A;
}

.story .sig {
    margin-top: 26px;
    padding-top: 0px;
    border-top: 1px solid var(--linie);
    font-size: 0.88rem;
}

.story .sig b {
    color: var(--navy);
}

.arzt-foto {
    height: 100%;
}

.arzt-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(24, 37, 62, 0.08);
    display: block;
}

.gen-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gen {
    background: var(--offwhite);
    border: 1px solid #E2E8EE;
    border-top: 3px solid var(--gruen);
    padding: 24px;
    border-radius: 4px;
}

.gen b {
    color: var(--navy);
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.gen span {
    font-size: 0.88rem;
    color: #4A5568;
}

/* =========================================================
   ÜBER UNS: Mitarbeiter-Reihen (Foto/Text alternierend)
   Klasse .story-top-left liegt auf JEDER Mitarbeiter-Zeile.
   Zusätzliche Klasse .story-top (jede 2.) = Variante Text|Foto.
   ========================================================= */
.story-top-left {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    /* Standard: Foto | Text */
    gap: 50px;
    align-items: stretch;
    margin-bottom: 60px;
}

.story-top-left.story-top {
    grid-template-columns: 1.15fr 0.85fr;

    /* Variante: Text | Foto */
}

.story-top-left .arzt-foto {
    height: 100%;
}

.story-top-left .arzt-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.team-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 4px;
}

.team-text h2 {
    margin-bottom: 16px;
}

.team-text p {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ===== Praxis ===== */
.praxis-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.praxis-text h2 {
    margin-bottom: 16px;
}

.praxis-text p {
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.praxis-mitte img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 3px;
    display: block;
}

.praxis-gal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
    gap: 12px;
}

@media (min-width: 560px) {
    .praxis-gal {
        grid-area: 1 / 4 / 1 / 1;
        display: grid;
    }
}

.praxis-gal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.pg1 {
    grid-row: span 3;
}

.pg2 {
    grid-row: span 2;
}

.pg3 {
    grid-row: span 2;
}

.pg-label {
    grid-row: span 3;
    background: linear-gradient(150deg, #E7DAF2, #C0A0D8);
    border-radius: 3px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Testimonial Karussell (Simuliert) ===== */
.testimonial-box {
    background: #fff;
    border: 1px solid #E2E8EE;
    padding: 48px;
    border-radius: 4px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-box .sterne {
    color: var(--gruen);
    letter-spacing: 4px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.testimonial-box p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-box .autor {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--grau);
}

/* ===== Final CTA ===== */
.final {
    text-align: center;
    color: #000;
    padding: 80px 0;
    background-color: var(--gruen);
}

.final .btn {
    background: var(--navy);
    color: #fff;
}

.final .btn:hover {
    background: #111b2e;
}

.foot-bottom a {
    color: white;
}

.cta final {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
}

.wrap cta final {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-direction: column;
}

.wrap-final-cta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

overlay {
    background-image: url('img/AdobeStock_497522446_Preview.jpeg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

.rechtstexte h2,
.rechtstexte h3 {
    padding-top: 25px;
    max-width: 1200px;
}

/* =========================================================
   RESPONSIVE DESIGN – Tablet & Mobile (konsolidiert)
   ========================================================= */
/* ---- Tablet & Mobile: bis 980px ---- */
@media (max-width: 980px) {
    /* Symmetrisches Padding links/rechts statt links fest 24px / rechts prozentual 2,25% –
       Letzteres führte auf kleineren Breiten zu einer sichtbaren Linksverschiebung des
       gesamten Inhalts. */
    .wrap {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 24px 20px;
        border-top: 1px solid #DCE7EE;
        box-shadow: 0 16px 30px rgba(24, 37, 62, 0.12);
        z-index: 200;
    }

    .hero {
            background-position: left center;
        }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links>a,
    .nav-dropdown-toggle {
        width: 100%;
        padding: 12px 0;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 0;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        margin-top: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 10px 0;
    }

    .btn.btn-sm {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    /* Alle zwei-/dreispaltigen Grids untereinander anzeigen.
       .story-top-left wird bewusst ausgeschlossen (:not), da die
       Mitarbeiter-Reihen bis 640px nebeneinander bleiben sollen. */
    .hero-grid,
    .exp-grid,
    .praxis-grid,
    .story-top:not(.story-top-left),
    .team-grid,
    .bento-grid,
    .gen-box,
    .leistung-hero-grid,
    .leistung-grid,
    .ablauf-grid,
    .foot-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* .praxis-gal hat im HTML ein inline grid-area (für die Desktop-Ansicht),
       das jede normale Klassenregel überschreibt. Nur !important kann ein
       Inline-Style überschreiben – ohne das bleibt die Galerie in Spalte 2–4
       "stecken" und sprengt das einspaltige Layout. */
    .praxis-gal {
        grid-area: auto !important;
    }

    .bento-card.large {
        grid-column: span 1;
    }

    .hero-img-wrap {
        order: -1;
        margin-bottom: 10px;
    }

    /* Ab Tablet stapelt .story-top (Homepage-Intro) in 1 Spalte (siehe Grid-Regel oben).
       Eine fixe Pixelhöhe würde hier wieder zu Lücken/Beschnitt führen (siehe Punkt 3
       der Analyse) – daher height:auto + object-fit:contain: das Bild zeigt sich
       komplett und unbeschnitten, egal wie lang der Textblock daneben ist.
       .team-img (separater Bereich ohne Text-Kopplung) bleibt bewusst mit fixer Höhe. */
    .arzt-foto {
        height: auto;
    }

    .arzt-foto img {
        height: auto;
        object-fit: contain;
    }

    /* Inline-Style im HTML (.story-top) setzt nur padding-left:18px –
       hier wird die rechte Seite um den gleichen Betrag ergänzt, damit es
       symmetrisch ist. Keine !important nötig, da padding-right inline
       gar nicht gesetzt ist (keine Kollision). */
    .story-top {
        padding-right: 18px;
    }

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    /* =====================================================
       FOOTER "KONTAKT": Adresse links, Telefon & E-Mail rechts
       Reihenfolge im Markup: h4 -> p (Adresse) -> a (Tel) -> a (Mail)
       nth-child(2) = zweites Kind von .foot-grid = Kontakt-Block
       Jetzt ab Tablet gültig (vorher nur ab Mobile) – .foot-grid ist
       hier schon einspaltig, daher unproblematisch.
       ===================================================== */
    .foot-grid>div:nth-child(2) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
        align-items: start;
    }

    .foot-grid>div:nth-child(2) h4 {
        grid-column: 1 / -1;
    }

    .foot-grid>div:nth-child(2) p {
        grid-column: 1;
        grid-row: 2 / span 2;
        align-self: center;
        margin-bottom: 0;
    }

    .foot-grid>div:nth-child(2) a:nth-of-type(1) {
        grid-column: 2;
        grid-row: 2;
    }

    .foot-grid>div:nth-child(2) a:nth-of-type(2) {
        grid-column: 2;
        grid-row: 3;
    }

    /* =====================================================
       FOOTER "LEISTUNGEN": 6 Links -> 3 links / 3 rechts
       nth-child(4) = viertes Kind von .foot-grid = Leistungen-Block
       Jetzt ab Tablet gültig (vorher nur ab Mobile).
       ===================================================== */
    .foot-grid>div:nth-child(4) {
        column-count: 2;
        column-gap: 20px;
    }

    .foot-grid>div:nth-child(4) h4 {
        column-span: all;
    }

    .foot-grid>div:nth-child(4) a {
        margin-bottom: 8px;
    }
}

/* ---- Kleine Mobilgeräte: bis 640px ---- */
@media (max-width: 640px) {
    .exp-grid,
    .bento-grid,
    .gen-box,
    .details-grid,
    .leistung-grid,
    .ablauf-grid {
        grid-template-columns: 1fr;
    }

    .praxis-gal {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    /* pg1 hat zusätzlich ein inline grid-area (Zeilen-Spanne über 4 Reihen) im HTML.
       Auch das muss mit !important überschrieben werden, sonst bleibt das Bild
       überproportional hoch und die Reihenfolge verrutscht. */
    .pg1,
    .pg2,
    .pg3 {
        grid-area: auto !important;
    }

    .hero {
        padding: 50px 0;
    }

    section {
        padding: 60px 0;
    }

    .story-top {
        gap: 24px;
    }

    /* Karussell: Kartenbreite relativ zur Viewport-Breite (mit Obergrenze) +
       kleinerer Kartenabstand, damit die aktive Karte mittig steht und
       links/rechts jeweils ein Stück der Nachbarkarten sichtbar bleibt. */
    .testimonial-slide {
        width: min(78vw, 280px);
    }

    .carousel-track {
        gap: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    /* Hero-Textblock: NUR auf Mobilgeräten (Hintergrundbild der .hero-Section
       überlagert sonst den Text und macht ihn schwer lesbar). Auf Desktop/Tablet
       bleibt .hero-text unverändert ohne eigenen Hintergrund. */
    .hero-text {
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 4px;
        color: #fff;
    }

    .hero-text h1,
    .hero-text .kicker,
    .hero-text .lead {
        color: #000000;
    }

    /* Mitarbeiter-Reihen: ab hier nur noch 1 Spalte,
       Foto IMMER zuerst (volle, unbeschnittene Höhe), Text danach –
       unabhängig von der HTML-Reihenfolge (Foto-Text ODER Text-Foto). */
    .story-top-left,
    .story-top-left.story-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .story-top-left .arzt-foto {
        height: auto;
        order: 1;
    }

    .story-top-left .arzt-foto img {
        height: auto;
        object-fit: contain;
    }

    .story-top-left>div:not(.arzt-foto) {
        order: 2;
    }

    /* =====================================================
       BENTO-KARTEN: kompaktere Version für Mobile
       (weniger Padding, minimaler Abstand unter h3, Text aus)
       ===================================================== */
    .bento-card {
        padding: 24px;
    }

    .bento-card h3 {
        margin-bottom: 2px;
    }

    .bento-card p {
        display: none;
    }

    /* =====================================================
       FOOTER: kompaktere Abstände auf Mobile
       ===================================================== */
    footer {
        padding: 32px 0 0;
    }

    .foot-grid {
        gap: 24px;
        padding-bottom: 24px;
    }

    footer h4 {
        margin-bottom: 10px;
    }

    footer a {
        margin-bottom: 6px;
    }

    footer p {
        margin-bottom: 4px;
    }

    .foot-bottom {
        padding: 14px 0;
    }

    /* Footer-Bottom (Copyright-Zeile / Impressum-Links): Reihen statt Spalten,
       zusätzlich zentriert. Annahme: Die lokal ergänzte Klasse heißt "inner"
       (passend zu class="wrap inner" im bestehenden Markup) – bitte prüfen,
       falls der Klassenname bei dir abweicht. */
    .foot-bottom .inner {
        flex-direction: column;
        justify-content: center;
    }
                /* Anamnesebogen-CTA: ab Mobile einspaltig, Text zuerst (HTML-Reihenfolge bleibt erhalten) */
                .cta-anamnese-grid {
                    grid-template-columns: 1fr;
                    text-align: center;
                }
        
                .cta-anamnese-buttons {
                    width: 100%;
                }
        
                .btn-download {
                    justify-content: center;
                }
}