/* ============================================================================
   Sharps Website: Designsystem, abgeleitet aus den App-Tokens (src/index.css).
   Eine Bühne, ein Thema: Stadionnacht. Dunkel ist hier nicht "Dark Mode",
   sondern die Marke selbst (Blitz auf Navy), deshalb ist das Theme gelockt.
   Formsystem wie in der App: Buttons/Chips = Pill, Karten = 20-24px Radius.
   ========================================================================== */

/* ---- Fonts (selbst gehostet, wie in der App: Poppins) --------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/poppins-latin-800-normal.woff2") format("woff2");
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0b0e21;
  --bg-soft: #0f1229;
  --bg-deep: #080a18;
  --elev: #151a38;
  --elev-2: #1d2348;
  --elev-3: #272d55;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --ink: #f2f3fa;
  --ink-2: #a5abcc;
  --ink-3: #6d7398;

  --accent: #5b74e8;
  --accent-deep: #1a3ce8;
  --accent-press: #1632bf;
  --accent-weak: rgba(91, 116, 232, 0.14);

  --gold: #f6b53c;
  --gold-weak: rgba(246, 181, 60, 0.14);

  --good: #34c759;
  --good-weak: rgba(52, 199, 89, 0.16);
  --bad: #ff453a;
  --bad-weak: rgba(255, 69, 58, 0.14);

  /* Zellfarben der Tippübersicht, 1:1 aus der App */
  --cell-orange: #e8890c;
  --cell-lightgreen: #8ade7a;
  --cell-green: #22a94e;
  --cell-darkgreen: #0e6b31;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 18px 50px rgba(3, 5, 16, 0.55);

  --r-card: 24px;
  --r-tile: 14px;

  --nav-h: 68px;
}

/* ---- Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: rgba(91, 116, 232, 0.35);
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Typo-Skala */
.h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 58ch;
}

section {
  padding-block: clamp(84px, 11vw, 136px);
}

/* ---- Reveal-System (IntersectionObserver setzt .in) ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 30px rgba(26, 60, 232, 0.35);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(11, 14, 33, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: #2547f0;
    transform: translateY(-1px);
  }
  .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
  }
}

/* ---- Navigation ----------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out),
    backdrop-filter 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 14, 33, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 160ms var(--ease-out);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  padding: 10px 20px;
  font-size: 14.5px;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
}

/* ---- Hero ------------------------------------------------------------------
   Zentriert mit Absicht: das Higgsfield-Video ist eine symmetrische
   Ein-Punkt-Perspektive (Tor-Achse), der Text sitzt auf ihrer Mittelachse.
   Video blendet unten in --bg, dadurch beginnt die Seite nahtlos im Hero. */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(11, 14, 33, 0.42) 0%,
      rgba(11, 14, 33, 0.05) 34%,
      rgba(11, 14, 33, 0.18) 62%,
      var(--bg) 97%
    ),
    radial-gradient(120% 90% at 50% 10%, transparent 55%, rgba(11, 14, 33, 0.5) 100%);
}
.hero-inner {
  position: relative;
  text-align: center;
  padding: 0 24px calc(clamp(64px, 10vh, 120px));
  max-width: 980px;
}
.hero-inner .lead {
  margin: 22px auto 0;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Eintritt: gestaffelt, sichtbarer Start (nie aus dem Nichts) */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 0.9s var(--ease-out) forwards;
  }
  .hero-inner > *:nth-child(2) {
    animation-delay: 120ms;
  }
  .hero-inner > *:nth-child(3) {
    animation-delay: 240ms;
  }
}
@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Demo: Karte + Regler -------------------------------------------------- */
.demo-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.demo-copy .h2 {
  max-width: 15ch;
}
.demo-copy .lead {
  margin-top: 18px;
}
.demo-points {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}
.demo-points .pt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink);
  background: var(--elev);
}
.demo-points .pt .icon {
  font-size: 14px;
  color: var(--accent);
}
.demo-points .pt.gold .icon {
  color: var(--gold);
}

