
/* default styles for extension "tx_frontend" */
    .ce-align-left { text-align: left; }
    .ce-align-center { text-align: center; }
    .ce-align-right { text-align: right; }

    .ce-table td, .ce-table th { vertical-align: top; }

    .ce-textpic, .ce-image, .ce-nowrap .ce-bodytext, .ce-gallery, .ce-row, .ce-uploads li, .ce-uploads div { overflow: hidden; }

    .ce-left .ce-gallery, .ce-column { float: left; }
    .ce-center .ce-outer { position: relative; float: right; right: 50%; }
    .ce-center .ce-inner { position: relative; float: right; right: -50%; }
    .ce-right .ce-gallery { float: right; }

    .ce-gallery figure { display: table; margin: 0; }
    .ce-gallery figcaption { display: table-caption; caption-side: bottom; }
    .ce-gallery img { display: block; }
    .ce-gallery iframe { border-width: 0; }
    .ce-border img,
    .ce-border iframe {
        border: 2px solid #000000;
        padding: 0px;
    }

    .ce-intext.ce-right .ce-gallery, .ce-intext.ce-left .ce-gallery, .ce-above .ce-gallery {
        margin-bottom: 10px;
    }
    .ce-image .ce-gallery { margin-bottom: 0; }
    .ce-intext.ce-right .ce-gallery { margin-left: 10px; }
    .ce-intext.ce-left .ce-gallery { margin-right: 10px; }
    .ce-below .ce-gallery { margin-top: 10px; }

    .ce-column { margin-right: 10px; }
    .ce-column:last-child { margin-right: 0; }

    .ce-row { margin-bottom: 10px; }
    .ce-row:last-child { margin-bottom: 0; }

    .ce-above .ce-bodytext { clear: both; }

    .ce-intext.ce-left ol, .ce-intext.ce-left ul { padding-left: 40px; overflow: auto; }

    /* Headline */
    .ce-headline-left { text-align: left; }
    .ce-headline-center { text-align: center; }
    .ce-headline-right { text-align: right; }

    /* Uploads */
    .ce-uploads { margin: 0; padding: 0; }
    .ce-uploads li { list-style: none outside none; margin: 1em 0; }
    .ce-uploads img { float: left; padding-right: 1em; vertical-align: top; }
    .ce-uploads span { display: block; }

    /* Table */
    .ce-table { width: 100%; max-width: 100%; }
    .ce-table th, .ce-table td { padding: 0.5em 0.75em; vertical-align: top; }
    .ce-table thead th { border-bottom: 2px solid #dadada; }
    .ce-table th, .ce-table td { border-top: 1px solid #dadada; }
    .ce-table-striped tbody tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
    .ce-table-bordered th, .ce-table-bordered td { border: 1px solid #dadada; }

    /* Space */
    .frame-space-before-extra-small { margin-top: 1em; }
    .frame-space-before-small { margin-top: 2em; }
    .frame-space-before-medium { margin-top: 3em; }
    .frame-space-before-large { margin-top: 4em; }
    .frame-space-before-extra-large { margin-top: 5em; }
    .frame-space-after-extra-small { margin-bottom: 1em; }
    .frame-space-after-small { margin-bottom: 2em; }
    .frame-space-after-medium { margin-bottom: 3em; }
    .frame-space-after-large { margin-bottom: 4em; }
    .frame-space-after-extra-large { margin-bottom: 5em; }

    /* Frame */
    .frame-ruler-before:before { content: ''; display: block; border-top: 1px solid rgba(0,0,0,0.25); margin-bottom: 2em; }
    .frame-ruler-after:after { content: ''; display: block; border-bottom: 1px solid rgba(0,0,0,0.25); margin-top: 2em; }
    .frame-indent { margin-left: 15%; margin-right: 15%; }
    .frame-indent-left { margin-left: 33%; }
    .frame-indent-right { margin-right: 33%; }

/* Cooper Hewitt - Hausschrift dr-baertl.de (Privatpraxis).
   Chester Jenkins fuer das Cooper Hewitt Smithsonian Design Museum,
   SIL Open Font License 1.1 - siehe ../Fonts/cooper-hewitt-OFL.txt.
   Latin-Subset, wird ausschliesslich fuer Rootpage 27 geladen. */

@font-face {
    font-family: 'Cooper Hewitt';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-book.woff2') format('woff2'),
         url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-book.woff') format('woff');
}

@font-face {
    font-family: 'Cooper Hewitt';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-semibold.woff2') format('woff2'),
         url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-semibold.woff') format('woff');
}

@font-face {
    font-family: 'Cooper Hewitt';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-bold.woff2') format('woff2'),
         url('../../../_assets/2a1e8a6eaf79b956b2479b97b2c05f42/Fonts/cooper-hewitt-bold.woff') format('woff');
}

/* =============================================================================
   Theme: dr-baertl.de - Dr. Bärtl, Privatpraxis (Rootpage 27)

   Farben und Schrift stammen aus DRBAERTL.pdf (Visitenkarte):
   Goldkhaki #afa56f als Flaeche, Moosgruen #414b3b als Text, Creme #fff9f3
   als Papier; Cooper Hewitt Bold in Versalien mit weiter Laufweite.

   Alle Stellschrauben stehen im :root-Block. Fuer eine Anpassung von Farben,
   Schrift oder Headlinegroessen reicht es, dort Werte zu aendern - die Regeln
   darunter lesen ausschliesslich diese Variablen.

   Gemeinsame Bausteine: components.css. Basis-Theme: style.css.
   ========================================================================== */

:root {
    /* --- Farben ---------------------------------------------------------- */
    --brand-accent:        #afa56f;   /* Goldkhaki: Flaechen, Buttons, Links  */
    --brand-accent-dark:   #968c5a;   /* Hover-Stufe des Goldkhaki           */
    --brand-dark:          #414b3b;   /* Moosgruen: Text, Headlines, Footer  */
    --brand-dark-soft:     #5b6653;   /* Moosgruen aufgehellt                */
    --brand-cream:         #fff9f3;   /* Creme: Seitengrund, Text auf Gold   */
    --brand-cream-shade:   #f5ece1;   /* Creme abgetoent: ruhige Abschnitte  */
    --brand-section-alt:   #e1ddc8;   /* Sand: Sektionen "Layout 1 left/right" */
    --brand-muted:         #6f7a68;   /* Bildunterschriften, Sekundaertext   */
    --brand-line:          rgba(65, 75, 59, 0.14);

    --brand-body-bg:       var(--brand-cream);
    --brand-body-text:     var(--brand-dark);
    --brand-hero-bg:       var(--brand-accent);
    --brand-hero-overlay:  rgba(65, 75, 59, 0.45);
    --brand-slide-bg-image:   url('/fileadmin/dr_baertl/bilder/praxis_hg_2.jpg');
    --brand-slide-bg-opacity: 25%;

    /* Slider-Captions: unten links statt mittig. --hero-inset-x muss dem
       padding-left von .header-inner entsprechen, damit Headline und Button
       auf einer Linie mit der .brand-wordmark stehen. */
    --hero-inset-x:        30px;
    --hero-title-bottom:   210px;
    --hero-lead-bottom:    168px;
    --hero-button-bottom:  96px;
    --hero-title-measure:  46rem;
    --sc-button-size:      1rem;        /* Caption-Box des Buttons */
    --sc-button-label:     0.875rem;    /* Beschriftung im Button  */

    /* Slider-Indikator, unterhalb des Buttons auf derselben linken Linie */
    --hero-dots-bottom:    44px;
    --hero-dot-w:          28px;
    --hero-dot-w-active:   44px;
    --hero-dot-h:          4px;
    --hero-dot-gap:        8px;
    --hero-dot-color:      rgba(255, 249, 243, 0.4);
    --hero-dot-active:     var(--brand-cream);
    --brand-header-bg:     rgba(65, 75, 59, 0.94);
    --brand-footer-bg:     var(--brand-dark);

    /* Mobiles Menue (unter 1024px). style.css liefert dort #333 als Panel,
       #444 als Trennlinie und #fff als Linkfarbe - hier auf die Marke gezogen.
       Das Overlay dahinter dunkelt die Seite in derselben Farbe ab. */
    --nav-mobile-bg:       var(--brand-dark);
    --nav-mobile-divider:  rgba(255, 249, 243, 0.14);
    --nav-overlay-bg:      rgba(65, 75, 59, 0.55);
    --nav-overlay-blur:    8px;

    /* --- Schrift --------------------------------------------------------- */
    --brand-font:          'Cooper Hewitt', 'Nunito Sans', sans-serif;
    --brand-font-head:     var(--brand-font);
    --brand-weight-text:   400;   /* Cooper Hewitt Book  */
    --brand-weight-medium: 600;   /* Cooper Hewitt Semibold */
    --brand-weight-head:   700;   /* Cooper Hewitt Bold  */

    --brand-head-case:     uppercase;
    --brand-head-spacing:  0.12em;   /* weite Laufweite wie auf der Karte */
    --brand-head-leading:  1.15;

    /* --- Groessen -------------------------------------------------------- */
    --brand-size-base:     16px;     /* style.css liefert 14px */
    --brand-leading-base:  1.7;

    --h1: clamp(2.25rem, 1.35rem + 3.6vw, 3.25rem);
    --h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.25rem);
    --h3: 1.5rem;
    --h4: 1.125rem;
    --h5: 1rem;
    --h6: 0.875rem;
    --sc-title: clamp(1.9rem, 1.2rem + 2.8vw, 3rem);

    /* --- Wortmarke ------------------------------------------------------- */
    --wordmark-size:       clamp(5.5rem, 5.1rem + 1.6vw, 25.125rem);
    --wordmark-sub-size:   2.5rem;   /* Verhaeltnis ~34.6 : 12 wie im PDF */
    --wordmark-spacing:    0.06em;
    /* Standard: Marke steht auf Goldkhaki (Header ueber dem Hero) - genau die
       Kombination der Visitenkarte: Name in Creme, Subline in Moosgruen.
       Auf Moosgrund (Sticky-Header, Unterseiten, Footer) wird die Subline gold.
       Fuer helle Flaechen gibt es .brand-wordmark--dark. */
    --wordmark-name-color: var(--brand-cream);
    --wordmark-sub-color:  var(--brand-dark);

    /* Subpage header before scrolling: both wordmark lines plus the
       .logo a margins from style.css. */
    --header-logo-margins: 60px;
    --header-tall-height:  calc(var(--wordmark-size) * 1.05 + var(--wordmark-sub-size) * 1.2 + var(--header-logo-margins));
}

@media (max-width: 1024px) {
    :root {
        --header-logo-margins: 30px;
    }
}

/* --- Grundlagen ---------------------------------------------------------- */

body {
    background-color: var(--brand-body-bg);
    color: var(--brand-body-text);
    font-family: var(--brand-font);
    font-weight: var(--brand-weight-text);
    font-size: var(--brand-size-base);
    line-height: var(--brand-leading-base);
}

a {
    color: var(--brand-accent-dark);
}

a:hover,
a:focus {
    color: var(--brand-dark);
}

/* --- Headlines ----------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-dark);
    font-family: var(--brand-font-head);
    font-weight: var(--brand-weight-head);
    text-transform: var(--brand-head-case);
    letter-spacing: var(--brand-head-spacing);
    line-height: var(--brand-head-leading);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); font-weight: var(--brand-weight-head); }
h3 { font-size: var(--h3); color: var(--brand-dark); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

h1.color, h2.color, h3.color, h4.color, h5.color, h6.color, h6 .color,
.page-title-alt {
    color: var(--brand-accent-dark);
}

h2.sc-title {
    font-size: var(--sc-title);
    font-weight: var(--brand-weight-head);
    color: var(--brand-dark);
}

.sc-paragraph-lead {
    font-family: var(--brand-font);
    font-weight: var(--brand-weight-text);
}

/* --- Wortmarke (Ersatz fuer ein Logo-SVG) -------------------------------- */

.brand-wordmark {
    display: inline-block;
    font-family: var(--brand-font-head);
    line-height: 1.05;
    text-align: left;
    white-space: nowrap;
}

/* style.css gibt .logo a eine feste Breite von 115px - fuer ein SVG passend,
   fuer die Wortmarke zu schmal. */
.logo a {
    width: auto;
}

.header-fixed .logo a {
    width: auto;
    margin-top: 15px;
    margin-bottom: 10px;
}

.header-fixed .brand-wordmark {
    --wordmark-size: 1.375rem;
    --wordmark-sub-size: 0.625rem;
}

/* Der Footer folgt nicht der grossen Kopfzeilen-Marke: dort steht die
   Wortmarke klein neben der Copyright-Zeile, im Verhaeltnis ~34.6 : 12
   der Visitenkarte. */
.footer-logo .brand-wordmark {
    --wordmark-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem);
    --wordmark-sub-size: 0.75rem;
}

.brand-wordmark__name {
    display: block;
    font-size: var(--wordmark-size);
    font-weight: var(--brand-weight-head);
    text-transform: uppercase;
    letter-spacing: var(--wordmark-spacing);
    color: var(--wordmark-name-color);
}

.brand-wordmark__sub {
    display: block;
    margin-top: 0.15em;
    font-size: var(--wordmark-sub-size);
    font-weight: var(--brand-weight-head);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--wordmark-sub-color);
}

