/* ============================================================
   BG-Pruefungen Tiedermann — Zusammenfuehrung A + B
   Dunkler Hero und Fotoführung aus A, warmes Papierweiss,
   Normmarker und Protokollrhythmus aus B. Runde Formen,
   weiche Schatten, mehr Luft.
   ============================================================ */
/* ============================================================ Schrift
   Sora liegt selbst auf dem Server - kein Google-CDN, damit beim Aufruf
   keine Verbindung zu Dritten entsteht. Gebraucht wird nur der fette
   Schnitt: die Anzeigeschrift steht ausschliesslich auf 700.
   font-display: swap zeigt sofort die Systemschrift und tauscht sie aus,
   sobald die Datei da ist - die Seite ist nie leer. */
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sora-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/sora-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---- Farben ---- */
  --bg:            #FBFAF8;   /* warmes Papierweiss */
  --surface:       #FFFFFF;
  --surface-warm:  #F4F1EC;
  --surface-dark:  #12141A;
  --surface-dark-2:#1A1D25;
  --ink:           #14161B;   /* 16,9:1 auf --bg */
  --ink-2:         #525862;   /*  7,6:1 auf --bg */
  --ink-3:         #8A8F98;   /*  5,7:1 auf Anthrazit - nur auf dunklem Grund */
  --ink-leise:     #70747B;   /*  4,7:1 auf Weiss - dieselbe Rolle auf hellem Grund */
  --ink-invert:    #FFFFFF;
  --ink-invert-2:  #B9BEC6;
  --accent:        #FF8F0E;   /*  8,4:1 auf Anthrazit - Flaeche und Text auf Dunkel */
  --accent-text:   #B84A05;   /*  5,2:1 auf Weiss - Textvariante */
  --accent-ink:    #14161B;   /* Text auf Orangeflaeche */
  --accent-weich:  #FFF4E6;   /* getoente Flaeche fuer Marker */
  --line:          #E6E2DC;
  --line-dark:     #2A2E38;
  --focus:         #0B63CE;

  /* ---- Typografie ---- */
  --font-display: Sora, "Segoe UI", system-ui, sans-serif;   /* siehe @font-face unten */
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --step--2: .75rem;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1:  clamp(1.15rem, 1.06rem + .38vw, 1.4rem);
  --step-2:  clamp(1.4rem, 1.24rem + .7vw, 1.9rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.3vw, 2.7rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.6vw, 4.2rem);

  /* ---- Raster und Abstand ---- */
  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 5.5rem;
  --space-10: 7rem;
  --section-y: var(--space-8);
  --gutter: 1.25rem;
  --measure: 66ch;
  --wrap: 1180px;

  /* ---- Form: rund und weich ---- */
  --radius-s:    10px;
  --radius-m:    18px;
  --radius-l:    28px;
  --radius-xl:   36px;
  --radius-pill: 999px;
  --schatten-1: 0 1px 2px rgba(20,22,27,.04), 0 6px 16px rgba(20,22,27,.05);
  --schatten-2: 0 2px 4px rgba(20,22,27,.05), 0 16px 40px rgba(20,22,27,.10);
  --schatten-dunkel: 0 20px 60px rgba(18,20,26,.28);
  --border: 1px solid var(--line);
}

@media (min-width: 640px)  { :root { --gutter: 2rem;   --section-y: var(--space-9); } }
@media (min-width: 1024px) { :root { --gutter: 2.5rem; --section-y: var(--space-10); } }

/* ============================================================ Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--space-4); text-wrap: balance; }
/* Deutsche Komposita sind lang. Auf schmalen Geraeten duerfen sie in
   Ueberschriften getrennt werden - auf dem zusammengeklappten Foldable
   ragte "Datenschutzerklaerung" sonst ueber den Bildschirmrand hinaus.
   Auf breiteren Anzeigen bleibt die Trennung aus. */
@media (max-width: 400px) {
  h1, h2, h3, h4 { -webkit-hyphens: auto; hyphens: auto; }
}
h1 { font-size: var(--step-4); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--step-3); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h4 { font-size: var(--step-0); font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 var(--space-4); max-width: var(--measure); }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ink-invert);
  padding: .75rem 1.25rem; border-radius: var(--radius-pill);
}
.skip:focus { top: .75rem; }

/* ---- Normmarker: aus B uebernommen, jetzt als weiche Pille ---- */
.marker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.35;
  color: var(--accent-text); background: var(--accent-weich);
  padding: .5rem 1rem; border-radius: var(--radius-l);
  margin: 0 0 var(--space-4);
}
/* Einzeilige Marker bleiben eine Pille, mehrzeilige bekommen weiche Ecken
   statt eines gestreckten Ovals. */
