/* Entwurf A „Wo stehen Sie gerade?“ – Lotse und Leistung. Kalk, echtes Einsatzfoto, Grundriss als Aha. */
.r-a { --grund: var(--kalk); }

/* ---------- Kopf der Seite: Foto + Lage ---------- */
.a-held { display: grid; grid-template-columns: minmax(0, 1fr); }
.a-held-bild { margin: 0; position: relative; background: var(--kalk-dunkel); }
.a-held-bild img { width: 100%; height: 176px; object-fit: cover; object-position: 50% 20%; }
.a-held-bild figcaption { display: none; }
.a-held-text { padding: 24px var(--rand) 40px; }
.a-held h1 { color: var(--tiefblau); }
.a-held h1 .h1-klein { color: var(--graphit); }
.a-unterzeile { margin-top: 16px; max-width: 34em; }
.a-held .tel-block { margin-top: 16px; }
.a-lagen { margin-top: 24px; }
.a-lagen a { min-height: 72px; }

/* Leistungsseite: mobil wie die Startseite – Fotostreifen, dann Text und Telefon */
.a-held-leistung .a-held-bild img { object-position: 50% 60%; }
.a-held-leistung .a-held-text { padding-top: 4px; }
.a-held-leistung h1 { margin-top: 4px; hyphens: manual; }
.a-held-leistung .tel-block { margin-top: 20px; }
.a-held-leistung .a-unterzeile { margin-top: 20px; }
.a-lage-titel { margin-top: 28px; }
.a-zeichen { margin-top: 8px; }
.a-zeichen li { padding: 10px 0; }

@media (min-width: 1024px) {
  .a-held { grid-template-columns: minmax(var(--rand), 1fr) minmax(0, 600px) 50%; min-height: min(calc(100svh - var(--kopf) - 38px), 840px); }
  .a-held-bild { grid-column: 3; grid-row: 1; order: 0; }
  .a-held-bild picture { position: absolute; inset: 0; }
  .a-held-bild img { height: 100%; object-position: 84% 50%; }
  .a-held-leistung .a-held-bild img { object-position: 50% 50%; }
  .a-held-bild figcaption, .a-held-leistung .a-held-bild figcaption { display: block; position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px 24px; background: var(--tiefblau); color: var(--kalk); font-size: 14px; }
  .a-held-text, .a-held-leistung .a-held-text { grid-column: 2; grid-row: 1; order: 0; align-self: center; padding: 48px 56px 48px 0; }
  .a-lagen a { min-height: 76px; }
}

/* ---------- Erste Hilfe und Anruf ---------- */
.a-hilfe { background: var(--weiss); }
.a-hilfe .einleitung { margin-top: 4px; }
.a-anruf { margin-top: 48px; }
.a-anruf > div:first-child { padding-top: 24px; border-top: 3px solid var(--tiefblau); }
.a-anruf .tel-block { margin-top: 4px; }
.a-anruf p.g16 { margin-top: 12px; }
.a-anruf h3 { margin-bottom: 8px; }
.a-fragen { margin-bottom: 12px; }
.a-fragen li { padding: 8px 0; border-top: 1px solid var(--linie); font-weight: 600; }
.a-fragen li:last-child { border-bottom: 1px solid var(--linie); }
@media (min-width: 1024px) { .a-anruf > div:last-child { padding-top: 24px; } }