/* Auf Moosgrund kehrt sich die Subline um: dort traegt Gold den Kontrast. */
.header-solid .brand-wordmark,
.header-prepare .brand-wordmark,
.header-fixed .brand-wordmark,
.footer-logo .brand-wordmark {
    --wordmark-sub-color: var(--brand-accent);
}

/* Variante fuer helle Flaechen - so steht die Marke auch auf Creme lesbar. */
.brand-wordmark--dark {
    --wordmark-name-color: var(--brand-dark);
    --wordmark-sub-color: var(--brand-accent-dark);
}

/* --- Kopf- und Fussbereich ----------------------------------------------- */

/* Unterseiten haben keinen Hero hinter der Kopfzeile. Ohne eigenen Grund
   stuenden Wortmarke und Navigation in Creme auf Creme. */
.header.header-solid,
.header.header-prepare,
.header.header-fixed {
    background-color: var(--brand-header-bg);
}

/* Subpages: the bar wraps the full wordmark until scrolling, then
   .header-fixed shrinks it to the compact bar. */
.header.header-solid:not(.header-fixed) {
    height: auto;
}

.header-solid .header-inner {
    display: flow-root;
}

.header-solid ~ #main {
    padding-top: var(--header-tall-height);
}

/* Logo und Burger muessen ueber dem Menue-Overlay bleiben. style.css gibt
   .header-inner zwar position: relative, aber keinen z-index. */