.marker:not(:has(br)) { border-radius: var(--radius-pill); }
.marker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.on-dark .marker { color: var(--accent); background: rgba(255,143,14,.14); }
/* "Betriebssicherheitsverordnung" ist ein Wort ohne Trennstelle und damit
   breiter als ein 320px-Bildschirm. Der Marker darf es umbrechen - nach
   Moeglichkeit an einer Trennstelle -, statt die ganze Seite in die Breite
   zu ziehen. Groesse und Fettung bleiben auf jedem Geraet erhalten. */
.marker { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }

.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.6; max-width: 56ch; }
.on-dark .lead { color: var(--ink-invert-2); }

/* ============================================================ Schaltflaechen: rund */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  padding: .95rem 1.7rem; min-height: 52px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  text-decoration: none; cursor: pointer;
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(255,143,14,.35);
}
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.on-dark .btn--ghost { border-color: rgba(255,255,255,.28); color: var(--ink-invert); background: rgba(255,255,255,.06); }

/* ============================================================ Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-4); min-height: 78px;
  max-width: var(--wrap); margin-inline: auto;
}
.logo { display: inline-block; line-height: 0; }
.logo img { width: 148px; }
.nav__toggle {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 50px; height: 50px; padding: 0 13px; background: var(--surface);
  border: var(--border); border-radius: var(--radius-pill); cursor: pointer;
  box-shadow: var(--schatten-1);
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.nav__toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Das Menue klappt als Feld unter der Kopfzeile auf und liegt ueber dem
   Inhalt. Es wird absolut gesetzt, damit zweierlei nicht passiert: die
   Kopfzeile waechst nicht mehr mit (geoeffnet nahm sie sonst 44% der
   Bildschirmhoehe ein), und die leere Navigation zaehlt nicht mehr als
   Element der Kopfzeile - der Knopf steht dadurch buendig zum Textrand. */
.nav { position: absolute; top: calc(100% + 6px); right: var(--gutter); }
.nav__list { list-style: none; margin: 0; padding: 0; display: none; }
.nav__list.is-open {
  display: flex; flex-wrap: wrap; gap: 2px;
  width: min(17.5rem, calc(100vw - 2 * var(--gutter)));
  /* Auf niedrigen Fenstern (Querformat) rollt das Feld, statt aus dem
     Bild zu laufen. */
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-2);
  background: var(--surface); border: var(--border);
  border-radius: var(--radius-l); box-shadow: var(--schatten-2);
}
.nav__list li { flex: 1 0 100%; }
.nav__list a {
  display: flex; align-items: center; min-height: 44px;
  padding: 0 .9rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
  border-radius: var(--radius-pill); white-space: nowrap;
}
.nav__list a:hover { background: var(--surface-warm); color: var(--accent-text); }
/* Impressum und Datenschutz sind Nebenwege: kleiner, leiser und zu zweit
   in einer Zeile. Das spart eine volle Zeile Hoehe. */
.nav__list li.nav__neben { flex: 0 1 auto; margin-top: var(--space-2); }
.nav__list .nav__neben a {
  min-height: 36px; padding: 0 .65rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step--2); color: var(--ink-2);
}
.header-cta { display: none; }

@media (min-width: 1100px) {
  .nav { position: static; margin-left: auto; }
  .nav__toggle { display: none; }
  /* Hier ist das Menue kein aufklappendes Feld mehr, sondern eine Pille in
     der Zeile. Alles, was das mobile Feld ausmacht, wird zurueckgenommen. */
  .nav__list, .nav__list.is-open {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px; align-items: center;
    width: auto; max-height: none; overflow: visible;
    background: var(--surface); border: var(--border); border-radius: var(--radius-pill);
    padding: .3rem; box-shadow: var(--schatten-1);
  }
  .nav__list li, .nav__list li.nav__neben { flex: 0 0 auto; margin-top: 0; }
  .nav__list a { min-height: 0; padding: .55rem .8rem; }
  /* In der Zeile stehen alle Punkte gleichwertig - die Abstufung des
     mobilen Feldes waere hier nur unruhig. */
  .nav__list .nav__neben a {
    min-height: 0; padding: .55rem .8rem;
    font-family: var(--font-display); font-weight: 700;
    font-size: var(--step--1); color: var(--ink);
  }
  /* Deutlicher Abstand zum Kontakt-Knopf, sonst wirken Pille und Knopf
     wie ein einziges gedraengtes Element. */
  .header-cta {
    display: inline-flex; margin-left: var(--space-6);
    /* Kompakter als die Knoepfe im Inhalt: die Kopfzeile soll ruhig bleiben. */
    padding: .6rem 1.15rem; min-height: 42px; font-size: var(--step--1);
  }
  .header-cta svg { width: .9em; height: .9em; }
  .logo img { width: 132px; }
}

