/*
 * bewegungsdoktor.de – Layout "Aurora" (Version 2: Feedback Samuel)
 * Eigenes Stylesheet, keine Fremdbibliothek, keine externen Ressourcen.
 * Schriften: Fraunces (Ueberschriften) + Inter (Text), beide SIL OFL 1.1, selbst gehostet (../Fonts/).
 * Farbwelt: Petrol aus dem Bestand + Logo-Tuerkis (#2c92a3, gemessen im Praxis-Logo; kein echtes Gruen im Logo).
 * Dunkelmodus: neutrales, weiches Blaugrau mit hellem Tuerkis-Akzent (#86cdd8).
 */

/* ---------- Schriften (lokal) ---------- */
@font-face {
    font-family: "Fraunces Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../Fonts/Fraunces-latin-opsz.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../Fonts/Inter-latin-wght.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
    color-scheme: only light;   /* Seite startet immer hell, unabhaengig vom System; verhindert auch Auto-Dark von Chrome/Samsung */
    --font-text: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fraunces Variable", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

    --bg: #ffffff;
    --bg-soft: #f2f7f8;
    --surface: #ffffff;
    --surface-2: #eaf3f5;
    --ink: #14252b;
    --ink-soft: #3f555c;
    --line: #d3e1e5;
    --brand: #165c74;
    --brand-deep: #0e3f50;
    --link: #165c74;
    --link-hover: #0f6f82;
    --accent: #2c92a3;
    --accent-strong: #1b7686;
    --accent-soft: #d6eef2;
    --on-accent: #ffffff;
    --focus: #1b7686;
    --selection-bg: #2c92a3;
    --selection-fg: #04171c;
    --shadow-s: 0 1px 2px rgba(14, 63, 80, .08), 0 4px 14px rgba(14, 63, 80, .06);
    --shadow-m: 0 2px 4px rgba(14, 63, 80, .06), 0 18px 44px -12px rgba(14, 63, 80, .22);

    --hero-a: #0b3544;
    --hero-b: #165c74;
    --hero-c: #2a7a8c;
    --hero-ink: #ffffff;
    --hero-line: rgba(255, 255, 255, .22);
    --hero-glow: rgba(120, 214, 228, .38);
    --hero-accent: #8ee0ec;
    --nav-bg: rgba(6, 28, 38, .42);
    --btn-hover: #2c92a3;
    --footer-bg: #0e3f50;
    --footer-ink: #eaf5f7;

    --radius: 8px;
    --radius-s: 5px;
    --ctl: 2rem;                 /* einheitliche Hoehe aller Kopfzeilen-Bedienelemente */
    --wrap: 1440px;
    --aside-w: 360px;
    --gutter: clamp(1rem, 3.4vw, 2.25rem);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #161c20;
    --bg-soft: #1b2227;
    --surface: #20292f;
    --surface-2: #27323a;
    --ink: #eef2f4;
    --ink-soft: #b7c5cc;
    --line: #36444c;
    --brand: #c4e6ed;
    --brand-deep: #c4e6ed;
    --link: #9fdae4;
    --link-hover: #d0f0f5;
    --accent: #86cdd8;
    --accent-strong: #86cdd8;
    --accent-soft: #2a3d44;
    --on-accent: #0f2228;
    --focus: #a9e0e9;
    --selection-bg: #86cdd8;
    --selection-fg: #0f2228;
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-m: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px -16px rgba(0, 0, 0, .55);
    --hero-a: #202c34;
    --hero-b: #2d4553;
    --hero-c: #3b5d6c;
    --hero-glow: rgba(170, 220, 230, .22);
    --hero-accent: #b4e6ee;
    --nav-bg: rgba(15, 24, 30, .42);
    --btn-hover: #b4e6ee;
    --footer-bg: #12171b;
    --footer-ink: #e6eef0;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-feature-settings: "cv11", "ss03";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
::selection { background: var(--selection-bg); color: var(--selection-fg); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s, background-color .2s; }
a:hover { color: var(--link-hover); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: .75rem; top: -4rem; z-index: 100;
    background: var(--accent-strong); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--radius-s);
    font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: .75rem; color: var(--on-accent); }
.nav-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* ---------- Kopfzeile: eine Reihe, alle Elemente gleich hoch (--ctl) ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .65rem; flex-wrap: wrap; }
.brand { display: block; line-height: 0; flex: 0 1 280px; min-width: 0; border-radius: var(--radius-s); }
.brand img { width: 100%; max-width: 280px; height: auto; aspect-ratio: 418 / 103; }
.brand__img--dark { display: none; }
:root[data-theme="dark"] .brand__img--light { display: none; }
:root[data-theme="dark"] .brand__img--dark { display: block; }
.site-header__tools { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.util { display: none; list-style: none; margin: 0; padding: 0; gap: .9rem; align-items: center; }
.util li { display: flex; align-items: center; }
.util__link { display: inline-flex; align-items: center; height: var(--ctl); color: var(--ink-soft); font-size: .8125rem; text-decoration: none; padding-inline: .15rem; border-bottom: 2px solid transparent; }
.util__link:hover { color: var(--ink); border-bottom-color: var(--accent); text-decoration: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; cursor: pointer;
    background: var(--accent-strong); color: var(--on-accent); border: 1px solid var(--accent-strong);
    height: var(--ctl); padding: 0 .9rem; border-radius: var(--radius-s); font-weight: 600; font-size: .8125rem; line-height: 1; letter-spacing: .01em;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #0b1d22; text-decoration: none; box-shadow: var(--shadow-s); }
.btn:focus-visible { outline-color: var(--focus); }
.btn--lg { height: 2.75rem; padding: 0 1.35rem; font-size: .9375rem; }
.btn svg { flex: none; }

.lang { display: flex; align-items: center; }
.lang__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 2px; height: var(--ctl); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-soft); }
.lang__list li { display: flex; }
.lang__link { display: grid; place-items: center; width: 2.1rem; height: calc(var(--ctl) - 6px); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .6875rem; letter-spacing: .04em; opacity: .78; transition: opacity .2s, background-color .2s, box-shadow .2s; }
.lang__link:hover { opacity: 1; background: var(--accent-soft); text-decoration: none; color: var(--ink); }
.lang__link.is-active { opacity: 1; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.flag { display: block; width: 1.25rem; height: auto; aspect-ratio: 3 / 2; border-radius: 2px; }

.theme-toggle {
    display: inline-grid; place-items: center; width: var(--ctl); height: var(--ctl); border-radius: var(--radius-s);
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); cursor: pointer; padding: 0;
    visibility: hidden;
    transition: border-color .2s, background-color .2s, color .2s;
}
.js .theme-toggle { visibility: visible; }
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle .icon { width: 1rem; height: 1rem; }
.theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

.menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none; height: var(--ctl);
    padding: 0 .85rem; border-radius: var(--radius-s); background: var(--brand-deep); color: #fff; font-weight: 600; font-size: .8125rem; line-height: 1;
    transition: background-color .2s;
}
:root[data-theme="dark"] .menu-btn { background: var(--accent-strong); color: var(--on-accent); }
.menu-btn:hover { background: var(--accent-strong); }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -5px; }
.menu-btn__bars::after { top: 5px; }
.nav-check:checked ~ .site-header .menu-btn__bars { background: transparent; }
.nav-check:checked ~ .site-header .menu-btn__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-check:checked ~ .site-header .menu-btn__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-check:focus-visible ~ .site-header .menu-btn { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- Hero (auf JEDER Seite identisch: Menue | Portrait | Claim) ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate; color: var(--hero-ink);
    background:
        radial-gradient(70% 90% at 50% 100%, var(--hero-glow), transparent 62%),
        linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 52%, var(--hero-c) 100%);
}
.hero::before { /* feine Textur aus dem Bestands-Header (header.gif), nur als Hauch */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; mix-blend-mode: soft-light; pointer-events: none;
    background: url("/fileadmin/res/img/header.gif") center bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 0; }
.hero__claim { padding: 1.75rem 0 .5rem; order: 1; }
.hero__portrait { order: 2; display: flex; justify-content: center; align-items: flex-end; min-height: 0; position: relative; }
.nav { display: none; order: 0; padding-top: 1.25rem; }
.nav-check:checked ~ .hero .nav { display: block; }

.portrait { width: auto; max-width: 100%; max-height: 320px; aspect-ratio: 717 / 684; filter: drop-shadow(0 18px 30px rgba(3, 20, 28, .3)); }
.hero__portrait::before { /* weiches Licht hinter dem Portraet */
    content: ""; position: absolute; left: 50%; bottom: -12%; width: min(560px, 120%); aspect-ratio: 1; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 66%); z-index: -1;
}

.claim { margin: 0; font-family: var(--font-display); font-weight: 350; font-variation-settings: "opsz" 120, "SOFT" 40; line-height: 1.1; font-size: clamp(2.1rem, 6vw, 3rem); letter-spacing: -.012em; }
.claim span { display: block; }
.claim__b { font-style: italic; color: var(--hero-accent); }
.claim-links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.claim-links a {
    display: inline-flex; align-items: center; height: 2.25rem; color: #fff; text-decoration: none; font-size: .875rem; font-weight: 500;
    padding: 0 .9rem; border: 1px solid var(--hero-line); border-radius: var(--radius-s); background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background-color .25s, border-color .25s, color .25s;
}
.claim-links a:hover { background: var(--accent); border-color: var(--hero-accent); color: #0b1d22; text-decoration: none; }
.claim-links a:focus-visible, .nav__link:focus-visible { outline-color: #fff; }

.nav__list { list-style: none; margin: 0 0 1rem; padding: .3rem; border: 1px solid var(--hero-line); border-radius: var(--radius); background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__item + .nav__item { border-top: 1px solid rgba(255, 255, 255, .12); }
.nav__link {
    position: relative; display: block; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .07em;
    font-size: .78rem; font-weight: 600; line-height: 1.35; padding: .78rem 1rem .78rem 2.2rem; border-radius: var(--radius-s);
    transition: background-color .25s, color .25s;
}
.nav__link::before { content: ""; position: absolute; left: 1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.28rem; border-top: 2px solid var(--hero-accent); border-right: 2px solid var(--hero-accent); transform: rotate(45deg); }
.nav__link:hover { background: rgba(255, 255, 255, .13); color: #fff; text-decoration: none; }
.nav__link.is-active { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 var(--hero-accent); }
.nav__link[aria-current="page"] { background: rgba(255, 255, 255, .2); }

/* ---------- Seitenraster: Hero-, Inhalts- und Footerraster nutzen dieselben Spalten ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem 4rem; position: relative; z-index: 2; align-items: stretch; }
.main-card, .aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-m); min-width: 0; }
.main-card { padding: clamp(1.25rem, 3.4vw, 2.75rem); outline: none; }
.aside { padding: clamp(1.25rem, 2.6vw, 1.75rem); background: linear-gradient(180deg, var(--surface-2), var(--surface) 34%); font-size: .9688rem; line-height: 1.6; }
.aside__title { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 72; font-size: 1.6rem; line-height: 1.15; color: var(--brand); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.aside__title::after { content: ""; display: block; width: 2.6rem; height: 3px; border-radius: 2px; background: var(--accent); margin-top: .6rem; margin-bottom: -.65rem; }

/* ---------- YouTube-Band (Startseite) – Link-Karte bzw. Zwei-Klick-Player ---------- */
.video-band { background: var(--bg-soft); border-top: 1px solid var(--line); }
.video-band__inner { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-m); line-height: 0; background: #0b1a20; }
.video-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 28, 38, 0) 40%, rgba(6, 28, 38, .55)); pointer-events: none; }
.video-card__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%; display: grid; place-items: center; color: #0b1d22; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s, background-color .3s; }
.video-card__play svg { margin-left: .2rem; }
.video-card:hover img { transform: scale(1.04); }
.video-card:hover .video-card__play { transform: scale(1.08); background: var(--hero-accent); }
.video-card:focus-visible { outline-offset: 4px; }
.video-band__text h2 { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 96; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; color: var(--brand); margin: 0 0 .9rem; letter-spacing: -.01em; }
.video-band__text p { margin: 0 0 1.1rem; max-width: 52ch; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 .7rem !important; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--accent); border-radius: 2px; }
.fineprint { font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
@media (min-width: 900px) { .video-band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); } }

/* ---------- Inhalte (Fluid Styled Content) ---------- */
.frame { margin: 0 0 1.5rem; }
.frame:last-child { margin-bottom: 0; }
.main-card h1, .main-card h2, .main-card h3 { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 96; color: var(--brand); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1rem; text-wrap: balance; }
.main-card h1 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); padding-bottom: 1rem; border-bottom: 1px solid var(--line); position: relative; }
.main-card h1::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3.4rem; height: 3px; border-radius: 3px; background: var(--accent); }
.main-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.main-card h3 { font-size: 1.25rem; }
.main-card p, .main-card ul, .main-card ol { margin: 0 0 1.15em; text-wrap: pretty; }
.main-card .ce-bodytext > p:first-child strong { font-family: var(--font-display); font-weight: 450; font-size: 1.3em; color: var(--brand); line-height: 1.25; }
.main-card strong, .main-card b { font-weight: 600; }
.ce-gallery figure { margin: 0; }
.ce-gallery img { width: auto; max-width: 100%; height: auto; border-radius: var(--radius-s); box-shadow: var(--shadow-s); background: var(--bg-soft); }
.ce-textpic::after, .ce-image::after { content: ""; display: table; clear: both; }
.main-card .ce-intext.ce-right .ce-gallery { float: right; width: fit-content; max-width: min(42%, 300px); margin: .35rem 0 1.25rem 2rem; shape-outside: margin-box; }
.main-card .ce-intext.ce-left .ce-gallery { float: left; width: fit-content; max-width: min(42%, 300px); margin: .35rem 2rem 1.25rem 0; }
.ce-gallery[data-ce-columns] .ce-outer, .ce-gallery .ce-inner, .ce-gallery .ce-row, .ce-gallery .ce-column { display: block; position: static; float: none; left: auto; width: auto; }
.ce-outer { right: auto; }
/* mehrere Bilder nebeneinander (Vorher/Nachher-Reihen) in der Groesse der Vorlage */
.main-card .ce-gallery .ce-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.main-card .ce-gallery .ce-column { flex: 0 0 auto; max-width: 100%; }
.main-card .ce-center .ce-gallery .ce-row { justify-content: center; }
.main-card .ce-gallery figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.ce-bodytext a[href$=".pdf"]::after { content: " ↗"; font-size: .85em; }

