/* Impressum und Datenschutz. Dieselben Farben, Schrift und Linie wie die Seite. */
.recht main { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand) 96px; }
.recht .wege a[aria-current="page"] { color: var(--tinte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.recht a { text-underline-offset: 4px; text-decoration-thickness: 1px; }

.kopfzeile { padding: 96px 0 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; }
.kopfzeile .dach { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--grau); }
.kopfzeile h1 { margin: 0; font-size: clamp(40px, 5vw, 56px); line-height: 1; font-stretch: 108%; letter-spacing: -.02em; font-weight: 500; overflow-wrap: anywhere; }
.kopfzeile .vorweg { margin: 0; font-size: 19px; line-height: 1.45; max-width: 38ch; }

.offen { font-size: .92em; color: var(--grau); font-stretch: 100%; text-decoration: underline dashed 1px; text-underline-offset: 4px; }
.stand { margin-top: 48px; font-size: 15px; color: var(--grau); }

/* A · Der Datenweg: die Linie der Seite läuft links herunter, an jedem Halt ein Stich */
.datenweg { padding: 24px 0 96px; }
.datenweg h2 { margin: 0 0 40px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-stretch: 108%; font-weight: 500; max-width: 24ch; }
.weg { --p: 1; position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: 8px; }
.weg::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 28px; width: 2px; background: var(--tinte); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.weg li { position: relative; }
.weg li::before { content: ""; position: absolute; left: -35px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--tinte); }
.halt { display: grid; grid-template-columns: minmax(0, 4fr) minmax(48px, 3fr) minmax(0, 5fr); align-items: center; gap: 20px; min-height: 76px; padding: 12px 0; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--linie); }
.halt .du { font-size: 19px; }
.halt .strich { height: 2px; background: var(--tinte); transform-origin: 0 50%; transform: scaleX(.55); transition: transform 240ms var(--weich); }
.halt:hover .strich, .halt:focus-visible .strich { transform: scaleX(1); }
.halt .wohin { display: grid; gap: 2px; }
.halt .wohin b { font-size: 19px; font-weight: 600; font-stretch: 108%; }
.halt .wohin span { font-size: 15px; color: var(--grau); }
.halt:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }

/* Wortlaut mit Abschnitten am Rand */
.wortlaut { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 72px; padding-top: 56px; box-shadow: 0 -1px 0 var(--linie); }
.rail { position: sticky; top: 96px; align-self: start; }
.rail p { margin: 0 0 12px; font-size: 15px; color: var(--grau); }
.rail ol { list-style: none; margin: 0; padding: 0; }
.rail a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--grau); font-size: 15px; }
.rail a:hover, .rail a[aria-current="true"] { color: var(--tinte); }
.rail .nr { font-variant-numeric: tabular-nums; font-size: 13px; width: 20px; }
.rail a[aria-current="true"] .nr::after { content: ""; display: inline-block; width: 12px; height: 2px; margin-left: 6px; vertical-align: middle; background: var(--tinte); }
.text { max-width: 68ch; }
.text h2 { margin: 0 0 32px; font-size: clamp(26px, 3vw, 36px); font-stretch: 108%; font-weight: 500; }
.abschnitt { padding: 40px 0; box-shadow: 0 -1px 0 var(--linie); scroll-margin-top: 88px; }
.abschnitt .nr { margin: 0 0 4px; font-size: 13px; color: var(--grau); font-variant-numeric: tabular-nums; }
.abschnitt h3 { margin: 0 0 16px; font-size: 24px; font-weight: 500; font-stretch: 108%; }
.kurz { margin: 0 0 20px; padding-left: 18px; box-shadow: inset 2px 0 0 var(--tinte); font-size: 20px; line-height: 1.4; font-stretch: 108%; }
.kurz span { display: block; font-size: 13px; color: var(--grau); margin-bottom: 4px; font-stretch: 100%; }
.anschrift { line-height: 1.7; }
.text a, .kk .inhalt a { display: inline-block; padding: 12.5px 0; margin: -12.5px 0; }