/* Ab hier wird es grosszuegig: die Kopfzeile darf breiter laufen als der
   Textbereich, damit Navigation und Knopf nie aneinanderstossen. */
@media (min-width: 1280px) {
  .site-header__inner { max-width: 1320px; }
  .nav__list a { padding: .55rem 1rem; }
  .header-cta { margin-left: var(--space-7); }
}

/* ============================================================ Dunkle Flaechen */
.on-dark { color: var(--ink-invert); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--ink-invert); }
.on-dark p { color: var(--ink-invert-2); }
.on-dark a { color: var(--accent); }

/* ============================================================ Hero
   Dunkle Flaeche aus A, aber als abgerundete Karte statt randlos. */
.hero { padding-inline: var(--gutter); padding-top: var(--space-3); }
.hero__panel {
  position: relative; overflow: hidden;
  max-width: var(--wrap); margin-inline: auto;
  border-radius: var(--radius-l);
  background: var(--surface-dark);
  box-shadow: var(--schatten-dunkel);
  isolation: isolate;
}
@media (min-width: 768px) { .hero__panel { border-radius: var(--radius-xl); } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, var(--surface-dark) 8%, rgba(18,20,26,.82) 52%, rgba(18,20,26,.5) 100%);
}
.hero__inner { padding: var(--space-8) var(--space-5); }
@media (min-width: 768px) { .hero__inner { padding: var(--space-10) var(--space-8); max-width: 44rem; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ============================================================ Sektionen */
.section { padding-block: var(--section-y); }
.section--warm { background: var(--surface-warm); }
.section__head { margin-bottom: var(--space-7); max-width: 44rem; }

/* ---- Leistungen: Protokollrhythmus aus B in weichen Karten aus A ---- */
.services { display: grid; gap: var(--space-5); }
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
  .service:nth-child(1) { grid-column: span 7; }
  .service:nth-child(2) { grid-column: span 5; }
  .service:nth-child(3) { grid-column: span 12; display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8); align-items: center; }
}
.service {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  box-shadow: var(--schatten-1);
}
.service ul { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.service ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: .45rem;
  color: var(--ink-2); font-size: var(--step--1);
}
.service ul li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
/* Symbol und Normmarker stehen auf einer Linie. Ohne gemeinsame Zeile
   rutscht der laengere Marker in schmaleren Karten unter das Symbol. */
.service__kopf {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.service__kopf .service__icon { margin-bottom: 0; }
/* Der Marker darf schrumpfen und seinen Text innerhalb der Pille umbrechen,
   statt als Ganzes in die naechste Zeile zu springen. */
.service__kopf .marker { margin-bottom: 0; min-width: 0; }

/* Symbole wie auf der bestehenden Seite, nur in runder Flaeche */
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex: none;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  margin-bottom: var(--space-4);
  box-shadow: 0 6px 18px rgba(255,143,14,.32);
}
.service__icon svg { width: 26px; height: 26px; fill: currentColor; }
.service__icon img { width: 26px; height: 26px; }

.service__media { border-radius: var(--radius-m); overflow: hidden; }
.service__media--breit { margin-top: var(--space-5); }
.service__media--breit img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service__media img { width: 100%; }

/* ---- Kundenfreundlichkeit ---- */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: var(--space-8); }
  .split--media-first { grid-template-columns: .9fr 1.1fr; }
}
.split__media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--schatten-2); }
.split__media img { width: 100%; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.checklist li {
  position: relative; padding: var(--space-4) var(--space-5) var(--space-4) 3.4rem;
  background: var(--surface); border: var(--border); border-radius: var(--radius-m);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); line-height: 1.45;
  box-shadow: var(--schatten-1);
}
.checklist li::before {
  content: ""; position: absolute; left: var(--space-5); top: 50%; margin-top: -9px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  border-radius: 1px; transform: rotate(-45deg);
}

