/* =========================================================
   spiele.concept916.com - Regelvideos für Spieleverlage
   Ergänzt style.css (Farben, Schriften, Bausteine) um 16:9-Bildschirm, dunkle Kapitel und die Spiel-Vorschau.
   ========================================================= */

/* Kurzer Bindestrich: Inter zeichnet "-" fast so lang wie einen Gedankenstrich. Auf den Spiele-Seiten kommt
   das Zeichen deshalb aus Strich.ttf (nur dieses eine Zeichen, Höhe und Stärke wie Inter, gut 30 % kürzer).
   Gilt für allen Text in Inter; Quelle zum Neubauen: README, Abschnitt Subdomain spiele.concept916.com. */
@font-face { font-family: "Inter"; src: url("../fonts/Strich.ttf") format("truetype"); font-weight: 100 900; font-display: swap; unicode-range: U+002D, U+2010, U+2011; }

/* ---------- 16:9-Bildschirm mit Player ---------- */
.screen {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px);
  background: #07050C;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14),
    0 0 0 7px #120E1F,
    0 0 0 8px rgba(255, 255, 255, .08),
    0 50px 90px -34px rgba(15, 8, 40, .8),
    0 20px 44px -22px rgba(108, 59, 255, .45);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; background: #07050C; }
.screen .player__bar { left: 3%; right: 3%; bottom: clamp(8px, 2.2%, 16px); }
.screen .player__big .i { width: 84px; height: 84px; padding: 28px 25px 28px 30px; }