.tip-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-float);
  max-width: 460px;
  justify-self: end;
  width: 100%;
}
.tip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.tip-head .badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 17px;
}
.tip-head .t {
  font-weight: 600;
  font-size: 16px;
}
.tip-head .range {
  margin-left: auto;
  background: var(--gold-weak);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
}

.rung {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  padding: 9px 12px;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
    transform 220ms var(--ease-out);
}
.rung + .rung {
  margin-top: 4px;
}
.rung .dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--elev-3);
  color: transparent;
  font-size: 11px;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out);
}
.rung .l {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 220ms var(--ease-out);
}
.rung .p {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  transition: color 220ms var(--ease-out);
}
.rung.hit .dot {
  background: var(--good-weak);
  color: var(--good);
}
.rung.hit .l {
  color: var(--ink);
}
.rung.best {
  background: var(--good);
  transform: scale(1.015);
}
.rung.best .dot {
  background: #fff;
  color: var(--good);
}
.rung.best .l,
.rung.best .p {
  color: #fff;
}

.tip-special {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.tip-special .badge-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold-weak);
  color: var(--gold);
  font-size: 16px;
}
.tip-special .txt {
  flex: 1;
  min-width: 0;
}
.tip-special .txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.tip-special .txt span {
  font-size: 12px;
  color: var(--ink-2);
}
.tip-special.off .txt b,
.tip-special.off .badge-icon {
  opacity: 0.4;
}

/* Switch */
.switch {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--elev-3);
  transition: background-color 200ms var(--ease-out);
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform 200ms var(--ease-out);
}
.switch[aria-checked="true"] {
  background: var(--gold);
}
.switch[aria-checked="true"]::after {
  transform: translateX(18px);
}
.switch:active::after {
  transform: scale(0.92);
}
.switch[aria-checked="true"]:active::after {
  transform: translateX(18px) scale(0.92);
}
.switch[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Regler-Zeile */
.tip-score {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.tip-score .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tip-score .cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.tip-score .score {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
input[type="range"].regler {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 30px;
  background: transparent;
  cursor: pointer;
  margin-top: 6px;
}
input[type="range"].regler::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--fill, 0%),
    var(--elev-3) var(--fill, 0%),
    var(--elev-3) 100%
  );
}
input[type="range"].regler::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -8px;
  height: 22px;
  width: 22px;
  border-radius: 999px;
  background: #fff;
  border: 6px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transition: transform 160ms var(--ease-out);
}
input[type="range"].regler:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
input[type="range"].regler::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--elev-3);
}
input[type="range"].regler::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
input[type="range"].regler::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 999px;
  background: #fff;
  border: 6px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Punktestand-Chip: Zellfarben wie in der App */
.tip-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  background: var(--bad);
  color: #fff;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}