/* ---- Hervorgehobener Satz als dunkle Karte ---- */
.statement-panel {
  max-width: var(--wrap); margin-inline: auto;
  background: var(--surface-dark); color: var(--ink-invert);
  border-radius: var(--radius-l); padding: var(--space-7) var(--space-5);
  box-shadow: var(--schatten-dunkel);
}
@media (min-width: 768px) {
  .statement-panel { border-radius: var(--radius-xl); padding: var(--space-9) var(--space-8); }
}
.statement__lead {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-2); line-height: 1.32; letter-spacing: -.025em;
  color: var(--ink-invert); max-width: 42ch;
}

/* ---- Kontakt als Kachelreihe ---- */
/* Die Kacheln stehen untereinander. Frueher waren es drei nebeneinander -
   Telefon, E-Mail, Anschrift. Seit die Anschrift von der Karte uebernommen
   wird, sind es zwei, und die dritte Spalte blieb leer, waehrend die
   E-Mail-Adresse in den verbliebenen 164 Pixeln umbrach. */
.contact__data { margin: 0; display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .contact__data { gap: var(--space-5); } }
.contact__data > div {
  background: var(--surface); border: var(--border); border-radius: var(--radius-l);
  padding: var(--space-5); box-shadow: var(--schatten-1);
}
.contact__data dt {
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: var(--space-2);
}
.contact__data dd { margin: 0; font-size: var(--step-1); font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }

/* Die Adresse ist 30 Zeichen lang und soll in einer Zeile stehen. Statt
   einer festen Groesse richtet sie sich nach der Breite ihrer Kachel:
   5,6cqi sind knapp unter dem gemessenen Grenzwert von 5,79, ab dem der
   Text anstiesse. Auf breiten Anzeigen begrenzt --step-1 nach oben, damit
   sie nicht groesser wird als die Telefonnummer daneben. */
.contact__data .kontakt-mail { white-space: nowrap; }
@supports (container-type: inline-size) {
  .contact__data > div { container-type: inline-size; }
  .contact__data .kontakt-mail { font-size: min(var(--step-1), 5.6cqi); }
}
/* Ohne Behaeltermasse bleibt nur eine Groesse, die auch auf dem
   schmalsten Geraet noch hineinpasst. */
@supports not (container-type: inline-size) {
  .contact__data .kontakt-mail { font-size: var(--step--2); }
}
.contact__data a { text-decoration: none; color: var(--ink); display: inline-block; padding-block: .45rem; }
.contact__data a:hover { color: var(--accent-text); }
/* Die Mailadresse ist ein einziges langes Wort ohne Trennstelle. Sie darf
   notfalls umbrechen - sonst waechst die Kachel auf schmalen Geraeten
   ueber den Bildschirm hinaus und zieht die ganze Seite in die Breite. */
.contact__data a { overflow-wrap: anywhere; }

/* ============================================================ Fusszeile */
.site-footer {
  background: var(--surface-dark); color: var(--ink-invert-2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-7);
}
.site-footer h2 {
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--space-4);
}
.footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--space-7); } }
.footer__wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2);
  color: var(--ink-invert); letter-spacing: -.03em; margin-bottom: var(--space-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-1); font-size: var(--step--1); }
.site-footer li a { display: inline-block; padding-block: .35rem; }
.site-footer a { color: var(--ink-invert-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__legal {
  margin-top: var(--space-7); padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark); font-size: var(--step--1);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
}

/* ============================================================ Rechtsseiten */
.page-head { padding-block: var(--space-8) var(--space-5); }
.page-head h1 { margin: 0; max-width: 20ch; }

.prose { max-width: 70ch; }
.prose h2 {
  font-size: var(--step-2); margin-top: var(--space-8); margin-bottom: var(--space-4);
  padding-top: var(--space-5); border-top: var(--border);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--step-0); margin-top: var(--space-6); margin-bottom: var(--space-2); }
.prose p { color: var(--ink-2); max-width: none; }
.prose ul { margin: var(--space-4) 0; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; color: var(--ink-2); }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.prose a { overflow-wrap: anywhere; }


/* Schaltflaechen auf dunklem Grund: .on-dark a wuerde sonst die Textfarbe
   ueberschreiben und die Beschriftung in der Flaechenfarbe verschwinden lassen. */
.on-dark .btn--primary { color: var(--accent-ink); }
.on-dark .btn--ghost   { color: var(--ink-invert); }

/* ============================================================ Kontaktformular */
.kontakt-raster { display: grid; gap: var(--space-6); }
/* Rasterfelder duerfen unter ihre Inhaltsbreite schrumpfen. Ohne das
   bestimmt der laengste unteilbare Inhalt die Breite der ganzen Seite. */
