/* Grounder - grounder.info
   ---------------------------------------------------------------------------
   Ein System, keine Einzelfälle.

   Schriftstaffel  6 Stufen, sonst keine. --fs-display bis --fs-caption.
   Abstände        Vielfache von 4, als --s-1 bis --s-12. Keine freien Werte.
   Bildboxen       Jedes Motiv sitzt in derselben Box (16:10) und wird auf
                   dieselbe optische Größe begrenzt. Kein Motiv wird
                   einzeln positioniert oder skaliert.
   Radien          --r-lg für Flächen, --r-md für Karten, Pill für Knöpfe.
   Farben          Ein Akzent. Flächen aus weißen Füllungen, keine Rahmen.
   --------------------------------------------------------------------------- */

:root {
  /* Farbe */
  --bg:          #080D08;
  --bg-lift:     #0C120C;
  --fill:        rgba(255, 255, 255, 0.045);
  --fill-hi:     rgba(255, 255, 255, 0.075);
  --media:       rgba(255, 255, 255, 0.03);
  --hairline:    rgba(255, 255, 255, 0.09);
  --text:        #F2F5F2;
  --text-mute:   #93A693;
  --accent:      #4CAF50;
  --accent-hi:   #62C567;
  --on-accent:   #06110A;

  /* Schriftstaffel */
  --fs-display:  clamp(2.75rem, 6.4vw, 4.75rem);
  --fs-title:    clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-head:     1.25rem;
  --fs-lead:     1.1875rem;
  --fs-body:     1.0625rem;
  --fs-small:    0.9375rem;
  --fs-caption:  0.8125rem;

  /* Abstände */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 56px;
  --s-9: 72px;
  --s-10: 96px;
  --s-11: 128px;

  /* Form */
  --r-lg: 24px;
  --r-md: 18px;
  --r-pill: 999px;

  --shell: 1120px;
  --wide: 1280px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*, *::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(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }

h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }

h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--fs-head);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.shell-wide { max-width: var(--wide); }

.lead {
  color: var(--text-mute);
  font-size: var(--fs-lead);
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 15px 28px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* Rückmeldung sitzt auf dem Druck, nicht auf dem Loslassen. */
.btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); }

.btn-ghost { background: var(--fill); color: var(--text); }
.btn-ghost:hover { background: var(--fill-hi); }

.btn-sm { padding: 9px 18px; font-size: var(--fs-caption); }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--s-2);
}

/* ---------- Kopfzeile ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(8, 13, 8, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* Keine Trennlinie, der Grund läuft nach unten aus. */
.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--s-5);
  background: linear-gradient(to bottom, rgba(8, 13, 8, 0.7), transparent);
  pointer-events: none;
}

.masthead .shell { display: flex; align-items: center; gap: var(--s-6); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark svg { flex: none; }

.masthead nav { display: flex; align-items: center; gap: var(--s-5); }

.masthead nav a {
  font-size: var(--fs-caption);
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.masthead nav a:hover { color: var(--text); }

@media (max-width: 880px) { .masthead nav { display: none; } }

@media (prefers-reduced-transparency: reduce) {
  .masthead { background: var(--bg); backdrop-filter: none; }
}

/* ---------- Abschnitte ---------- */

section[id] { scroll-margin-top: 76px; }

.section { padding-block: var(--s-11); }
.section-lift { background: var(--bg-lift); }

.head { max-width: 46ch; margin-bottom: var(--s-8); }
.center .head { margin-inline: auto; }
.center .head h2 { max-width: 22ch; margin-inline: auto; }
.head h2 + .lead { margin-top: var(--s-4); }

@media (max-width: 880px) {
  .section { padding-block: var(--s-10); }
}

/* ---------- Bühne: ein Foto füllt den Abschnitt ---------- */

/* Jedes Vollbild-Foto sitzt in derselben Bühne. Der Verlauf darüber ist immer
   derselbe, damit die Schrift auf jedem Motiv gleich gut liest. */
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.18) saturate(1.06);
}