.header-inner {
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .header-solid:not(.header-fixed) .nav-menu {
        top: var(--header-tall-height);
    }

    /* Panel: style.css setzt hier #333 */
    .nav-menu {
        background: var(--nav-mobile-bg);
    }

    /* style.css: border-top 1px solid #444, Linkfarbe #fff */
    .nav-menu ul.nav-menu-inner li a,
    .header-fixed .nav-menu ul.nav-menu-inner li a {
        border-top-color: var(--nav-mobile-divider);
        color: var(--brand-cream);
    }

    /* Vollflaechiges Overlay hinter dem Menue. .header hat durch z-index 1000
       einen eigenen Stacking-Kontext, das Pseudo-Element liegt darin ueber dem
       Seiteninhalt - und mit z-index 1 unter .header-inner (2) und dem
       Menue-Panel (999 aus style.css), die dadurch scharf bleiben. */
    .header:has(.nav-menu.active)::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1;
        background: var(--nav-overlay-bg);
        -webkit-backdrop-filter: blur(var(--nav-overlay-blur));
        backdrop-filter: blur(var(--nav-overlay-blur));
    }
}

.nav-menu ul.nav-menu-inner li a {
    font-family: var(--brand-font);
    font-weight: var(--brand-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-fixed .nav-menu ul.nav-menu-inner li > a.current,
.header-fixed .nav-menu ul.nav-menu-inner li.current > a,
.nav-menu ul.nav-menu-inner li a:hover {
    color: var(--brand-accent);
}

#footer,
.footer {
    background-color: var(--brand-footer-bg);
    color: var(--brand-cream);
}

#footer a,
.footer a {
    color: var(--brand-accent);
}

#footer a:hover,
.footer a:hover {
    color: var(--brand-cream);
}

.footer .social li:hover a {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* --- Abschnittsflaechen --------------------------------------------------- */

.gray-bg {
    background-color: var(--brand-cream-shade);
}

/* Die Sektion der Backend-Spalten "Layout 1 left/right" (colPos 2/3) traegt
   .bg-light - das ist Bootstraps $gray-200 (#e7eef4, hellblau). Bootstrap
   setzt die Utility mit !important, deshalb hier ebenfalls. */
.bg-light {
    background-color: var(--brand-section-alt) !important;
}

.dark-bg {
    background-color: var(--brand-dark);
}

/* Only visible during slide transitions: photo at reduced opacity over moss green. */
#intro li.dark-bg {
    background-image:
        linear-gradient(
            color-mix(in srgb, var(--brand-dark) calc(100% - var(--brand-slide-bg-opacity)), transparent),
            color-mix(in srgb, var(--brand-dark) calc(100% - var(--brand-slide-bg-opacity)), transparent)
        ),
        var(--brand-slide-bg-image);
    background-position: center;
    background-size: cover;
}

/* Hero: solange settings.heroImage leer ist, traegt der Goldkhaki-Grund die
   Section. Sobald ein Bild hinterlegt wird, legt sich der Moos-Overlay darueber. */
.bg-image {
    background-color: var(--brand-hero-bg);
}

.overlay-dark60:before,
.overlay-dark:before,
.overlay-dark80:before {
    background-color: var(--brand-hero-overlay);
}

/* --- Slider-Captions ------------------------------------------------------ */

/* Der Revolution Slider zentriert die Captions und schreibt left/top als
   Inline-Style - daher !important. .header-inner haelt denselben Abstand,
   so stehen Headline und Button exakt unter der Wortmarke.
   Die Elemente sind unten verankert: eine mehrzeilige Headline waechst
   nach oben, der Block bleibt unten stehen. */

.header-inner {
    padding-left: var(--hero-inset-x);
    padding-right: var(--hero-inset-x);
}

#intro .tp-caption {
    left: var(--hero-inset-x) !important;
    right: auto !important;
    text-align: left !important;
}

#intro .tp-caption.sc-title {
    top: auto !important;
    bottom: var(--hero-title-bottom) !important;
    /* Das Template setzt white-space:nowrap inline - lange Headlines wuerden
       links buendig sonst rechts aus dem Bild laufen. */
    white-space: normal !important;
    max-width: min(var(--hero-title-measure), calc(100% - var(--hero-inset-x) * 2)) !important;
}

