/* =====================================================================
   Startseite der Firmenwebsite „Die Idee“ (idee.html, idea.html, #295).
   Gedacht für den Rechner; auf dem Handy bleibt sie lesbar, ist aber nicht
   dafür gestaltet. Baut auf seite.css auf (Farben, Schrift, hell und dunkel)
   und folgt docs/CI.md: Kartenzimmer bei Nacht, Barlow Semi Condensed,
   kein Kursiv, kein Glitzer.
   Gestaltung nach „Apple Design“ (WWDC):
   - ein Gedanke je Abschnitt, große ruhige Sätze, viel Luft
   - Größe, Zeilenabstand und Laufweite gehören zusammen: große Überschriften
     eng, Fließtext normal, kleine Versalien weit
   - Material statt Balken: die Navigation ist durchscheinend
   - Rückmeldung sofort beim Drücken (:active)
   - Bewegung nur zur Orientierung, kurz; mit prefers-reduced-motion nur
     Überblenden; ohne Skript ist alles sofort sichtbar
   Die Markenfarben des Tischs (Filz, Holz, Karten) sind in beiden Modi gleich.
   ===================================================================== */

:root {
  --filz: #17734f; --filz-hell: #22906a; --filz-tief: #0d4a33;
  --holz: #4a2e1e; --holz-dunkel: #2c1a10; --holz-hell: #6b4430;
  --karte: #eef3f9; --tinte: #1d1712; --rot: #b8322a;
  --weich: cubic-bezier(.2, .8, .2, 1);
  --breit: 1200px;
  --rand: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-text-size-adjust: 100%; font-size: 20px; }