/* Zwei Lagen: eine weiche Mitte hinter der Schrift, dazu oben und unten ein
   Verlauf, der in den Seitengrund ausläuft. Das Motiv bleibt sichtbar. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 44% at 50% 52%, rgba(8, 13, 8, 0.62), rgba(8, 13, 8, 0.12) 72%, transparent 88%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(8, 13, 8, 0.58) 9%, rgba(8, 13, 8, 0.12) 28%, rgba(8, 13, 8, 0.18) 58%, rgba(8, 13, 8, 0.8) 91%, var(--bg) 100%);
}

/* Schmale Fenster: die Schrift läuft über die ganze Breite und damit auch über
   die hellen Stellen im Motiv. Deshalb dort ein kräftigerer Schleier. */
@media (max-width: 880px) {
  .stage::after {
    background: linear-gradient(to bottom,
      var(--bg) 0%,
      rgba(8, 13, 8, 0.72) 10%,
      rgba(8, 13, 8, 0.46) 32%,
      rgba(8, 13, 8, 0.52) 64%,
      rgba(8, 13, 8, 0.88) 92%,
      var(--bg) 100%);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(820px, 94svh);
  padding-block: var(--s-11) var(--s-10);
  overflow: hidden;
  text-align: center;
}

.hero .shell { position: relative; }
.hero h1 + .lead { margin-top: var(--s-5); margin-inline: auto; max-width: 44ch; }

/* Schrift auf Foto braucht einen Schatten, sonst franst sie an hellen Stellen aus. */
.hero-text, .band-text { text-shadow: 0 1px 24px rgba(4, 8, 4, 0.85), 0 1px 3px rgba(4, 8, 4, 0.6); }
.hero-text .lead, .band-text .lead, .band-text .note { color: #D2DED2; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
}

@media (max-width: 880px) {
  .hero { min-height: min(680px, 86svh); padding-block: var(--s-10) var(--s-9); }
}

/* ---------- Foto-Bänder ---------- */

/* Zwischen den Textabschnitten steht ein Foto in voller Breite. Es trägt einen
   Satz, sonst nichts. */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(520px, 62svh);
  padding-block: var(--s-10);
  overflow: hidden;
  text-align: center;
}

.band-tall { min-height: min(620px, 72svh); }

.band-text { position: relative; }
.band-text h2 { max-width: 20ch; margin-inline: auto; }
.band-text .lead { margin-top: var(--s-4); margin-inline: auto; }
.band-text .note { margin-top: var(--s-5); margin-inline: auto; }

@media (max-width: 880px) {
  .band { min-height: min(460px, 68svh); padding-block: var(--s-9); }
  .band-tall { min-height: min(560px, 78svh); }
}

/* ---------- Kacheln ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  text-align: left;
}

.tile {
  border-radius: var(--r-lg);
  background: var(--fill);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Die eine Bildbox. Jedes Motiv sitzt mittig darin und wird auf dieselbe
   optische Größe begrenzt, egal ob Silhouette, Pokal, Karte oder Foto. */
.tile-media {
  aspect-ratio: 16 / 10;
  flex: 1 1 auto;
  background:
    radial-gradient(120% 120% at 50% 12%, rgba(76, 175, 80, 0.12), transparent 62%),
    var(--media);
  display: grid;
  place-items: center;
  padding: var(--s-6);
}

.tile-media img {
  max-width: 86%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tile-media .inv { filter: invert(1); }

.tile-media.row { display: flex; align-items: center; justify-content: center; gap: var(--s-5); }
.tile-media.row img { max-width: 19%; max-height: 58%; }

/* Fotos füllen dieselbe Box randlos aus, statt mittig darin zu schweben. */
.tile-media.photo { padding: 0; background: var(--media); position: relative; }

.tile-media.photo img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile-media.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 13, 8, 0.06), rgba(8, 13, 8, 0.42));
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .tile:hover .tile-media.photo img { transform: scale(1.04); }
}

.tile-text { padding: var(--s-6); }
.tile-text h3 + p { margin-top: var(--s-2); }
.tile-text p { color: var(--text-mute); font-size: var(--fs-small); max-width: 42ch; }

@media (max-width: 880px) {
  .tiles { grid-template-columns: 1fr; gap: var(--s-4); }
  .tile-text { padding: var(--s-5); }
}

/* ---------- Album ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-3);
}

.card {
  border-radius: var(--r-md);
  background: var(--fill);
  padding: var(--s-5) var(--s-3) var(--s-4);
  text-align: center;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover { background: var(--fill-hi); transform: translateY(-3px); }

/* Gleiche Bildhöhe in jeder Karte. */
.card img {
  height: 64px;
  width: 100%;
  object-fit: contain;
  filter: invert(1);
  margin-bottom: var(--s-4);
}

