/* Kontaktseite in der Bauweise "Eine Linie" (Umbau 17.11.2026, Durchsicht Chris, Datei 12 im Drive).
   Chris: "Ich wuerde da wirklich nur das Kontaktformular machen. Und das wirklich schoen in Szene gesetzt, dass es einladend wirkt."
   Aufbau: kurzer Kopf, Formular als Mittelpunkt (am Rechner mit Foto daneben, am Telefon Formular zuerst), Terminbuchung
   (nur mit ?termin=... sichtbar, assets/buchung.js), "Unsere Kommunikation" mit zwei Karten, Schluss.
   Jeder Selektor beginnt mit .el. Formular-Grundregeln (.form, .af-*, .bu-*) kommen aus pages.css, hier nur die Inszenierung.
   Klassen, IDs, Namen und data-Attribute, die anfrage.js, buchung.js und einwilligung.js suchen, werden nicht umbenannt. */

/* Kopf: ohne Foto, ruhig, Kopfzeile liegt darueber */
.el .kt-kopf { padding: calc(var(--navh) + 80px) 0 40px; }
.el .kt-kopf .spalte { display: grid; gap: 16px; justify-items: start; max-width: 720px; }
.el .kt-kopf h1 { font: 400 clamp(2.75rem, 6vw, 4.5rem)/.96 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.el .kt-kopf .einl { font-size: 19px; }
@media (max-width: 767px) {
  .el .kt-kopf { padding: calc(var(--navh) + env(safe-area-inset-top, 0px) + 40px) 0 32px; }
  .el .kt-kopf .einl { font-size: 17px; }
}

/* Buehne: Formular links, Foto rechts. Unter 1000 px eine Spalte, Formular zuerst */
.el .kt-buehne { padding: 0 0 96px; }
.el .kt-raster { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.el .kt-bild { align-self: start; position: sticky; top: calc(var(--navh) + env(safe-area-inset-top, 0px) + 32px); aspect-ratio: 2 / 3; }
.el .kt-bild > img { object-position: 50% 30%; }
@media (max-width: 999px) {
  .el .kt-raster { grid-template-columns: 1fr; gap: 32px; }
  .el .kt-bild { position: relative; top: 0; aspect-ratio: 4 / 5; }
  .el .kt-bild > img { object-position: 50% 30%; }
}
@media (max-width: 767px) { .el .kt-buehne { padding-bottom: 64px; } }

/* Die Formularkarte: weiss auf Greige (dunkel: Flaeche auf Grund), weicher Schatten, viel Luft */
.el .kt-karte { max-width: none; display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(23 25 31 / .04), 0 24px 60px -32px rgb(23 25 31 / .22); }
:root[data-theme="dark"] .el .kt-karte { box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -32px rgb(0 0 0 / .7); }
.el .kt-karte-kopf { display: grid; gap: 12px; justify-items: start; }
.el .kt-karte-kopf .ze { margin: 0; }
.el .kt-karte-kopf .fl { margin: 0; }
@media (max-width: 767px) { .el .kt-karte { border-radius: 24px; gap: 24px; } }

/* Felder: auf der weissen Karte stehen sie auf dem Seitengrund, Fokus in Kupfer */
.el .kt-karte .form { gap: 20px; max-width: none; }
.el .kt-karte .form label { font-size: 15px; }
.el .kt-karte .form input, .el .kt-karte .form textarea, .el .kt-karte .form select { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 180ms var(--kurve), background 180ms var(--kurve); }
.el .kt-karte .form input:hover, .el .kt-karte .form textarea:hover, .el .kt-karte .form select:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 30%, transparent); }
.el .kt-karte .form input:focus, .el .kt-karte .form textarea:focus, .el .kt-karte .form select:focus { background: var(--surface); box-shadow: inset 0 0 0 2px var(--cu-text); }
.el .kt-karte .form textarea { min-height: 128px; resize: vertical; }
.el .kt-karte .bu-check input { flex: none; background: none; box-shadow: none; min-height: 0; }
/* Zweizeilige Beschriftung (Musikbeginn, Quelle): Felder einer Reihe stehen trotzdem auf einer Linie */
@media (min-width: 640px) { .el .kt-karte .form .row { align-items: end; } }
.el .kt-karte .bu-check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cu-text); text-underline-offset: 3px; }
.el .anfrage select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cu-text) 50%), linear-gradient(135deg, var(--cu-text) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.el .anfrage [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B3261E; }
:root[data-theme="dark"] .el .anfrage [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #F2B8B5; }
/* Fehler sichtbar (Pruefung Anfragewege 23.11.2026, F1): Die Feldregeln oben (0,3,1 bis 0,4,1) schlugen die rote Markierung.
   Diese Regeln stehen danach und wiegen mindestens gleich viel, rot bleibt auch bei Fokus und Hover. Text je Feld aus anfrage.js */
.el .kt-karte .form input[aria-invalid="true"], .el .kt-karte .form select[aria-invalid="true"], .el .kt-karte .form textarea[aria-invalid="true"],
.el .kt-karte .form input[aria-invalid="true"]:hover, .el .kt-karte .form select[aria-invalid="true"]:hover, .el .kt-karte .form textarea[aria-invalid="true"]:hover,
.el .kt-karte .form input[aria-invalid="true"]:focus, .el .kt-karte .form select[aria-invalid="true"]:focus, .el .kt-karte .form textarea[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 2px #B3261E; }
:root[data-theme="dark"] .el .kt-karte .form input[aria-invalid="true"], :root[data-theme="dark"] .el .kt-karte .form select[aria-invalid="true"], :root[data-theme="dark"] .el .kt-karte .form textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #F2B8B5; }
.el .kt-karte .bu-check input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; box-shadow: none; }
:root[data-theme="dark"] .el .kt-karte .bu-check input[aria-invalid="true"] { outline-color: #F2B8B5; }
.el .kt-karte .af-feldfehler { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: #B3261E; }
:root[data-theme="dark"] .el .kt-karte .af-feldfehler { color: #F2B8B5; }
/* Turnstile (23.11.2026): Der Behaelter nimmt keinen Platz im Formularraster ein, sonst kaeme eine Rasterluecke von 20 px dazu.
   Nur wenn Cloudflare doch eine Bestaetigung verlangt (before-interactive-callback in anfrage.js), steht er sichtbar im Fluss */
.el .cs-ts { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.el .cs-ts.cs-ts-sichtbar { position: static; width: auto; height: auto; overflow: visible; }
/* Laendervorwahl mit 16 px (F4), darunter zoomt iOS Safari beim Antippen hinein */
.el .kt-karte .af-tel select { font-size: 16px; }

/* Anlass als Kapseln wie die Regionenwahl: gewaehlt in Schriftfarbe, Kupfer bleibt dem Knopf vorbehalten */
.el .kt-karte .af-wahl { gap: 8px; padding-bottom: 8px; }
.el .kt-karte .af-wahl button { min-height: 44px; padding: 0 18px; background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background 180ms var(--kurve), box-shadow 180ms var(--kurve); }
.el .kt-karte .af-wahl button:hover { box-shadow: inset 0 0 0 1px var(--cu-deep); }
.el .kt-karte .af-wahl button[aria-checked="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

/* Experiment e2, Variante B (kurzes Formular, 23.11.2026): anfrage.js ordnet um und setzt .af-kurz-bereit. Bis dahin bleibt das
   Formular unsichtbar, damit A nicht kurz aufblitzt; laedt anfrage.js nicht, erscheint es nach 1,2 s trotzdem. Ohne
   html[data-variante="B"] wirkt hier nichts. */
html[data-experiment="e2"][data-variante="B"] .el #anfrageForm:not(.af-kurz-bereit) { opacity: 0; animation: af-zeigen 0s linear 1.2s forwards; }
@keyframes af-zeigen { to { opacity: 1; } }
.el .kt-karte .af-mehr-knopf { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 600 15px/1.2 var(--sans); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 180ms var(--kurve); }
.el .kt-karte .af-mehr-knopf:hover { box-shadow: inset 0 0 0 1px var(--cu-deep); }
.el .kt-karte .af-mehr-knopf:focus-visible { outline: 2px solid var(--cu-text); outline-offset: 2px; }
.el .kt-karte .af-mehr-knopf svg { width: 18px; height: 18px; fill: none; stroke: var(--cu-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--kurve); }
.el .kt-karte .af-mehr-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.el .kt-karte .af-mehr { display: grid; gap: 20px; }
.el .kt-karte .af-mehr[hidden], .el .kt-karte .af-mehr [hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .el .kt-karte .af-mehr-knopf, .el .kt-karte .af-mehr-knopf svg { transition: none; } }

/* Experiment e2, Variante C (mehrseitiges Formular, 01.12.2026, Vorlage Drive Performance/Entwuerfe/VORSCHAU Mehrseitiges
   Kontaktformular.html): anfrage.js baut die Schritte und setzt .af-c. Ohne html[data-variante="C"] und ohne .af-c wirkt hier
   nichts, A bleibt wie es ist. Bis die Schritte stehen, bleibt das Formular unsichtbar (hoechstens 1,2 s, dann sichtbar). */
html[data-experiment="e2"][data-variante="C"] .el #anfrageForm:not(.af-c-bereit) { opacity: 0; animation: af-zeigen 0s linear 1.2s forwards; }
.el .kt-karte .form.af-c { gap: 0; }
.el .af-c [hidden], .el .af-c-schritt[hidden] { display: none !important; }
.el .af-c-kopf { display: grid; gap: 12px; }
.el .af-c-fortschritt { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 44px; }
.el .af-c-zurueck { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 10px 0 4px; margin-left: -4px; border: 0; border-radius: 999px; background: none; color: var(--cu-text); font: 600 15px/1 var(--sans); cursor: pointer; }
.el .af-c-zurueck svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.el .af-c-zurueck.af-c-weg { visibility: hidden; }
.el .af-c-zurueck:focus-visible { outline: 2px solid var(--cu-text); outline-offset: 2px; }
.el .af-c-stand { display: grid; gap: 8px; justify-items: end; }
.el .af-c-stand-text { font: 600 13px/1.2 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.el .af-c-bahn { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.el .af-c-bahn i { display: block; height: 100%; width: 14%; border-radius: 3px; background: linear-gradient(90deg, var(--cu-45), var(--cu-gl) 45%, var(--cu-hi) 75%, var(--cu)); transition: width .4s var(--kurve); }
/* Bisherige Antworten: Kapsel 34 px, die Tippflaeche reicht unsichtbar auf 44 px */
.el .af-c-bisher { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 0; padding: 0; list-style: none; }
.el .af-c-bisher:empty { display: none; }
.el .af-c-bisher button { position: relative; min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.2 var(--sans); color: var(--text); cursor: pointer; }
.el .af-c-bisher button::after { content: ""; position: absolute; inset: -5px 0; }
.el .af-c-bisher button:focus-visible { outline: 2px solid var(--cu-text); outline-offset: 2px; }

.el .af-c-schritt { display: grid; gap: 18px; min-width: 0; padding-top: 24px; }
.el .af-c-schritt.rein { animation: af-c-rein .32s var(--kurve) both; }
.el .af-c-schritt.rueck { animation: af-c-rueck .32s var(--kurve) both; }
@keyframes af-c-rein { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes af-c-rueck { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.el .af-c-frage { margin: 0; font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.04 var(--serif); letter-spacing: -.015em; outline: none; text-wrap: balance; }
.el .af-c-hilfe { margin: -8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.el .af-c-frei { font-weight: 500; color: var(--muted); }

/* Kacheln: echte Radioknoepfe, ganze Flaeche tippbar */
.el .af-c-kacheln { display: grid; gap: 10px; }
.el .af-c-kacheln.zwei { grid-template-columns: 1fr 1fr; }
.el .kt-karte .form label.af-c-kachel { position: relative; display: grid; gap: 2px; align-content: center; min-height: 64px; padding: 14px 16px 14px 48px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; cursor: pointer; transition: box-shadow .18s var(--kurve), background .18s var(--kurve), transform .12s var(--kurve); -webkit-tap-highlight-color: transparent; }
.el .af-c-kacheln.zwei label.af-c-kachel { padding: 16px; min-height: 96px; align-content: end; }
.el .kt-karte .form .af-c-kachel input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; box-shadow: none; }
.el .af-c-kachel::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 35%, transparent); transition: box-shadow .18s var(--kurve), background .18s var(--kurve); }
.el .af-c-kacheln.zwei .af-c-kachel::before { top: 14px; margin-top: 0; left: auto; right: 14px; }
.el .af-c-kachel:active { transform: scale(.98); }
.el .kt-karte .form label.af-c-kachel:has(input:checked) { background: hsl(22 70% 55% / .10); box-shadow: inset 0 0 0 2px var(--cu-text); }
:root[data-theme="dark"] .el .kt-karte .form label.af-c-kachel:has(input:checked) { background: hsl(22 70% 60% / .14); }
.el .af-c-kachel:has(input:checked)::before { background: radial-gradient(circle, var(--cu-text) 0 5px, transparent 5.5px); box-shadow: inset 0 0 0 2px var(--cu-text); }
.el .af-c-kachel:has(input:focus-visible) { outline: 2px solid var(--cu-text); outline-offset: 2px; }
.el .af-c-kacheln.eng { gap: 8px; }
.el .kt-karte .form .af-c-kacheln.eng label.af-c-kachel { min-height: 52px; padding-top: 10px; padding-bottom: 10px; }
.el .af-c-titel { font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--text); }
.el .af-c-sub { font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* Gaeste: Schnellwahl und Fotobox Ja oder Nein */
.el .af-c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.el .af-c-chips button { min-height: 44px; min-width: 56px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; }
.el .af-c-chips button[aria-pressed="true"] { background: hsl(22 70% 55% / .10); box-shadow: inset 0 0 0 2px var(--cu-text); }
.el .af-c-chips button:focus-visible { outline: 2px solid var(--cu-text); outline-offset: 2px; }
.el .af-c-trenner { height: 1px; background: var(--line); margin: 4px 0; }
.el .af-c-feld { display: grid; gap: 8px; }
.el .af-c-feldtitel { font-weight: 600; font-size: 15px; }
.el .af-c-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.el .kt-karte .form .af-c-segment label { position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; }
.el .kt-karte .form .af-c-segment input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; box-shadow: none; }
.el .kt-karte .form .af-c-segment label:has(input:checked) { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .12), inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .el .kt-karte .form .af-c-segment label:has(input:checked) { background: #2A3036; }
.el .af-c-segment label:has(input:focus-visible) { outline: 2px solid var(--cu-text); outline-offset: 2px; }

/* Knoepfe je Schritt */
.el .af-c-aktion { display: grid; gap: 10px; }
.el .anfrage .af-c-aktion .btn { margin-top: 4px; }
.el .af-c-leise { min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--cu-text); font: 600 15px/1 var(--sans); cursor: pointer; justify-self: start; padding: 0 12px; margin-left: -12px; }
.el .af-c-leise:focus-visible { outline: 2px solid var(--cu-text); outline-offset: 2px; }
.el .af-c-ruhe { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.el .af-c-schritt[data-schritt="kontakt"] .bu-check { margin-top: 2px; }
/* Zwischentitel im Kontaktschritt: kleine Kupfer-Grossbuchstaben, darueber eine Haarlinie (nicht beim ersten) */
.el .af-c-gruppe { margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cu-text); }
.el .af-c-frage + .af-c-gruppe { margin-top: 0; padding-top: 0; border-top: 0; }

/* Danke mit Eckdaten */
.el .af-c-eck { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; padding: 16px; border-radius: 18px; background: var(--surface); }
.el .af-c-eck dt { color: var(--muted); }
.el .af-c-eck dd { margin: 0; font-weight: 600; }
@media (max-width: 767px) { .el .kt-karte:has(.af-c) { padding: 20px 18px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .el .af-c-schritt.rein, .el .af-c-schritt.rueck { animation: none; }
  .el .af-c-bahn i, .el .af-c-kachel, .el .af-c-kachel::before { transition: none; }
}

/* Senden: Kupferknopf, gross genug, eigene Zeile */
.el .anfrage .btn { justify-self: start; min-width: 220px; margin-top: 8px; cursor: pointer; border: 0; }
@media (max-width: 767px) { .el .anfrage .btn { justify-self: stretch; } }
.el .kt-karte .af-ok { padding: 32px; border-radius: 20px; }
.el .kt-karte .af-ok h3 { font: 400 clamp(1.75rem, 3.2vw, 2.25rem)/1.05 var(--serif); }

/* Terminbuchung (nur sichtbar mit ?termin=... oder Vorgang): gleiche Karte */
.el .kt-buchen .buchung { max-width: 52rem; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -32px rgb(23 25 31 / .22); }
.el .kt-buchen .bu-ersatz { display: grid; gap: 20px; justify-items: start; }
.el .kt-buchen .bu-ersatz[hidden], .el .kt-buchen [hidden] { display: none; }
.el .kt-buchen .bu-ersatz p { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 640px; }

/* Unsere Kommunikation: zwei Karten nebeneinander */
.el .kt-gespraeche { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.el .kt-gespraech { display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.el .kt-gespraech .kz { gap: 16px; }
.el .kt-gespraech .dauer { font: 600 15px/1.3 var(--sans); color: var(--text); }
.el .kt-gespraech .ze { margin-top: 4px; }
.el .kt-gespraech .fl { margin: 0; }
.el .kt-gespraech .aktionen { margin-top: 8px; }
@media (max-width: 899px) { .el .kt-gespraeche { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .el .kt-karte .form input, .el .kt-karte .form textarea, .el .kt-karte .form select, .el .kt-karte .af-wahl button { transition: none; }
}