/* Seitenspalte "Informationen" */
.aside .frame { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.aside .frame:first-of-type { border-top: 0; padding-top: 0; }
.aside p { margin: 0 0 .7em; }
.aside p:last-child { margin-bottom: 0; }
.aside strong, .aside b { color: var(--brand); font-weight: 650; }
.aside .ce-textpic { display: flex; align-items: center; gap: .9rem; }
.aside .ce-textpic .ce-gallery { flex: 0 0 64px; width: 64px; margin: 0; float: none; }
.aside .ce-textpic .ce-gallery img { width: 100%; border-radius: var(--radius-s); box-shadow: var(--shadow-s); }
.aside .ce-textpic .ce-bodytext p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; margin: 0; }
.aside .ce-textpic .ce-bodytext strong { color: var(--brand); font-weight: 450; }
.aside a { overflow-wrap: anywhere; }

/* YouTube-Einblick in der Seitenspalte: lokales Vorschaubild, Link (kein Einbetten, keine Fremdanfrage) */
.side-video { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.side-video__card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; line-height: 0; background: #0b1a20; box-shadow: var(--shadow-s); }
.side-video__card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.side-video__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 26, 0) 35%, rgba(8, 20, 26, .72)); pointer-events: none; }
.side-video__play { position: absolute; z-index: 1; left: .8rem; bottom: .8rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b1d22; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transition: transform .25s, background-color .25s; }
.side-video__play svg { margin-left: .12rem; }
.side-video__label { position: absolute; z-index: 1; left: 3.9rem; right: .8rem; bottom: .8rem; min-height: 2.5rem; display: flex; flex-direction: column; justify-content: center; line-height: 1.25; color: #fff; }
.side-video__label b { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .85; }
.side-video__label span { font-family: var(--font-display); font-size: 1rem; font-weight: 420; }
.side-video__card:hover img { transform: scale(1.04); }
.side-video__card:hover .side-video__play { transform: scale(1.08); background: var(--hero-accent); }
.side-video__note { margin: .6rem 0 0 !important; font-size: .75rem; line-height: 1.45; color: var(--ink-soft); }

/* Video (Zwei-Klick, Datenschutz) */
.video-consent { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-s); }
.video-consent__frame { position: relative; aspect-ratio: 16 / 9; background: #0b1a20 center / cover no-repeat; }
.video-consent__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent__panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; padding: 1rem; color: #fff; background: linear-gradient(180deg, rgba(6, 28, 38, .25), rgba(6, 28, 38, .9)); font-size: .8125rem; line-height: 1.5; }
.video-consent__panel p { margin: 0; }
.video-consent__panel a { color: #fff; }

/* ---------- Fusszeile ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; }
.footer-nav ul { display: flex; gap: .25rem 0; list-style: none; margin: 0; padding: 0; }
.footer-nav li + li::before { content: "|"; margin: 0 .9rem; opacity: .5; }
.site-footer a { color: var(--footer-ink); text-underline-offset: .25em; }
.site-footer a:hover { color: #fff; text-decoration-color: var(--hero-accent); text-decoration-thickness: 2px; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-credit { margin: 0; font-size: .875rem; opacity: .9; }
.footer-nav a { font-weight: 600; }

/* ---------- Dunkelmodus: Bilder weicher ---------- */
:root[data-theme="dark"] .ce-gallery img { filter: brightness(.92); }

/* ---------- Ab Tablet ---------- */
@media (min-width: 720px) {
    .util { display: flex; }
    .site-header__bar { flex-wrap: nowrap; padding-block: .8rem; }
}
@media (max-width: 719px) {
    .main-card .ce-intext.ce-right .ce-gallery, .main-card .ce-intext.ce-left .ce-gallery { float: none; width: 100%; max-width: 340px; margin: 0 0 1.25rem; }
    .brand { flex: 0 0 100%; max-width: 250px; }
    .site-header__tools { flex: 1 1 100%; justify-content: space-between; }
}
@media (min-width: 1000px) {
    .menu-btn { display: none; }
    .nav { display: block !important; padding: 0; align-self: center; }
    .hero__grid { grid-template-columns: 300px minmax(0, 1fr) var(--aside-w); align-items: center; column-gap: 1.5rem; min-height: 540px; }
    .nav__list { margin: 2.2rem 0; }
    .hero__portrait { order: 1; align-self: end; }
    .portrait { max-height: 490px; }
    .hero__claim { order: 2; padding: 0; }
    .claim { font-size: clamp(2.3rem, 3.1vw, 3rem); }
    .claim-links { flex-direction: column; align-items: flex-start; }
    .page-grid { grid-template-columns: minmax(0, 1fr) var(--aside-w); gap: 1.5rem; padding-block: 0 5rem; margin-top: -3.2rem; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
    :root { --aside-w: 300px; }
    .hero__grid { grid-template-columns: 250px minmax(0, 1fr) var(--aside-w); }
}

/* ---------- Bewegung: nur Hover/Fokus-Uebergaenge, kein Aufbau beim Laden (kein Layout-Sprung) ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .nav__link.is-active, .lang__link.is-active { outline: 2px solid CanvasText; }
}
@media print {
    .site-header__tools, .nav, .theme-toggle, .menu-btn, .hero, .site-footer, .side-video { display: none !important; }
    body { color: #000; background: #fff; }
    .main-card, .aside { box-shadow: none; border: 0; }
}

/* ---------- Kontaktformular (TYPO3 Form Framework) ---------- */
.main-card form { max-width: 40rem; margin-top: 1.25rem; }
.main-card form h2 { font-size: 1.25rem; margin-bottom: .9rem; }
.form-element { margin: 0 0 1.1rem; }
.form-label, .form-element-radio legend { display: block; font-weight: 600; font-size: .9375rem; margin: 0 0 .35rem; color: var(--ink); }
.form-element-radio { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.form-control {
    display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem .75rem; line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
textarea.form-control { min-height: 9rem; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.form-check { margin: 0 0 .35rem; }
.form-check-wrapping-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: .9375rem; line-height: 1.45; }
.form-check-input { flex: none; width: 1.05rem; height: 1.05rem; margin: .18rem 0 0; accent-color: var(--accent-strong); }
.form-element-check .form-check-label { font-size: .875rem; color: var(--ink-soft); }
.form-element-statictext .form-note { background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-s); padding: .8rem 1rem; font-size: .875rem; }
.form-element-statictext .form-note p { margin: 0; }
.invalid-feedback { display: block; margin-top: .3rem; font-size: .8125rem; font-weight: 600; color: #b3261e; }
:root[data-theme="dark"] .invalid-feedback { color: #ffb4ab; }
.has-error .form-control, .form-control.error, .form-control[aria-invalid="true"] { border-color: #b3261e; }
.bd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.main-card form nav { margin-top: 1.4rem; }
.main-card form button[type="submit"], .main-card form .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-weight: 600; font-size: .9375rem;
    background: var(--accent-strong); color: var(--on-accent); border: 1px solid var(--accent-strong); height: 2.75rem; padding: 0 1.35rem; border-radius: var(--radius-s);
}
.main-card form button[type="submit"]:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #0b1d22; }

/* Entwurfs-Platzhalter in Rechtstexten ([BITTE ERGÄNZEN] / [BITTE PRÜFEN]) deutlich markieren */
.main-card .placeholder { background: #fff1b8; color: #4a3600; border-radius: 3px; padding: 0 .25em; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ==========================================================================
   Runde 5 – Gliederung und Textsatz
   Abschnitte werden ueber das Feld "Layout" eines Inhaltselements gestaltet:
   1 = Karte (volle Breite), 2 = Akkordeon, 3 = Kachel (halbe Breite), 4 = Hinweis-Box, 5 = Kachel (Drittel)
   ========================================================================== */

/* ---------- Textsatz: immer linksbuendig, Silbentrennung nach <html lang>, keine haengenden Woerter ---------- */
.main-card {
    text-align: left; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 3;
    overflow-wrap: break-word; container: main / inline-size;
}
.main-card h1, .main-card h2, .main-card h3, .main-card summary, .main-card table, .main-card a { hyphens: manual; -webkit-hyphens: manual; }
.main-card p, .main-card li { text-align: left; }

/* ---------- Raster im Inhaltsbereich: 6 Spalten, Abschnitte fuellen die ganze Sektionsbreite ---------- */
.main-card { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 1.25rem; align-content: start; }
.main-card > * { grid-column: 1 / -1; min-width: 0; }
@container main (min-width: 600px) {
    .main-card > .frame-layout-3, .main-card > .frame-layout-5 { grid-column: span 3; }
}
@container main (min-width: 800px) {
    .main-card > .frame-layout-5 { grid-column: span 2; }
}

/* Ueberschriften-Regel "erster fetter Absatz = Zwischenueberschrift" nur noch dort, wo das Element keine eigene Ueberschrift hat */
.main-card .frame:has(> header) .ce-bodytext > p:first-child strong,
.main-card .frame:has(.ce-bodytext > header) .ce-bodytext > p:first-child strong,
.main-card .frame-layout-4 .ce-bodytext > p:first-child strong { font-family: inherit; font-size: inherit; font-weight: 600; color: inherit; line-height: inherit; }

/* ---------- Karten und Kacheln (1, 3, 5) ---------- */
.main-card > .frame-layout-1, .main-card > .frame-layout-3, .main-card > .frame-layout-5 {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1rem, 2.4vw, 1.6rem); box-shadow: inset 0 3px 0 var(--accent);
}
.main-card > .frame-layout-1 h2, .main-card > .frame-layout-3 h2, .main-card > .frame-layout-5 h2 {
    font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 0 0 .85rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line);
}
.main-card > .frame-layout-5 h2 { font-size: 1.15rem; }
.main-card > .frame-layout-5 { font-size: .97rem; line-height: 1.6; }
.main-card .frame-layout-1 .ce-bodytext > :last-child, .main-card .frame-layout-3 .ce-bodytext > :last-child,
.main-card .frame-layout-5 .ce-bodytext > :last-child, .main-card .frame-layout-4 .ce-bodytext > :last-child { margin-bottom: 0; }
@container main (min-width: 760px) {
    .main-card > .frame-layout-1 .ce-bodytext > ul { columns: 2; column-gap: 2.5rem; }
    .main-card > .frame-layout-1 .ce-bodytext > ul > li { break-inside: avoid; }
}

/* ---------- Hinweis-Box (4) ---------- */
.main-card > .frame-layout-4 {
    background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-s);
    padding: 1rem clamp(1rem, 2.4vw, 1.5rem);
}
.main-card > .frame-layout-4 h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: .5rem; }

/* ---------- Akkordeon (2): <details>/<summary> aus dem Fluid-Layout (Resources/Private/FluidStyledContent) ---------- */
.main-card > .frame-layout-2 { margin: 0; border-top: 1px solid var(--line); }
.main-card > .frame-layout-2:not(:has(+ .frame-layout-2)) { border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.main-card > .frame-layout-2:last-child { margin-bottom: 0; }
.acc__summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1rem .35rem; border-radius: var(--radius-s); transition: background-color .2s; }
.acc__summary::-webkit-details-marker { display: none; }
.acc__summary:hover { background: var(--bg-soft); }
.acc__summary header { flex: 1 1 auto; min-width: 0; }
.main-card .acc__summary h2 { font-size: clamp(1.08rem, 1.8vw, 1.28rem); margin: 0; line-height: 1.3; }
.acc__summary:hover h2 { color: var(--link-hover); }
.acc__summary::after {
    content: ""; flex: none; width: .6rem; height: .6rem; margin: -.3rem .45rem 0 0;
    border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(45deg); transition: transform .2s;
}
.acc[open] > .acc__summary::after { transform: rotate(-135deg); margin-top: .3rem; }
.acc__body { padding: .25rem .35rem 1.5rem; }
.acc__body .ce-bodytext > :last-child { margin-bottom: 0; }

/* ---------- Listen: ruhige Aufzaehlungspunkte statt "- " ---------- */
.main-card .ce-bodytext ul { list-style: none; padding-left: 0; }
.main-card .ce-bodytext ul > li { position: relative; padding-left: 1.35rem; margin: 0 0 .5em; }
.main-card .ce-bodytext ul > li::before { content: ""; position: absolute; left: .15rem; top: .68em; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); }
.main-card .ce-bodytext ol { padding-left: 1.5rem; }
.main-card .ce-bodytext ol > li { margin: 0 0 .4em; padding-left: .2rem; }
.main-card .ce-bodytext ol > li::marker { color: var(--accent-strong); font-weight: 700; }
.main-card .ce-bodytext li > br:last-child { display: none; }

/* ---------- PDF-Downloads: kleines PDF-Kennzeichen, in Listen als elegante Download-Pille ---------- */
.main-card .ce-bodytext a[href$=".pdf"]::after {
    content: "PDF"; display: inline-block; margin-left: .35em; padding: .05em .35em; vertical-align: .12em;
    font-size: .62em; font-weight: 700; letter-spacing: .06em; line-height: 1.3; text-decoration: none;
    color: var(--on-accent); background: var(--accent-strong); border-radius: 3px;
}
.main-card .ce-bodytext li a[href$=".pdf"] {
    display: inline-flex; align-items: center; gap: .1rem; padding: .02rem .5rem .02rem .55rem; margin: .1rem 0;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none;
    font-size: .875em; font-weight: 600; white-space: nowrap; line-height: 1.55;
}
.main-card .ce-bodytext li a[href$=".pdf"]:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Bild + Text ---------- */
/* "Im Text" (umfliessend): Bild sauber eingerueckt, Text laeuft mit Abstand herum und danach ueber die volle Breite */
.main-card .ce-intext.ce-right:not(.ce-nowrap) .ce-gallery { float: right; max-width: min(45%, 380px); margin: .3rem 0 1.1rem 2.25rem; }
.main-card .ce-intext.ce-left:not(.ce-nowrap) .ce-gallery { float: left; max-width: min(45%, 380px); margin: .3rem 2.25rem 1.1rem 0; }
.main-card .ce-intext:not(.ce-nowrap) .ce-gallery .ce-row { flex-wrap: nowrap; gap: .75rem; }
.main-card .ce-intext:not(.ce-nowrap) .ce-gallery .ce-column { flex: 1 1 0; min-width: 0; }
/* "Neben dem Text" (nicht umfliessend): zweispaltig, Text und Bild buendig oben, nichts haengt unter dem Bild */
.main-card .ce-textpic.ce-intext.ce-nowrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: start; }
.main-card .ce-intext.ce-nowrap .ce-gallery { float: none; width: auto; max-width: 100%; margin: 0; }
.main-card .ce-intext.ce-nowrap .ce-bodytext { overflow: visible; min-width: 0; }
.main-card .ce-intext.ce-nowrap .ce-gallery .ce-row { flex-wrap: nowrap; gap: .75rem; }
.main-card .ce-intext.ce-nowrap .ce-gallery .ce-column { flex: 1 1 0; min-width: 0; }
@container main (min-width: 640px) {
    .main-card .ce-textpic.ce-intext.ce-nowrap.ce-right { grid-template-columns: minmax(0, 1fr) fit-content(42%); }
    .main-card .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery { order: 2; position: sticky; top: 1.25rem; }
    .main-card .ce-textpic.ce-intext.ce-nowrap.ce-left { grid-template-columns: fit-content(42%) minmax(0, 1fr); }
}
.main-card .ce-intext.ce-nowrap .ce-bodytext > header h2 { margin-top: 0; }
/* Bildreihen unter dem Text (Vorher/Nachher): mittig, gleiche Abstaende */
.main-card .ce-below .ce-gallery { margin-top: 1.25rem; }
@media (max-width: 719px) {
    .main-card .ce-intext.ce-right:not(.ce-nowrap) .ce-gallery, .main-card .ce-intext.ce-left:not(.ce-nowrap) .ce-gallery { float: none; width: 100%; max-width: 420px; margin: 0 0 1.25rem; }
}

/* ---------- Tabellen (z. B. Werdegang) als ruhige Zeitleiste ---------- */
.main-card .ce-table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.55; }
.main-card .ce-table td, .main-card .ce-table th { padding: .6rem .9rem .6rem 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.main-card .ce-table tr > td:first-child { width: 9.5rem; white-space: nowrap; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.main-card .ce-table tr:last-child > td { border-bottom: 0; }
@media (max-width: 560px) {
    .main-card .ce-table, .main-card .ce-table tbody, .main-card .ce-table tr, .main-card .ce-table td { display: block; width: auto; }
    .main-card .ce-table tr { padding: .55rem 0; border-bottom: 1px solid var(--line); }
    .main-card .ce-table td { border: 0; padding: 0; }
}

@media print {
    .main-card { display: block; }
    .acc__summary::after { display: none; }
}

/* Runde 5 Fix: Clearfix-Pseudoelement darf im zweispaltigen Bild-Text-Raster keine eigene Rasterzelle belegen */
.main-card .ce-textpic.ce-intext.ce-nowrap::after { content: none; display: none; }

/* ==========================================================================
   Runde 6 – Blocksatz, umfliessende Bilder, statisches Bild, groesseres Logo, Footer zentriert
   ========================================================================== */

/* ---------- 1. Fliesstext im Blocksatz (wie Word), Silbentrennung nach <html lang> (de-DE / en) ---------- */
.main-card p {
    text-align: justify; text-align-last: left;
    hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 2;
}
/* nicht im Blocksatz: Ueberschriften, Listen, Akkordeon-/Kacheltitel, Buttons, Tabellen, Bildunterschriften */
.main-card h1, .main-card h2, .main-card h3, .main-card h4, .main-card header,
.main-card li, .main-card li p, .main-card summary, .main-card .btn,
.main-card table, .main-card td, .main-card th, .main-card figcaption { text-align: left; text-align-last: auto; }

/* ---------- 2. Bild im Text: Text umfliesst das Bild und laeuft danach in voller Breite weiter ---------- */
/* gilt auch fuer "Neben dem Text" – die Spaltenloesung aus Runde 5 ist damit ersetzt */
.main-card .ce-textpic.ce-intext.ce-nowrap { display: block; }
.main-card .ce-textpic.ce-intext::after, .main-card .ce-textpic.ce-intext.ce-nowrap::after { content: ""; display: table; clear: both; }
.main-card .ce-textpic.ce-intext.ce-right .ce-gallery,
.main-card .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery {
    float: right; width: fit-content; max-width: min(45%, 380px); margin: .35rem 0 1rem 2rem;
    shape-outside: margin-box; position: static; top: auto; order: 0;
}
.main-card .ce-textpic.ce-intext.ce-left .ce-gallery,
.main-card .ce-textpic.ce-intext.ce-nowrap.ce-left .ce-gallery {
    float: left; width: fit-content; max-width: min(45%, 380px); margin: .35rem 2rem 1rem 0;
    shape-outside: margin-box; position: static; top: auto; order: 0;
}
.main-card .ce-textpic.ce-intext .ce-bodytext { overflow: visible; }
/* Ueberschrift im Text-Block neben dem Bild beginnt buendig mit der Bildoberkante */
.main-card .ce-textpic.ce-intext .ce-bodytext > header:first-child h2 { margin-top: 0; }
/* 3. Startseite: Bild bleibt statisch an seinem Platz (kein Mitwandern beim Scrollen) – siehe position: static oben */

/* Mobil: Bild oben ueber volle Breite, Text darunter */
@media (max-width: 719px) {
    .main-card .ce-textpic.ce-intext.ce-right .ce-gallery, .main-card .ce-textpic.ce-intext.ce-left .ce-gallery,
    .main-card .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery, .main-card .ce-textpic.ce-intext.ce-nowrap.ce-left .ce-gallery {
        float: none; width: 100%; max-width: 100%; margin: 0 0 1.25rem;
    }
    .main-card .ce-textpic.ce-intext .ce-gallery .ce-column { flex: 1 1 0; }
    .main-card .ce-textpic.ce-intext .ce-gallery img { width: 100%; }
}

/* ---------- 4. Logo im Header deutlich groesser ---------- */
.brand { flex: 0 1 400px; }
.brand img { max-width: 400px; }
.site-header__bar { padding-block: .85rem; }
@media (min-width: 720px) { .site-header__bar { padding-block: 1rem; } }
@media (max-width: 719px) {
    .brand { flex: 0 0 100%; max-width: min(340px, 88vw); }
    .brand img { max-width: 100%; }
}

/* ---------- 5. Footer: Impressum | Datenschutz | Kontakt zentriert ---------- */
.site-footer__bar { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .6rem; }
.footer-nav ul { justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   2026-10-26 – Doctolib-Buchungsbutton (Inhaltselement-Layout 6, Terminbuchung)
   Farben aus dem Doctolib Brand Book (Mai 2025, S. 23): Flaeche Oxylove #107ACA mit weissem Wortmarken-Logo
   (Brand Book S. 12: weisses Logo auf Oxylove/Nightshift), innerer Button weiss mit Text Nightshift #00264C (15,2:1).
   Logo lokal (Resources/Public/Images/doctolib-logo-white.svg), keine Fremdanfrage.
   Hinweistext: nie breiter als die Doctolib-Flaeche (width:0 + min-width:100% im Flex-Container).
   ========================================================================== */
.bd-booking { display: inline-flex; flex-direction: column; align-items: stretch; max-width: 100%; margin: .35rem 0 0; }
.main-card .bd-booking__btn {
    display: flex; flex-direction: column; align-items: center; gap: .85rem;
    min-width: min(100%, 21rem); padding: 1.2rem 1.5rem 1.3rem;
    background: #107aca; color: #ffffff; border: 1px solid #107aca; border-radius: var(--radius);
    text-decoration: none; box-shadow: var(--shadow-s);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bd-booking__brand { display: block; padding: .25rem .4rem; line-height: 0; }
.main-card .bd-booking__logo { display: block; width: auto; height: 26px; max-width: none; }
.bd-booking__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
    padding: .72rem 1.25rem; background: #ffffff; color: #00264c; border-radius: 4px;
    font-family: var(--font-text); font-weight: 700; font-size: 1.04rem; line-height: 1.25; text-align: center;
}
.bd-booking__icon { flex: none; }
.main-card .bd-booking__btn:hover { color: #ffffff; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.main-card .bd-booking__btn:hover .bd-booking__cta { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.main-card .bd-booking__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.main-card .bd-booking__btn:focus-visible .bd-booking__cta { outline: 2px solid #00264c; outline-offset: -5px; }
.main-card .bd-booking__note {
    width: 0; min-width: 100%; margin: .65rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft);
    text-align: left; text-align-last: auto; hyphens: manual; -webkit-hyphens: manual;
    text-wrap: balance; text-wrap: pretty;
}
@media (max-width: 559px) {
    .bd-booking { display: flex; width: 100%; }
    .main-card .bd-booking__btn { min-width: 0; padding-inline: 1rem; }
}
@media (forced-colors: active) { .main-card .bd-booking__btn { border: 2px solid LinkText; } .bd-booking__cta { border: 1px solid LinkText; } }
@media print { .main-card .bd-booking__btn { box-shadow: none; } }

/* ==========================================================================
   Runde 7 – Responsive Typografie fuer Handy und Tablet (2026-10-26)
   Nur < 1000px wirksam; Desktop (>= 1000px) bleibt unveraendert.
   Blocksatz bleibt wie am Desktop, Silbentrennung nach <html lang> (de-DE / en).
   ========================================================================== */
@media (max-width: 719px) {
    body { font-size: 1rem; line-height: 1.55; }
    .claim { font-size: clamp(1.75rem, 1rem + 3.6vw, 2.25rem); }
    .main-card h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2rem); line-height: 1.12; }
    /* Startseite (DE): lange Schlagwort-H1 kompakter, damit sie bei 390px hoechstens 3 Zeilen hat */
    .main-card #c59 h1 { font-size: clamp(1.2rem, .95rem + 1.1vw, 1.5rem); line-height: 1.2; }
    .main-card h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem); }
    .main-card h3 { font-size: 1.125rem; }
    .main-card h4 { font-size: 1.0625rem; }
    .main-card .ce-bodytext > p:first-child strong { font-size: 1.2em; }
    .main-card > .frame-layout-5 { font-size: .9375rem; line-height: 1.5; }
    .main-card .ce-table { font-size: .9375rem; line-height: 1.5; }
    .video-band__text h2 { font-size: 1.5rem; }
    .aside { font-size: .9375rem; line-height: 1.5; }
    .aside__title { font-size: 1.375rem; }
    .aside .ce-textpic .ce-bodytext p { font-size: 1.05rem; }
    .side-video__note { font-size: .8125rem; }
    /* Tap-Flaechen unveraendert lassen: Skip-Link und Footer behalten Desktop-Schriftmass */
    .skip-link, .site-footer { font-size: 1.0625rem; line-height: 1.7; }
    /* Blocksatz: engere Trennregeln gegen Wortluecken auf schmalen Spalten */
    .main-card p {
        hyphens: auto; -webkit-hyphens: auto;
        hyphenate-limit-chars: 5 2 2; -webkit-hyphenate-limit-before: 2; -webkit-hyphenate-limit-after: 2;
        word-spacing: -.02em; text-wrap: pretty;
    }
}
@media (min-width: 720px) and (max-width: 999px) {
    body { line-height: 1.65; }
    .claim { font-size: clamp(2.25rem, 1rem + 3.2vw, 2.6rem); }
    .main-card p { hyphenate-limit-chars: 6 2 2; -webkit-hyphenate-limit-before: 2; -webkit-hyphenate-limit-after: 2; text-wrap: pretty; }
}