.card span {
  display: block;
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.35;
}

.card-locked { background: none; box-shadow: inset 0 0 0 1px var(--hairline); }
.card-locked img { opacity: 0.16; }
.card-locked span { color: #5F725F; }
.card-locked:hover { transform: none; background: none; }

.note {
  margin-top: var(--s-7);
  color: var(--text-mute);
  font-size: var(--fs-small);
  max-width: 56ch;
}
.center .note { margin-inline: auto; }

@media (max-width: 1100px) { .album-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 820px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }

/* ---------- Zahlen ---------- */

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8) var(--s-6); }

.figure b {
  display: block;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.figure small {
  display: block;
  margin-top: var(--s-3);
  color: var(--text-mute);
  font-size: var(--fs-small);
}

@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Ablauf ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); text-align: left; }

.steps > div { padding-top: var(--s-5); border-top: 1px solid var(--hairline); }

.step-no {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.steps h3 + p { margin-top: var(--s-2); }
.steps p { color: var(--text-mute); font-size: var(--fs-small); }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Fragen ---------- */

.faq { max-width: 720px; margin-inline: auto; text-align: left; }

.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }

.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: var(--s-5) var(--s-7) var(--s-5) 0;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: var(--s-2);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-mute);
  border-bottom: 1.5px solid var(--text-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }

.faq p { color: var(--text-mute); font-size: var(--fs-small); padding-bottom: var(--s-5); max-width: 62ch; }

/* ---------- Fuß ---------- */

.foot {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-6) var(--s-8);
  color: var(--text-mute);
  font-size: var(--fs-caption);
}

.foot .shell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.foot nav { display: flex; gap: var(--s-5); margin-left: auto; }
.foot a { text-decoration: none; transition: color 0.2s var(--ease); }
.foot a:hover { color: var(--text); }

/* ---------- Einblenden ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .rise.seen { opacity: 1; transform: none; }
}

/* ---------- Rechtsseiten ---------- */

.legal { padding-block: var(--s-10) var(--s-11); }
.legal .shell { max-width: 720px; }
.legal h1 { font-size: var(--fs-title); margin-bottom: var(--s-7); }
.legal h2 { font-size: var(--fs-head); margin: var(--s-8) 0 var(--s-3); }
.legal p { color: var(--text-mute); font-size: var(--fs-small); margin-bottom: var(--s-3); }
.legal .todo {
  border-radius: var(--r-md);
  background: rgba(76, 175, 80, 0.1);
  padding: var(--s-4) var(--s-5);
  color: var(--accent-hi);
  margin-bottom: var(--s-5);
}

/* ---------- Einreichungsformular ---------- */

/* Eine Spalte, ein Schritt je Abschnitt, getrennt durch Haarlinien statt Kästen.
   Die Eingabefelder erben Größe und Radius aus demselben System wie der Rest. */

.form-page { padding-block: var(--s-10) var(--s-11); }
.form-page .shell { max-width: 680px; }

.form-intro { margin-bottom: var(--s-10); }
.form-intro h1 { font-size: var(--fs-title); }
.form-intro .lead { margin-top: var(--s-4); }

.fstep { padding-top: var(--s-8); border-top: 1px solid var(--hairline); margin-top: var(--s-8); }
.fstep:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.fstep-last { text-align: left; }

.fstep-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }

.fstep-no {
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.fstep h2 { font-size: var(--fs-head); }

.fhint { color: var(--text-mute); font-size: var(--fs-small); max-width: 58ch; margin-bottom: var(--s-5); }
.fnote { color: var(--text-mute); font-size: var(--fs-caption); margin-top: var(--s-3); }
.fnote.is-ok { color: var(--accent-hi); }
.fnote.is-error, .ferr { color: #FF8A80; }
.ferr { font-size: var(--fs-caption); margin-top: var(--s-2); }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-hi);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Felder ---------- */

.field { margin-bottom: var(--s-6); position: relative; }
.field[hidden] { display: none; }

.field label, .field .label {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.req {
  margin-left: var(--s-2);
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--fill);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 14px var(--s-4);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);
  line-height: 1.5;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder, .field textarea::placeholder { color: #62755F; }

.field input:hover, .field textarea:hover { background: var(--fill-hi); }

.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--fill-hi);
  border-color: var(--accent);
}