#intro .tp-caption.sc-paragraph-lead {
    top: auto !important;
    bottom: var(--hero-lead-bottom) !important;
    white-space: normal !important;
    max-width: min(var(--hero-title-measure), calc(100% - var(--hero-inset-x) * 2)) !important;
}

#intro .tp-caption.sc-button {
    top: auto !important;
    bottom: var(--hero-button-bottom) !important;
}

/* Schriftgroessen: der Slider skaliert die Captions mit der Viewport-Breite
   und schreibt font-size und line-height inline - bei 500px landet die
   Headline sonst bei 17px und die Button-Beschriftung bei 7px.
   Die Tokens liefern dieselben Werte wie bisher auf dem Desktop
   (--sc-title deckelt bei 3rem = 48px), greifen aber auf dem Handy nicht
   mehr nach unten durch. */

#intro .tp-caption.sc-title {
    font-size: var(--sc-title) !important;
    line-height: var(--brand-head-leading) !important;
}

#intro .tp-caption.sc-button {
    font-size: var(--sc-button-size) !important;
    line-height: 1.5 !important;
}

#intro .tp-caption.sc-button .btn {
    font-size: var(--sc-button-label) !important;
    line-height: 1.5 !important;
}

/* --- Slider-Indikator ----------------------------------------------------- */

