/* Therapiezentrum Laenen – Gestaltung nach dem Entwurf vom 25.10.2026 (Codex-Vorschau, von Michael gewählt):
   Arial, viel Weiß, warmes Grau, Rot als Akzent, eckige Knöpfe mit Pfeil. Kleinste Schrift 12 px. */

:root {
    --red: #be484a;          /* Flächen, Linien, große Schrift */
    --red-text: #a4383b;     /* Text und Links in Rot auf Weiß und Grau (Kontrast mindestens 4,5 : 1) */
    --red-dark: #8b292b;
    --dark: #292c2c;
    --muted: #5a5f5e;
    --paper: #f7f6f3;
    --line: #dedfda;
    --white: #fff;
    --line-soft: #ecece8;    /* feine Trennlinien und Ränder */
    --line-strong: #a9ada7;  /* Unterstreichung der Textlinks */
    --field-border: #858a84; /* Rand der Eingabefelder (3,5 : 1) */
    --error: #9c2027;
    --error-dark: #7d1a20;
    --disabled: #6f6a69;
    --selection: #f2d6d6;
    --image-placeholder: #e7e5e0;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-hoehe, 152px) + 12px); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--dark); line-height: 1.65; background: var(--white); font-size: 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
p { margin: 0 0 20px; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h2 { font-weight: 500; font-size: clamp(1.9375rem, 3.2vw, 2.75rem); line-height: 1.18; letter-spacing: -0.03em; margin: 0; }
h3 { font-size: 1.625rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 16px; }
a[href^="tel:"] { white-space: nowrap; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--selection); color: var(--dark); }
input, textarea { caret-color: var(--red-text); }
.zeiten dd, .phone, a[href^="tel:"] { font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 15px; background: var(--white); padding: 12px; z-index: 100; }
.skip:focus { top: 10px; }
.nur-vorleser { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; color: var(--red-text); margin: 0 0 22px; line-height: 1.5; }
.intro { font-size: 1.0625rem; line-height: 1.8; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); font-size: 0.875rem; }

/* ---------- Knöpfe und Textlinks ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
    min-height: 48px; padding: 14px 24px;
    background: var(--red-text); color: var(--white); border: 1px solid var(--red-text);
    font: 600 0.9375rem/1.3 Arial, Helvetica, sans-serif; text-align: left;
    transition: background 0.2s, transform 0.2s;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); color: var(--white); }
.button:active { transform: none; }
.button:disabled { background: var(--disabled); border-color: var(--disabled); cursor: progress; transform: none; }
.button > span { font-size: 1.25rem; line-height: 1; }
.button.small { padding: 11px 18px; gap: 20px; min-height: 44px; }
.button.light { background: var(--white); color: var(--red-text); border-color: var(--white); }
.button.light:hover { background: var(--paper); color: var(--red-dark); }
.textlink { font-size: 0.9375rem; font-weight: 600; display: inline-flex; gap: 16px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.textlink:hover { color: var(--red-text); border-bottom-color: var(--red); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 32px; }
.secondary { background: none; border: 0; font: inherit; font-size: 0.9375rem; padding: 12px 0; min-height: 44px; color: var(--dark); }
.secondary:hover { color: var(--red-text); }

/* ---------- Kopf ---------- */

