/* fussball-in-berlin.de — "Flutlicht auf dem Ascheplatz" */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-500.woff2') format('woff2');
}

:root {
  --nacht: #0D1F2A;
  --tief: #122B3A;
  --kalk: #F1F3EE;
  --flutlicht: #F2C230;
  --asche: #B4472E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--nacht);
  color: var(--kalk);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Strafraum oben, angeschnitten */
.pitch-box {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 160vw);
  height: auto;
  color: var(--kalk);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 640px) {
  .pitch-box { width: 135vw; }
}

/* Mittelkreis-Bogen, unten angeschnitten */
.pitch-arc {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, 160vw);
  height: auto;
  color: var(--kalk);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(40rem, 100% - 2.5rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 8vh, 5.5rem) 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4.5vh, 3rem);
}

/* 1 — Hero */
.wordmark {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.wordmark .in { color: var(--flutlicht); }

.claim {
  margin-top: 0.9rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 600;
}
.context {
  margin-top: 0.9rem;
  max-width: 34rem;
  opacity: 0.82;
}

/* 2 — Eingabe */
.entry label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
textarea {
  width: 100%;
  background: var(--tief);
  color: var(--kalk);
  border: 1px solid rgba(241, 243, 238, 0.18);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: inherit;
  resize: vertical;
  min-height: 6.5rem;
}
textarea::placeholder { color: rgba(241, 243, 238, 0.45); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.charcount {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  opacity: 0.7;
}

button {
  background: var(--flutlicht);
  color: var(--nacht);
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: default; }

/* Fokus: sichtbar, flutlichtgelb */
:is(a, button, textarea):focus-visible {
  outline: 3px solid var(--flutlicht);
  outline-offset: 2px;
}

.hint {
  margin-top: 0.7rem;
  color: var(--asche);
  font-weight: 600;
}
textarea.invalid { border-color: var(--asche); }

.done-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.done-text { margin-top: 0.35rem; opacity: 0.85; }

/* Honeypot: off-screen, nicht display:none */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 4 — Footer */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.25rem;
  font-size: 0.9rem;
}
.foot a {
  color: var(--kalk);
  opacity: 0.75;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.foot a:hover { opacity: 1; }

/* Unterseiten (Impressum/Datenschutz) */
.page {
  position: relative;
  z-index: 1;
  width: min(40rem, 100% - 2.5rem);
  margin-inline: auto;
  padding-block: 3rem 2rem;
  flex: 1;
}
.page h1 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.page p { margin-bottom: 0.8rem; max-width: 34rem; }
.page a.back { color: var(--flutlicht); }