/* Markup erzeugt dr-baertl.js zur Laufzeit. #intro hat aus style.css bereits
   position: relative, die Rechtecke sitzen auf der --hero-inset-x-Linie. */

.hero-dots {
    position: absolute;
    left: var(--hero-inset-x);
    bottom: var(--hero-dots-bottom);
    /* Der Slider stapelt innerhalb von #intro bis 200 hoch (aktive Slide 20,
       Pfeile und Timer 100/200) - darunter waere der Indikator verdeckt. */
    z-index: 300;
    display: flex;
    gap: var(--hero-dot-gap);
}

/* Der sichtbare Balken ist nur 4px hoch - die Schaltflaeche misst 24px,
   sonst waere das Tippziel auf dem Handy zu klein. */
.hero-dots__dot {
    width: var(--hero-dot-w);
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: width 0.3s ease;
}

.hero-dots__dot::before {
    content: "";
    display: block;
    width: 100%;
    height: var(--hero-dot-h);
    background: var(--hero-dot-color);
    transition: background-color 0.3s ease;
}

.hero-dots__dot:hover::before {
    background: var(--hero-dot-active);
}

.hero-dots__dot.is-active {
    width: var(--hero-dot-w-active);
}

.hero-dots__dot.is-active::before {
    background: var(--hero-dot-active);
}

.hero-dots__dot:focus-visible::before {
    outline: 2px solid var(--brand-cream);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    :root {
        --hero-title-bottom: 168px;
        --hero-lead-bottom: 136px;
        --hero-button-bottom: 72px;

        /* Schmalerer Seitenrand - gewinnt 20px fuer die Wortmarke und haelt
           die Slider-Captions weiterhin auf deren Linie. */
        --hero-inset-x: 20px;

        /* Der Button ist auf dem Handy das primaere Tippziel und darf nicht
           kleiner sein als der Fliesstext. */
        --sc-button-size:  1.0625rem;
        --sc-button-label: 1rem;

        /* Der Button sitzt hier bei 72px, der Indikator rueckt entsprechend nach */
        --hero-dots-bottom:  32px;
        --hero-dot-w:        22px;
        --hero-dot-w-active: 36px;

        /* Die Wortmarke steht auf einer Zeile (white-space: nowrap), ihre
           Breite ist also direkt an die Schriftgroesse gekoppelt. Aus der
           Schriftmetrik von Cooper Hewitt Bold gemessen:
             "DR. BÄRTL"    = 5.26 x font-size (inkl. 0.06em Laufweite)
             "PRIVATPRAXIS" = 10.39 x font-size (inkl. 0.3em Laufweite)
           Neben der Marke sitzt das Burger-Icon (~45px), nutzbar sind also
           100vw - 2*20px - 45px. Die Werte unten bleiben darunter und laufen
           bei 767px genau in die :root-Werte (5.5rem / 2.5rem) - kein Sprung
           an der Umbruchkante. */
        --wordmark-size:     clamp(2.25rem, 0.12rem + 11.22vw, 5.5rem);
        --wordmark-sub-size: clamp(1rem,    0.05rem + 5.1vw,   2.5rem);
    }
}