.tip-total .n {
  font-size: 22px;
}
.tip-total.tone-red {
  background: var(--bad);
  color: #fff;
}
.tip-total.tone-orange {
  background: var(--cell-orange);
  color: #fff;
}
.tip-total.tone-lightgreen {
  background: var(--cell-lightgreen);
  color: #114420;
}
.tip-total.tone-green {
  background: var(--cell-green);
  color: #fff;
}
.tip-total.tone-darkgreen {
  background: var(--cell-darkgreen);
  color: #fff;
}
.tip-total.tone-gold {
  background: linear-gradient(135deg, #f7ca4d 0%, #e7a91f 100%);
  color: #3d2a00;
  box-shadow: 0 0 22px rgba(240, 185, 45, 0.5);
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .tip-card {
    justify-self: stretch;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---- Katalog-Marquee ------------------------------------------------------- */
.catalog {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.catalog-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.catalog-head .lead {
  margin: 16px auto 0;
}
.marquee {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-block: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 46s linear infinite;
  }
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
}
.chip .icon {
  font-size: 15px;
  color: var(--accent);
}
.chip .pts {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-weak);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---- Tippübersicht (Matrix) ------------------------------------------------ */
.matrix-section .h2 {
  max-width: 16ch;
}
.matrix-section .lead {
  margin-top: 18px;
}
.matrix-wrap {
  margin-top: 52px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.matrix {
  min-width: 560px;
  max-width: 760px;
  margin-inline: auto;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.matrix-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 56px);
  gap: 10px;
  align-items: center;
}
.matrix-row + .matrix-row {
  margin-top: 10px;
}
.matrix-row .who {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
}
.matrix-row .who .av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.matrix-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-align: center;
}
.cell {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: var(--r-tile);
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .matrix.in .cell {
    opacity: 0;
    transform: scale(0.9);
    animation: cell-in 0.5s var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 45ms);
  }
}
@keyframes cell-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.cell.c-red {
  background: var(--bad);
  color: #fff;
}
.cell.c-orange {
  background: var(--cell-orange);
  color: #fff;
}
.cell.c-lgreen {
  background: var(--cell-lightgreen);
  color: #114420;
}
.cell.c-green {
  background: var(--cell-green);
  color: #fff;
}
.cell.c-dgreen {
  background: var(--cell-darkgreen);
  color: #fff;
}
.cell.c-gold {
  position: relative;
  background: linear-gradient(135deg, #f7ca4d 0%, #e7a91f 100%);
  color: #3d2a00;
  box-shadow: 0 0 10px rgba(240, 185, 45, 0.55);
}
.cell.c-gold::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 16px 3px rgba(246, 195, 70, 0.75);
  opacity: 0.35;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cell.c-gold::after {
    animation: gold-glow 2.6s ease-in-out infinite;
  }
}
@keyframes gold-glow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.9;
  }
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 26px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

/* ---- Modi ------------------------------------------------------------------ */
.modes-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 52px;
}
.mode {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mode:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
  }
}
.mode h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mode p {
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 46ch;
}
.mode .badge-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 20px;
  margin-bottom: 6px;
}
.mode-klassisch {
  grid-row: span 2;
  background: linear-gradient(150deg, #1b2452 0%, #10163a 55%, #0d1230 100%);
  justify-content: flex-end;
  min-height: 420px;
}
.mode-klassisch .badge-icon {
  background: var(--accent-weak);
  color: var(--accent);
}
.mode-klassisch .watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 300px;
  height: 300px;
  color: var(--accent-deep);
  opacity: 0.16;
  transform: rotate(12deg);
  pointer-events: none;
}
.mode-coin {
  background: linear-gradient(150deg, rgba(246, 181, 60, 0.15) 0%, rgba(246, 181, 60, 0.03) 60%),
    var(--elev);
}
.mode-coin .badge-icon {
  background: var(--gold-weak);
  color: var(--gold);
}
.mode-survival {
  background: linear-gradient(150deg, rgba(255, 69, 58, 0.13) 0%, rgba(255, 69, 58, 0.02) 60%),
    var(--elev);
}
.mode-survival .badge-icon {
  background: var(--bad-weak);
  color: var(--bad);
}
.mode .mini {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.mode .mini .coin {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-weak);
  border: 1px solid rgba(246, 181, 60, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
}
.mode .mini .life {
  color: var(--bad);
  font-size: 18px;
}
.mode .mini .life.lost {
  color: var(--ink-3);
  opacity: 0.6;
}
.mode-max {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .mode-klassisch {
    grid-row: auto;
    min-height: 300px;
  }
}

/* ---- Liga ------------------------------------------------------------------ */
.league {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.league .bgvideo {
  position: absolute;
  inset: 0;
}
.league .bgvideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.league .bgvideo .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-soft) 0%, rgba(15, 18, 41, 0.55) 40%, var(--bg-soft) 100%);
}
.league-grid {
  position: relative;
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.code-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-float);
  max-width: 400px;
}
.code-card .cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.code-card .code-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.code-card .code {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.copy-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 17px;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}
.copy-btn:active {
  transform: scale(0.92);
}
.copy-btn.done {
  background: var(--good);
  color: #fff;
}
.code-card .hint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.steps {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}
.step + .step {
  border-top: 1px solid var(--line);
}
.step .badge-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.step b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}
.step span {
  font-size: 13.5px;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .league-grid {
    grid-template-columns: 1fr;
  }
  .code-card {
    margin-inline: auto;
  }
}