/* ---------- Vorschlagsliste der Adresssuche ---------- */

.ac {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: var(--s-2);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  background: #101710;
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px var(--hairline);
  max-height: 280px;
  overflow-y: auto;
}

.ac button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--s-3);
  padding: var(--s-3) var(--s-4);
  color: var(--text-mute);
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.4;
  cursor: pointer;
}
.ac button:hover, .ac button:focus-visible { background: var(--fill-hi); color: var(--text); outline: none; }

/* ---------- Auswahlkarten ---------- */

.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }

.pick-card { position: relative; cursor: pointer; }
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }

.pick-body {
  display: block;
  height: 100%;
  border-radius: var(--r-md);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px transparent;
  padding: var(--s-5) var(--s-4);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pick-card:hover .pick-body { background: var(--fill-hi); }

.pick-card input:checked + .pick-body {
  background: rgba(76, 175, 80, 0.12);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pick-card input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 3px; }

.pick-title { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.015em; }
.pick-sub { display: block; margin-top: var(--s-1); color: var(--text-mute); font-size: var(--fs-caption); }

@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } }

/* ---------- Auswahlknöpfe ---------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-block;
  border-radius: var(--r-pill);
  background: var(--fill);
  padding: 9px var(--s-4);
  font-size: var(--fs-small);
  color: var(--text-mute);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover span { background: var(--fill-hi); }
.chip input:checked + span { background: rgba(76, 175, 80, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Karte ---------- */

.map-box {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--media);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

#map { height: 340px; width: 100%; background: #0C120C; }

#coord-msg { margin-bottom: var(--s-6); }