.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg h6,
.dark-bg p, .dark-bg p.small, .dark-bg p.large, .dark-bg p.lead,
.dark-bg ul, .dark-bg ol, .dark-bg li {
    color: var(--brand-cream);
}

/* Buttons ausnehmen: die Slides tragen selbst .dark-bg, sonst faerbt diese
   Regel die Button-Beschriftung gold und sie verschwindet im Goldgrund. */
.dark-bg a:not(.btn) {
    color: var(--brand-accent);
}

.dark-bg a:not(.btn):hover {
    color: var(--brand-cream);
}

/* --- Buttons -------------------------------------------------------------- */

/* Beschriftungen stehen immer auf einer eigenen Flaeche, nie transparent auf
   dem Goldgrund - Creme auf Goldkhaki kaeme nur auf 2.4:1. */

.btn-color,
.btn-primary {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
}

.btn-color:hover,
.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-cream);
}

.btn-light {
    background-color: var(--brand-cream);
    border-color: var(--brand-cream);
    color: var(--brand-dark);
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-cream);
}

.btn-black,
.btn-black:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-cream);
}

/* Der Slider-Button traegt btn-light und btn-black gleichzeitig; btn-light
   steht spaeter und gewinnt - hier zur Sicherheit explizit. */
.sc-button .btn {
    background-color: var(--brand-cream);
    border-color: var(--brand-cream);
    color: var(--brand-dark);
}

.sc-button .btn:hover,
.sc-button .btn:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-cream);
}

/* --- Icons und Detailfarben ----------------------------------------------- */

.icon-color,
.content-box:hover .icon-top,
.content-box:hover .icon-left,
.content-box:hover .icon-right,
.content-box:hover .icon-black {
    background-color: var(--brand-accent);
    color: var(--brand-cream);
}

.alt-icon-sm-top i,
.alt-icon-top i,
.alt-icon-left i,
.alt-icon-right i {
    color: var(--brand-accent);
}

.image-caption {
    color: var(--brand-muted);
}

hr {
    border-top-color: var(--brand-line);
}

.ce-intext.ce-right .ce-gallery {
    width: 38%;
}

/* Landing page orthopaedie-neumarkt.de.
   Colors, font and heading tokens come from :root in dr-baertl.css.
   Moss on gold reaches 3.68:1, so text on gold has to be large:
   at least 24px regular or 19px bold. */

:root {
    --lp-gutter: clamp(20px, 5vw, 72px);
    --lp-space: clamp(64px, 9vw, 128px);
    --lp-header-h: 72px;
    --lp-measure: 62ch;
    --lp-bold-large: 1.1875rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--lp-header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-size: 1.125rem;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin: 0;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem);
    letter-spacing: 0.06em;
}

h3 {
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

p {
    margin: 0 0 1em;
    max-width: var(--lp-measure);
}

a {
    color: var(--brand-dark);
}

a:hover,
a:focus {
    color: var(--brand-dark);
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--brand-dark);
    outline-offset: 3px;
}

.lp-header :focus-visible,
.lp-footer :focus-visible,
.lp-section--moss :focus-visible,
.lp-actionbar :focus-visible {
    outline-color: var(--brand-cream);
}

.lp-skip {
    position: absolute;
    left: -999px;
    z-index: 40;
    padding: 0.75rem 1rem;
    background: var(--brand-cream);
}

.lp-skip:focus {
    left: var(--lp-gutter);
    top: 8px;
}

.lp-wrap {
    padding-inline: var(--lp-gutter);
}

/* --- Buttons -------------------------------------------------------------- */