/* Impressum als Liste */
.impressum-liste { max-width: 860px; }
.impressum-liste h2 { margin: 0 0 24px; font-size: 24px; font-weight: 500; font-stretch: 108%; }
.angaben { margin: 0; }
.angaben div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; padding: 18px 0; box-shadow: 0 -1px 0 var(--linie); }
.angaben dt { font-size: 15px; color: var(--grau); }
.angaben dd { margin: 0; line-height: 1.6; }
.angaben a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.weiter { margin-top: 40px; }
.weiter a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; }

/* B · Drei Sätze und Karteikarten */
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0 0 96px; }
.drei p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--grau); }
.drei b { display: block; margin-bottom: 8px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; font-weight: 500; font-stretch: 108%; color: var(--tinte); }
.kartei { max-width: 860px; }
.kartei h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; font-stretch: 108%; }
.kartei .hinweis { margin: 0 0 32px; font-size: 15px; color: var(--grau); }
.kk { margin: 0 0 16px; background: var(--abzug); border-radius: 3px; box-shadow: 0 1px 1px var(--schatten), 0 8px 18px -10px var(--schatten); scroll-margin-top: 88px; }
.kk summary { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 4px 12px; align-items: start; padding: 20px 20px 20px 24px; min-height: 44px; cursor: pointer; }
.kk summary::-webkit-details-marker { display: none; }
.plus { grid-column: 3; grid-row: 1 / span 2; justify-self: center; position: relative; width: 14px; height: 14px; margin-top: 8px; transition: transform 200ms var(--weich); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--tinte); }
.plus::after { transform: rotate(90deg); }
.kk[open] .plus { transform: rotate(45deg); }
.kk summary:focus-visible { outline: 2px solid var(--tinte); outline-offset: 2px; }
.kk .nr { grid-row: 1 / span 2; font-size: 13px; color: var(--grau); padding-top: 6px; font-variant-numeric: tabular-nums; }
.kk .titel { font-size: 21px; font-weight: 500; font-stretch: 108%; }
.kk .kurz { grid-column: 2; margin: 0; padding: 0; box-shadow: none; font-size: 16px; color: var(--grau); font-stretch: 100%; }
.kk .inhalt { padding: 0 32px 24px 76px; max-width: 68ch; }
.kk .inhalt p:first-child { margin-top: 0; }

/* B · Impressum als Visitenkarte, sie dreht sich um */
.visite { display: grid; justify-items: start; gap: 20px; padding: 0 0 96px; }
.vk { width: min(100%, 520px); aspect-ratio: 85 / 55; perspective: 1200px; }
.vk-innen { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 300ms cubic-bezier(.3, .7, .2, 1); }
.vk.gedreht .vk-innen { transform: rotateY(180deg); }
.vk-seite { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 7% 8%; background: var(--abzug); border-radius: 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 1px var(--schatten), 0 10px 22px -10px var(--schatten), 0 30px 50px -28px var(--schatten); }
.vk-zeichen { width: 22%; height: auto; }
.vk-name { margin: auto 0 0; font-size: clamp(15px, 2vw, 19px); font-weight: 500; font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; }
.vk-name span { display: block; margin-top: 4px; font-size: .68em; letter-spacing: .1em; }
.vk-adresse { margin: 12px 0 0; font-size: clamp(13px, 1.5vw, 15px); line-height: 1.5; color: var(--grau); }
.vk-hinten { transform: rotateY(180deg); justify-content: center; gap: 6px; background: var(--abzug-rueck); }
.vk-hinten p { margin: 0; font-size: clamp(13px, 1.6vw, 16px); }
.vk-dreh { min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font: 500 16px var(--schrift); color: var(--tinte); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.vk-dreh:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }

/* Fuß */