/* ---------- Aha: Bühne mit Zuständen (seite.js setzt data-zustand) ---------- */
.a-aha { background: var(--tiefblau); padding-block: var(--abstand); --buehne-grund: var(--tiefblau); }
.a-aha-hell { background: var(--kalk-dunkel); color: var(--graphit); --buehne-grund: var(--kalk-dunkel); }
.a-aha-kopf { margin-bottom: 8px; }
.a-aha-raster { display: grid; grid-template-columns: minmax(0, 1fr); }
.a-buehne { position: sticky; top: var(--kopf); z-index: 2; background: var(--buehne-grund); padding-block: 12px 8px; }
.a-buehne svg { width: 100%; height: auto; max-height: 38svh; }
.a-beispiel { margin-top: 6px; color: var(--blau-leise); }
.a-aha-hell .a-beispiel { color: var(--graphit-leise); }
.a-schritte { position: relative; z-index: 1; }
.a-schritt { min-height: 36svh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.a-schritt:last-child { min-height: 30svh; }
.a-schritt p { max-width: 24em; }
.still { display: none; }
.a-plan-liste { margin-top: 12px; }
.a-plan-liste a { display: flex; align-items: center; min-height: 48px; font-weight: 600; }

.a-buehne .p-nass { opacity: 0; transform: scale(.12); transform-box: view-box; transform-origin: 152px 52px;
  transition: opacity var(--dauer) var(--kurve), transform var(--dauer) var(--kurve); }
.a-buehne[data-zustand="2"] .p-nass { opacity: 1; transform: none; }
.a-buehne[data-zustand="3"] .p-nass { opacity: 0; transform: none; }
.a-buehne .p-fleck { transition: opacity var(--dauer) var(--kurve); }
.a-buehne[data-zustand="3"] .p-fleck { opacity: 0; }
.a-buehne .p-umriss, .a-buehne .p-strich, .a-buehne .p-marke { opacity: 0; transition: opacity var(--dauer) var(--kurve); }
.a-buehne[data-zustand="3"] .p-umriss, .a-buehne[data-zustand="3"] .p-strich, .a-buehne[data-zustand="3"] .p-marke { opacity: 1; }

/* Bodenschnitt */
.a-buehne .s-wasser { opacity: 0; transform: scaleX(.2); transform-box: fill-box; transform-origin: 40% 50%;
  transition: opacity var(--dauer) var(--kurve), transform var(--dauer) var(--kurve); }
.a-buehne[data-zustand="2"] .s-wasser, .a-buehne[data-zustand="3"] .s-wasser { opacity: 1; transform: none; }
.a-buehne .s-loch, .a-buehne .s-zu { opacity: 0; transition: opacity var(--dauer) var(--kurve); }
.a-buehne[data-zustand="3"] .s-loch, .a-buehne[data-zustand="4"] .s-zu { opacity: 1; }
.a-aha-hell .s-loch { fill: var(--kalk-dunkel); }

@media (min-width: 1024px) {
  .a-aha-raster { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .a-buehne { grid-column: 1 / span 7; grid-row: 1; align-self: start; top: calc(var(--kopf) + 48px); padding: 0; }
  .a-buehne svg { max-height: 62vh; }
  .a-schritte { grid-column: 9 / span 4; grid-row: 1; }
  .a-schritt { min-height: 62vh; }
  .a-schritt:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 64px; }
}

/* ---------- Leistungen, Betrieb ---------- */
.a-foto-klein { margin-top: 24px; max-width: 420px; }
.a-wer { background: var(--kalk-dunkel); }
.a-markus { max-width: 240px; }
.a-markus img { width: 100%; height: auto; }
.a-markus figcaption { margin-top: 8px; }
.a-zitat { margin-top: 24px; }
.a-zitat p { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--tiefblau); }
.a-zitat footer { margin-top: 6px; }
.a-google { margin-top: 24px; }
@media (min-width: 1024px) { .a-markus { max-width: 380px; } }

/* ---------- Leistungsseite ---------- */
.a-aufbau { background: var(--kalk); }
.a-schluss { background: var(--tiefblau); }
.a-schluss .knopf { margin-top: 16px; }
.a-schluss p { margin-top: 8px; max-width: 40em; }

/* ---------- Formular ---------- */
.a-melden { background: var(--weiss); }

/* mobil kürzer: Fragen als Fließzeile, Markus klein neben der Zeile, Foto schmaler */
@media (max-width: 1023px) {
  .a-fragen { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .a-fragen li, .a-fragen li:last-child { padding: 0; border: 0; }
  .a-fragen li:not(:last-child)::after { content: " ·"; font-weight: 400; }
  .a-markus { display: flex; align-items: center; gap: 16px; max-width: none; }
  .a-markus picture { flex: none; width: 112px; }
  .a-markus figcaption { margin-top: 0; }
  .a-foto-klein { max-width: 280px; }
  .a-anruf { margin-top: 32px; }
}