p, li { color: var(--dim); }
strong { color: var(--fg); font-weight: 600; }
a { color: var(--accent); overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Navigation: Material, kein Balken ---------- */
.kopf { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; background: var(--bg); transition: border-color .2s ease; }
@supports (backdrop-filter: blur(1px)) {
  .kopf { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
}
.kopf.gescrollt { border-bottom-color: var(--line); }
.kopf-innen { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; box-sizing: border-box; }
.kopf .marke { margin: 0; }
.kopf nav { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.kopf nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 600; color: var(--dim); transition: color .15s ease; }
.kopf nav a:hover { color: var(--fg); }
.kopf nav a.klein { margin-left: 8px; background: var(--chip); color: var(--on-chip); border-radius: 999px; padding: 0 20px; transition: transform .1s ease-out, filter .15s ease; }
.kopf nav a.klein:hover { filter: brightness(1.08); color: var(--on-chip); }
.kopf nav a.klein:active { transform: scale(.97); }
@media (max-width: 860px) { .kopf nav a.mittel { display: none; } }

main { display: block; }
.innen { max-width: var(--breit); margin: 0 auto; padding: 0 var(--rand); box-sizing: border-box; }
section { padding: clamp(80px, 11vw, 150px) 0 0; }

/* ---------- Schrift: Größe, Zeilenabstand, Laufweite als Satz ---------- */
.vorspann { margin: 0 0 18px; font: 600 15px/1.2 var(--schrift); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font: 700 clamp(48px, 8.4vw, 108px)/1 var(--schrift); letter-spacing: -.028em; color: var(--fg); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h2 { margin: 0; font: 700 clamp(36px, 5.6vw, 72px)/1.04 var(--schrift); letter-spacing: -.024em; color: var(--fg); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h3 { margin: 0 0 8px; font: 600 clamp(22px, 2.2vw, 28px)/1.2 var(--schrift); letter-spacing: -.005em; color: var(--fg); }
.lead { margin: 24px auto 0; max-width: 28em; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.35; letter-spacing: -.005em; color: var(--dim); text-wrap: balance; }
.lead strong { color: var(--fg); }
.mitte { text-align: center; }

/* ---------- Knöpfe: Rückmeldung beim Drücken ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; margin-top: 36px; }
a.knopf {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 56px; padding: 0 32px;
  border-radius: 999px; background: var(--chip); color: var(--on-chip);
  font: 700 20px/1.2 var(--schrift); letter-spacing: .01em; text-decoration: none;
  transition: transform .1s ease-out, filter .15s ease;
}
a.knopf:hover { filter: brightness(1.08); }
a.knopf:active { transform: scale(.97); }
a.knopf:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a.zweit { display: inline-flex; align-items: center; min-height: 56px; padding: 0 18px; font: 600 20px/1.2 var(--schrift); text-decoration: none; }
a.zweit::after { content: '\203A'; margin-left: .35em; transition: transform .2s var(--weich); }
a.zweit:hover::after { transform: translateX(3px); }

/* ---------- Titelbereich ---------- */
.hero { padding-top: clamp(56px, 8vw, 110px); text-align: center; }
.hero h1 { max-width: 12em; margin: 0 auto; }

/* Der Tisch: bleibt in hell und dunkel dunkel (CI) */
.tisch { position: relative; width: 100%; max-width: 860px; margin: clamp(48px, 7vw, 88px) auto 0; padding: 28px 0; box-sizing: border-box; }
.rand {
  position: relative; aspect-ratio: 16 / 9; border-radius: 999px; padding: clamp(10px, 1.8vw, 20px); box-sizing: border-box;
  background: linear-gradient(160deg, var(--holz-hell), var(--holz) 45%, var(--holz-dunkel));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .32), 0 2px 0 rgba(255, 255, 255, .08) inset;
}
.filz {
  position: relative; width: 100%; height: 100%; border-radius: 999px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 35%, var(--filz-hell), var(--filz) 45%, var(--filz-tief));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45) inset;
}
.board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: clamp(6px, 1.2vw, 14px); }
.karte {
  width: clamp(38px, 7vw, 76px); aspect-ratio: 5 / 7; border-radius: clamp(5px, .9vw, 9px); background: var(--karte); color: var(--tinte);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 clamp(17px, 3vw, 32px)/1 var(--schrift);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.karte.rot { color: var(--rot); }
.karte i { font-style: normal; font-size: .85em; }
.sitz {
  position: absolute; display: flex; align-items: center; gap: clamp(8px, 1.2vw, 12px); padding: 8px clamp(14px, 2vw, 22px) 8px 8px; border-radius: 999px;
  background: rgba(11, 17, 25, .8); color: #eef3f9; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  font: 600 clamp(13px, 1.7vw, 19px)/1.15 var(--schrift); white-space: nowrap; text-align: left;
}
.sitz small { display: block; font-weight: 400; font-size: .84em; color: #b4c0d0; }
.sitz .chip { flex: none; width: clamp(30px, 4.4vw, 48px); height: clamp(30px, 4.4vw, 48px); border-radius: 50%; background: #4da3ff; box-shadow: inset 0 0 0 4px #4da3ff, inset 0 0 0 7px rgba(255, 255, 255, .88); }
.sitz.s1 { left: -3%; top: 6%; }
.sitz.s2 { right: -3%; top: 6%; }
.sitz.s3 { left: -3%; bottom: 6%; }
.sitz.du { right: -3%; bottom: 6%; background: #4da3ff; color: #06121f; }
.sitz.du small { color: #06121f; opacity: .82; }
.sitz.du .chip { background: #06121f; box-shadow: inset 0 0 0 4px #06121f, inset 0 0 0 7px rgba(255, 255, 255, .88); }
.s2 .chip { background: #22906a; box-shadow: inset 0 0 0 4px #22906a, inset 0 0 0 7px rgba(255, 255, 255, .88); }
.s3 .chip { background: #b8322a; box-shadow: inset 0 0 0 4px #b8322a, inset 0 0 0 7px rgba(255, 255, 255, .88); }

/* ---------- Flächen ---------- */
.kachel { background: var(--note); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 3.2vw, 44px); box-sizing: border-box; }
.kachel p { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }

/* So funktioniert’s: drei große Flächen */
ol.schritte { list-style: none; counter-reset: s; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
ol.schritte li { counter-increment: s; margin: 0; min-height: 340px; display: flex; flex-direction: column; }
ol.schritte li::before { content: counter(s); display: block; margin-bottom: auto; padding-bottom: 36px; font: 700 clamp(64px, 7vw, 96px)/1 var(--schrift); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Besonderheiten: Kacheln unterschiedlicher Größe */
.bento { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.bento li { margin: 0; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; grid-column: span 2; }
.bento li.halb { grid-column: span 3; min-height: 340px; }
.bento li.ganz { grid-column: span 6; min-height: 200px; }
.bento .filzkachel { background: radial-gradient(120% 140% at 30% 0%, var(--filz-hell), var(--filz) 50%, var(--filz-tief)); border-color: transparent; }
.bento .blaukachel { background: #4da3ff; border-color: transparent; }
.bento .filzkachel h3, .bento .filzkachel p { color: #eef3f9; }
.bento .blaukachel h3, .bento .blaukachel p { color: #06121f; }
.bento .gross { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.015em; line-height: 1.08; margin-bottom: 14px; }

/* Aussagen: drei kurze Sätze */
.fakten { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); text-align: left; }
.fakten li { margin: 0; }
.fakten h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.015em; line-height: 1.1; margin-bottom: 12px; }

/* Wo du spielst */
.wege { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.weg { margin: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 260px; }
.weg h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.015em; }
.weg p { margin-bottom: auto; }
.weg a.knopf { margin-top: 28px; min-height: 52px; font-size: 18px; padding: 0 26px; }
.weg .folgt { margin-top: 28px; display: inline-flex; align-items: center; min-height: 52px; font: 600 18px/1 var(--schrift); color: var(--dim); }

/* Neuigkeiten */
.neues { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 820px; text-align: left; }
.neues li { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 8px 28px; }
.neues li:last-child { border-bottom: 1px solid var(--line); }
.neues time { font: 600 16px/1.6 var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.neues h3 { margin-bottom: 6px; }
.neues p { margin: 0; font-size: 19px; line-height: 1.5; }

/* Kontakt */
.mail { display: inline-block; margin-top: 28px; font: 700 clamp(28px, 4.6vw, 56px)/1.1 var(--schrift); letter-spacing: -.02em; text-decoration: none; }
.mail:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; }

footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); }
footer .innen { padding-top: 28px; padding-bottom: 40px; font-size: 15px; color: var(--dim); line-height: 1.8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
footer a { white-space: nowrap; }

/* ---------- Auftritt: kurz, nur zur Orientierung ---------- */
.js .zeig { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--weich), transform .6s var(--weich); transition-delay: calc(var(--i, 0) * 80ms); }
.js .zeig.sichtbar { opacity: 1; transform: none; }

/* ---------- Schmale Fenster: nicht dafür gestaltet, aber nichts bricht ---------- */
@media (max-width: 900px) {
  ol.schritte, .fakten, .wege { grid-template-columns: 1fr; }
  ol.schritte li, .weg { min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento li, .bento li.halb, .bento li.ganz { grid-column: auto; min-height: 0; }
  .neues li { grid-template-columns: 1fr; }
  .sitz { font-size: 12px; }
  .sitz small { display: none; }
}

/* ---------- Anpassungen an die Einstellungen der Person ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .zeig { transform: none; transition: opacity .2s ease; transition-delay: 0s; }
  a.knopf:active, .kopf nav a.klein:active { transform: none; }
  a.zweit:hover::after { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .kopf { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: var(--dim); }
  .kopf { border-bottom-color: var(--line); }
}
@media print {
  .kopf { position: static; }
  .js .zeig { opacity: 1; transform: none; }
}