.topline { background: var(--paper); font-size: 0.8125rem; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.topline .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; padding: 8px 0; }
.topline .wrap > span { margin-right: auto; }
.topline a { padding-block: 12px; margin-block: -12px; }
.topline a:hover { color: var(--red-text); }
.topline a:focus-visible { outline-offset: -6px; } /* Tippfläche ragt über den Rand, Rahmen bleibt sichtbar */
/* Leiste und Kopf bleiben zusammen oben stehen; die Höhe misst darstellung.js (--kopf-hoehe) für Sprungziele und feste Spalten. */
.kopfbereich { position: sticky; top: 0; z-index: 30; }
.kopf { position: relative; z-index: 20; background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.nav { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; align-items: center; min-height: 44px; gap: 15px; line-height: 1.2; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand img { width: 62px; height: 49px; object-fit: cover; }
.brand strong { display: block; font-size: 1.5625rem; font-weight: 600; }
.nav nav { display: flex; align-items: center; gap: 29px; font-size: 0.9375rem; }
.nav nav > a:not(.button) { padding: 10px 0; white-space: nowrap; }
.nav nav > a:not(.button):hover, .nav nav > a[aria-current="page"]:not(.button) { color: var(--red-text); }
.nav nav > a[aria-current="page"]:not(.button) { box-shadow: inset 0 -2px 0 var(--red); }
/* Terminknopf auf der Terminseite: Schrift bleibt weiß, die aktuelle Seite zeigt eine weiße Linie im Knopf. */
.nav nav > a.button[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--white); }
.nav .button { white-space: nowrap; }
.menu { display: none; }

/* ---------- Startseite ---------- */

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.09; font-weight: 500; letter-spacing: -0.035em; margin: 0 0 28px; }
.hero h1 em { font-style: normal; color: var(--red-text); }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8125rem; margin: 48px 0 0; }
.line { width: 30px; height: 1px; background: var(--red); flex: none; }
.hero-image { --versatz: 24px; position: relative; padding: 0 var(--versatz) var(--versatz) 0; height: 560px; }
.hero-image::before { content: ""; position: absolute; inset: 34px 0 0 34px; background: var(--red); animation: versatz-heraus 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
/* Einziger gestalteter Moment beim Laden: Die rote Fläche liegt erst deckungsgleich hinter dem Foto und schiebt
   sich dann in ihre versetzte Lage (aufgegriffen vom Kipp-Effekt der alten Seite, ruhig und ohne Nachfedern). */
@keyframes versatz-heraus { from { transform: translate(calc(-1 * var(--versatz)), calc(-1 * var(--versatz))); } }
.hero-image > img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.image-label { position: absolute; left: -30px; bottom: 65px; margin: 0; background: var(--white); padding: 21px 30px; box-shadow: 0 8px 32px rgb(32 32 32 / 0.06); line-height: 1.55; font-size: 1rem; animation: etikett-herein 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
@keyframes etikett-herein { from { opacity: 0; transform: translateY(14px); } }
.image-label strong { display: block; font-weight: 500; color: var(--red-text); }
.vertical { position: absolute; right: -17px; top: 35px; writing-mode: vertical-rl; letter-spacing: 2px; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }

.principles { background: var(--paper); border-block: 1px solid var(--line-soft); }
.principles ul { list-style: none; display: flex; justify-content: space-between; padding: 23px 0; margin-block: 0; gap: 15px; font-size: 0.9375rem; }
.principles i { font-style: normal; font-size: 0.8125rem; color: var(--red-text); margin-right: 16px; }

.section { padding-block: 100px; }
.section-tinted { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 44px; }
.section-head > p { max-width: 420px; margin: 0 0 5px; color: var(--muted); font-size: 1rem; }
.stellen-hinweis { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 50px; padding: 28px 32px; background: var(--paper); border-left: 4px solid var(--red); }
.stellen-hinweis h2 { font-size: 1.4375rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px; }
.stellen-hinweis p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 1rem; max-width: 560px; }
.stellen-hinweis .button { flex-shrink: 0; }
.stellen-hinweis .eyebrow { margin-bottom: 10px; }
.section-more { margin: 35px 0 0; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.service { border: 1px solid var(--line); background: var(--white); }
.service-image { position: relative; height: 270px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.service:hover .service-image img { transform: scale(1.035); }
.service-image > span { position: absolute; bottom: 0; left: 0; background: var(--white); padding: 11px 22px; font-size: 0.75rem; letter-spacing: 1.1px; color: var(--red-text); font-weight: 700; text-transform: uppercase; }
.service-body { padding: 31px; }
.service-body > p { font-size: 1rem; color: var(--muted); }
.tags { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tags li { font-size: 0.8125rem; background: var(--paper); padding: 5px 10px; color: var(--muted); }

.treatment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 40px; }
.treatment { padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.treatment:target { border-top: 3px solid var(--red); }
.treatment-index { font-size: 0.8125rem; color: var(--red-text); font-weight: 700; }
.treatment h3 { font-size: 1.375rem; margin: 12px 0; }
.treatment:has(h3 a) { position: relative; }
.treatment h3 a::after { content: ""; position: absolute; inset: 0; }
.treatment h3 a:hover { color: var(--red-text); }
.treatment:has(h3 a):hover { border-top-color: var(--red); }
.treatment > p { font-size: 0.9375rem; color: var(--muted); margin: 0; }

details { border-top: 1px solid var(--line); margin-top: 18px; }
summary { list-style: none; padding: 12px 0; min-height: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; font-weight: 600; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary > span[aria-hidden] { color: var(--red-text); font-size: 1.375rem; line-height: 1; transition: transform 0.2s; }
details[open] summary > span[aria-hidden] { transform: rotate(45deg); }
details > p, details > ul { font-size: 0.9375rem; color: var(--muted); }
details ul { padding-left: 19px; }
details li { margin-bottom: 6px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { scroll-margin-top: 16px; }
.person > img { height: 330px; width: 100%; object-fit: cover; object-position: center top; background: var(--image-placeholder); }
.person-copy { padding: 26px 3px 0; }
.person-copy .eyebrow { margin-bottom: 12px; }
.person h2, .person h3 { font-size: 1.625rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 7px; }
.person h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.person h3 a:hover { color: var(--red-text); }
.person .role { font-size: 0.875rem; color: var(--red-text); margin-bottom: 16px; }
.person-copy > p:not(.eyebrow):not(.role) { font-size: 0.9375rem; color: var(--muted); }
.person .schwerpunkt strong { color: var(--dark); font-weight: 600; }
.quali li.in-ausbildung { font-style: italic; }

.practice { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.practice-photo { position: relative; padding: 0 0 22px 22px; }
.practice-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 60%; height: 60%; background: var(--white); border-left: 4px solid var(--red); }
.practice-photo img { position: relative; width: 100%; height: 410px; object-fit: cover; }
.practice h2 { margin-bottom: 25px; }
.practice p:not(.eyebrow) { font-size: 1rem; color: var(--muted); }

.appointment { background: var(--red); color: var(--white); padding: 65px 0; }
.appointment > .wrap { display: flex; justify-content: space-between; align-items: center; gap: 70px; }
.appointment .eyebrow { color: var(--white); }
.appointment h2 { font-size: clamp(1.875rem, 3vw, 2.625rem); margin-bottom: 20px; }
.appointment p:not(.eyebrow) { max-width: 520px; color: var(--white); font-size: 1rem; margin: 0; }
.appointment-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 300px; }
.appointment .phone { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.75rem; letter-spacing: -0.015em; }
.appointment .phone:hover { text-decoration: underline; }
.appointment :focus-visible { outline-color: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.contact-grid > div { padding-top: 35px; }
.contact-address { border-right: 1px solid var(--line); padding-right: 50px; }
.contact-links a { display: flex; align-items: center; width: fit-content; min-height: 44px; font-size: 1rem; }
.contact-links a:hover { color: var(--red-text); }
.contact-links a + a { margin-top: 8px; }
.contact-number { font-size: 0.75rem; letter-spacing: 1.5px; color: var(--red-text); margin-bottom: 22px; font-weight: 700; text-transform: uppercase; }
.contact-grid h2, .contact-grid h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 16px; }
.hours { padding-left: 65px; }

/* Öffnungszeiten */
.zeiten { margin: 24px 0; }
.zeiten > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 0.9375rem; }
.zeiten dd { margin: 0; white-space: nowrap; }
.zeiten-hinweis { color: var(--muted); font-size: 0.875rem; }

/* ---------- Unterseiten ---------- */

.page-intro { padding-block: 66px 46px; }
.page-intro h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.5rem, 4.8vw, 3.875rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; margin: 0 0 25px; }
.page-intro > p:not(.eyebrow):not(.intro) { max-width: 690px; }
.link-liste { list-style: none; padding: 0; display: grid; gap: 4px; }

.jumpnav { display: flex; gap: 12px 30px; flex-wrap: wrap; padding-block: 18px 25px; border-top: 1px solid var(--line); }
.jumpnav a { font-size: 0.9375rem; font-weight: 600; padding: 10px 0; }
.jumpnav a:hover { color: var(--red-text); }
.service-group { padding-block: 70px; scroll-margin-top: 0; }
.tinted { background: var(--paper); }
.cost-note { margin: 40px 0 0; padding: 18px 22px; background: var(--white); border-left: 3px solid var(--red); font-size: 0.9375rem; color: var(--muted); max-width: 36rem; }
.tinted .cost-note { background: var(--white); }
.service-group:not(.tinted) .cost-note { background: var(--paper); }
.cost-note strong { color: var(--dark); }

.team-cover { padding-bottom: 70px; }
.team-cover-bild { max-width: 52rem; }
.team-cover-bild img { width: 100%; height: auto; }
.team-cover-text { display: flex; justify-content: space-between; gap: 45px; padding-top: 30px; }
.team-cover-text .eyebrow { min-width: 200px; margin-top: 5px; }
.team-cover-text > div { max-width: 38rem; }
.team-cover-text p { font-size: 1rem; color: var(--muted); }
/* Porträts vom Empfang: Hochformat wie die Vorlagen (1122 × 1402), zwei nebeneinander, nicht breiter als der Textblock. */
.empfang-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 40rem; }
.empfang-bilder figure { margin: 0; }
.empfang-bilder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--image-placeholder); }
.neu-bei-uns { align-items: start; scroll-margin-top: 0; }
.neu-bei-uns p { font-size: 1rem; color: var(--muted); }