/* ==========================================================================
   Runde 8 (2026-10-26) – Hellmodus als Standard + Info-Button mobil
   - Dunkelmodus nur noch nach Klick auf den Schalter (data-theme="dark"), nie automatisch per System.
   - Unter 1000px: Seitenleiste "Informationen" nicht inline, sondern als Panel hinter dem Info-Button
     in der Kopfzeile (JavaScript/infopanel.js). Ohne JavaScript bleibt die Seitenleiste inline sichtbar.
   ========================================================================== */
.info-btn, .info-panel__close, .info-backdrop { display: none; }
@media (max-width: 999px) {
    /* Tippflaeche 44 x 44 px; sichtbare Flaeche wie die anderen Kopfzeilen-Elemente (--ctl), Zeilenhoehe bleibt gleich */
    .js .info-btn {
        display: inline-grid; place-items: center; position: relative; flex: none;
        width: 44px; height: 44px; margin: calc((var(--ctl) - 44px) / 2) calc((var(--ctl) - 44px) / 2) calc((var(--ctl) - 44px) / 2) auto;
        padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius-s);
    }
    .js .info-btn::before {
        content: ""; position: absolute; inset: calc((44px - var(--ctl)) / 2); border-radius: var(--radius-s);
        border: 1px solid var(--line); background: var(--bg-soft); transition: border-color .2s, background-color .2s;
    }
    .js .info-btn:hover::before, .js .info-btn[aria-expanded="true"]::before { border-color: var(--accent); background: var(--accent-soft); }
    .info-btn svg { position: relative; }
    .info-btn svg { display: block; width: 1.1rem; height: 1.1rem; }

    .js .aside { display: none; }
    html.info-open { overflow: hidden; }
    html.info-open .page-grid { z-index: 60; }
    .js .info-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(6, 28, 38, .55); }
    .js .aside.is-open {
        display: block; position: fixed; z-index: 2; top: .75rem; left: .75rem; right: .75rem;
        max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
        max-width: 34rem; margin-inline: auto; padding-top: .75rem;
    }
    .js .aside.is-open .info-panel__close {
        display: grid; place-items: center; position: sticky; top: 0; float: right; z-index: 3;
        width: 44px; height: 44px; margin: 0 -.5rem .25rem .5rem; padding: 0; cursor: pointer;
        border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink);
    }
    .info-panel__close:hover { border-color: var(--accent); background: var(--accent-soft); }
    .info-panel__close svg { width: 1.1rem; height: 1.1rem; }
    .js .aside.is-open .aside__title { margin-top: .4rem; }
}
@media print { .info-btn, .info-backdrop, .info-panel__close { display: none !important; } }