.lp-btn {
    display: inline-block;
    padding: 0.7em 1.3em;
    border: 2px solid var(--brand-dark);
    border-radius: 3px;
    background: var(--brand-dark);
    color: var(--brand-cream);
    font-size: var(--lp-bold-large);
    font-weight: var(--brand-weight-head);
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.lp-btn:hover,
.lp-btn:focus {
    border-color: var(--brand-dark);
    background: var(--brand-cream);
    color: var(--brand-dark);
}

.lp-btn--gold {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.lp-btn--gold:hover,
.lp-btn--gold:focus {
    border-color: var(--brand-cream);
}

.lp-btn--ghost {
    border-color: var(--brand-cream);
    background: transparent;
    color: var(--brand-cream);
}

/* --- Header --------------------------------------------------------------- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--brand-dark);
}

.lp-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--lp-header-h);
    padding-inline: var(--lp-gutter);
}

.lp-header__logo {
    text-decoration: none;
}

.lp-header .brand-wordmark,
.lp-footer .brand-wordmark {
    --wordmark-size: 1.5rem;
    --wordmark-sub-size: 0.625rem;
    --wordmark-sub-color: var(--brand-section-alt);
}

.lp-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.lp-nav a {
    color: var(--brand-cream);
    font-size: 1rem;
    font-weight: var(--brand-weight-medium);
    text-decoration: none;
}

.lp-nav a:hover,
.lp-nav a:focus {
    color: var(--brand-cream);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* --- Hero: the business card, scaled up ------------------------------------ */

.lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: min(calc(100svh - var(--lp-header-h)), 860px);
    background: var(--brand-accent);
}

.lp-hero__text {
    display: flex;
    flex-direction: column;
    padding: clamp(40px, 6vw, 88px) var(--lp-gutter) clamp(32px, 3.5vw, 48px);
}

/* Lets the action row sit between the two content elements of colPos 10. */
.lp-hero__content {
    display: contents;
}

.lp-hero__content .frame:nth-child(1) {
    order: 1;
}

.lp-hero__actions {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.lp-hero__content .frame:nth-child(2) {
    order: 3;
    margin-top: auto;
    padding-top: 48px;
}

.lp-hero h1 {
    font-size: clamp(2.4rem, 6.1vw, 5.75rem);
    letter-spacing: 0.03em;
    line-height: 1.02;
}

.lp-hero h1 + p,
.lp-hero header + p {
    margin: clamp(20px, 2.5vw, 32px) 0 clamp(28px, 3vw, 40px);
    font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
    line-height: 1.3;
}

.lp-hero ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    font-size: var(--lp-bold-large);
    font-weight: var(--brand-weight-head);
    line-height: 1.3;
    list-style: none;
}

.lp-hero__phone {
    font-size: 1.375rem;
    font-weight: var(--brand-weight-head);
    white-space: nowrap;
}

.lp-hero__portrait {
    position: relative;
    min-height: 320px;
}

.lp-hero__portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

/* --- Sections ------------------------------------------------------------- */

.lp-section {
    padding-block: var(--lp-space);
}

.lp-section--sand {
    background: var(--brand-section-alt);
}

.lp-section--moss {
    background: var(--brand-dark);
    color: var(--brand-cream);
}

.lp-section--moss h2 {
    color: var(--brand-cream);
}

/* First element is the heading: it stays in view next to the text. */
.lp-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.lp-split > :first-child {
    position: sticky;
    top: calc(var(--lp-header-h) + 32px);
    grid-column: 1;
    grid-row: 1 / span 12;
}

.lp-split > :not(:first-child) {
    grid-column: 2;
}

.lp-split .frame + .frame:not(:nth-child(2)) {
    margin-top: 1.5rem;
}

.lp-split h3 {
    margin-bottom: 0.4rem;
}

/* --- Body map ------------------------------------------------------------- */

.lp-map__grid {
    display: grid;
    grid-template-columns: clamp(84px, 23vw, 300px) minmax(0, 1fr);
    gap: clamp(20px, 7vw, 112px);
    align-items: start;
}

.lp-map__figure {
    position: sticky;
    top: calc(var(--lp-header-h) + 24px);
}

.lp-fig {
    width: 100%;
    max-height: calc(100svh - var(--lp-header-h) - 48px);
}

.lp-map__list h2 {
    margin-bottom: 1rem;
}

.lp-map__list > .frame:first-child {
    padding-bottom: 1rem;
}

.lp-map__list > .frame:not(:first-child) {
    padding-block: 1.1rem;
    border-top: 1px solid var(--brand-line);
}

.lp-map__list h3 {
    margin-bottom: 0.25rem;
}

.lp-map__list p {
    margin-bottom: 0;
}

.lp-fig__head,
.lp-fig__bones path {
    fill: none;
    stroke: var(--brand-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.lp-fig__spine rect,
.lp-fig__joint circle {
    fill: var(--brand-accent);
    stroke: var(--brand-dark);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill 0.15s ease, transform 0.15s ease;
}

/* Elements 2 to 8 of colPos 30 run head to toe, element 9 is sports: all joints. */
.lp-map:has(.frame:nth-child(2):hover) .lp-fig__j1 rect,
.lp-map:has(.frame:nth-child(3):hover) .lp-fig__j2 circle,
.lp-map:has(.frame:nth-child(4):hover) .lp-fig__j3 circle,
.lp-map:has(.frame:nth-child(5):hover) .lp-fig__j4 rect,
.lp-map:has(.frame:nth-child(6):hover) .lp-fig__j5 circle,
.lp-map:has(.frame:nth-child(7):hover) .lp-fig__j6 circle,
.lp-map:has(.frame:nth-child(8):hover) .lp-fig__j7 circle,
.lp-map:has(.frame:nth-child(9):hover) .lp-fig__joint circle {
    fill: var(--brand-dark);
    transform: scale(1.3);
}

/* --- Methods -------------------------------------------------------------- */

.lp-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 3.5vw, 44px) clamp(32px, 6vw, 96px);
}

.lp-methods > :first-child {
    grid-column: 1 / -1;
}

.lp-methods h2 {
    margin-bottom: 1rem;
}

.lp-methods h3 {
    margin-bottom: 0.3rem;
}

.lp-methods p {
    margin-bottom: 0;
}

/* --- Doctor --------------------------------------------------------------- */

.lp-doctor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--brand-cream-shade);
}

