/* guri-online.com – Startseite
   Ein Spieltisch aus Nussbaum; darauf die drei Spiele, jedes in seiner eigenen Welt:
   Guri auf grünem Filz mit Zahlensteinen, Poker am Tisch mit Messingleiste, Accelerator im Nachtblau.
   Schrift: Guri Serif (Lora) für Titel und Steine, Systemschrift für den Text. */

@font-face { font-family: "Guri Serif"; src: url(schrift/GuriSerif-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Guri Serif"; src: url(schrift/GuriSerif-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Guri Serif"; src: url(schrift/GuriSerif-MediumItalic.woff) format("woff"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --holz: #2a1c13;
  --holz-tief: #1a110b;
  --holz-hell: #5a3d28;
  --kreide: #f3ede0;
  --gedaempft: #cbbfa9;
  --messing: #d9a441;
  --messing-hell: #f0c869;
  --stein: #efe4cc;
  --stein-hell: #fbf6e9;
  --stein-kante: #d3c5a8;
  --rot: #9c2b2b;
  --blau: #1f74c4;
  --gruen: #2f7d33;
  --schwarz: #201c16;
  --guri: #1f3d2b;
  --guri-tief: #142a1c;
  --poker: #0e4b3b;
  --poker-tief: #08342a;
  --nacht: #0b1233;
  --nacht-tief: #060914;
  --cyan: #7fe3ff;
  --serif: "Guri Serif", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 66rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--holz-tief);
  color: var(--kreide);
  font: 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--messing-hell); text-underline-offset: .18em; }