/* ==========================================================================
   Runde 9 (2026-10-26) – Startseite mobil (< 1000px): Claim zentriert in 2 Zeilen,
   Schlagwort-Links als Textlinks statt Buttons, YouTube-Ueberschrift vor dem Video.
   Desktop (>= 1000px) bleibt unveraendert.
   ========================================================================== */
@media (max-width: 999px) {
    /* Claim: "Moderne Orthopaedie" / "& Diagnostik" – genau ein Umbruch, zentriert, keine Silbentrennung */
    .hero__claim { text-align: center; }
    .claim { hyphens: manual; -webkit-hyphens: manual; }
    .claim span.claim__a, .claim span.claim__b { display: inline; white-space: nowrap; }
    .claim span.claim__c { display: block; white-space: nowrap; }

    /* Schlagwort-Links: schlichte Textlinks mit Pfeil, Tippflaeche >= 44px hoch */
    .claim-links { justify-content: center; gap: 0 1.4rem; margin-top: .9rem; }
    .claim-links a {
        min-height: 44px; height: auto; padding: 0; border: 0; border-radius: 0; background: none;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        color: var(--hero-accent); font-size: 1rem; font-weight: 600;
        text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
        text-decoration-color: rgba(255, 255, 255, .45);
    }
    .claim-links a::after { content: "\2192"; margin-left: .35em; text-decoration: none; display: inline-block; }
    .claim-links a:hover { background: none; color: #fff; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
}
/* YouTube-Band: einspaltig (unter 900px) Kopfzeile und Text vor dem Video */
@media (max-width: 899px) {
    .video-band__inner { row-gap: 0; }
    .video-band__text { display: contents; }
    .video-band__text > * { order: 1; }
    .video-band__text > .eyebrow, .video-band__text > h2, .video-band__text > h2 + p { order: -1; }
    .video-band__media { order: 0; margin: 0 0 1.5rem; }
}


/* ==========================================================================
   Runde 13 (2026-10-26) – YouTube-Band wieder im Design vor Runde 10:
   Eyebrow, Ueberschrift, Teaser, genau EIN Kanal-Button; Video mit "Video laden".
   Datenschutz-Hinweise im Band entfallen (siehe Datenschutzerklaerung, Abschnitt 8).
   Kanal-Link im Video-Platzhalter bleibt ausgeblendet (keine Doppelung).
   ========================================================================== */
.video-band .video-consent__panel [data-video-fallback] { display: none; }
@media (max-width: 899px) { .video-band .video-consent__panel [data-video-load] { min-height: 44px; } }


/* ==========================================================================
   Runde 14 (2026-10-26)
   - YouTube-Band: kein sichtbarer "Video laden"-Button; das ganze Vorschaubild ist der
     Ausloeser (Zwei-Klick bleibt, button-Element mit aria-label, Play-Symbol, Fokusrahmen).
   - Desktop (>= 900px): Eyebrow + Ueberschrift ueber dem Video, Teaser + Kanal-Button daneben.
   - Hero-Claim Desktop (>= 1000px): genau ein Umbruch, Oberkante buendig mit dem Menue.
   - Hero-Links (alle Breiten): reine Textlinks, unterstrichen, ohne Pfeil und ohne Button-Optik.
   ========================================================================== */
.video-band .video-consent__panel [data-video-load] {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; color: transparent; font-size: 0; cursor: pointer;
}
.video-band .video-consent__panel [data-video-load]::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%;
    background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s, background-color .3s;
}
.video-band .video-consent__panel [data-video-load]::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1.3rem; height: 1.5rem; margin: -.75rem 0 0 -.45rem;
    background: #0b1d22; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-band .video-consent__panel [data-video-load]:hover { background: transparent; box-shadow: none; }
