/* Webseite Andreas Gerhardt. Eine Datei, keine Abhaengigkeiten, keine externen Schriften.
   Farben als Marken auf :root, im Dunkelmodus neu gesetzt. */

:root {
  --papier:      #faf8f4;
  --papier-tief: #f1ece2;
  --tinte:       #1b1d1c;
  --tinte-leise: #55605c;
  --petrol:      #0d4a45;
  --petrol-hell: #14655e;
  --petrol-tief: #082f2c;
  --ocker:       #9e5a1c;
  --linie:       #ddd6c9;
  --auf-petrol:  #f4f1ea;
  --schatten:    0 1px 2px rgba(27,29,28,.06), 0 6px 20px rgba(27,29,28,.06);
  --rund:        10px;
  --breite:      70ch;
  --breit:       1140px;
  --serif:  Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --papier:      #15181a;
    --papier-tief: #1d2124;
    --tinte:       #e9e6e0;
    --tinte-leise: #a7b0ad;
    --petrol:      #0f5a53;
    --petrol-hell: #1a7a71;
    --petrol-tief: #0a3835;
    --ocker:       #d9903f;
    --linie:       #2c3235;
    --auf-petrol:  #f2efe8;
    --schatten:    0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  }
}
:root[data-thema="dunkel"] {
  --papier:      #15181a;
  --papier-tief: #1d2124;
  --tinte:       #e9e6e0;
  --tinte-leise: #a7b0ad;
  --petrol:      #0f5a53;
  --petrol-hell: #1a7a71;
  --petrol-tief: #0a3835;
  --ocker:       #d9903f;
  --linie:       #2c3235;
  --auf-petrol:  #f2efe8;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-underline-offset: .18em;
}

/* ---------- Grundbausteine ---------- */

.mitte { width: 100%; max-width: var(--breit); margin: 0 auto; padding: 0 16px; }
.text  { max-width: var(--breite); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem); margin: 0 0 .7em; }
h3 { font-size: 1.1rem; margin: 0 0 .45em; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }

p, ul, ol, table, figure { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--petrol-hell); text-decoration-thickness: 1px; }
a:hover { color: var(--ocker); }
:focus-visible { outline: 3px solid var(--ocker); outline-offset: 3px; border-radius: 3px; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
li::marker { color: var(--petrol-hell); }

strong { font-weight: 650; }

/* ---------- Kopf ---------- */

.springen {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: var(--auf-petrol);
  padding: .7em 1.1em; z-index: 50; border-radius: 0 0 var(--rund) 0;
}
.springen:focus { left: 0; }

.entwurf {
  background: var(--ocker); color: #fff;
  font-size: .8125rem; font-weight: 650; letter-spacing: .04em;
  text-align: center; padding: .5em 16px;
}
.entwurf a { color: #fff; }

.kopf {
  border-bottom: 1px solid var(--linie);
  background: var(--papier);
  position: sticky; top: 0; z-index: 20;
}
.kopf__reihe {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; flex-wrap: wrap;
}
.marke {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  color: var(--tinte); text-decoration: none; margin-right: auto; line-height: 1.25;
}
.marke span { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--tinte-leise); }
.marke:hover { color: var(--petrol-hell); }

.nav { border-top: 1px solid var(--linie); }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: .7em .85em; white-space: nowrap;
  font-size: .9375rem; text-decoration: none; color: var(--tinte-leise);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--petrol-hell); }
.nav a[aria-current="page"] { color: var(--tinte); font-weight: 600; border-bottom-color: var(--ocker); }

/* ---------- Knoepfe ---------- */

