/* Effekte der Startseite (Kreidetafel, Lebende Zahlen, Spielzug). Mobile zuerst:
   alles ist ohne JavaScript unsichtbar oder statisch, nichts überlagert Text. */
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; } }
.tafel { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #1e4034 0%, #16302a 60%, #0f221d 100%); box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); border: 1px solid rgba(246,245,236,.08); }
@media (min-width: 900px) { .tafel { aspect-ratio: 16 / 10; } }
.tafel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tafel .kr { stroke: rgba(246,245,236,.8); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tafel .kr.l { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tafelZeichnen 2s ease-out forwards; }
.tafel .kr.k { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tafelZeichnen 1s ease-out .8s forwards; }
@keyframes tafelZeichnen { to { stroke-dashoffset: 0; } }
.tafel .nm { font-family: "Caveat", cursive; font-weight: 700; font-size: 58px; fill: #f6f5ec; }
.tafel .bt { font-family: "Caveat", cursive; font-weight: 500; font-size: 50px; fill: #f6f5ec; }
.tafel .nm, .tafel .bt { opacity: 0; animation: tafelAuf .45s ease-out forwards; }
@keyframes tafelAuf { to { opacity: .95; } }
.tafel .st { stroke: #e0583f; stroke-width: 6; stroke-linecap: round; }
.tafel .st { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tafelStrich .4s ease-in forwards; }
@keyframes tafelStrich { to { stroke-dashoffset: 0; } }
.tafel .hk { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 46px; fill: #7fd3a0; }
.tafel .hk { opacity: 0; animation: tafelHaken .35s ease-out forwards; }
@keyframes tafelHaken { 0% { opacity: 0; } 100% { opacity: 1; } }
.tafel .ks { font-family: "Archivo Black", sans-serif; font-size: 64px; fill: #dca53a; letter-spacing: -.02em; }
.tafel .kl { font-family: "Caveat", cursive; font-size: 32px; fill: rgba(246,245,236,.7); }
.tafel .bleibt { animation: tafelPuls 1.6s ease-in-out 6.5s infinite; }
@keyframes tafelPuls { 0%,100% { opacity: .95; } 50% { opacity: .5; } }
.tafel .kreis-rot { stroke: #e0583f; stroke-width: 4; fill: none; }
.tafel .kreis-rot { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tafelZeichnen .7s ease-out 5.6s forwards; }
.tafel .nochmal { position: absolute; right: 10px; bottom: 8px; background: rgba(246,245,236,.1); color: rgba(246,245,236,.8); border: 1px solid rgba(246,245,236,.25); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.kc-ruhig .tafel .nochmal { display: none; }

/* Lebende Zahlen: Karte über dem Zahlenraster, auf Handys schmal gehalten */
.karte-wrap { max-width: 240px; margin: 0 auto 22px; }
@media (min-width: 900px) {
  /* Karte links, Kacheln als kompakter 2x2-Block daneben; der Block endet nicht am rechten Inhaltsrand. */
  .zahlen-flex { display: grid; grid-template-columns: 380px minmax(0, 520px); justify-content: start; gap: 56px; align-items: center; }
  .karte-wrap { margin: 0; max-width: 380px; }
  .zahlen-flex .zahlen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.karte-wrap svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.karte-wrap .land { fill: rgba(246,245,236,.08); stroke: rgba(246,245,236,.22); stroke-width: 1.2; transition: fill .7s ease; }
.karte-wrap .land.an { fill: rgba(246,245,236,.12); }
.karte-wrap .punkt { fill: #dca53a; opacity: 0; transform-box: fill-box; transform-origin: center; }
.karte-wrap .punkt.an { animation: punktAuf .9s ease-out forwards; }
@keyframes punktAuf { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(2.2); } 100% { opacity: .95; transform: scale(1); } }
.karte-wrap .ring { fill: none; stroke: #dca53a; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.karte-wrap .ring.an { animation: heimRing 1.2s ease-out forwards; }
.karte-wrap .land.heim { fill: #dca53a; }
.karte-wrap .heim-punkt { fill: #f6f5ec; }
.karte-wrap .heim-ring { fill: none; stroke: #f6f5ec; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: heimRing 2.2s ease-out infinite; }
@keyframes heimRing { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(5); } }
.zahl-wert[data-kc-zahl] { font-variant-numeric: tabular-nums; }

/* Spielzug: mobile zuerst, zwei Spalten ab 760px */
.spielzug { display: grid; gap: 18px; }
@media (min-width: 760px) { .spielzug { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 34px; align-items: start; } }
.sz-schritt { font-family: "Caveat", cursive; font-size: 22px; color: rgba(246,245,236,.9); min-height: 30px; margin: 0 0 10px; }
.sz-spieler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .sz-spieler { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } }
.sz-karte { position: relative; background: rgba(246,245,236,.06); border: 1px solid rgba(246,245,236,.14); border-radius: 12px; padding: 10px 10px 8px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background .15s; text-align: left; color: inherit; font: inherit; }
.sz-karte.aktiv { border-color: #dca53a; background: rgba(220,165,58,.14); }
.sz-karte .k { width: 32px; height: 32px; border-radius: 50%; background: rgba(246,245,236,.1); border: 2px solid rgba(246,245,236,.25); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.sz-karte .n { font-weight: 700; font-size: 14px; }
.sz-karte .o { font-size: 12px; color: #ff9d8a; margin-top: 3px; min-height: 16px; }
.sz-karte .o.frei { color: #7fd3a0; }
.sz-karte .z { margin-top: 7px; width: 100%; border: none; border-radius: 8px; padding: 7px 0; font-weight: 700; font-size: 12px; background: #3fbf7f; color: #0f221d; cursor: pointer; display: none; }
.sz-karte.schuldet .z { display: block; }
.sz-strafen { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.sz-chip { border: 1px solid rgba(246,245,236,.25); border-radius: 999px; padding: 8px 12px; font-size: 13.5px; cursor: pointer; background: transparent; color: #f6f5ec; font: inherit; font-size: 13.5px; }
.sz-chip.aktiv { background: #dca53a; color: #16302a; border-color: #dca53a; font-weight: 700; }
.sz-eintragen { background: #f6f5ec; color: #16302a; border: none; border-radius: 11px; padding: 13px 18px; font-weight: 800; font-size: 15px; cursor: pointer; opacity: .5; font-family: inherit; }
.sz-eintragen.bereit { opacity: 1; }
.sz-kasse { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(0,0,0,.18); border-radius: 14px; padding: 14px 16px; }
@media (min-width: 760px) { .sz-kasse { flex-direction: column; align-items: center; padding: 22px 16px; } }
.sz-kasse .l { font-family: "Caveat", cursive; font-size: 22px; color: rgba(246,245,236,.8); }
.sz-kasse .s { font-family: "Archivo Black", sans-serif; font-size: clamp(28px, 5vw, 44px); color: #dca53a; font-variant-numeric: tabular-nums; }
.sz-glas { position: relative; width: 96px; height: 130px; border: 4px solid rgba(246,245,236,.7); border-top-width: 0; border-radius: 0 0 20px 20px; overflow: hidden; background: rgba(0,0,0,.2); flex-shrink: 0; }
@media (min-width: 760px) { .sz-glas { width: 150px; height: 200px; } }
.sz-glas .f { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(180deg, #f0c866, #dca53a); transition: height .9s cubic-bezier(.2,.8,.2,1); }
.sz-glas .f::before { content: ""; position: absolute; left: -10%; right: -10%; top: -7px; height: 14px; border-radius: 50%; background: #f3d27a; }
.sz-glas .sl { position: absolute; top: 8px; left: 50%; width: 46%; height: 7px; margin-left: -23%; border-radius: 4px; background: rgba(246,245,236,.6); }
.sz-muenze { position: absolute; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #dca53a 60%, #a67a1f); box-shadow: 0 4px 10px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-weight: 900; color: #5a3f0b; font-size: 15px; pointer-events: none; z-index: 5; }
.sz-zettel { position: absolute; background: #fff7d6; color: #16302a; font-family: "Caveat", cursive; font-size: 17px; padding: 3px 9px; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0,0,0,.3); pointer-events: none; z-index: 5; }
.sz-konfetti { position: absolute; width: 7px; height: 11px; pointer-events: none; z-index: 6; }
.sz-hinweis { font-size: 13px; color: rgba(246,245,236,.6); margin-top: 10px; }

@media (min-width: 900px) { .hero-grid h1 { font-size: clamp(38px, 4.9vw, 68px); } }
