/* Impressum, Datenschutz und Kontaktformular für alle Projekte von Christian Greschner.
   Eine Datei für alle Seiten, ohne fremde Schriften oder Bilder. */

:root {
  color-scheme: light dark;
  --bg: #f6f3ed;
  --karte: #ffffff;
  --text: #1d2429;
  --leise: #5b6670;
  --linie: #e4ddd2;
  --linie-stark: #cfc6b8;
  --akzent: #0b6875;
  --akzent-hell: #e3f1f2;
  --auf-akzent: #ffffff;
  --ok: #1f6b3d;
  --ok-hell: #e5f3ea;
  --fehler: #a3372b;
  --fehler-hell: #fbe9e6;
  --schatten: 0 1px 2px rgba(29, 36, 41, .05), 0 10px 28px -20px rgba(29, 36, 41, .35);
  --rund: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1518;
    --karte: #152024;
    --text: #e5eaec;
    --leise: #a0acb2;
    --linie: #24343a;
    --linie-stark: #37494f;
    --akzent: #6dc3cd;
    --akzent-hell: #10343a;
    --auf-akzent: #05262a;
    --ok: #8fd3a5;
    --ok-hell: #12301f;
    --fehler: #f2a497;
    --fehler-hell: #3a1a16;
    --schatten: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--akzent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 4px; }

.seite {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
}

.kopf {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.75rem;
  color: var(--leise);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.kopf svg { width: 28px; height: 28px; flex: none; }
.kopf a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }

/* Zurück zur App: nur sichtbar, wenn eine App die Seite mit ?zurueck= geöffnet hat (zurueck.js) */
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  margin: -1rem 0 .5rem -6px;
  font-weight: 700;
  text-decoration: none;
}
.zurueck[hidden] { display: none; }
.zurueck svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zurueck:hover { text-decoration: underline; }

h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

.unter { margin: 0 0 1.75rem; color: var(--leise); }

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 1.25rem 1.25rem .5rem;
  margin: 0 0 1rem;
}

h2 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
  line-height: 1.35;
}
.karte > h2 + p, .karte > h2 + ul { margin-top: 0; }
.karte p, .karte ul { margin: 0 0 1.1rem; }

.text h2 { margin-top: 2rem; font-size: 1.2rem; }
.text h3 { margin: 1.25rem 0 .25rem; font-size: 1rem; }
.text p, .text ul { margin: 0 0 .9rem; }
.text li + li { margin-top: .2rem; }

.liste { padding-left: 1.2rem; }
.liste li + li { margin-top: .2rem; }

.leise { color: var(--leise); }
.klein { font-size: .9rem; color: var(--leise); }
/* Nicht am Bindestrich umbrechen, z. B. „Dein-Impressum“ in der Anschrift */
.ungetrennt { white-space: nowrap; }

.kasten {
  background: var(--akzent-hell);
  border-radius: var(--rund);
  padding: 1rem 1.25rem .25rem;
  margin: 0 0 1.5rem;
}
.kasten h2 { margin-top: 0; font-size: 1.05rem; }

/* Kontaktformular */
.feld { margin: 0 0 1rem; }
.feld label { display: block; font-weight: 600; margin: 0 0 .3rem; }
.feld .hinweis { margin: .3rem 0 0; font-size: .9rem; color: var(--leise); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--karte);
  border: 1px solid var(--linie-stark);
  border-radius: 10px;
  padding: .65rem .8rem;
}
textarea { min-height: 9rem; resize: vertical; }
select { appearance: auto; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 1px;
  border-color: var(--akzent);
}

.knopf {
  display: inline-block;
  font: inherit;
  font-weight: 650;
  color: var(--auf-akzent);
  background: var(--akzent);
  border: 0;
  border-radius: 10px;
  padding: .75rem 1.25rem;
  cursor: pointer;
}
.knopf:disabled { opacity: .55; cursor: not-allowed; }

.karte .status { margin: .9rem 0 1rem; }
.karte .status:empty { margin: 0; }
/* Hinweis unter „Nachricht senden“: etwa so viel Luft wie über dem Knopf, solange keine Meldung dazwischen steht */
.karte .status:empty + .klein { margin-top: 1.25rem; }
.status.ok, .status.fehler, .status.info { padding: .6rem .8rem; border-radius: 10px; }
.status.ok { background: var(--ok-hell); color: var(--ok); }
.status.fehler { background: var(--fehler-hell); color: var(--fehler); }
.status.info { background: var(--akzent-hell); color: var(--text); }

/* Falle für Programme, die Formulare automatisch ausfüllen. Für Menschen unsichtbar. */
.falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fuss {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--linie);
  color: var(--leise);
  font-size: .95rem;
}
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: .4rem; }
.fuss p { margin: 0; }

@media (min-width: 40rem) {
  .seite { padding-top: 3rem; }
  .karte { padding: 1.5rem 1.6rem .7rem; }
}
