/* ═══════════════════════════════════════════════════════════════════════════
   Dinner Talk — Anmeldeseiten

   Eine Grundlage, vier Stimmungen. Die Vorlagen setzen nur Farben, Bilder und
   Anordnung; alles Bedienbare (Formular, Programm, Fußzeile) sieht überall
   gleich aus, damit es sich überall gleich gut anfühlt.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --acc: #c9964a;
  --ink: #16161a;
  --ink-soft: #55555c;
  --line: rgba(0,0,0,.10);
  --paper: #fbfaf7;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 34px rgba(0,0,0,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); }

.dt-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.dt-narrow { max-width: 680px; margin: 0 auto; padding: 0 22px; }

/* ── Kopfzeile ─────────────────────────────────────────────────────────── */
.dt-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}
.dt-top img { max-height: 46px; width: auto; }
.dt-kicker {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--acc); font-weight: 600; margin: 0;
}

/* ── Überschriften ─────────────────────────────────────────────────────── */
.dt-h1 {
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 18px; font-weight: 700;
}
.dt-sub {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55; color: var(--ink-soft); margin: 0 0 26px;
  max-width: 44ch;
}
.dt-h2 {
  font-size: clamp(23px, 3vw, 32px); line-height: 1.2;
  letter-spacing: -.015em; margin: 0 0 18px; font-weight: 700;
}

/* ── Termin-Kachel („Der nächste Abend") ───────────────────────────────── */
.dt-next {
  display: inline-flex; flex-direction: column; gap: 4px;
  border-left: 3px solid var(--acc); padding: 4px 0 4px 16px;
  margin: 0 0 26px;
}
.dt-next-label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); font-weight: 600;
}
.dt-next-date { font-size: 18px; font-weight: 600; }
.dt-next-title { color: var(--ink-soft); }

/* ── Countdown ─────────────────────────────────────────────────────────── */
.dt-count { display: flex; gap: 10px; margin: 0 0 28px; flex-wrap: wrap; }
.dt-count div {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 16px; min-width: 74px; text-align: center;
}
.dt-count b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dt-count span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* ── Das Anmeldeformular ───────────────────────────────────────────────── */
.dt-form-wrap { max-width: 460px; }
.dt-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.dt-field { display: block; margin: 0 0 16px; }
.dt-field span {
  display: block; font-size: 13px; font-weight: 600;
  margin: 0 0 6px; color: var(--ink);
}
.dt-field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid rgba(0,0,0,.16);
  border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.dt-field input:focus {
  outline: none; border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);
}
.dt-cta {
  width: 100%; font: inherit; font-size: 17px; font-weight: 600; color: #fff;
  background: var(--acc); border: 0; border-radius: 11px;
  padding: 15px 20px; cursor: pointer; margin: 4px 0 0;
  transition: transform .12s ease, filter .15s ease;
}
.dt-cta:hover { filter: brightness(1.06); }
.dt-cta:active { transform: translateY(1px); }
.dt-consent {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-soft);
  margin: 16px 0 0;
}
.dt-consent a { color: var(--ink-soft); }
.dt-err {
  background: #fdecec; border: 1px solid #f5c2c2; color: #8c2020;
  border-radius: 10px; padding: 11px 14px; font-size: 14px; margin: 0 0 16px;
}
/* Honigtopf — unsichtbar für Menschen, sichtbar für Werbeprogramme. */
.dt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dt-done {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.dt-done-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--acc); display: grid; place-items: center;
  font-size: 24px; margin: 0 0 14px;
}
.dt-done h3 { margin: 0 0 8px; font-size: 20px; }
.dt-done p { margin: 0; color: var(--ink-soft); }

/* ── Versprechen-Liste ─────────────────────────────────────────────────── */
.dt-promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dt-promise li {
  position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.55;
}
.dt-promise li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--acc); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.dt-promise li b { font-weight: 700; }