/* ---------- Regelvideo mit Kapiteln (Kundenseite) ---------- */
.spiele-hero__copy { max-width: 760px; }
.regel { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; margin-top: clamp(34px, 4vw, 52px); }
.regel:has(.regel__kapitel.is-empty) { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.regel__kapitel.is-empty { display: none; }
.regel__player .why__caption { color: var(--on-dark-2); }
.spiele-hero__ctas { margin-top: clamp(30px, 4vw, 44px); }

.chapters--dark { gap: 8px; }
.chapters--dark .chapter {
  grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center;
  padding: 12px 16px; border-radius: 16px;
  border-color: var(--line-dark); background: rgba(255, 255, 255, .04); color: var(--on-dark);
}
.chapters--dark .chapter:hover { border-color: rgba(156, 123, 255, .5); }
.chapters--dark .chapter__text strong { margin: 0; font-size: 15.5px; font-stretch: 104%; font-weight: 700; }
.chapters--dark .chapter__time { padding: 0; color: var(--on-dark-2); }
.chapters--dark .chapter.is-active { transform: none; background: rgba(108, 59, 255, .18); box-shadow: 0 0 0 2px var(--violet-2); }
.chapters--dark .chapter.is-done .chapter__time { color: var(--violet-2); }

/* ---------- Social-Clip (Kundenseite) ---------- */
.spiele-clip__inner { display: grid; grid-template-columns: minmax(260px, 330px) 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.spiele-clip__media { justify-self: center; width: 100%; max-width: 310px; }
.spiele-clip__media .why__caption { text-align: center; }
.spiele-list { list-style: none; display: grid; gap: 12px; margin: 28px 0 0; padding: 0; }
.spiele-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.spiele-list .i { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--violet-3); color: var(--violet); }
.panel .spiele-list .i { background: rgba(156, 123, 255, .18); color: var(--violet-2); }

/* ---------- Startseite: Spiel-Vorschau im Hero (eigene Grafik, keine Verlagsmotive) ---------- */
.spielvisual { position: relative; width: min(100%, 600px); aspect-ratio: 600 / 520; margin-inline: auto; }
.spielvisual .screen { position: absolute; left: 0; top: 4%; width: 86%; }
.spielvisual__phone { position: absolute; right: 0; bottom: 0; width: 34%; z-index: 2; }
.spielvisual__phone .phone { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 5px #07050C, 0 40px 70px -30px rgba(0, 0, 0, .8); }

/* Szene im Bildschirm: Kapiteltitel, drei Karten, Fortschritt mit Kapitelmarken */
.szene { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #2A1F55 0%, #120E24 70%); }
.szene__titel { position: absolute; left: 5%; top: 7%; display: grid; }
.szene__titel span { grid-area: 1 / 1; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 clamp(10px, 1.3vw, 13px)/1 var(--font-body); white-space: nowrap; opacity: 0; animation: titelwechsel 9s infinite; }
.szene__titel span:nth-child(2) { animation-delay: 3s; }
.szene__titel span:nth-child(3) { animation-delay: 6s; }
@keyframes titelwechsel { 0%, 3% { opacity: 0; transform: translateY(6px); } 6%, 30% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: translateY(-6px); } }

.szene__karten { position: absolute; left: 50%; top: 54%; width: 0; height: 0; }
.karte {
  position: absolute; left: 0; top: 0; width: clamp(54px, 9.5vw, 92px); aspect-ratio: 5 / 7; margin: calc(clamp(54px, 9.5vw, 92px) * -0.7) 0 0 calc(clamp(54px, 9.5vw, 92px) * -0.5);
  display: grid; place-items: center; border-radius: 10%;
  background: linear-gradient(160deg, #FFFCF8, #ECE5DA); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .7);
  color: var(--ink); font: 800 clamp(18px, 2.6vw, 30px)/1 var(--font-display); font-stretch: 110%;
}
.karte::before { content: attr(data-wert); position: absolute; left: 9%; top: 6%; font-size: .38em; }
.karte .i { position: absolute; left: 50%; bottom: 9%; width: 30%; height: auto; transform: translateX(-50%); }
.karte--1 { color: #5C2CF2; animation: karte1 6s var(--ease) infinite; }
.karte--2 { color: #E5483D; animation: karte2 6s var(--ease) infinite; }
.karte--3 { color: #0B7A5C; animation: karte3 6s var(--ease) infinite; }
@keyframes karte1 { 0%, 100% { transform: translate(-120%, 8%) rotate(-12deg); } 45%, 60% { transform: translate(-112%, 2%) rotate(-9deg); } }
@keyframes karte2 { 0%, 100% { transform: translate(0, -6%) rotate(0deg); } 45%, 60% { transform: translate(0, -16%) rotate(0deg) scale(1.06); } }
@keyframes karte3 { 0%, 100% { transform: translate(120%, 8%) rotate(12deg); } 45%, 60% { transform: translate(112%, 2%) rotate(9deg); } }
.szene__stern { position: absolute; left: 50%; top: 22%; width: clamp(18px, 3vw, 28px); color: var(--sun); transform: translateX(-50%); animation: stern 6s var(--ease) infinite; }
@keyframes stern { 0%, 40% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 50%, 64% { opacity: 1; transform: translate(-50%, 0) scale(1); } 74%, 100% { opacity: 0; transform: translate(-50%, -10px) scale(.8); } }

.szene__leiste { position: absolute; left: 5%; right: 5%; bottom: 8%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.szene__leiste i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet-2), var(--coral)); animation: leiste 9s linear infinite; }
.szene__leiste b { position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .6); }
@keyframes leiste { from { width: 0; } to { width: 100%; } }

/* Szene im Handy: Hook + Karte */
.clipszene { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10%; padding: 22% 10% 16%; background: radial-gradient(120% 70% at 50% 30%, #3A2370 0%, #140F28 75%); text-align: center; }
.clipszene__hook { color: #fff; font: 800 clamp(11px, 1.7vw, 17px)/1.1 var(--font-display); font-stretch: 108%; }
.clipszene__hook em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clipszene .karte { position: relative; margin: 0; width: 46%; animation: wackeln 3s ease-in-out infinite; }
@keyframes wackeln { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-4px); } }
.clipszene__sub { padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 clamp(7px, .95vw, 10px)/1.3 var(--font-body); }

/* ---------- Startseite: Formate ---------- */
.formate { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.format { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line-dark); border-radius: 28px; background: rgba(255, 255, 255, .04); }
.format__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.format h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.format p { margin: 0; color: var(--on-dark-2); font-size: 16px; line-height: 1.6; }
.format__form { display: grid; place-items: center; border: 2px solid var(--violet-2); border-radius: 6px; color: var(--violet-2); }
.format__form--quer { width: 46px; height: 26px; }
.format__form--hoch { width: 22px; height: 38px; border-radius: 5px; }
.format .spiele-list { margin-top: 6px; }
.format .spiele-list li { font-size: 15.5px; color: var(--on-dark); }

/* ---------- Fußzeile: vier Links dürfen auf schmalen Bildschirmen umbrechen ---------- */
.legal-footer span:last-child { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal-footer span:last-child a { margin-left: 0; }

/* ---------- Startseite: Vorteile der Animation ---------- */
.vorteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 980px) {
  .regel { grid-template-columns: minmax(0, 1fr); }
  .spiele-clip__inner { grid-template-columns: minmax(0, 1fr); }
  .spiele-clip__copy { order: -1; }
  .vorteile { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .formate { grid-template-columns: minmax(0, 1fr); }
  .vorteile { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .szene *, .clipszene * { animation: none !important; }
  .szene__titel span:first-child { opacity: 1; }
  .szene__leiste i { width: 38%; }
}