.kontakt-raster > * { min-width: 0; }
@media (min-width: 900px) {
  .kontakt-raster { grid-template-columns: 1.15fr .85fr; gap: var(--space-8); align-items: start; }
}

.kontakt-formular {
  background: var(--surface); border: var(--border); border-radius: var(--radius-l);
  padding: var(--space-6); box-shadow: var(--schatten-1);
}
@media (min-width: 640px) { .kontakt-formular { padding: var(--space-7); } }

.feld { margin-bottom: var(--space-5); }
.feld label {
  display: block; margin-bottom: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
}
.feld__zusatz {
  font-family: var(--font-mono); font-weight: 400; font-size: var(--step--2);
  /* Nicht --ink-3: das ist fuer die dunkle Fusszeile gedacht und kaeme hier
     auf Weiss nur auf 3,2:1 - zu wenig fuer 12px grossen Text. */
  color: var(--ink-leise); text-transform: uppercase; letter-spacing: .06em; margin-left: .4rem;
}
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: .85rem 1rem; min-height: 52px;
  transition: border-color var(--dur-kurz, .35s) ease, box-shadow var(--dur-kurz, .35s) ease;
}
.feld textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.feld input:hover, .feld textarea:hover { border-color: var(--line-strong, #D8D2C8); }
.feld input:focus, .feld textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,143,14,.18);
}
.feld input:focus-visible, .feld textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.feld--fehlerhaft input, .feld--fehlerhaft textarea { border-color: #B3261E; }
.feld__fehler {
  margin: var(--space-2) 0 0; font-size: var(--step--1); color: #B3261E; max-width: none;
}

.feld__hinweis {
  margin: var(--space-4) 0 0; font-size: var(--step--1); color: var(--ink-2); max-width: 46ch;
}

/* Koederfeld gegen automatische Einsendungen: unsichtbar, aber nicht
   display:none - manche Skripte ueberspringen sonst ausgeblendete Felder. */
.koeder {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.formular__meldung {
  margin: var(--space-5) 0 0; padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-m); font-size: var(--step--1); max-width: none;
  border: 1px solid var(--line);
}
.formular__meldung--erfolg {
  background: #EAF6EC; border-color: #B7DFC0; color: #1B5E27;
}
.formular__meldung--fehler {
  background: #FCECEA; border-color: #F0C3BE; color: #8C1D18;
}

.kontakt-formular.laeuft button[type=submit] { opacity: .6; pointer-events: none; }

/* ============================================================ Karte
   Zwei-Klick-Loesung: erst auf ausdruecklichen Wunsch wird Google
   kontaktiert. Vorher verlaesst keine Anfrage den Rechner des Besuchers. */
.kontakt-spalte { display: grid; gap: var(--space-4); align-content: start; }

.karte {
  border: var(--border); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--schatten-1);
  background: var(--surface);
}
.karte__platzhalter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); text-align: center;
  min-height: 280px; padding: var(--space-5);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,143,14,.10), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255,143,14,.07), transparent 50%),
    var(--surface-warm);
}
@media (min-width: 900px) { .karte__platzhalter { min-height: 320px; } }
.karte__symbol { width: 38px; height: 38px; color: var(--accent-text); }
.karte__adresse {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); letter-spacing: -.01em; max-width: none;
}
.karte__hinweis {
  margin: var(--space-2) 0 0; max-width: 46ch;
  font-size: var(--step--1); color: var(--ink-2);
}
.karte__rahmen { display: block; width: 100%; height: 300px; border: 0; }
@media (min-width: 900px) { .karte__rahmen { height: 340px; } }
.karte__fuss {
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-top: var(--border); font-size: var(--step--1); color: var(--ink-2);
}
.karte__fuss p { margin: 0; max-width: none; }

/* ---- Typische Maengel: Belege aus der Pruefpraxis ---- */
.maengel-galerie { display: grid; gap: var(--space-5); }
@media (min-width: 720px) {
  .maengel-galerie { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
}
.maengel-karte {
  margin: 0; display: flex; flex-direction: column;
  background: var(--surface); border: var(--border);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--schatten-1);
}
.maengel-karte__bild { position: relative; }
.maengel-karte__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.maengel-karte__tag {
  position: absolute; left: var(--space-4); top: var(--space-4);
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-invert); background: rgba(18,20,26,.82);
  padding: .35rem .7rem; border-radius: var(--radius-pill);
}
.maengel-karte figcaption {
  padding: var(--space-5);
  color: var(--ink-2); font-size: var(--step--1); line-height: 1.55;
}
