/* Single stylesheet for both pages. Colors are tokens on :root so the dark
   scheme only has to redefine values, not rules. */
:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1a1a18;
  --muted: #6b6b66;
  --line: #e4e4e0;
  --accent: #9b3d2e;
  --accent-text: #ffffff;
  --banner-a: #9b3d2e;
  --banner-b: #d9a48a;
  --banner-c: #33506b;
}

/* Dark tokens twice: once as the system default (unless the user forced
   light), once for the explicit choice, so the switch wins in both directions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --banner-image: url("banner-dark.jpg");
    --bg: #131312;
    --surface: #1c1c1a;
    --text: #ececea;
    --muted: #9a9a94;
    --line: #2e2e2b;
    --accent: #d4705c;
    --accent-text: #131312;
    --banner-a: #6d2a20;
    --banner-b: #3a2a28;
    --banner-c: #1f3145;
  }
}

:root[data-theme="dark"] {
  --banner-image: url("banner-dark.jpg");
  --bg: #131312;
  --surface: #1c1c1a;
  --text: #ececea;
  --muted: #9a9a94;
  --line: #2e2e2b;
  --accent: #d4705c;
  --accent-text: #131312;
  --banner-a: #6d2a20;
  --banner-b: #3a2a28;
  --banner-c: #1f3145;
}

/* Bilingual content: each translated block carries its own lang="de"/"en",
 * html[data-lang] (set by lang.js before paint) decides which one shows. */
html[data-lang="de"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="de"] { display: none; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Banner: je ein lokales Bild pro Farbschema, getauscht über --banner-image.
 * Austauschen heißt: banner-light.jpg / banner-dark.jpg ersetzen, sonst nichts.
 * Nur ein Bild für beide Schemata gewünscht? Dann die zwei Zeilen in den
 * dark-Blöcken oben löschen.
 */
:root { --banner-image: url("banner-light.jpg"); }

.banner {
  height: clamp(9rem, 26vh, 15rem);
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--banner-c);
  border-bottom: 1px solid var(--line);
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.tagline { color: var(--muted); margin: 0 0 2.5rem; }

h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1rem; }

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

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

form { display: grid; gap: 1rem; }

label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }

input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea { min-height: 8rem; resize: vertical; }

button {
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  justify-self: start;
}

button:hover { filter: brightness(1.08); }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* Theme switch: round icon button over the banner, cycles the three modes. */
.theme {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.theme:hover { filter: none; border-color: var(--accent); }

.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme svg { width: 1.1rem; height: 1.1rem; display: block; }

/* Language switch: same round button, sits left of the theme switch. */
.lang {
  position: absolute;
  top: 1rem;
  right: 3.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.lang:hover { border-color: var(--accent); }

.lang:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
