/* Farben und Schriften wie in der App (src/theme/index.ts, docs/03-design.md, Farbsatz „Nacht"). */
@font-face {
  font-family: 'Titan One';
  src: url('/fonts/TitanOne-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/fonts/Quicksand-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('/fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #132238;
  --bg-deep: #0c1727;
  --surface: #1d3250;
  --surface-raised: #284266;
  --border: #5578a8;
  --text: #fff4e0;
  --text-muted: #a9bcd6;
  --logo: #e6b36c;
  --primary: #cf3526;
  --primary-edge: #8e1f15;
  --accent: #ffc53d;
  --crust-dark: #a8672e;
  --radius: 18px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, #23395c 0%, transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd772; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 14px; z-index: 10; }

/* Kopfzeile */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--surface); }
.nav .lang { border: 1.5px solid var(--border); padding: 4px 10px; }

/* Startbereich */
.hero { padding: 28px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--logo); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; margin: 0 0 8px; }
.logo-word {
  font-family: 'Titan One', 'Quicksand', sans-serif;
  font-weight: 400;
  color: var(--logo);
  font-size: clamp(56px, 11vw, 104px);
  line-height: 1;
  margin: 0 0 14px;
  text-shadow: 0 4px 0 var(--crust-dark), 0 18px 40px rgba(255, 140, 40, 0.25);
}
.lead { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; margin: 0 0 28px; max-width: 32ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 5px 0 var(--primary-edge);
  transition: transform 0.12s, box-shadow 0.12s;
}
.store:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--primary-edge); }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: 0.85; line-height: 1.1; }
.store span { line-height: 1.2; }
.store svg { width: 22px; height: 22px; flex: none; }
.store.soon { background: var(--surface-raised); box-shadow: 0 5px 0 var(--bg-deep); color: var(--text); cursor: default; }
.store.soon:hover { transform: none; box-shadow: 0 5px 0 var(--bg-deep); color: var(--text); }
.fineprint { color: var(--text-muted); font-size: 15px; margin: 0; }

.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art::before {
  content: ''; position: absolute; inset: 10% -8% -4%;
  background: radial-gradient(circle at 50% 55%, rgba(255, 140, 40, 0.35), transparent 65%);
  filter: blur(10px); z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  border-radius: 36px; overflow: hidden;
  border: 6px solid #0a1220;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1.5px #2f4a72;
  aspect-ratio: 3 / 4;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* Abschnitte */
section { padding: 56px 0; }
.section-title { font-family: 'Titan One', 'Quicksand', sans-serif; font-weight: 400; font-size: clamp(30px, 4.6vw, 42px); line-height: 1.15; margin: 0 0 12px; color: var(--text); }
.section-lead { color: var(--text-muted); font-size: 19px; margin: 0 0 36px; max-width: 60ch; }

/* So geht's */
.howto { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
/* Wie in der App (src/components/PizzaBoard.tsx): Krustenbild als Rahmen, das Raster liegt mit 1648 von 2048 px darunter. */
.board {
  --n: 5;
  position: relative; aspect-ratio: 1;
  max-width: 440px; margin: 0 auto; width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}
.crust { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grid { position: absolute; z-index: 0; inset: 9.766%; display: grid; grid-template-columns: repeat(var(--n), 1fr); background: #4a2e17; }
.cell { aspect-ratio: 1; display: grid; place-items: center; position: relative; container-type: inline-size; }
/* Jedes Knet-Stück ragt etwas über sein Kästchen hinaus, damit kein Teig durchscheint. */
.sauce { position: absolute; width: 115.45%; max-width: none; left: -7.73%; top: -7.73%; }
.topping, .cheese { position: relative; filter: drop-shadow(3.7cqi 3.7cqi 0 rgba(26, 14, 8, 0.4)); }
.topping { width: 74%; animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.topping img { width: 100%; display: block; }
.cheese { width: 56%; filter: drop-shadow(2.8cqi 2.8cqi 0 rgba(26, 14, 8, 0.4)); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.rules { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.rules li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 14px 16px; border-radius: 14px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.controls { color: var(--text-muted); margin: 0; }
.controls strong { color: var(--text); }

/* Merkmale */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid #263f63; }
.card img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.card p { margin: 0; color: var(--text-muted); }

/* Biga */
.mascot { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--surface) 0%, #182b47 100%); border-radius: 28px; padding: 36px; }
.mascot img { width: min(100%, 300px); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4)); }
.mascot p { margin: 0 0 12px; }
.mascot p:last-child { margin-bottom: 0; }

/* Studio */
.studio { text-align: center; }
.studio p { max-width: 60ch; margin: 0 auto 12px; color: var(--text-muted); }
.studio .section-title { margin-bottom: 16px; }

/* Textseiten (Rechtliches, Support) */
.doc { max-width: 760px; padding-top: 16px; padding-bottom: 72px; }
.doc h1 { font-family: 'Titan One', 'Quicksand', sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 8px 0 24px; }
.doc h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; line-height: 1.35; margin: 28px 0 8px; }
.doc p, .doc li { color: #e8dcc6; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc hr { border: 0; border-top: 1px solid #2c4569; margin: 32px 0; }
.doc a { word-break: break-word; }
.doc details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.doc summary { cursor: pointer; font-weight: 700; color: var(--text); }
.doc details p { margin: 10px 0 2px; }
.mailbox { background: var(--surface); border-radius: var(--radius); padding: 22px; margin: 8px 0 24px; display: flex; gap: 18px; align-items: center; }
.mailbox img { width: 88px; flex: none; }
.mailbox p { margin: 0; }
.mailbox .mail { font-size: 20px; font-weight: 700; }
/* Kontaktformular */
.contact { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 28px; display: grid; gap: 6px; }
.contact label { font-weight: 700; margin-top: 12px; }
.contact label:first-of-type { margin-top: 0; }
.contact .opt { font-weight: 500; color: var(--text-muted); }
.contact input, .contact select, .contact textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.25); }
.contact ::placeholder { color: #7f94b3; }
.contact .note { color: var(--text-muted); font-size: 15px; margin: 14px 0 6px; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button {
  justify-self: start; font: inherit; font-weight: 700; color: #fff; cursor: pointer;
  background: var(--primary); border: 0; border-radius: 14px; padding: 13px 24px;
  box-shadow: 0 5px 0 var(--primary-edge); transition: transform 0.12s, box-shadow 0.12s; text-decoration: none; display: inline-block;
}
.button:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--primary-edge); }
.result-page { text-align: center; }
.result-page img { width: 200px; margin: 24px auto 0; }

mark.todo { background: var(--accent); color: var(--bg); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Fußzeile */
.site-footer { border-top: 1px solid #22385a; padding: 32px 0 40px; color: var(--text-muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Handy */
@media (max-width: 860px) {
  .hero .wrap, .howto, .mascot { grid-template-columns: 1fr; }
  .hero { padding-top: 12px; }
  .hero-art { width: min(80%, 320px); }
  .features { grid-template-columns: 1fr 1fr; }
  .mascot { padding: 28px 20px; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .features { grid-template-columns: 1fr; }
  .brand span { display: none; }
  section { padding: 44px 0; }
  .mailbox { flex-direction: column; text-align: center; }
}