.leaflet-container { font: inherit; background: #0C120C; }
.leaflet-control-attribution { background: rgba(8, 13, 8, 0.75); color: #8FA08F; font-size: 11px; }
.leaflet-control-attribution a { color: #8FA08F; }
.leaflet-bar a { background: #101710; color: var(--text); border-bottom-color: var(--hairline); }
.leaflet-bar a:hover { background: #162016; color: var(--text); }

@media (max-width: 640px) { #map { height: 280px; } }

/* ---------- Fotos ---------- */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 132px;
  border-radius: var(--r-lg);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: pointer;
  text-align: center;
  padding: var(--s-6);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.drop:hover, .drop.is-over { background: var(--fill-hi); box-shadow: inset 0 0 0 1px var(--accent); }
.drop-title { font-size: var(--fs-small); font-weight: 500; }
.drop-sub { color: var(--text-mute); font-size: var(--fs-caption); }

.thumbs {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--s-3);
}

.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--media); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.thumb-x {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(8, 13, 8, 0.78);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.thumb-x:hover { background: rgba(8, 13, 8, 0.95); }

/* ---------- Abschluss ---------- */

.btn-wide { width: 100%; padding-block: 17px; }
.btn:disabled { opacity: 0.55; cursor: default; }

.actions-left { justify-content: flex-start; }

.done h2 { font-size: var(--fs-title); }
.done .lead { margin-top: var(--s-4); }

.pin { background: none; border: 0; }
.pin svg { display: block; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6)); }

/* ═══════════════════════════════════════════════════════════════════════════
   Formularseite (eintragen.html)
   Gleiche Staffel, gleiche Abstände, gleiche Radien wie der Rest. Neu ist nur,
   was ein Formular braucht: Feld, Auswahl, Ablagefläche, Karte.
   ═══════════════════════════════════════════════════════════════════════════ */

.form-page { padding-bottom: var(--s-11); }

/* Schmales Kopfbild. Die Startseite trägt ein hohes, hier reicht ein Streifen. */
.band-slim { min-height: min(380px, 46svh); padding-block: var(--s-9); }
.band-slim h1 { max-width: 18ch; margin-inline: auto; }
.band-slim .lead { margin-top: var(--s-4); margin-inline: auto; }

.entry { max-width: 680px; margin-inline: auto; padding-top: var(--s-9); }

.fstep { padding-block: var(--s-8); border-top: 1px solid var(--hairline); }
.fstep:first-of-type { border-top: 0; padding-top: 0; }

.fstep-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }
.fstep-head h2 { font-size: var(--fs-head); }

.fstep-no {
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.fhint { color: var(--text-mute); font-size: var(--fs-small); margin-bottom: var(--s-5); max-width: 60ch; }

/* ---------- Felder ---------- */

.field { position: relative; margin-bottom: var(--s-5); }
.field[hidden] { display: none; }

.field label, .field .label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.req {
  margin-left: var(--s-2);
  color: var(--text-mute);
  font-size: var(--fs-caption);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 13px var(--s-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }

.field input::placeholder, .field textarea::placeholder { color: #5F725F; }

.field input:hover, .field textarea:hover { background: var(--fill-hi); }

.field input:focus, .field textarea:focus {
  outline: 0;
  background: var(--fill-hi);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); }

@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

.fnote { margin-top: var(--s-2); color: var(--text-mute); font-size: var(--fs-caption); }
.fnote.is-error { color: #FF8A7A; }
.fnote.is-ok { color: var(--accent-hi); }
.fnote a { color: var(--text-mute); }

.ferr { margin-top: var(--s-2); color: #FF8A7A; font-size: var(--fs-caption); }

/* ---------- Kategorieauswahl ---------- */

.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; } }

.pick-card { position: relative; cursor: pointer; display: block; }
.pick-card input { position: absolute; opacity: 0; width: 0; height: 0; }

.pick-body {
  display: block;
  height: 100%;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-md);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pick-card:hover .pick-body { background: var(--fill-hi); }

.pick-card input:checked + .pick-body {
  background: rgba(76, 175, 80, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.pick-card input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 3px; }

.pick-title { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: -0.015em; }
.pick-sub { display: block; margin-top: var(--s-1); color: var(--text-mute); font-size: var(--fs-caption); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.chip { cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }

.chip span {
  display: inline-block;
  padding: 9px var(--s-4);
  border-radius: var(--r-pill);
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-mute);
  font-size: var(--fs-small);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chip:hover span { background: var(--fill-hi); }

.chip input:checked + span {
  background: rgba(76, 175, 80, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--text);
}

.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Adressvorschläge ---------- */

.ac {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: var(--s-1) 0 0;
  padding: var(--s-2);
  list-style: none;
  border-radius: var(--r-md);
  background: #101710;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px rgba(0, 0, 0, 0.55);
}

.ac button {
  display: block;
  width: 100%;
  padding: 10px var(--s-3);
  border: 0;
  border-radius: var(--s-3);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
  text-align: left;
  cursor: pointer;
}
.ac button:hover { background: var(--fill-hi); }

/* ---------- Karte ---------- */

.map-box {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

#map { height: 340px; background: var(--bg-lift); }

/* Leaflet bringt seine eigene helle Fläche und Schrift mit. */
.leaflet-container { background: var(--bg-lift); font: inherit; }
.leaflet-control-attribution { background: rgba(8, 13, 8, 0.72) !important; color: #7E8F7E !important; }
.leaflet-control-attribution a { color: #9DB09D !important; }
.leaflet-bar a { background: #101710 !important; color: var(--text) !important; border-color: var(--hairline) !important; }
.pin { background: none; border: 0; }

/* ---------- Fotos ---------- */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: var(--s-8) var(--s-5);
  border-radius: var(--r-md);
  background: var(--fill);
  outline: 1px dashed rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s var(--ease);
}

.drop:hover, .drop.is-over { background: var(--fill-hi); }
.drop[hidden] { display: none; }
.drop-title { font-size: var(--fs-small); font-weight: 500; }
.drop-sub { color: var(--text-mute); font-size: var(--fs-caption); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.thumbs li { position: relative; }

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s-3);
  background: var(--media);
}

.thumb-x {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 13, 8, 0.82);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.thumb-x:hover { background: rgba(8, 13, 8, 0.95); }

/* ---------- Rest ---------- */

.btn-wide { width: 100%; padding-block: 17px; }

.actions-left { justify-content: flex-start; }

.done { max-width: 680px; margin-inline: auto; padding-top: var(--s-10); }
.done h2 + .lead { margin-top: var(--s-4); }
.done:focus { outline: none; }

/* Honigtopf: nicht `display:none`, sonst überspringen manche Roboter ihn. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Der letzte Block eines Abschnitts trägt keinen Fußabstand mehr, sonst steht
   über jeder Trennlinie eine leere Zeile. */
.fstep > *:last-child { margin-bottom: 0; }
.fstep .two:last-child .field { margin-bottom: 0; }
.thumbs:empty { display: none; }