/* ---- FAQ ------------------------------------------------------------------- */
.faq-wrap {
  max-width: 680px;
  margin-inline: auto;
}
.faq-wrap .h2 {
  text-align: center;
}
.faq-list {
  margin-top: 44px;
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq:first-child {
  border-top: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 4px;
  font-size: 16.5px;
  font-weight: 600;
}
.faq-q .icon {
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-3);
  transition: transform 260ms var(--ease-out);
}
.faq-q[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.faq-q[aria-expanded="true"] + .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding: 0 4px 22px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 60ch;
}

/* ---- Download / Abschluss --------------------------------------------------- */
.download {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 16vw, 190px);
  text-align: center;
}
.download .bgimg {
  position: absolute;
  inset: 0;
}
.download .bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11, 14, 33, 0.55) 30%, rgba(11, 14, 33, 0.62) 70%, var(--bg-deep) 100%);
}
.download .inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 24px;
}
.download .lead {
  margin: 18px auto 0;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  background: rgba(11, 14, 33, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 14px 26px 14px 18px;
  text-align: left;
}
.store-pill .icon {
  font-size: 30px;
  color: var(--ink);
}
.store-pill .s {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.store-pill .b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.download .note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---- Atmosphäre-Band -------------------------------------------------------- */
.atmosphere {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 13vw, 150px);
  text-align: center;
}
.atmosphere .bgimg {
  position: absolute;
  inset: 0;
}
.atmosphere .bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.atmosphere .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11, 14, 33, 0.58) 22%, rgba(11, 14, 33, 0.58) 78%, var(--bg) 100%);
}
.atmosphere-line {
  position: relative;
  max-width: 20ch;
  margin-inline: auto;
}

/* ---- Blog -------------------------------------------------------------------- */
.blog-hero {
  padding-block: clamp(120px, 14vw, 168px) clamp(48px, 6vw, 72px);
}
.blog-hero .lead {
  margin-top: 14px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-block: 0 clamp(84px, 11vw, 136px);
}
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--elev);
  overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
  }
}
.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-date {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.post-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.post-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.post-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent);
}

/* ---- Blog-Artikel -------------------------------------------------------------- */
.post-header {
  padding-block: clamp(120px, 14vw, 168px) 0;
  max-width: 720px;
}
.post-header .post-date {
  margin-bottom: 14px;
}
.post-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.post-hero-img {
  margin-top: 36px;
  border-radius: var(--r-card);
  overflow: hidden;
  max-width: 900px;
}
.post-hero-img img {
  width: 100%;
  display: block;
}
.post-body {
  max-width: 65ch;
  padding-block: 36px clamp(84px, 11vw, 136px);
}
.post-body p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 1.1em;
}
.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 1.8em;
  color: var(--ink);
}
.post-back {
  display: inline-flex;
  margin-top: 2.4em;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Footer ---------------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 160ms var(--ease-out);
}
.footer-nav a:hover {
  color: var(--ink);
}
.footer-legal {
  width: 100%;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-legal a:hover {
  color: var(--ink-2);
}
.footer-legal .copy {
  margin-left: auto;
}

/* ---- Pacifico: Wordmark der App (nur im Phone-Mockup) ----------------------- */
@font-face {
  font-family: "Pacifico";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pacifico-latin-400-normal.woff2") format("woff2");
}

/* ---- Spiele: Stadion-Karten (Neon-Wappen-Bühne aus der App) ------------------ */
.stadium-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 18px;
  margin-top: 52px;
}
.match-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 26px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(130% 100% at 50% -20%, #21307c 0%, #0c1348 55%, #070c30 100%);
}
.stadium-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stadium-glow::before,
.stadium-glow::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  will-change: transform, opacity;
}
.stadium-glow::before {
  left: -70px;
  top: -110px;
  background: radial-gradient(circle, rgba(96, 130, 255, 0.5) 0%, transparent 68%);
}
.stadium-glow::after {
  right: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 92, 110, 0.34) 0%, transparent 68%);
}
@media (prefers-reduced-motion: no-preference) {
  .stadium-glow::before {
    animation: glow-drift-a 13s ease-in-out infinite alternate;
  }
  .stadium-glow::after {
    animation: glow-drift-b 17s ease-in-out infinite alternate;
  }
}
@keyframes glow-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  to {
    transform: translate3d(70px, 34px, 0) scale(1.18);
    opacity: 1;
  }
}
@keyframes glow-drift-b {
  from {
    transform: translate3d(0, 26px, 0) scale(1.1);
    opacity: 0.9;
  }
  to {
    transform: translate3d(-60px, -14px, 0) scale(0.95);
    opacity: 0.55;
  }
}
.match-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.match-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  white-space: nowrap;
}
.match-chip.locked {
  color: var(--ink-2);
}
.match-teams {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 52px);
  padding: 22px 0 16px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.match-team img,