.arrival { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: center; background: var(--paper); padding: 50px; }
.arrival h2 { margin-bottom: 24px; }
.arrival p:not(.eyebrow) { color: var(--muted); font-size: 0.9375rem; }
.address-mark { border-left: 1px solid var(--line); padding-left: 55px; }
.address-mark > span { font-size: 0.75rem; letter-spacing: 2px; color: var(--red-text); text-transform: uppercase; font-weight: 700; }
.address-mark > strong { display: block; font-size: 3.5rem; line-height: 1.05; font-weight: 500; letter-spacing: -0.035em; margin: 15px 0; }
.address-mark > p { font-size: 0.8125rem; }

/* Rechtstexte */
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 70px; padding-bottom: 85px; }
.legal-aside { font-size: 0.875rem; color: var(--muted); }
.legal-aside a { color: var(--dark); }
.legal-content { font-size: 1rem; overflow-wrap: break-word; hyphens: auto; max-width: 35rem; }
.legal-content a { text-underline-offset: 0.18em; overflow-wrap: anywhere; }
/* Rasterfelder dürfen schmaler werden als ihr längstes Wort (sonst seitliches Scrollen bei Zoom und großen Textabständen, WCAG 1.4.10/1.4.12). */
.legal-layout > *, .form-layout > *, .hero > *, .services > *, .treatment-grid > *, .team-grid > *, .practice > *,
.contact-grid > *, .link-liste > *, .empfang-bilder > *, .arrival > *, .footer-top > * { min-width: 0; }
.treatment h3, .contact-address h2 { overflow-wrap: anywhere; }
.legal-content h2 { font-size: 1.625rem; line-height: 1.3; letter-spacing: -0.02em; margin: 35px 0 18px; }
.legal-content > h2:first-child, .legal-content > .entwurf + section h2 { margin-top: 0; }
.legal-content a { color: var(--red-text); text-decoration: underline; }
.legal-content section { scroll-margin-top: 16px; }
.legal-single { padding-bottom: 85px; }
.legal-single.ohne-intro { padding-top: 66px; }
.legal-single .legal-content { max-width: 48rem; }
.legal-content h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.5rem, 4.8vw, 3.875rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; margin: 0 0 40px; }
.legal-content h3 { font-size: 1.1875rem; line-height: 1.35; margin: 28px 0 12px; }
.legal-content > h1 + h2, .legal-content > h2:first-child { margin-top: 0; }
.legal-content ul, .legal-content ol { padding-left: 1.25em; }
.legal-toc { position: sticky; top: calc(var(--kopf-hoehe, 152px) + 24px); }
.legal-toc h2 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0; margin: 0 0 12px; color: var(--dark); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; }
.legal-toc a { display: block; padding: 5px 0; }
.legal-toc a:hover { color: var(--red-text); }
.entwurf { background: var(--paper); border-left: 3px solid var(--red); padding: 18px 22px; font-size: 0.9375rem; margin-bottom: 30px; }

