/* Webseite zur App (W1, ADR-0025) – Museumsschild statt Werbeseite, wie in der App
   (design-system.md, Tonalitäts-Leitfaden). Mobile first, keine Fremdschriften. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f2f2f7;
  --ink: #1c1c1e;
  /* `inkSecondary` der App: ≥ 5,1:1 auf allen Hintergründen */
  --ink-secondary: #636366;
  --rule: #d1d1d6;
  --badge-outline: rgba(28, 28, 30, 0.25);
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-exhibit: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --measure: 38rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #1c1c1e;
    --ink: #f2f2f7;
    --ink-secondary: #9c9ca3;
    --rule: #38383a;
    --badge-outline: rgba(242, 242, 247, 0.25);
  }
}

@media (prefers-contrast: more) {
  :root { --ink-secondary: #48484a; }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --ink-secondary: #c7c7cc; }
}

/* ---------- Grundlagen ---------- */

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 1.0625rem/1.5 var(--font-ui);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--gutter);
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--background);
  z-index: 1;
}

.skip-link:focus {
  top: var(--gutter);
}

/* ---------- Rahmen ---------- */

.site-header,
.site-main,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  padding-top: 1.25rem;
}

.site-header__home {
  color: var(--ink-secondary);
  text-decoration: none;
}

.site-header__home:hover {
  text-decoration: underline;
}

.site-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.site-footer {
  padding-bottom: 2.5rem;
  color: var(--ink-secondary);
  font-size: 0.9375rem;
}

.site-footer__nav {
  border-top: 1px solid var(--rule);
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding: 0.25rem 0;
}

/* ---------- Startseite ---------- */

.hero {
  margin: 1rem 0 2.5rem;
  text-align: center;
}

.hero__question {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.5rem;
  font-weight: 400;
}

.hero__answer {
  margin: 0.25rem 0 0;
  font-family: var(--font-exhibit);
  font-size: clamp(4.5rem, 24vw, 9rem);
  line-height: 1.05;
}

.hero__icon {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
}

.lead {
  font-family: var(--font-exhibit);
  font-size: 1.3125rem;
  line-height: 1.45;
}

.steps {
  padding-left: 1.5rem;
}

.steps li + li {
  margin-top: 0.5rem;
}

.store-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
}

.work-text {
  font-family: var(--font-exhibit);
  font-size: 1.1875rem;
}

/* ---------- Werk ---------- */

.work__label {
  margin-bottom: 2rem;
}

.work__number {
  margin: 0;
  color: var(--ink-secondary);
  font-family: var(--font-exhibit);
  font-variant: small-caps;
  letter-spacing: 0.02em;
}

.work__title {
  margin: 0.25rem 0;
  font-family: var(--font-exhibit);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
}

.work__details {
  margin: 0;
  font-family: var(--font-exhibit);
}

.work__headline {
  margin: 0 0 2rem;
  font-family: var(--font-exhibit);
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1.15;
}

.work__section {
  margin-top: 2rem;
}

.work__section-title {
  margin: 0 0 0.75rem;
  color: var(--ink-secondary);
  font-size: 1.25rem;
  font-weight: 400;
}

.standings {
  margin: 0;
  padding: 0;
  list-style: none;
}

.standing {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
}

.standing__place {
  min-width: 2.5rem;
  font-family: var(--font-exhibit);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.standing__text {
  display: flex;
  flex-direction: column;
}

.standing__detail {
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

/* Farbe mit Initiale; die Kontur hält helle Farben auf Weiß und dunkle auf Schwarz als Form
   erkennbar. Schwarz oder Weiß je nach höherem Kontrast (≥ 4,5:1, `PlayerPaletteTests`). */
.badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--badge-outline);
  font-weight: 600;
}

.badge--prussian-blue { background: #16426e; color: #ffffff; }
.badge--naples-yellow { background: #ffd068; color: #000000; }
.badge--carmine { background: #da2155; color: #ffffff; }
.badge--emerald { background: #0c9a7b; color: #000000; }
.badge--umber { background: #593924; color: #ffffff; }
.badge--mallow { background: #c07bb4; color: #000000; }
.badge--sap-green { background: #4d671e; color: #ffffff; }
.badge--cerulean { background: #59b4e8; color: #000000; }
.badge--cobalt-violet { background: #830cbf; color: #ffffff; }
.badge--cadmium-orange { background: #dd7f40; color: #000000; }
.badge--paynes-grey { background: #467788; color: #ffffff; }
.badge--india-ink { background: #1b0d30; color: #ffffff; }

.captions {
  margin: 0;
}

.caption + .caption {
  margin-top: 0.75rem;
}

.caption__title {
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.caption__value {
  margin: 0;
  font-family: var(--font-exhibit);
  font-size: 1.1875rem;
}

.proof__sheet {
  border-top: 1px solid var(--rule);
}

.proof__sheet:last-child {
  border-bottom: 1px solid var(--rule);
}

.proof__summary {
  padding: 0.75rem 0;
  cursor: pointer;
}

.sheet {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.sheet th,
.sheet td {
  padding: 0.25rem 0;
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}

.sheet__dice {
  padding-left: 0.75rem;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* Die Würfelzeichen sind in Systemschriften kleiner als Buchstaben gleicher Größe. */
.sheet__faces {
  font-size: 1.5em;
  line-height: 1;
  letter-spacing: 0.05em;
}

.sheet__points {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet__bonus th,
.sheet__bonus td {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.sheet__total th,
.sheet__total td {
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

.notice__title {
  font-family: var(--font-exhibit);
  font-size: 1.75rem;
  font-weight: 400;
}

.notice__message {
  color: var(--ink-secondary);
}

.get-app {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
}

.get-app__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.get-app p {
  margin: 0.5rem 0 0;
}

/* ---------- Platzhalter bis zum Start (Web/placeholder) ---------- */

.site-main.teaser {
  display: grid;
  gap: 2rem;
  justify-items: center;
  max-width: 56rem;
  text-align: center;
}

.site-footer--wide {
  max-width: 56rem;
}

.teaser__title {
  margin: 0 0 1rem;
  font-family: var(--font-exhibit);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 400;
}

/* Gerät als Rahmen um einen echten Bildschirm der App (Web/assets/start-screen-*.png). */
.phone {
  width: min(17rem, 72vw);
  padding: 0.55rem;
  border-radius: 2.9rem;
  background: #1c1c1e;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18);
}

.phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.35rem;
}

@media (prefers-color-scheme: dark) {
  /* Schwarzer Rahmen auf schwarzem Grund: Kontur hält das Gerät als Form erkennbar. */
  .phone {
    box-shadow: 0 0 0 1px #48484a;
  }
}

@media (min-width: 48rem) {
  .site-main.teaser {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 3.5rem;
    text-align: left;
  }
}

/* ---------- Rechtliches und Hilfe ---------- */

.legal h1 {
  font-family: var(--font-exhibit);
  font-size: 2rem;
  font-weight: 400;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal address {
  font-style: normal;
}

/* Fehlende Angaben sollen auffallen, bis sie ersetzt sind (Web/README.md). */
.placeholder {
  padding: 0 0.25rem;
  outline: 2px dashed var(--ink-secondary);
  outline-offset: 1px;
}

.draft-note {
  padding: 0.75rem 1rem;
  border: 2px dashed var(--ink-secondary);
  border-radius: 0.75rem;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }

  .site-main {
    padding-top: 3rem;
  }
}