.match-team svg {
  width: clamp(62px, 6.5vw, 88px);
  height: auto;
  filter: drop-shadow(0 0 5px var(--glow, rgba(255, 255, 255, 0.55)))
    drop-shadow(0 0 16px var(--glow-soft, rgba(255, 255, 255, 0.3)));
}
.match-team b {
  font-size: 14.5px;
  font-weight: 600;
}
.match-vs {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-3);
}
.match-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .stadium-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Karten-Katalog: Kategorie-Browser --------------------------------------- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cat-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 44px;
  padding: 4px;
}
.cat-chip {
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 19px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--elev);
  border: 1px solid var(--line);
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out),
    border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.cat-chip:active {
  transform: scale(0.96);
}
.cat-chip.active {
  background: var(--accent-deep);
  border-color: transparent;
  color: #fff;
}
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
  align-items: start;
}
.cat-card {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
}
.cat-card .tip-head {
  padding-bottom: 10px;
}
.cat-card .tip-head .badge-icon {
  width: 34px;
  height: 34px;
  font-size: 15px;
}
.cat-card .tip-head .t {
  font-size: 14.5px;
}
.cat-opt {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 7px 10px;
  border-radius: 10px;
}
.cat-opt:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}
.cat-opt .p {
  font-weight: 700;
  color: var(--ink-3);
  white-space: nowrap;
}
.fade-swap {
  animation: fade-swap 240ms var(--ease-out) both;
}
@keyframes fade-swap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .cat-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Liga live: Segmented (App-Komponente) + Rangliste ----------------------- */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 340px;
  margin: 44px auto 0;
  background: var(--elev-2);
  border-radius: 999px;
  padding: 4px;
}
.seg-pill {
  position: absolute;
  inset: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--elev);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 280ms var(--ease-out);
}
.seg button {
  position: relative;
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.seg button:active {
  transform: scale(0.97);
}
.seg button[aria-selected="true"] {
  color: var(--ink);
}
.pane {
  display: none;
}
.pane.active {
  display: block;
}
.board {
  min-width: 480px;
  max-width: 640px;
  margin-inline: auto;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.board-row {
  display: grid;
  grid-template-columns: 30px 1fr 72px 74px;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 14px;
}
.board-row + .board-row {
  margin-top: 2px;
}
.board-row.me {
  background: var(--accent-weak);
}
.board-row .rk {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-3);
}
.board-row.me .rk {
  color: var(--accent);
}
.board-row .who {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 600;
}
.board-row .who .av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.board-row .hits {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.board-row .pts {
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}
.board-head {
  display: grid;
  grid-template-columns: 30px 1fr 72px 74px;
  gap: 10px;
  padding: 4px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.board-head :nth-child(3),
.board-head :nth-child(4) {
  text-align: right;
}

/* ---- App-Mockup: iPhone mit Light-Mode-UI der App ----------------------------
   Das Mockup trägt die kanonischen Light-Tokens der App (weiße Karten,
   sanfte blaue Schatten, Royalblau-Akzent) als eigenes Geräte-Inhalt,
   die Seite selbst bleibt dunkel. */
@property --notch-x {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0px;
}
.app-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.app-copy .lead {
  margin-top: 18px;
}
.app-hints {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-hint {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.app-hint .icon {
  color: var(--accent);
  font-size: 17px;
}
.phone {
  position: relative;
  width: 320px;
  height: 656px;
  margin-inline: auto;
  border-radius: 52px;
  background: #060812;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float), 0 0 80px rgba(26, 60, 232, 0.14);
  padding: 11px;
}
.phone-screen {
  --p-bg: #f4f5fa;
  --p-elev: #ffffff;
  --p-elev2: #f3f4fa;
  --p-elev3: #e8eaf4;
  --p-ink: #10173f;
  --p-ink2: #5a628a;
  --p-ink3: #9aa1c2;
  --p-accent: #001a81;
  --p-accent-weak: rgba(0, 26, 129, 0.08);
  --p-line: rgba(13, 19, 61, 0.08);
  --p-shadow: 0 2px 12px rgba(0, 26, 129, 0.06), 0 1px 2px rgba(0, 26, 129, 0.05);
  --p-float: 0 8px 28px rgba(0, 26, 129, 0.18);
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 42px;
  background: var(--p-bg);
  color: var(--p-ink);
  font-size: 14px;
  line-height: 1.45;
}
.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #060812;
  z-index: 6;
}
.p-screen {
  position: absolute;
  inset: 0;
  padding: 48px 14px 104px;
  display: none;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}
.p-screen.active {
  display: flex;
}
.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 4px;
}
.p-head .brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.p-head .brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.p-word {
  font-family: "Pacifico", "Poppins", cursive;
  font-size: 20px;
  line-height: 1.15;
  color: var(--p-accent);
}
.p-sub {
  font-size: 11px;
  color: var(--p-ink2);
}
.p-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #5b74e8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.p-title {
  font-size: 17px;
  font-weight: 700;
  padding: 4px 2px 2px;
}
.p-hero {
  border-radius: 22px;
  background: var(--p-accent);
  color: #fff;
  padding: 15px;
  box-shadow: var(--p-float);
}
.p-hero .ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 21px;
}
.p-hero b {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 17.5px;
  font-weight: 700;
}
.p-hero span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.p-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 17px;
  background: var(--p-elev);
  box-shadow: var(--p-shadow);
  padding: 11px 12px;
  text-align: left;
}
.p-row .ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--p-accent-weak);
  color: var(--p-accent);
  font-size: 17px;
}
.p-row .tx {
  flex: 1;
  min-width: 0;
}
.p-row .tx b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-row .tx span {
  display: block;
  font-size: 10.5px;
  color: var(--p-ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-row .caret {
  color: var(--p-ink3);
  font-size: 13px;
}
.p-row .crests {
  display: flex;
  flex-shrink: 0;
}
.p-row .crests img,
.p-row .crests svg {
  width: 26px;
  height: auto;
}
.p-row .crests img + img,
.p-row .crests svg + svg {
  margin-left: -6px;
}
.p-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.p-duo .p-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.p-cellgrid {
  border-radius: 17px;
  background: var(--p-elev);
  box-shadow: var(--p-shadow);
  padding: 12px;
}
.p-cellrow {
  display: grid;
  grid-template-columns: 1fr repeat(2, 40px);
  gap: 7px;
  align-items: center;
}
.p-cellrow + .p-cellrow {
  margin-top: 7px;
}
.p-cellrow .nm {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.p-cellrow .nm i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
  font-style: normal;
}
.p-cellrow .cl {
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.p-cellhead {
  display: grid;
  grid-template-columns: 1fr repeat(2, 40px);
  gap: 7px;
  font-size: 8.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--p-ink3);
  padding-bottom: 7px;
}
.p-cellhead :nth-child(n + 2) {
  text-align: center;
}
.cl.c-red {
  background: var(--bad);
  color: #fff;
}
.cl.c-orange {
  background: var(--cell-orange);
  color: #fff;
}
.cl.c-lgreen {
  background: var(--cell-lightgreen);
  color: #114420;
}
.cl.c-green {
  background: var(--cell-green);
  color: #fff;
}
.cl.c-dgreen {
  background: var(--cell-darkgreen);
  color: #fff;
}
.cl.c-gold {
  background: linear-gradient(135deg, #f7ca4d 0%, #e7a91f 100%);
  color: #3d2a00;
  box-shadow: 0 0 8px rgba(240, 185, 45, 0.55);
}
.p-board-row {
  display: grid;
  grid-template-columns: 20px 1fr 44px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 4px;
}
.p-board-row + .p-board-row {
  border-top: 1px solid var(--p-line);
}
.p-board-row .rk {
  font-weight: 800;
  color: var(--p-ink3);
  font-size: 11px;
}
.p-board-row .pt {
  text-align: right;
  font-weight: 800;
}
.p-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.p-set .sw {
  position: relative;
  width: 38px;
  height: 23px;
  border-radius: 999px;
  background: var(--p-accent);
  flex-shrink: 0;
}
.p-set .sw::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 2.5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
}
.p-set .sw.off {
  background: var(--p-elev3);
}
.p-set .sw.off::after {
  right: auto;
  left: 2.5px;
}

/* Floating Navbar (Kerbe + Orb, 1:1-Mechanik aus der App) */
.p-nav {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  height: 88px;
  z-index: 5;
  pointer-events: none;
}
.p-orb {
  position: absolute;
  bottom: 38px;
  left: 0;
  width: 20%;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
.p-orb > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--p-elev);
  color: var(--p-accent);
  font-size: 20px;
  box-shadow: var(--p-float);
  border: 1px solid var(--p-line);
}
.p-orb-icon {
  animation: orb-icon-in 340ms var(--ease-out) both;
}
@keyframes orb-icon-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.p-bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 58px;
  border-radius: 29px;
  background: var(--p-elev);
  box-shadow: var(--p-float);
  pointer-events: auto;
  transition: --notch-x 340ms cubic-bezier(0.22, 1, 0.36, 1);
  mask-image: radial-gradient(circle 30px at var(--notch-x) -6px, transparent 28px, #000 29px);
  -webkit-mask-image: radial-gradient(
    circle 30px at var(--notch-x) -6px,
    transparent 28px,
    #000 29px
  );
}
.p-bar .tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
}
.p-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding-bottom: 9px;
  color: var(--p-ink2);
  transition: transform 160ms var(--ease-out);
}
.p-bar button:active {
  transform: scale(0.94);
}
.p-bar button .icon {
  font-size: 18px;
}
.p-bar button span {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}
.p-bar button[aria-current] {
  color: var(--p-ink);
}
.p-bar button[aria-current] .icon {
  opacity: 0;
}
.p-bar button[aria-current] span {
  font-weight: 600;
}
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    width: 300px;
    height: 620px;
  }
}

/* ---- Reduced Motion: alles Dekorative aus ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .cell,
  .matrix.in .cell {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .cell.c-gold::after {
    animation: none;
    opacity: 0.5;
  }
  .btn,
  .mode,
  .copy-btn,
  .switch,
  .switch::after,
  .rung,
  .faq-q .icon,
  .faq-a,
  .seg-pill,
  .cat-chip,
  .p-orb,
  .p-bar {
    transition: none;
  }
  .fade-swap,
  .p-orb-icon {
    animation: none;
  }
}
