/* Nikolaus Ternberg – Basis-Stil (Farben SPEC 10, Werte aus docs/nikolaus/mockups/src) */

@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("../fonts/figtree-700.woff2") format("woff2"); }

:root {
  --night: #1C2540;
  --red: #A3202A;
  --red-hover: #7E1820;
  --gold: #E7C26B;
  --cream: #FBF9F6;
  --text: #1F1B2E;
  --muted: #5B5568;
  --line: #CFC7BC;
  --line-soft: #E4DED6;
  --rose: #F6E4E2;
  --white: #FFFFFF;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
a:hover { color: var(--red-hover); }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

.app { min-height: 100vh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; background: var(--cream); }
@media (min-width: 600px) { body { background: #EFEAE3; } .app { box-shadow: 0 0 40px rgba(28, 37, 64, .08); } }

/* Testmodus: roter Streifen oben auf jeder Seite (bleibt beim Scrollen stehen) */
.test-banner { position: sticky; top: 0; z-index: 60; background: repeating-linear-gradient(135deg, #8E1620 0 14px, #A3202A 14px 28px); color: #fff; text-align: center; font-size: 13px; line-height: 1.3; padding: 6px 12px; }
.test-banner a { color: #fff; text-decoration: underline; }
body.test-mode.has-wizard .head { top: 31px; }

/* Kopf (Wizard-Mockup) */
.head { background: var(--night); color: var(--white); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.head-brand { font-size: 13px; font-weight: 600; letter-spacing: .04em; opacity: .85; }
.head-days { font-size: 13px; opacity: .85; text-align: right; }
.head-back { width: 44px; height: 44px; margin: -10px 0 -10px -12px; display: flex; align-items: center; justify-content: center; color: var(--white); border-radius: 10px; }
.head-back:hover { color: var(--gold); }
.head-title { display: flex; align-items: center; gap: 12px; }
.head-title .mitre { color: var(--gold); flex-shrink: 0; stroke-width: 1.6; }
.head h1 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.head-sub { margin: 0; font-size: 14px; opacity: .9; }

/* Inhalt */
.page { flex: 1; padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lead { margin: 0; font-size: 16px; line-height: 1.55; }
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.card p { margin: 0; }
.card p.hint { margin-top: 10px; }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.hero-card { text-align: center; padding: 28px 8px; display: flex; flex-direction: column; gap: 10px; }
.hero-card h2 { font-size: 32px; }
.hero-card p { margin: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px; }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.notice-gold { background: #FBF2DC; border: 1px solid var(--gold); }
.notice-gold svg { color: #8A6A1C; }
.notice-rose { background: var(--rose); border: 1px solid #E5BDB9; }
.notice-rose svg { color: var(--red); }

/* Freie Plätze */
.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.day h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.slots li { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.slots li strong { font-size: 13px; color: var(--red); font-weight: 600; }
.slots li.is-full { background: #EFEAE3; border-color: var(--line-soft); color: #8C8597; }
.slots li.is-full strong { color: #6F687C; }

/* So funktioniert's */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.steps div { display: flex; flex-direction: column; }
.steps span { font-size: 14px; color: var(--muted); }

.pay, .privacy { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.pay { background: var(--rose); }
.pay svg { color: var(--red); flex-shrink: 0; }
.privacy { background: var(--white); border: 1px solid var(--line-soft); }
.privacy svg { color: var(--night); flex-shrink: 0; }
.pay p, .privacy p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-block { width: 100%; }

.action-bar {
  position: sticky; bottom: 0; z-index: 10;
  border-top: 1px solid var(--line-soft); background: var(--white);
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.action-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.link-quiet { color: var(--muted); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.link-quiet:hover { color: var(--text); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; padding: 10px 20px 18px; font-size: 13px; color: var(--muted); }
.foot a, .foot span { display: inline-flex; align-items: center; min-height: 44px; }
.foot .foot-note { flex-basis: 100%; justify-content: center; min-height: 0; text-align: center; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

.prose a { word-break: break-word; }

@media (max-width: 370px) {
  .head h1 { font-size: 25px; }
  .days { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
