/* CampExpo — Teilnahmeseite zum Kreuzwortraetsel
   Zuerst fuers Handy gebaut: die meisten kommen ueber den QR-Code im Heft.

   ⚠️ Farben am 19.08.2026 von campexpo.de abgenommen, nicht aus dem Druck-PDF.
   Die Website fuehrt #228380 und #ffb94e (die Brandboard-Werte), das gedruckte
   MAG die leicht abweichenden #238680 und #f2bb5e. Hier gilt der Web-Auftritt,
   damit die Seite neben campexpo.de nicht verrutscht wirkt. */

@font-face {
  font-family: "Staatliches";
  src: url("schriften/Staatliches-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("schriften/DMSans_18pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("schriften/DMSans_18pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --petrol: #228380;
  --petrol-dunkel: #175957;
  --sand: #ffb94e;
  --orange: #ffa31a;
  --text: #262626;
  --grau: #b1a7a6;
  --hell: #faf8f5;
  --fehler: #b03a2e;
}

* { box-sizing: border-box; }

/* Der Hintergrund gehoert hell. Ein dunkler html-Hintergrund scheint unter
   dem Body durch, sobald die Seite kuerzer ist als das Fenster — auf der
   Danke-Seite war genau das der Fall. Die dunkle Faerbung der Browserleiste
   auf dem Handy macht stattdessen das theme-color-Meta. */
html { background: var(--hell); }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--hell);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* ---- Kopfband, wie der Auftritt auf campexpo.de ---- */

.kopfband {
  background: var(--petrol-dunkel);
  padding: 1.4rem 1.25rem 1.1rem;
  text-align: center;
}
.kopfband .logo {
  display: block;
  width: min(240px, 62vw);
  height: auto;
  margin: 0 auto 0.85rem;
}
.eckdaten {
  margin: 0;
  font-family: "Staatliches", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--sand);
}
.eckdaten span { color: #cfe3e2; }

/* ---- Countdown-Balken, faehrt beim Laden herunter ----
   Nachgebaut nach campexpo.de. Der Balken steht schon im HTML und traegt die
   Frist im Klartext — faellt das Skript aus, fehlt nur die laufende Uhr. */

.countdown {
  background: var(--text);
  color: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s ease-out;
}
.countdown.faellt { max-height: 12rem; }

.countdown-inhalt {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0.95rem;
  text-align: center;
}
.countdown-titel {
  margin: 0 0 0.5rem;
  font-family: "Staatliches", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--sand);
}
.countdown-werk {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.countdown-feld {
  min-width: 3.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.35rem 0.2rem 0.3rem;
}
.countdown-zahl {
  display: block;
  font-family: "Staatliches", sans-serif;
  font-size: 1.7rem;
  line-height: 1.05;
}
.countdown-name {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: #cfc9c7;
}
.countdown-vorbei {
  margin: 0;
  font-family: "Staatliches", sans-serif;
  font-size: 1.15rem;
  color: var(--sand);
}

/* Wer Bewegung abgestellt hat, bekommt den Balken sofort und ohne Fahrt. */
@media (prefers-reduced-motion: reduce) {
  .countdown { transition: none; max-height: 12rem; }
}

/* Der Zeltgiebel aus dem Logo als Uebergang zum hellen Teil */
.giebel {
  display: block;
  width: 100%;
  height: 26px;
  background: var(--petrol-dunkel);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.seite {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

h1 {
  font-family: "Staatliches", sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
  color: var(--petrol);
}
h1 span { display: block; color: var(--orange); }

.vorspann { margin: 0 0 1.5rem; }

.gewinne {
  background: var(--sand);
  border-radius: 0.9rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  position: relative;
}
.gewinne h2 {
  font-family: "Staatliches", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}
.gewinne ul { margin: 0; padding-left: 1.1rem; }
.gewinne li { margin-bottom: 0.15rem; }
.frist { font-weight: 500; margin: 0.6rem 0 0; }
.gewinne .zelt {
  position: absolute;
  right: 0.9rem;
  bottom: 0.7rem;
  width: 52px;
  height: auto;   /* ohne das zieht die height-Angabe im img-Tag es zum Streifen */
  opacity: 0.16;
}

form { margin: 0; }

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.feld { margin-bottom: 1.25rem; }

input[type="text"],
input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--grau);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--text);
}
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(34, 131, 128, 0.18);
}

#loesung {
  font-family: "Staatliches", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-color: var(--petrol);
}

.hinweis {
  display: block;
  font-size: 0.9rem;
  color: #6b6462;
  margin-top: 0.3rem;
}

.pflicht { color: var(--petrol); }

.zustimmung {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.zustimmung input {
  margin-top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--petrol);
}
.zustimmung label { font-weight: 400; font-size: 0.95rem; }

button {
  width: 100%;
  font-family: "Staatliches", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--petrol);
  border: none;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
button:hover { background: var(--petrol-dunkel); }

.fehlermeldung {
  color: var(--fehler);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}
.feld.falsch input,
.zustimmung.falsch input { border-color: var(--fehler); }

.sammelfehler {
  background: #fdecea;
  border-left: 4px solid var(--fehler);
  border-radius: 0.4rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
}

/* Der Honigtopf. Kein Mensch sieht ihn, Bots fuellen ihn aus. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bestaetigung {
  background: #fff;
  border: 2px solid var(--petrol);
  border-radius: 0.9rem;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.messe {
  background: var(--petrol-dunkel);
  color: #eaf3f2;
  border-radius: 0.9rem;
  padding: 1.15rem 1.25rem;
  margin: 0 0 1.75rem;
}
.messe h2 {
  font-family: "Staatliches", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--sand);
  margin: 0 0 0.5rem;
}
.messe p { margin: 0.2rem 0; }
.messe a { color: var(--sand); }

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grau);
  font-size: 0.85rem;
  color: #6b6462;
}
footer a { color: var(--petrol); }
footer .fusslogo {
  width: 130px;
  height: auto;
  margin-bottom: 0.8rem;
  opacity: 0.75;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--petrol);
  margin-bottom: 0.5rem;
}
details p { font-size: 0.85rem; }

@media (min-width: 40rem) {
  .kopfband { padding: 2rem 1.25rem 1.5rem; }
  .kopfband .logo { width: 290px; }
}
