/* Warteliste und Bestätigung. Baut auf style.css auf (Farben, Schriften, Nav,
   Hero, Footer) und ergänzt nur, was dort fehlt. */

[hidden] { display: none !important; }

/* ── Angebot ──────────────────────────────────────────────────── */
.wl-angebot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 460px;
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.wl-angebot-titel {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
}

.wl-angebot-titel span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--secondary);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  margin-right: 8px;
  vertical-align: 2px;
}

.wl-angebot-klein {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Formular ─────────────────────────────────────────────────── */
.wl-formular {
  display: flex;
  gap: 8px;
  max-width: 460px;
}

.wl-formular input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--text-1);
  background: var(--surface-el);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 13px 20px;
}

.wl-formular input[type="email"]::placeholder { color: var(--text-3); }

.wl-formular input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(107, 122, 79, 0.18);
}

.wl-knopf {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #F8F4ED;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.wl-knopf:hover { background: var(--accent-dark); }
.wl-knopf:focus-visible { outline: 3px solid rgba(107, 122, 79, 0.35); outline-offset: 2px; }
.wl-knopf:disabled { opacity: 0.6; cursor: wait; }

/* Für Roboter: sieht kein Mensch, auch kein Screenreader (aria-hidden). */
.wl-falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-meldung p {
  max-width: 460px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--secondary-dark, #8F4820);
}

.wl-zustimmung {
  max-width: 460px;
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-3);
}

.wl-zustimmung a { color: var(--text-2); }

/* ── Postfach-Hinweis nach dem Eintragen ──────────────────────── */
.wl-postfach {
  max-width: 460px;
  background: var(--surface-el);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.wl-postfach h2 {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
  outline: none;
}

.wl-postfach p { color: var(--text-2); }
.wl-postfach strong { color: var(--text-1); font-weight: 600; word-break: break-all; }
.wl-postfach .wl-klein { font-size: 0.8125rem; color: var(--text-3); margin-top: 10px; }

/* Nur bei Outlook-Adressen: deutlich, weil die Mail dort anfangs oft im Junk landet. */
.wl-hinweis-outlook {
  margin-top: 14px;
  padding: 12px 14px;
  background: #F6E8D7;
  border: 1px solid #E8C9A6;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-1) !important;
}

.wl-hinweis-outlook strong { color: var(--secondary); word-break: normal; }

/* ── Bestätigungsseite ────────────────────────────────────────── */
.wl-karte-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 20px 100px;
}

.wl-karte {
  background: var(--surface-el);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}

.wl-karte h1 {
  font-family: var(--font-head);
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  text-wrap: balance;
}

.wl-karte p {
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 14px;
}

.wl-karte .wl-weitersagen {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--soft);
}

.wl-karte .wl-weitersagen p { font-size: 0.9375rem; }

/* ── Handy ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Wer von einer Anzeige kommt, soll zuerst das Formular sehen. */
  .wl-seite .hero-visual { order: 1; }
  .wl-seite .hero { text-align: left; }
  .wl-formular { flex-direction: column; }
  .wl-knopf { width: 100%; text-align: center; }
  .wl-karte { padding: 28px 22px; }
  .wl-karte-wrap { padding: 40px 16px 72px; }
  /* Startseite: dort ist der Hero mittig gesetzt. */
  .hero-inner .wl-angebot { margin-left: auto; margin-right: auto; text-align: left; }
}