/* Empfehlung · Kopf mit der Welle aus Sophies Zeichen */
.kopf-welle h1 { font-size: clamp(48px, 6vw, 56px); }
.recht main { position: relative; }
.kopf-welle { padding-bottom: 72px; }
.kopf-welle > div { padding-bottom: 116px; }
.recht-faden { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.recht-faden path { fill: none; stroke: var(--tinte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.recht-faden circle { fill: var(--tinte); opacity: 0; transition: opacity 150ms var(--weich); }
.recht-faden circle.da { opacity: 1; }
.stand-klein { display: block; margin-top: 12px; font-size: 15px; color: var(--grau); }

/* Empfehlung · der Datenweg als Karte: von jedem Schritt läuft Sophies Linie zu seinem Ziel */
.kw-flaeche { padding: 40px 0 96px; }
.kw-flaeche h2 { margin: 0 0 40px; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-stretch: 108%; font-weight: 500; max-width: 24ch; }
.kw { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(64px, 4fr) minmax(0, 5fr); grid-template-rows: auto auto; column-gap: 0; }
.kw-kopf { grid-row: 1; margin: 0 0 16px; font-size: 15px; color: var(--grau); }
.kw-kopf-du { grid-column: 1; }
.kw-kopf-ziel { grid-column: 3; }
.kw-taten, .kw-ziele { grid-row: 2; list-style: none; margin: 0; padding: 0; display: grid; align-content: space-between; gap: 12px; position: relative; z-index: 1; }
.kw-taten { grid-column: 1; }
.kw-ziele { grid-column: 3; gap: 28px; align-content: center; }
.kw-taten a { display: flex; align-items: center; min-height: 56px; padding-right: 16px; text-decoration: none; font-size: 21px; line-height: 1.25; font-stretch: 108%; color: var(--grau); transition: color 150ms var(--weich); }
.kw-taten a.an { color: var(--tinte); }
.kw-ziele a { display: grid; gap: 2px; min-height: 44px; padding: 6px 0 6px 18px; text-decoration: none; color: var(--grau); transition: color 150ms var(--weich); }
.kw-ziele b { font-size: 21px; font-weight: 600; font-stretch: 108%; }
.kw-ziele span, .kw-ziele small { font-size: 15px; }
.kw-ziele a.an { color: var(--tinte); }
.kw-taten a:focus-visible, .kw-ziele a:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }
.kw-linien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.kw-linien path { fill: none; stroke: var(--grau); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-width 150ms var(--weich); }
.kw-linien path.an { stroke: var(--tinte); stroke-width: 2.4; }
.kw-linien circle { fill: var(--grau); }
.kw-linien circle.an { fill: var(--tinte); }
.kw-gerade { margin: 40px 0 0; max-width: 60ch; font-size: 19px; line-height: 1.45; }
.kw-gerade span:first-child { color: var(--grau); }

/* Impressum: Karte links, Angaben rechts, alles auf einen Blick */
.im-zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; padding-bottom: 56px; }
.im-zwei .visite { position: sticky; top: 104px; padding: 0; }
.im-zwei .impressum-liste h2 { font-size: 15px; font-weight: 400; color: var(--grau); margin-bottom: 12px; }
.im-zwei .angaben div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); padding: 12px 0; gap: 16px; }
.im-zwei .angaben dd { line-height: 1.5; }

@media (max-width: 860px) {
  .im-zwei { grid-template-columns: 1fr; gap: 40px; }
  .im-zwei .visite { position: static; }
  .kw { grid-template-columns: minmax(0, 6fr) 40px minmax(0, 5fr); }
  .kw-taten a { font-size: 16px; min-height: 64px; padding-right: 8px; }
  .kw-ziele { gap: 20px; }
  .kw-ziele a { padding-left: 10px; }
  .kw-ziele b { font-size: 17px; }
  .kw-ziele span, .kw-ziele small { font-size: 13px; }
  .kw-ziele small { display: none; }

  .kopfzeile { grid-template-columns: minmax(0, 1fr); padding: 56px 0 40px; }
  .kopfzeile h1 { font-size: clamp(26px, 7.2vw, 40px); hyphens: auto; }
  .halt { grid-template-columns: 1fr; gap: 6px; }
  .halt .strich { width: 48px; }
  .wortlaut { grid-template-columns: 1fr; gap: 0; }
  .rail { display: none; }
  .drei { grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; }
  .kk summary { grid-template-columns: 28px minmax(0, 1fr) 44px; padding: 16px 12px 16px 16px; }
  .kk .inhalt { padding: 0 16px 20px 56px; }
  .angaben div, .im-zwei .angaben div { grid-template-columns: 1fr; gap: 4px; }
  .angaben dd { overflow-wrap: anywhere; hyphens: auto; }
}
@media (prefers-reduced-motion: reduce) { .vk-innen, .halt .strich, .plus, .kw-taten a, .kw-ziele a, .kw-linien path { transition: none; } }
.abschnitt p, .kk .inhalt p { margin: 0 0 14px; }
.abschnitt p:last-child, .kk .inhalt p:last-child { margin-bottom: 0; }

