:root {
  --cream: #FBF4EA;
  --ink: #241a1f;
  --berry: #9B2D50;
  --berry-dark: #7A2340;
  --amber: #E9A23B;
  --coral: #E86A5C;
  --sage: #3F7A5E;
  --card: rgba(255, 255, 255, 0.85);
  --ring: rgba(36, 26, 31, 0.10);
  --shadow-card: 0 10px 40px -12px rgba(122, 35, 64, 0.18);
  --shadow-soft: 0 2px 12px -4px rgba(36, 26, 31, 0.12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 60rem at 12% -10%, rgba(233, 162, 59, 0.16), transparent 60%),
    radial-gradient(50rem 50rem at 100% 0%, rgba(155, 45, 80, 0.14), transparent 55%),
    radial-gradient(40rem 40rem at 50% 120%, rgba(232, 106, 92, 0.12), transparent 60%);
  background-attachment: fixed;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection { background: rgba(155, 45, 80, 0.2); }

.font-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
}
.wrap-wide { max-width: 1040px; }
.center { text-align: center; }

/* ── Hero ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233, 162, 59, 0.15);
  color: var(--berry-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1.title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(44px, 9vw, 62px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--berry-dark);
  margin: 20px 0 0;
  text-wrap: balance;
}
.intro {
  max-width: 30rem;
  margin: 18px auto 0;
  font-size: 18px;
  color: rgba(36, 26, 31, 0.7);
  text-wrap: balance;
}

/* ── Detail-Karten ── */
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.detail {
  text-align: center;
  padding: 16px;
}
.detail .ic {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(233, 162, 59, 0.15);
  color: var(--berry);
}
.detail .lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(36, 26, 31, 0.45);
}
.detail .val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 4px;
}
.detail .sub { font-size: 12px; color: rgba(36, 26, 31, 0.5); margin-top: 2px; }
a.detail-link { display: block; text-decoration: none; color: var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.detail-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
a.detail-link .val { color: var(--ink); }
a.detail-link .sub { color: rgba(36, 26, 31, 0.5); }
a.detail-link:hover .maps-hint { text-decoration: underline; }
.maps-hint { display: inline-block; margin-top: 3px; color: var(--berry); font-weight: 600; white-space: nowrap; }
/* Adress-Link auf der Danke-Seite: neutral (kein Blau), dezenter Unterstrich als Hinweis */
.maps-link { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(155, 45, 80, 0.35); }
.maps-link:hover { border-bottom-color: var(--berry); }

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--ring);
  backdrop-filter: blur(6px);
}
.card-pad { padding: 28px; }
@media (min-width: 640px) { .card-pad { padding: 34px; } }

.form-card { margin-top: 32px; }
.form-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px; font-weight: 600; margin: 0;
}
.form-card .lead { margin: 4px 0 0; font-size: 14px; color: rgba(36, 26, 31, 0.6); }

/* ── Form ── */
.field { margin-top: 24px; }
.field:first-child { margin-top: 0; }
.field-label {
  display: block; margin-bottom: 8px;
  font-size: 14px; font-weight: 600; color: rgba(36, 26, 31, 0.8);
}
.field-label .opt { font-weight: 400; color: rgba(36, 26, 31, 0.4); }

.text-input {
  width: 100%;
  border: none;
  background: rgba(251, 244, 234, 0.6);
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  outline: 2px solid transparent;
  outline-offset: 0;
  border: 1px solid var(--ring);
  transition: background .15s, box-shadow .15s, border-color .15s;
}
.text-input::placeholder { color: rgba(36, 26, 31, 0.35); }
.text-input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(155, 45, 80, 0.6);
}
textarea.text-input { resize: none; min-height: 84px; }

/* ── Choice (Ja/Nein-Karten) ── */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--ring);
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  font-weight: 600;
  color: rgba(36, 26, 31, 0.7);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.choice:hover { border-color: rgba(155, 45, 80, 0.4); color: var(--ink); }
.choice-input:checked + .choice {
  background: var(--berry);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(155, 45, 80, 0.18);
}
.choice-input:focus-visible + .choice {
  box-shadow: 0 0 0 3px var(--amber);
}
.hint { margin: 8px 0 0; font-size: 12px; color: rgba(36, 26, 31, 0.45); }

/* ── Stepper ── */
.stepper { display: flex; align-items: center; gap: 16px; }
.step-btn {
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--ring); background: rgba(255,255,255,0.7);
  font-size: 24px; font-weight: 600; color: rgba(36, 26, 31, 0.7);
  cursor: pointer; line-height: 1;
  transition: border-color .15s, color .15s;
}
.step-btn:hover:not(:disabled) { border-color: rgba(155, 45, 80, 0.4); color: var(--berry); }
.step-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.step-val { min-width: 64px; text-align: center; }
.step-val .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px; font-weight: 600; color: var(--berry-dark); display: block;
}
.step-val .cap { font-size: 12px; color: rgba(36, 26, 31, 0.45); }