/* ── Programm ──────────────────────────────────────────────────────────── */
.dt-program { padding: 64px 0; }
.dt-program h2 { font-size: clamp(23px, 3vw, 32px); margin: 0 0 26px; letter-spacing: -.015em; }
.dt-talks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dt-talk {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
}
.dt-talk h3 { margin: 6px 0 6px; font-size: 18.5px; line-height: 1.35; }
.dt-talk-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dt-talk-no {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--acc);
}
.dt-talk-date { font-size: 13.5px; color: var(--ink-soft); }
.dt-talk-text { font-size: 15px; color: var(--ink-soft); }
.dt-talk-text p { margin: 0; }
.dt-talk.is-next { border-color: var(--acc); box-shadow: var(--shadow); }
.dt-talk.is-past { opacity: .48; }
.dt-talk.is-off { opacity: .55; }
.dt-talk.is-off h3 { text-decoration: line-through; }
.dt-talk-off { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; font-style: italic; }
.dt-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--acc); color: #fff; border-radius: 999px; padding: 3px 10px;
}
.dt-badge-off { background: #8a8a8e; }

/* ── Gastgeber ─────────────────────────────────────────────────────────── */
.dt-host { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.dt-host img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto;
}
.dt-host-body { flex: 1 1 320px; }
.dt-host-name { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.dt-host-role { color: var(--acc); font-size: 14px; font-weight: 600; margin: 0 0 12px; }

/* ── Die Regel (Zitat-Kasten) ──────────────────────────────────────────── */
.dt-rule {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  border-radius: 14px; padding: 26px 28px; margin: 0;
}
.dt-rule blockquote {
  margin: 0 0 12px; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4;
  font-weight: 600; letter-spacing: -.01em;
}
.dt-rule p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ── Fußzeile ──────────────────────────────────────────────────────────── */
.dt-foot {
  border-top: 1px solid var(--line); margin-top: 40px;
  padding: 26px 22px 40px; text-align: center;
}
.dt-foot p { margin: 0 0 6px; font-size: 13.5px; }
.dt-foot a { color: var(--ink-soft); text-decoration: none; }
.dt-foot a:hover { text-decoration: underline; }
.dt-foot span { color: rgba(0,0,0,.25); margin: 0 8px; }
.dt-foot-small { color: var(--ink-soft); font-size: 12.5px; }

/* ── Einfache Seiten (Danke, Abmeldung, Handout) ───────────────────────── */
.dt-page { max-width: 620px; margin: 0 auto; padding: 60px 22px 20px; }
.dt-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow);
}
.dt-card h1 { font-size: 27px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -.015em; }
.dt-card p { color: var(--ink-soft); }
.dt-btn {
  display: inline-block; background: var(--acc); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 11px;
  margin: 18px 0 0;
}
.dt-btn:hover { filter: brightness(1.06); }
.dt-btn-quiet {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ── Dunkle Vorlagen ───────────────────────────────────────────────────── */
body.dt-dark {
  --ink: #f4f1ea;
  --ink-soft: #a8a49c;
  --line: rgba(255,255,255,.12);
  --paper: #14120f;
  --card: #1d1a16;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 44px rgba(0,0,0,.5);
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(201,150,74,.16), transparent 60%),
    radial-gradient(900px 520px at 92% 8%, rgba(201,150,74,.09), transparent 62%),
    var(--paper);
}
body.dt-dark .dt-field input { background: #16130f; color: var(--ink); border-color: rgba(255,255,255,.16); }
body.dt-dark .dt-field input::placeholder { color: #6e6a63; }
body.dt-dark .dt-err { background: #3a1c1c; border-color: #5c2b2b; color: #f0bcbc; }
body.dt-dark .dt-foot span { color: rgba(255,255,255,.22); }

/* ── Bewegung nur, wenn der Besucher sie mag ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .dt-rise { animation: dtRise .6s cubic-bezier(.22,.61,.36,1) both; }
  .dt-rise-2 { animation-delay: .08s; }
  .dt-rise-3 { animation-delay: .16s; }
  @keyframes dtRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