.lp-doctor__image {
    position: relative;
    min-height: 300px;
}

.lp-doctor__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-doctor__text {
    padding: var(--lp-space) var(--lp-gutter);
}

.lp-doctor__text h2 {
    margin-bottom: 1rem;
}

.lp-doctor__text h3 {
    margin: 1.5rem 0 0.75rem;
}

.lp-doctor__text ol {
    max-width: var(--lp-measure);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.lp-doctor__text li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 2.25rem;
    counter-increment: step;
}

.lp-doctor__text li::before {
    position: absolute;
    left: 0;
    content: counter(step);
    font-size: 1.25rem;
    font-weight: var(--brand-weight-head);
    line-height: 1.5;
}

/* --- Route ---------------------------------------------------------------- */

.lp-address {
    margin-top: 1.5rem;
    font-style: normal;
}

.lp-route-link {
    margin: 1.25rem 0 0;
}

/* --- FAQ ------------------------------------------------------------------ */

.lp-faq__item {
    border-top: 1px solid var(--brand-line);
}

.lp-faq__item:last-of-type {
    border-bottom: 1px solid var(--brand-line);
}

.lp-faq__item summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    cursor: pointer;
    list-style: none;
}

.lp-faq__item summary::-webkit-details-marker {
    display: none;
}

.lp-faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: var(--brand-weight-head);
    line-height: 1;
}

.lp-faq__item[open] summary::after {
    content: "\2013";
}

.lp-faq__item h3 {
    margin: 0;
    font-size: var(--lp-bold-large);
}

.lp-faq__answer {
    padding-bottom: 0.5rem;
}

/* --- Closing call to action and footer ------------------------------------ */

.lp-cta {
    padding-block: clamp(56px, 7vw, 96px);
    background: var(--brand-accent);
}

.lp-cta h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
    letter-spacing: 0.03em;
    line-height: 1.05;
}

.lp-footer {
    padding-block: 56px;
    background: var(--brand-dark);
    color: var(--brand-cream);
    font-size: 1rem;
}

.lp-footer a {
    color: var(--brand-cream);
}

.lp-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px clamp(32px, 6vw, 96px);
}

.lp-footer__brand a {
    text-decoration: none;
}

.lp-footer__legal p {
    margin-bottom: 0.5rem;
}

.lp-actionbar {
    display: none;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1099px) {
    .lp-nav {
        display: none;
    }

    .lp-header__cta {
        margin-left: auto;
    }
}

@media (max-width: 899px) {
    .lp-footer {
        padding-bottom: calc(56px + 76px);
    }

    .lp-header__cta {
        display: none;
    }

    .lp-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .lp-hero h1 {
        font-size: clamp(2.3rem, 11.4vw, 5.25rem);
    }

    .lp-hero__portrait {
        min-height: 0;
        aspect-ratio: 5 / 4;
    }

    .lp-split,
    .lp-doctor,
    .lp-footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-split > :first-child {
        position: static;
        grid-row: auto;
        margin-bottom: 1.25rem;
    }

    .lp-split > :not(:first-child) {
        grid-column: 1;
    }

    .lp-methods {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-doctor__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .lp-actionbar {
        position: fixed;
        inset: auto 0 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: var(--brand-dark);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp-fig__spine rect,
    .lp-fig__joint circle {
        transition: none;
    }
}