a:focus-visible, .knopf:focus-visible { outline: 3px solid var(--messing-hell); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kopf: die Steinleiste ---------- */
.kopf {
  /* Nussbaum: feine Maserung aus zwei Verläufen */
  background:
    repeating-linear-gradient(176deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse 120% 90% at 50% 0%, #3b281b 0%, var(--holz) 55%, var(--holz-tief) 100%);
  padding: clamp(2.5rem, 8vw, 5.5rem) 16px clamp(2.75rem, 7vw, 4.5rem);
  text-align: center;
}
.marke {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: .4rem clamp(.6rem, 2vw, 1.1rem);
}
.leiste {
  /* Die Holzleiste, auf der die Steine stehen */
  display: inline-flex; gap: clamp(4px, 1.2vw, 8px);
  padding: 0 clamp(8px, 2vw, 14px) clamp(10px, 2.4vw, 16px);
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, transparent 0 62%, #6b4a31 62%, #4a321f 82%, #2e1f13 100%);
  box-shadow: 0 14px 22px -10px rgba(0,0,0,.7);
}
.stein {
  position: relative;
  display: inline-grid; place-items: center;
  width: clamp(44px, 13.5vw, 86px); aspect-ratio: 3 / 4;
  padding-bottom: 14%;
  border-radius: clamp(6px, 1.4vw, 10px);
  background: linear-gradient(180deg, var(--stein-hell), var(--stein) 70%);
  box-shadow: 0 clamp(3px, .8vw, 5px) 0 var(--stein-kante), 0 8px 14px rgba(0,0,0,.45);
  font: 700 clamp(28px, 9vw, 56px)/1 var(--serif);
  font-variant-numeric: lining-nums;
}
.stein::after {
  /* der kleine Punkt unter der Zahl, wie auf echten Steinen */
  content: ""; position: absolute; left: 50%; bottom: 13%;
  width: 14%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: currentColor; opacity: .85;
}
.stein.rot { color: var(--rot); }
.stein.blau { color: var(--blau); }
.stein.gruen { color: var(--gruen); }
.stein.schwarz { color: var(--schwarz); }
.online {
  font: italic 500 clamp(24px, 7.2vw, 52px)/1 var(--serif);
  color: var(--messing-hell);
  padding-bottom: clamp(14px, 3vw, 22px);
}
.unterzeile {
  max-width: 34rem; margin: clamp(1.4rem, 4vw, 2.2rem) auto 0;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--gedaempft);
  text-wrap: balance;
}

/* Einmalig beim Laden: die Steine fallen in die Leiste */
@media (prefers-reduced-motion: no-preference) {
  .leiste .stein { animation: einsetzen .5s cubic-bezier(.3, 1.5, .55, 1) both; }
  .leiste .stein:nth-child(2) { animation-delay: .09s; }
  .leiste .stein:nth-child(3) { animation-delay: .18s; }
  .leiste .stein:nth-child(4) { animation-delay: .27s; }
  .online { animation: auftauchen .5s ease-out .5s both; }
}
@keyframes einsetzen { from { transform: translateY(-38px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes auftauchen { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Die Spiele ---------- */
.spiel { padding: clamp(2.25rem, 6vw, 4.5rem) 16px; }
.spiel-innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 860px) {
  .spiel-innen { grid-template-columns: 1fr 1fr; }
  .spiel:nth-of-type(even) .bild { order: 2; }
}
.bild { display: grid; place-items: center; min-height: clamp(170px, 34vw, 300px); }
.text h2 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
.text > p { margin-top: .7rem; max-width: 33rem; }
.fakten { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.fakten li { font-size: .9rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--linie); color: var(--fakt); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 12px;
  font-weight: 650; font-size: 1.02rem; text-decoration: none;
  background: var(--akzent); color: var(--akzent-text); border: 2px solid var(--akzent);
  transition: filter .15s;
}
.knopf:hover { filter: brightness(1.08); }
.knopf.zweit { background: transparent; color: var(--akzent); }
.knopf svg { width: 1.1em; height: 1.1em; flex: none; }
.app-info { margin-top: .6rem; font-size: .88rem; color: var(--fakt); }

/* Guri: grüner Filz, Zahlensteine */
.spiel.guri {
  --akzent: var(--messing); --akzent-text: #241a0c; --linie: rgba(236,229,210,.25); --fakt: #c3cbb5;
  background: radial-gradient(ellipse 90% 80% at 30% 40%, #275038 0%, var(--guri) 55%, var(--guri-tief) 100%);
}
.reihe { display: flex; align-items: flex-end; gap: clamp(5px, 1.2vw, 9px); }
.reihe .stein { width: clamp(52px, 14vw, 92px); font-size: clamp(26px, 7.4vw, 48px); }
.reihe .stein:nth-child(1) { transform: rotate(-5deg) translateY(4px); }
.reihe .stein:nth-child(2) { transform: rotate(-1.5deg); }
.reihe .stein:nth-child(3) { transform: rotate(1.5deg); }
.reihe .stein:nth-child(4) { transform: rotate(6deg) translateY(5px); }
.reihe-text { margin-top: 1.1rem; font-size: .9rem; color: #c3cbb5; text-align: center; }

/* Poker: Filz mit Nussbaum-Rand und Messingleiste */
.spiel.poker {
  --akzent: var(--messing); --akzent-text: #221708; --linie: rgba(242,239,230,.22); --fakt: #b4c7bd;
  background: radial-gradient(ellipse 80% 90% at 70% 45%, #1a6c54 0%, var(--poker) 50%, var(--poker-tief) 100%);
  border-block: 12px solid #3b2417;
  box-shadow: inset 0 2px 0 rgba(217,164,65,.55), inset 0 -2px 0 rgba(217,164,65,.55);
}
.karten { position: relative; width: clamp(200px, 50vw, 330px); aspect-ratio: 1.25; }
.karten img { position: absolute; width: 48%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.karten .k1 { left: 10%; top: 6%; transform: rotate(-9deg); }
.karten .k2 { left: 40%; top: 2%; transform: rotate(7deg); }
.karten .c1 { width: 30%; left: 66%; top: 58%; }
.karten .c2 { width: 26%; left: 2%; top: 64%; transform: rotate(-20deg); }

/* Accelerator: Nachtblau, Neon */
.spiel.accelerator {
  --akzent: var(--cyan); --akzent-text: var(--nacht-tief); --linie: rgba(127,227,255,.3); --fakt: #a9b8e8;
  background:
    radial-gradient(circle at 40% 70%, rgba(127,227,255,.12), transparent 40%),
    linear-gradient(180deg, var(--nacht) 0%, var(--nacht-tief) 100%);
}
.spiel.accelerator h2 { letter-spacing: .01em; }
.feld { width: clamp(240px, 60vw, 400px); height: auto; }

/* ---------- Hinweise unten ---------- */
.hinweise {
  max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) 16px clamp(2rem, 5vw, 3rem);
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 860px) { .hinweise { grid-template-columns: 1.25fr 1fr; } }
.hinweise h2 { font-size: clamp(1.45rem, 3.6vw, 1.85rem); margin-bottom: .9rem; }
.hinweise p { color: var(--gedaempft); max-width: 36rem; }
.hinweise p + p { margin-top: .7rem; }
.schritte { list-style: none; counter-reset: schritt; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; }
.schritte li { counter-increment: schritt; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; color: var(--gedaempft); }
.schritte li::before {
  /* die Schrittnummer als kleiner Stein */
  content: counter(schritt);
  display: grid; place-items: center; width: 2.4rem; height: 2.9rem; border-radius: 6px;
  background: linear-gradient(180deg, var(--stein-hell), var(--stein));
  box-shadow: 0 3px 0 var(--stein-kante);
  color: var(--rot); font: 700 1.35rem/1 var(--serif);
}
.schritte b { color: var(--kreide); }

.fuss {
  border-top: 1px solid rgba(243,237,224,.12);
  padding: 1.6rem 16px 2.2rem; text-align: center; font-size: .92rem; color: #a99c87;
}
.fuss nav { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: .6rem; }
.fuss a { color: var(--gedaempft); }

/* ---------- Textseiten (Impressum, Datenschutz, 404) ---------- */
.seite { max-width: 44rem; margin: 0 auto; padding: 0 16px 3.5rem; }
.seite-kopf { padding: clamp(1.8rem, 6vw, 3rem) 0 1.4rem; border-bottom: 2px solid var(--messing); margin-bottom: .5rem; }
.zurueck { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--gedaempft); font-size: .95rem; }
.zurueck .stein { width: 26px; padding-bottom: 0; font-size: 15px; border-radius: 4px; box-shadow: 0 2px 0 var(--stein-kante); }
.zurueck .stein::after { display: none; }
.seite-kopf h1 { font-size: clamp(2rem, 6vw, 2.7rem); margin-top: 1.2rem; }
.seite-kopf p { margin-top: .4rem; color: var(--gedaempft); }
.seite h2 { font-size: 1.3rem; margin: 2.1rem 0 .5rem; color: var(--messing-hell); }
.seite h3 { font-size: 1.08rem; margin: 1.3rem 0 .35rem; }
.seite p, .seite li { color: #e3dccd; }
.seite p + p { margin-top: .7rem; }
.seite ul { padding-left: 1.2rem; margin: .5rem 0 0; }
.seite li + li { margin-top: .3rem; }
.tabelle { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .45rem .7rem .45rem 0; border-bottom: 1px solid rgba(243,237,224,.14); }
.tabelle th { color: var(--kreide); font-weight: 650; }
.klein { font-size: .9rem; color: #a99c87; }
.leer { display: grid; place-items: center; min-height: 70vh; text-align: center; padding: 2rem 16px; }
.leer h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 1.4rem 0 .6rem; }
.leer p { color: var(--gedaempft); margin-bottom: 1.4rem; }
.leer .reihe { justify-content: center; }
.leer .knopf { --akzent: var(--messing); --akzent-text: #241a0c; }