.knopf {
  display: inline-block; padding: .72em 1.25em;
  background: var(--petrol); color: var(--auf-petrol);
  border-radius: var(--rund); text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 1px solid var(--petrol);
  box-shadow: var(--schatten);
}
.knopf:hover { background: var(--petrol-hell); border-color: var(--petrol-hell); color: var(--auf-petrol); }
.knopf--leer { background: transparent; color: var(--petrol-hell); box-shadow: none; }
.knopf--leer:hover { background: var(--papier-tief); color: var(--petrol-hell); }
.knopf--klein { padding: .5em .9em; font-size: .9375rem; }
.knopf--hell { background: var(--auf-petrol); color: var(--petrol-tief); border-color: var(--auf-petrol); }
.knopf--hell:hover { background: #fff; color: var(--petrol-tief); border-color: #fff; }

.tel { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Aufmacher ---------- */

.aufmacher {
  background: var(--petrol-tief); color: var(--auf-petrol);
  padding: clamp(2rem, 1rem + 5vw, 4.5rem) 0;
}
.aufmacher h1 { color: var(--auf-petrol); max-width: 26ch; }
.aufmacher p { color: #cfdedb; font-size: 1.125rem; max-width: 46ch; }
.aufmacher a:not(.knopf) { color: #fff; }
.aufmacher__gitter { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 780px) {
  .aufmacher__gitter { grid-template-columns: 1.25fr .85fr; }
}
.aufmacher figure { margin: 0; }
.aufmacher img {
  width: 100%; height: auto; display: block;
  border-radius: var(--rund);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.aufmacher--schmal { padding: clamp(1.6rem, 1rem + 3vw, 3rem) 0; }
.aufmacher--schmal h1 { max-width: 34ch; margin-bottom: 0; }
.aufmacher--schmal .vorzeile {
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: #9fc0bb; margin: 0 0 .7em; font-weight: 600;
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding: clamp(2rem, 1.2rem + 3vw, 3.4rem) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }
.abschnitt--tief { background: var(--papier-tief); border-top: 1px solid var(--linie); }
.abschnitt--ruf {
  background: var(--petrol); color: var(--auf-petrol); border-top: none;
}
.abschnitt--ruf h2, .abschnitt--ruf h3 { color: var(--auf-petrol); }
.abschnitt--ruf a:not(.knopf) { color: #fff; }
.abschnitt--ruf p { color: #d5e3e0; }

/* Karten fuer Abschnitte mit mehreren H3 */
.karten { display: grid; gap: 14px; margin-top: .4em; }
@media (min-width: 620px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .karten--drei { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--rund); padding: 1.1rem 1.15rem;
  box-shadow: var(--schatten);
}
.abschnitt--tief .karte { background: var(--papier); }
.karte > :last-child { margin-bottom: 0; }
.karte--schritt { position: relative; padding-left: 3.4rem; }
.karte__zahl {
  position: absolute; left: 1.1rem; top: 1.05rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--petrol); color: var(--auf-petrol);
  display: grid; place-items: center;
  font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Fragen mit Nummer, auf der Gewerbeseite */
.frage { border-left: 3px solid var(--ocker); padding-left: 1.1rem; margin-bottom: 1.6em; }
.frage > :last-child { margin-bottom: 0; }
.frage h3 { font-size: 1.15rem; font-family: var(--serif); font-weight: 600; }

/* ---------- Tabellen ---------- */

.tabelle { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 30rem; }
caption { text-align: left; color: var(--tinte-leise); font-size: .875rem; padding-bottom: .5em; }
th, td { text-align: left; padding: .62em .8em; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { background: var(--papier-tief); font-weight: 650; font-size: .875rem;
  letter-spacing: .01em; border-bottom: 2px solid var(--linie); }
tbody tr:last-child td { border-bottom: none; }
td:last-child, th:last-child { text-align: left; }

/* ---------- Bilder ---------- */

figure { margin: 0 0 1.2em; }
.bild img {
  width: 100%; height: auto; display: block;
  border-radius: var(--rund); box-shadow: var(--schatten);
}
figcaption { font-size: .875rem; color: var(--tinte-leise); margin-top: .5em; }

/* Hochformat wird begrenzt und steht in der Textspalte, nicht ueber der ganzen Breite */
.bild--hoch img { max-width: 30rem; }

/* ---------- Formular ---------- */

.formular { max-width: 40rem; }
.feld { margin-bottom: 1.1rem; }
.feld > label, .gruppe > legend {
  display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35em;
}
.feld .hinweis { display: block; font-weight: 400; color: var(--tinte-leise); font-size: .875rem; margin-top: .2em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="file"], textarea, select {
  width: 100%; padding: .68em .8em; font: inherit; font-size: 1rem;
  color: var(--tinte); background: var(--papier);
  border: 1px solid var(--linie); border-radius: var(--rund);
}
input:focus, textarea:focus, select:focus { border-color: var(--petrol-hell); }
textarea { min-height: 7rem; resize: vertical; }
.gruppe { border: 1px solid var(--linie); border-radius: var(--rund); padding: .9rem 1rem; margin-bottom: 1.1rem; }
.gruppe legend { padding: 0 .4em; }
.wahl { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.wahl label, .haken label { font-weight: 400; display: flex; gap: .55em; align-items: flex-start; }
.wahl input, .haken input { width: 1.15rem; height: 1.15rem; margin: .22em 0 0; flex: none; accent-color: var(--petrol); }
.haken { margin-bottom: 1.3rem; font-size: .9375rem; }
.falle { position: absolute; left: -9999px; }
.pflicht { color: var(--ocker); }

.meldung { border-left: 4px solid var(--ocker); background: var(--papier-tief);
  padding: .9rem 1.1rem; border-radius: 0 var(--rund) var(--rund) 0; margin-bottom: 1.4em; }
.meldung > :last-child { margin-bottom: 0; }

/* ---------- Anschrift, Kontaktzeile ---------- */

.anschrift { font-style: normal; }
.kontaktreihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 1.2em; }

/* ---------- Fuss ---------- */

.fuss {
  background: var(--petrol-tief); color: #c9dcd8;
  padding: 2.4rem 0 1.6rem; font-size: .9375rem;
}
.fuss a { color: #fff; }
.fuss__gitter { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .fuss__gitter { grid-template-columns: 1.2fr 1fr 1fr; } }
.fuss h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: #8fb3ae; font-family: var(--sans); font-weight: 650; margin-bottom: .8em; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .45em; }
.fuss__unten { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.8rem;
  padding-top: 1rem; display: flex; gap: 14px; flex-wrap: wrap; color: #8fb3ae; }

/* ---------- Brotkrumen ---------- */

.krumen { border-bottom: 1px solid var(--linie); background: var(--papier); font-size: .875rem; }
.krumen ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .5em;
  margin: 0; padding: .65em 0; color: var(--tinte-leise);
}
.krumen li + li::before { content: "›"; margin-right: .5em; color: var(--linie); }
.krumen a { color: var(--tinte-leise); }
.krumen a:hover { color: var(--petrol-hell); }
.krumen [aria-current="page"] { color: var(--tinte); }

/* ---------- Kleinigkeiten ---------- */

.leise { color: var(--tinte-leise); }
hr { border: none; border-top: 1px solid var(--linie); margin: 2em 0; }

@media print {
  .kopf, .nav, .fuss, .entwurf, .springen { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .abschnitt, .aufmacher { padding: .6rem 0; background: none; color: #000; }
  .aufmacher h1, .aufmacher p { color: #000; }
  a { color: #000; }
}
