/* Spielsommelier – Design nach MM-Designsystem v1 (Rohpapier, Anthrazit, Teal, Senf) */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F2EB;
  --ink: #2D2C2A;
  --ink-soft: #625F59;
  --teal: #3C5A66;
  --teal-light: #DCE5E8;
  --mustard: #D9A036;
  --mustard-light: #F3E3BC;
  --brick: #B04A3C;
  --white: #FFFFFF;
  --line: rgba(45, 44, 42, 0.14);

  --r-card: 24px;
  --r-box: 14px;
  --r-input: 8px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
}

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--s4); }
main.wrap { flex: 1; padding-top: var(--s6); padding-bottom: var(--s7); }

/* Bänder (Teal) */
.band { background: var(--teal); color: var(--paper); }
.band--top { padding: var(--s3) 0; padding-top: calc(var(--s3) + env(safe-area-inset-top)); }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.band__logo { display: block; height: 44px; width: auto; }
.band__link {
  background: none; border: 0; color: var(--paper); font: inherit; font-size: 14px; line-height: 20px;
  padding: var(--s2) var(--s3); border-radius: 999px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.band--foot { padding: var(--s5) 0; padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom)); }
.foot { margin: 0; font-size: 14px; line-height: 20px; opacity: 0.92; }
.foot + .foot { margin-top: var(--s3); font-size: 12px; line-height: 16px; opacity: 0.8; }

/* Anmeldung */
.field { display: block; width: 100%; min-height: 52px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-input); background: var(--white); color: var(--ink); font: inherit; }
.msg { margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-box); background: var(--mustard-light); }

/* Typografie */
.label {
  margin: 0 0 var(--s2);
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; color: var(--teal); letter-spacing: -0.01em; }
h1 { font-size: 34px; line-height: 40px; }
h2 { font-size: 26px; line-height: 32px; }
h3 { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
.lead { margin: var(--s3) 0 0; font-size: 18px; line-height: 28px; }
.small { font-size: 14px; line-height: 20px; color: var(--ink-soft); }

/* Abschnitte */
.screen > * + * { margin-top: var(--s5); }
.screen > .label + h1, .screen > .label + h2 { margin-top: 0; }
.group { border: 0; padding: 0; min-width: 0; }
.screen > .group { margin: var(--s6) 0 0; }
.group__title {
  font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 26px;
  padding: 0; margin: 0 0 var(--s3);
}

/* Auswahl-Pillen (Gäste, Dauer) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  min-width: 48px; min-height: 48px; padding: 0 var(--s4);
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.chips--stack { flex-direction: column; }
.chips--stack .chip { justify-content: flex-start; border-radius: var(--r-box); padding: var(--s3) var(--s4); text-align: left; min-height: 56px; }
.chip__txt { display: flex; flex-direction: column; line-height: 20px; }
.chip__hint { font-weight: 400; font-size: 14px; opacity: 0.85; }

/* Fokus */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s6);
  border-radius: 999px; border: 1px solid var(--teal);
  background: var(--teal); color: var(--paper);
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn[disabled] { background: transparent; color: var(--ink-soft); border-color: var(--line); cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--block { width: 100%; }
.linkbtn {
  background: none; border: 0; padding: var(--s2) 0; font: inherit; font-weight: 600;
  color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Fortschritt */
.progress { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }

/* Frageliste */
.options { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.options li { border-bottom: 1px solid var(--line); }
.opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s2); margin: 0;
  background: transparent; border: 0; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; min-height: 64px;
}
.opt:hover, .opt:active { background: var(--teal-light); }
.opt__main { display: flex; flex-direction: column; }
.opt__name { font-weight: 600; }
.opt__hint { font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.opt__count {
  flex: none; min-width: 32px; text-align: right;
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-soft);
}
.opt--egal .opt__name { color: var(--teal); }

.status { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }

/* Ergebnis */
.pick { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.pick:first-of-type { border-top: 0; padding-top: 0; }
.pick__head { display: grid; grid-template-columns: 96px 1fr; gap: var(--s4); align-items: start; }
.cover {
  width: 96px; height: 96px; border-radius: var(--r-box);
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800; font-size: 34px; letter-spacing: -0.02em;
  overflow: hidden;
}
.cover--img { background: var(--white); border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pick__meta { min-width: 0; }
.pick__meta .label { margin-bottom: var(--s1); color: var(--teal); }
.facts { margin: var(--s1) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-soft); }
.bullets { margin: var(--s4) 0 0; padding-left: 20px; }
.bullets li { margin: 0 0 var(--s1); padding-left: var(--s1); }
.bullets li::marker { color: var(--teal); }
.remark { margin: var(--s3) 0 0; font-family: var(--serif); font-style: normal; font-size: 16px; line-height: 24px; color: var(--ink); }
.remark::before { content: "–\00a0"; color: var(--teal); }

.links { margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 14px; line-height: 20px; }
.links a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.links a::after { content: "\00a0\2197"; text-decoration: none; display: inline-block; }

.empty { padding: var(--s5); border-radius: var(--r-box); background: var(--mustard-light); }
.empty p { margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

@media (min-width: 640px) {
  h1 { font-size: 44px; line-height: 48px; }
  main.wrap { padding-top: var(--s7); }
}

/* Auswahl: einklappbares Panel mit großen Zeilen */
.auswahl { margin: 0 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--white); }
.auswahl summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; padding: var(--s3) var(--s4); cursor: pointer; list-style: none; font-size: 16px; line-height: 22px; }
.auswahl summary::-webkit-details-marker { display: none; }
.auswahl__sum { flex: 1; min-width: 0; }
.auswahl__more { color: var(--teal); font-weight: 600; white-space: nowrap; }
.auswahl__more::after { content: " ▾"; }
.auswahl[open] .auswahl__more::after { content: " ▴"; }
.auswahl ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.auswahl li + li { border-top: 1px solid var(--line); }
.auswahl__row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; padding: var(--s3) var(--s4); border: 0; background: none; font: inherit; font-size: 16px; text-align: left; color: var(--ink); cursor: pointer; }
.auswahl__row:hover, .auswahl__row:active { background: var(--teal-light); }
.auswahl__label { display: block; font-size: 13px; line-height: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.auswahl__wert { display: block; font-weight: 600; }
.auswahl__go { color: var(--teal); font-size: 22px; }
.opt--aktiv { background: var(--teal-light); }
.opt--aktiv .opt__name::after { content: " ✓"; color: var(--teal); }
.band__logobtn { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