/* Eigene Seiten der Behandlungen, die Übersicht und die Fehlerseite (gebaut von werkzeuge/behandlungsseiten.mjs) */
.pfad a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--grau); }
.pfad a:hover { color: var(--tinte); }
.vorweg .seite-eck { margin: 12px 0 0; }
.seite-wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.whatsapp-weg { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinte); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.behandlung-blatt { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.behandlung-blatt.ohne-film { grid-template-columns: 1fr; }
.behandlung-blatt .blatt-film { position: sticky; top: 96px; height: auto; aspect-ratio: 9 / 16; }
.behandlung-blatt .blatt-text { padding: 0; }
.behandlung-blatt .blatt-text h2 { margin: 36px 0 12px; padding-top: 16px; box-shadow: 0 -1px 0 var(--linie); font-size: 17px; font-weight: 600; font-stretch: 108%; }
.behandlung-blatt .blatt-text > :first-child { margin-top: 0; }
.eeat-hinweis { margin-top: 72px; padding-top: 16px; max-width: 68ch; box-shadow: 0 -1px 0 var(--linie); }
.eeat-hinweis h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; font-stretch: 108%; }
.eeat-hinweis p { color: var(--grau); max-width: 60ch; }
.faq { margin-top: 72px; padding-top: 16px; max-width: 68ch; box-shadow: 0 -1px 0 var(--linie); }
.faq h2 { margin: 0 0 16px; font-size: 24px; font-weight: 500; font-stretch: 108%; }
.faq-punkt { box-shadow: 0 -1px 0 var(--linie); }
.faq-punkt:last-child { box-shadow: 0 -1px 0 var(--linie), 0 1px 0 var(--linie); }
.faq-punkt summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 14px 0; cursor: pointer; font-weight: 500; list-style: none; }
.faq-punkt summary::-webkit-details-marker { display: none; }
.faq-punkt summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--grau); }
.faq-punkt[open] summary::after { content: "–"; color: var(--tinte); }
.faq-antwort { padding: 0 0 18px; color: var(--grau); max-width: 58ch; }
.faq-antwort p { margin: 0; }
.weitere { margin-top: 96px; padding-top: 16px; box-shadow: 0 -1px 0 var(--linie); }
.weitere h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.weitere ul, .weitere-wege, .b-uebersicht { list-style: none; margin: 0; padding: 0; }
.weitere ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.weitere a, .weitere-wege a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinte); }
.b-uebersicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 40px; }
.b-karte { display: grid; gap: 6px; padding: 20px 0; min-height: 44px; box-shadow: 0 -1px 0 var(--linie); color: var(--tinte); text-decoration: none; }
.b-karte .name { font-size: 21px; font-weight: 500; }
.b-karte .satz { color: var(--grau); }
.b-karte .preis { font-variant-numeric: tabular-nums; }
.b-karte .mehr { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.b-karte:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.termin-cta { margin-top: 20px; }
@media (max-width: 860px) {
  .behandlung-blatt { grid-template-columns: 1fr; gap: 28px; }
  .behandlung-blatt .blatt-film { position: static; width: min(100%, 360px); }
}