/* ── Reveal (conditional sections) ── */
.reveal { display: none; }
.reveal.show { display: block; animation: fadeUp .35s cubic-bezier(.22,1,.36,1) both; }
/* Abstand zum vorherigen Block, wenn ein Reveal aufklappt */
.reveal > .field:first-child { margin-top: 28px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Buttons ── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--berry); color: #fff;
  border: none; border-radius: 999px;
  padding: 16px 28px; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; box-shadow: var(--shadow-card);
  transition: background .15s, box-shadow .15s, opacity .15s;
  margin-top: 28px;
}
.btn-primary:hover:not(:disabled) { background: var(--berry-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(36, 26, 31, 0.15);
  background: rgba(255,255,255,0.6);
  border-radius: 999px; padding: 10px 20px;
  font: inherit; font-weight: 600; font-size: 14px; color: rgba(36, 26, 31, 0.7);
  cursor: pointer; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(36, 26, 31, 0.3); color: var(--ink); }

/* ── Fehler / Hinweise ── */
.error {
  background: rgba(232, 106, 92, 0.12); color: var(--coral);
  padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 500;
  margin-top: 20px;
}

.foot { margin-top: 40px; text-align: center; font-size: 14px; color: rgba(36, 26, 31, 0.45); }
.foot a { color: var(--berry); font-weight: 500; }

/* ── Danke ── */
.thanks { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.thanks .badge {
  width: 80px; height: 80px; margin: 0 auto; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.thanks .badge.yes { background: rgba(155, 45, 80, 0.10); color: var(--berry); }
.thanks .badge.no { background: rgba(233, 162, 59, 0.15); color: var(--amber); }
.thanks h1 {
  font-family: 'Fraunces', Georgia, serif; font-size: 38px; font-weight: 600;
  color: var(--berry-dark); margin: 24px 0 0;
}
.thanks p { max-width: 24rem; margin: 16px auto 0; font-size: 18px; color: rgba(36, 26, 31, 0.7); text-wrap: balance; }
.inforow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(251, 244, 234, 0.6); border-radius: 16px; padding: 12px 16px; margin-top: 8px;
}
.inforow dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(36,26,31,.45); margin: 0; }
.inforow dd { margin: 0; font-weight: 500; text-align: right; }

/* ── Admin ── */
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head .kick { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--berry); margin: 0; }
.admin-head h1 { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; margin: 2px 0 0; }
.admin-actions { display: flex; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; margin-top: 24px; }
.stat { padding: 16px; }
.stat .lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(36,26,31,.45); }
.stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 30px; font-weight: 600; margin-top: 4px; }
.stat .cap { font-size: 12px; color: rgba(36,26,31,.4); }
.num.berry { color: var(--berry-dark); }
.num.amber { color: var(--amber); }
.num.sage { color: var(--sage); }
.num.coral { color: var(--coral); }
.num.muted { color: rgba(36,26,31,.6); }

.section { margin-top: 24px; overflow: hidden; }
.section h2 { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; padding: 16px 20px; margin: 0; }
.section h2 .muted { color: rgba(36,26,31,.4); }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
thead tr { background: rgba(251,244,234,.5); border-top: 1px solid var(--ring); border-bottom: 1px solid var(--ring); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: rgba(36,26,31,.5); font-weight: 600; padding: 12px; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; text-align: right; }
td { padding: 12px; border-bottom: 1px solid rgba(36,26,31,.06); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(251,244,234,.4); }
.tc { text-align: center; }
.name { font-weight: 500; }
.badge-y { display: inline-block; background: rgba(63,122,94,.12); color: var(--sage); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-n { display: inline-block; background: rgba(36,26,31,.05); color: rgba(36,26,31,.45); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.dash { color: rgba(36,26,31,.25); }
.truncate { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.declines { padding: 20px; }
.declines li { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; padding: 4px 0; }
.declines ul { margin: 12px 0 0; padding: 0; }
.declines .when { margin-left: auto; font-size: 12px; color: rgba(36,26,31,.35); }
.empty { padding: 0 20px 24px; font-size: 14px; color: rgba(36,26,31,.5); }
.total { margin-top: 32px; text-align: center; font-size: 12px; color: rgba(36,26,31,.4); }

/* ── Login ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 384px; }
.login-ic { width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 999px; background: rgba(155,45,80,.10); color: var(--berry); display: flex; align-items: center; justify-content: center; }

/* ── Ablaufplan (Timeline, öffentlich) ── */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding-bottom: 22px; }
.tl-time { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--berry-dark); text-align: right; padding-top: 1px; }
.tl-body { position: relative; padding-left: 22px; }
.tl-body::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 999px; background: var(--berry); box-shadow: 0 0 0 4px rgba(155, 45, 80, 0.12); }
.tl-body::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: -22px; width: 2px; background: rgba(155, 45, 80, 0.18); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child .tl-body::after { display: none; }
.tl-title { font-weight: 600; color: var(--ink); }
.tl-desc { font-size: 14px; color: rgba(36, 26, 31, 0.6); margin-top: 2px; }
@media (max-width: 480px) {
  .tl-item { grid-template-columns: 1fr; gap: 2px; }
  .tl-time { text-align: left; padding-left: 22px; }
}

/* ── Ablaufplan-Editor ── */
.prow { position: relative; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--ring); border-radius: 18px; padding: 16px 44px 16px 16px; margin-bottom: 12px; }
.prow-top { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
@media (min-width: 560px) { .prow-top { grid-template-columns: 190px 1fr; } }
.row-del { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--ring); background: #fff; color: var(--coral); font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s; }
.row-del:hover { border-color: var(--coral); background: rgba(232, 106, 92, 0.08); }
.prow-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 4px; }
.prow-actions .btn-ghost { margin-top: 0; }
.saved-note { background: rgba(63, 122, 94, 0.12); color: var(--sage); padding: 12px 16px; border-radius: 16px; font-weight: 600; font-size: 14px; margin-top: 16px; }

/* Honeypot (Spam-Schutz) – für Menschen unsichtbar, für Bots im DOM sichtbar */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