.video-band .video-consent__panel [data-video-load]:hover::before { transform: scale(1.08); background: var(--hero-accent); }
.video-band .video-consent__panel [data-video-load]:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
@media (min-width: 900px) {
    .video-band__inner { grid-template-rows: auto auto 1fr 1fr; row-gap: 0; }
    .video-band__text { display: contents; }
    .video-band__text > .eyebrow { grid-column: 1 / -1; grid-row: 1; }
    .video-band__text > h2 { grid-column: 1 / -1; grid-row: 2; margin-bottom: 1.5rem; }
    .video-band__media { grid-column: 1; grid-row: 3 / span 2; }
    .video-band .video-consent { margin-top: 0; }
    .video-band__text > h2 + p { grid-column: 2; grid-row: 3; align-self: end; }
    .video-band__text > p:last-child { grid-column: 2; grid-row: 4; align-self: start; }
}
.claim-links a {
    min-height: 44px; height: auto; padding: 0; border: 0; border-radius: 0; background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--hero-accent); font-size: 1rem; font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
    text-decoration-color: rgba(255, 255, 255, .45);
}
.claim-links a::after { content: none; }
.claim-links a:hover { background: none; border-color: transparent; color: #fff; text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
@media (min-width: 1000px) {
    .claim { font-size: clamp(2.3rem, 3.1vw, 2.9rem); hyphens: manual; -webkit-hyphens: manual; }
    .claim span.claim__a, .claim span.claim__b { display: inline; white-space: nowrap; }
    .claim span.claim__c { display: block; white-space: nowrap; }
    /* Menue ist im 540px-Hero senkrecht zentriert (Hoehe .nav__list 395.6px) -> gleiche Oberkante */
    .hero__claim { align-self: start; margin-top: calc((540px - 395.6px) / 2); }
    .claim-links { gap: 0; margin-top: 1.1rem; }
}

/* Runde 15 (2026-10-26): Video ohne Abspiel-Option. Vorschaubild (lokal) ist ein Link zum YouTube-Kanal, kein Laden von YouTube auf der Seite. */
.video-band a.video-consent { display: block; color: inherit; text-decoration: none; }
.video-band a.video-consent .video-consent__frame { display: block; transition: filter .2s ease; }
.video-band a.video-consent:hover .video-consent__frame { filter: brightness(1.06); }
.video-band a.video-consent:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Runde 16 (2026-10-26): laengerer Teaser im YouTube-Band – Blocksatz/Silbentrennung wie Fliesstext; Desktop: Teaser + Button vertikal mittig neben dem Bild */
.video-band__text > h2 + p { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 6 3 2; }
@media (max-width: 559px) { .video-band__text > h2 + p { hyphenate-limit-chars: 5 2 2; -webkit-hyphenate-limit-before: 2; -webkit-hyphenate-limit-after: 2; word-spacing: -.02em; text-wrap: pretty; } }
@media (min-width: 900px) {
    .video-band__inner { grid-template-rows: auto auto 1fr auto auto 1fr; }
    .video-band__media { grid-row: 3 / span 4; align-self: center; }
    .video-band__text > h2 + p { grid-row: 4; align-self: auto; }
    .video-band__text > p:last-child { grid-row: 5; align-self: auto; margin-bottom: 0; }
}

/* Runde 17: Desktop-Claim zentriert (wie alte Website); Seitenleiste YouTube-Titel statt Hinweis */
@media (min-width: 1000px) {
    .hero__claim { text-align: center; }
    .claim-links { align-items: center; }
}
.side-video__title { margin: 0 0 .6rem; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: 650; color: var(--brand); }

/* ==========================================================================
   Runde 18 (2026-11-14) – Freigabe Samuel 14.11.
   - Dunkelmodus entfernt: kein Schalter, theme.js wird nicht mehr eingebunden (Seite immer hell).
     Die alten [data-theme="dark"]-Regeln oben greifen ohne theme.js nicht mehr (data-theme wird nie gesetzt).
   - Neues Logo "BewegungsDoktor.de" (PNG, DE/EN), groesser.
   - Slogan in Marcellus SC (Kapitaelchen, SIL OFL 1.1, lokal ../Fonts/), mittlere Zeile hell-tuerkis, keine Kursive.
   - Seitenleiste YouTube: dunkler Kasten mit offiziellem YouTube-Logo + weissem Button (Stil wie Doctolib).
   ========================================================================== */
@font-face {
    font-family: "Marcellus SC";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../Fonts/MarcellusSC-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.theme-toggle { display: none !important; }

/* Logo */
.brand { flex: 0 1 480px; }
.brand img { max-width: 480px; aspect-ratio: 1353 / 278; }
@media (max-width: 719px) {
    .brand { flex: 0 0 100%; max-width: min(370px, 92vw); }
    .brand img { max-width: 100%; }
}

/* Slogan */
.claim { font-family: "Marcellus SC", "Marcellus", Georgia, "Times New Roman", serif; font-weight: 400; font-style: normal; font-variation-settings: normal; letter-spacing: .01em; line-height: 1.12; }
.claim__b { font-style: normal; color: #8ee0ec; }

/* Seitenleiste YouTube */
.side-video__card::after { content: none; }
.side-video__card { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; }
.side-video__yt {
    display: flex; flex-direction: column; align-items: center; gap: .85rem;
    padding: 1.1rem 1.1rem 1.2rem; background: #212121; color: #fff;
    border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; box-shadow: var(--shadow-s);
    transition: transform .15s ease, box-shadow .15s ease;
}
.side-video__yt-logo { display: block; width: auto; height: 26px; max-width: none; }
.side-video__yt-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
    padding: .7rem 1rem; background: #fff; color: #0f0f0f; border-radius: 4px;
    font-family: var(--font-text); font-weight: 700; font-size: 1rem; line-height: 1.25; text-align: center;
}
.side-video__yt-cta svg { flex: none; }
.side-video__yt:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.side-video__yt:hover .side-video__yt-cta { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.side-video__yt:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (forced-colors: active) { .side-video__yt { border: 2px solid LinkText; } .side-video__yt-cta { border: 1px solid LinkText; } }
@media print { .side-video__yt { display: none; } }

/* ==========================================================================
   Runde 19 (2026-11-16) – Freigabe Samuel 16.11. 22:25 MEZ
   - YouTube-Kasten in der Seitenleiste: hell, passend zur Seite, kein #212121
   - Nur noch ein Link; das YouTube-Logo sitzt im Button
   - Das Foto bleibt sichtbar, ist aber kein Link mehr
   - Startseiten-Band: ebenfalls nur noch der Button als Link, Logo im Button
   ========================================================================== */
.side-video__box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-s);
}
.side-video__card {
    border-radius: 0;
    box-shadow: none;
    background: var(--bg-soft);
}
.side-video__card::after { content: none; }
.side-video__card:hover img { transform: none; }

.side-video__yt {
    display: block;
    padding: .9rem 1rem 1.05rem;
    background: var(--surface-2);
    color: var(--ink);
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transform: none;
}
.side-video__yt:hover {
    color: var(--ink);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.side-video__yt-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem .65rem;
    width: 100%;
    padding: .7rem .85rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-family: var(--font-text);
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.side-video__yt-logo {
    display: block;
    width: auto;
    height: 18px;
    max-width: 5.6rem;
}
.side-video__yt-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}
.side-video__yt-text { min-width: 0; }
.side-video__yt-cta svg { flex: none; }
.side-video__yt-cta:hover {
    border-color: var(--accent);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-s);
}
.side-video__yt-cta:hover .side-video__yt-text {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}
.side-video__yt-cta:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* Startseiten-Band: Button im selben Stil, Bild kein Link */
.video-band__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem .65rem;
    padding: .7rem 1.15rem;
    min-height: 2.75rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-family: var(--font-text);
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.video-band__cta-logo {
    display: block;
    width: auto;
    height: 18px;
    max-width: 5.6rem;
}
.video-band__cta-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}
.video-band__cta-text { min-width: 0; }
.video-band__cta svg { flex: none; }
.video-band__cta:hover {
    border-color: var(--accent);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-s);
}
.video-band__cta:hover .video-band__cta-text {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .2em;
}
.video-band__cta:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

@media (forced-colors: active) {
    .side-video__box { border: 2px solid CanvasText; }
    .side-video__yt-cta, .video-band__cta { border: 1px solid LinkText; }
}
@media print {
    .side-video__yt, .video-band__cta { display: none; }
}

/* Bildrahmen im Startseiten-Band bleibt sichtbar, auch ohne umschliessenden Link */
.video-band .video-consent { display: block; }
.video-band .video-consent .video-consent__frame { display: block; }