/* ---------- Terminanfrage ---------- */

.form-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 70px; padding-bottom: 85px; align-items: start; }
.fortschritt { display: flex; flex-wrap: wrap; row-gap: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); gap: 25px; font-size: 0.875rem; color: var(--muted); margin: 0 0 30px; counter-reset: schritt; }
.fortschritt li { padding: 10px 0; counter-increment: schritt; white-space: nowrap; }
.fortschritt li::before { content: counter(schritt) " · "; }
.fortschritt li[aria-current="step"] { color: var(--red-text); border-bottom: 2px solid var(--red); font-weight: 700; margin-bottom: -1px; }
.fortschritt li.erledigt { color: var(--dark); }
.schritt { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.js-schritte .schritt { margin-bottom: 0; }
.schritt > legend { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; padding: 0; margin-bottom: 20px; }
.schritt-nr { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red-text); margin-bottom: 10px; }
.feld { margin-bottom: 20px; }
.feld label, .auswahl > legend { display: block; font-size: 0.9375rem; margin-bottom: 6px; }
.pflicht, .optional { color: var(--muted); font-size: 0.875rem; }
.feld-hilfe { font-size: 0.8125rem; color: var(--muted); margin: 0 0 6px; }
.feld input { display: block; width: 100%; border: 1px solid var(--field-border); background: var(--white); border-radius: 0; padding: 13px; font: inherit; font-size: 1rem; color: var(--dark); min-height: 50px; }
.feld input:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.feld input[aria-invalid="true"], .feld textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.feld textarea { display: block; width: 100%; border: 1px solid var(--field-border); background: var(--white); border-radius: 0; padding: 13px; font: inherit; font-size: 1rem; color: var(--dark); min-height: 150px; resize: vertical; }
.feld textarea:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.feld input[type="file"] { padding: 10px; cursor: pointer; }
.feld input[type="file"]::file-selector-button { font: inherit; font-size: 0.9375rem; min-height: 44px; margin-right: 14px; padding: 0 16px; border: 1px solid var(--dark); background: var(--paper); color: var(--dark); cursor: pointer; }
.feld input[type="file"]:hover::file-selector-button { background: var(--white); }
.fehlerliste p { margin: 10px 0 0; }
.feld-fehler { font-size: 0.875rem; color: var(--error); margin: 6px 0 0; font-weight: 600; }
.auswahl { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.wahl { position: relative; display: block; margin-bottom: 10px; cursor: pointer; }
.wahl input { position: absolute; left: 15px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: var(--red-text); }
.wahl-text { display: block; min-height: 50px; padding: 13px 15px 13px 46px; border: 1px solid var(--line); background: var(--white); font-size: 0.9375rem; }
.wahl-text strong { font-weight: 600; }
.wahl:hover .wahl-text { border-color: var(--line-strong); }
.wahl input:checked + .wahl-text { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.wahl input[aria-invalid="true"] + .wahl-text { border-color: var(--error); }
.schritt-knoepfe { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 0; }
.schritt-knoepfe .button { margin-left: auto; }
.uebersicht { background: var(--paper); padding: 20px 22px; margin-bottom: 20px; font-size: 0.9375rem; }
.uebersicht dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 6px 15px; }
.uebersicht dt { color: var(--muted); }
.uebersicht dd { margin: 0; overflow-wrap: anywhere; }
.hinweis { background: var(--paper); border-left: 3px solid var(--red); padding: 16px 20px; font-size: 0.9375rem; }
.hinweis-fehler { color: var(--error-dark); font-weight: 600; }
.fehlerliste { border: 2px solid var(--error); padding: 16px 22px; margin-bottom: 30px; font-size: 0.9375rem; }
.fehlerliste h2 { font-size: inherit; font-weight: 700; line-height: inherit; letter-spacing: 0; margin: 0 0 6px; }
.fehlerliste a { display: inline-flex; align-items: center; min-height: 44px; color: var(--error); text-decoration: underline; }
.datenschutz-hinweis { font-size: 0.875rem; color: var(--muted); }
.datenschutz-hinweis a { color: var(--red-text); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-aside { background: var(--paper); padding: 32px; position: sticky; top: calc(var(--kopf-hoehe, 152px) + 24px); }
.form-aside h2 { font-size: 1.4375rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
.form-aside p:not(.eyebrow) { font-size: 0.9375rem; color: var(--muted); }
.form-aside .phone { display: flex; align-items: center; min-height: 44px; color: var(--red-text); font-size: 1.5rem; margin-bottom: 10px; }
.form-aside hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }

/* ---------- Fuß ---------- */

.fuss { background: var(--paper); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; padding-block: 50px; font-size: 0.875rem; }
.footer-top .brand { font-size: 0.875rem; margin-bottom: 14px; }
.footer-top .brand img { width: 52px; height: 41px; }
.footer-top .brand strong { font-size: 1.375rem; }
.footer-top p { color: var(--muted); }
.footer-top h2 { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; margin: 0 0 10px; }
.footer-top a:hover { color: var(--red-text); }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.footer-links { gap: 8px; }
.footer-bottom { padding-block: 20px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom a { padding: 12px 0; margin-block: -12px; }
.footer-bottom a:hover { color: var(--red-text); }

/* ---------- Mittlere Breiten ---------- */

@media (max-width: 65.625em) {
    .wrap { width: calc(100% - 48px); }
    .nav nav { gap: 20px; font-size: 0.875rem; }
    .brand { font-size: 0.875rem; }
    .brand strong { font-size: 1.4375rem; }
    .hero { gap: 40px; }
    .hero h1 { font-size: clamp(2.25rem, 4.4vw, 3rem); }
    .hero-image { height: 500px; }
    .button { gap: 20px; padding: 13px 19px; }
    .team-grid { gap: 22px; }
    .person > img { height: 280px; }
    .practice, .form-layout, .legal-layout { gap: 40px; }
    .legal-layout { grid-template-columns: 220px 1fr; }
    .treatment-grid { grid-template-columns: 1fr 1fr; }
    .section-head { gap: 30px; }
    .appointment > .wrap { gap: 35px; }
    .arrival { gap: 35px; padding: 35px; }
    .footer-top { grid-template-columns: 1.2fr 1fr auto; gap: 32px; }
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 47.5em) {
    html { scroll-padding-top: calc(var(--kopf-hoehe, 120px) + 8px); }
    .wrap { width: calc(100% - 40px); }
    .topline .wrap { padding-block: 7px; font-size: 0.75rem; gap: 16px; }
    .topline-mail { display: none; }
    /* Auf dem Handy kürzerer Knopftext, damit die Leiste meist einzeilig bleibt; der volle Name bleibt für Screenreader. */
    .darstellung-knopf-rest { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav { min-height: 78px; flex-wrap: wrap; gap: 0 16px; }
    .brand img { width: 49px; height: 39px; }
    .brand { font-size: 0.8125rem; gap: 11px; }
    .brand strong { font-size: 1.3125rem; }
    /* Ohne Skript: Menü bricht unter die Marke um. Mit menu.js: Klappmenü. */
    .nav nav { width: 100%; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 12px; }
    .menu-klappbar .menu { display: flex; gap: 10px; align-items: center; border: 0; background: none; color: var(--dark); font: inherit; font-size: 0.9375rem; padding: 12px 0 12px 12px; min-height: 44px; }
    .menu-klappbar .menu span { font-size: 1.375rem; }
    .menu-klappbar .nav { flex-wrap: nowrap; }
    .menu-klappbar .nav nav { display: none; position: absolute; top: 78px; left: 0; right: 0; width: auto; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 20px 20px; box-shadow: 0 10px 20px rgb(0 0 0 / 0.04); }
    .menu-klappbar .nav nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    /* Kleines Querformat mit großer Schrift: Menü scrollt in sich, statt unter dem Fensterrand zu enden. 79px = Kopfhöhe. */
    .menu-klappbar .nav nav.open { flex-wrap: nowrap; max-height: calc(100vh - var(--kopf-hoehe, 120px)); max-height: calc(100dvh - var(--kopf-hoehe, 120px)); overflow-y: auto; overscroll-behavior: contain; }
    .menu-klappbar .nav nav > a:not(.button) { padding: 12px 7px; font-size: 1.0625rem; }
    .menu-klappbar .nav nav > a.button { margin-top: 12px; justify-content: space-between; }
    .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 40px; }
    .hero h1 { font-size: clamp(2rem, 9.4vw, 2.75rem); margin-bottom: 20px; }
    .intro { font-size: 1rem; }
    .actions { margin-top: 25px; gap: 18px; }
    .hero-note { margin-top: 25px; }
    .hero-image { height: 378px; --versatz: 18px; }
    .image-label { left: -6px; bottom: 46px; padding: 16px 20px; font-size: 0.9375rem; }
    .vertical { display: none; }
    .principles ul { flex-direction: column; gap: 6px; padding-block: 17px; }
    .section { padding-block: 62px; }
    .section-head { display: block; margin-bottom: 30px; }
    .stellen-hinweis { display: block; padding: 24px 20px; margin-top: 40px; }
    .stellen-hinweis .button { margin-top: 20px; }
    .section-head > p { margin-top: 20px; max-width: 100%; }
    h2 { font-size: 1.9375rem; }
    .services, .team-grid, .treatment-grid { grid-template-columns: 1fr; gap: 28px; }
    .empfang-bilder { gap: 16px; }
    .service-image { height: 235px; }
    .service-body { padding: 24px; }
    .person > img { height: auto; aspect-ratio: 1 / 1; object-position: center top; }
    .practice { grid-template-columns: 1fr; gap: 32px; }
    .practice-photo { padding: 0 0 16px 16px; }
    .practice-photo img { height: auto; max-height: 420px; }
    .appointment { padding-block: 48px; }
    .appointment > .wrap { display: block; }
    .appointment-actions { margin-top: 30px; min-width: 0; }
    .appointment .phone { font-size: 1.625rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-address { border-right: 0; padding-right: 0; padding-bottom: 28px; }
    .hours { padding-left: 0; border-top: 1px solid var(--line); }
    .page-intro { padding-block: 40px 25px; }
    .page-intro h1, .legal-content h1 { font-size: clamp(2rem, 9.4vw, 2.625rem); }
    .legal-single { padding-bottom: 55px; }
    .legal-single.ohne-intro { padding-top: 40px; }
    .service-group { padding-block: 46px; }
    .team-cover-text { display: block; }
    .team-cover-text .eyebrow { margin-bottom: 15px; }
    .arrival { grid-template-columns: 1fr; gap: 28px; padding: 25px; }
    .address-mark { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
    .address-mark > strong { font-size: 2.5rem; }
    .form-layout, .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 55px; }
    .form-aside, .legal-toc { position: static; }
    .form-aside { padding: 25px; }
    .fortschritt { gap: 16px; font-size: 0.8125rem; }
    .schritt > legend { font-size: 1.6875rem; }
    .uebersicht dl { grid-template-columns: 1fr; gap: 0; }
    .uebersicht dd { margin-bottom: 8px; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
    .footer-bottom { flex-wrap: wrap; gap: 10px; }
}

/* ---------- Darstellung: Schriftgröße und hoher Kontrast (darstellung.js) ---------- */

/* Ein Knopf „Ansicht anpassen“, das Feld klappt bei Bedarf darunter auf (rechtsbündig in der Leiste, passt auch aufs Handy). */
.topline .wrap { position: relative; }
.darstellung-knopf { white-space: nowrap; }
.darstellung-knopf[aria-expanded="true"] { background: var(--dark); color: var(--white); border-color: var(--dark); }
.darstellung-feld {
    position: absolute; right: 0; top: calc(100% + 1px); z-index: 40;
    width: max-content; max-width: 100%; padding: 16px 18px 18px;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 28px rgb(0 0 0 / 0.12);
    color: var(--dark); font-size: 0.875rem;
}
.darstellung-titel { margin: 0 0 8px; font-weight: 700; }
.darstellung-titel:not(:first-child) { margin-top: 16px; }
.darstellung-schrift { display: flex; flex-wrap: wrap; gap: 6px; }
.darstellung-zurueck { margin-top: 18px; }
.darstellung button {
    min-width: 44px; min-height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: 700 0.8125rem/1 Arial, Helvetica, sans-serif; color: var(--dark);
    background: var(--white); border: 1px solid var(--field-border); border-radius: 0;
}
.darstellung button:hover { border-color: var(--dark); }
.darstellung button[aria-pressed="true"] { background: var(--dark); color: var(--white); border-color: var(--dark); }
.darstellung [data-schrift="1"] { font-size: 0.9375rem; }
.darstellung [data-schrift="2"] { font-size: 1.0625rem; }
.darstellung button:focus-visible { outline-offset: 2px; }

html.schrift-gross { font-size: 115%; }
html.schrift-sehr-gross { font-size: 130%; }
/* Bei größerer Schrift enger, damit das Menü auf mittleren Bildschirmen in einer Zeile bleibt. */
.schrift-gross .nav, .schrift-sehr-gross .nav { gap: 16px; }
.schrift-gross .nav nav, .schrift-sehr-gross .nav nav { gap: 16px; }
.schrift-sehr-gross .nav .button.small { gap: 12px; padding-inline: 14px; }
.schrift-gross .zeiten > div, .schrift-sehr-gross .zeiten > div { flex-wrap: wrap; column-gap: 12px; }
.schrift-sehr-gross .zeiten dd, .schrift-sehr-gross .phone { white-space: normal; }

/* Hoher Kontrast: Text mindestens 7 : 1 (WCAG AAA 1.4.6), Ränder und Fokus schwarz, Links unterstrichen. */
html.kontrast {
    --red: #7a1d20;
    --red-text: #7a1d20;
    --red-dark: #4f1113;
    --dark: #000;
    --muted: #1f1f1f;
    --paper: #fff;
    --line: #000;
    --line-soft: #000;
    --line-strong: #000;
    --field-border: #000;
    --error: #7d1a20;
    --error-dark: #5c1015;
    --disabled: #4a4a4a;
    --selection: #ffe27a;
    --image-placeholder: #d9d9d9;
}
.kontrast .kopf { background: var(--white); backdrop-filter: none; }
.kontrast a:not(.button):not(.brand):not(.skip) { text-decoration: underline; text-underline-offset: 0.2em; }
.kontrast :focus-visible { outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.kontrast .appointment :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #000; }
.kontrast .feld input, .kontrast .feld textarea { border-width: 2px; }
.kontrast .wahl-text, .kontrast .tags li { border: 2px solid #000; }
.kontrast .image-label { border: 2px solid #000; box-shadow: none; }
.kontrast .button.light { border: 2px solid #000; }

/* Kontrastmodus von Windows (forced colors): Rahmen und Zustände, die sonst nur über Hintergründe sichtbar wären. */
@media (forced-colors: active) {
    .button, .secondary, .menu, .darstellung button, .wahl-text { border: 2px solid ButtonText; }
    .darstellung button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
    .wahl input:checked + .wahl-text { outline: 3px solid Highlight; }
    .nav nav > a[aria-current="page"] { text-decoration: underline; }
    .fortschritt li[aria-current="step"] { text-decoration: underline; }
    :focus-visible { outline: 3px solid Highlight; }
    .fehlerliste, .hinweis { border: 2px solid CanvasText; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
