/* ==========================================================================
   player.one – Landingpage
   Gaming × Volleyball × Papa × Coding – reines CSS, kein JavaScript.
   ========================================================================== */

/* Schriften liegen auf dem eigenen Server: keine Verbindung zu Google beim Seitenaufruf (DSGVO). */
@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/press-start-2p-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

@property --rally {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

:root {
  --bg: #0b0620;
  --bg-2: #140b33;
  --ink: #ece8ff;
  --muted: #a39cc9;
  --pink: #ff2e97;
  --cyan: #22d3ee;
  --yellow: #fde047;
  --violet: #8b5cf6;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;

  /* Rally-Takt: ein Ballwechsel = --beat */
  --beat: 1.2s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a0f5c 0%, transparent 60%),
    radial-gradient(800px 500px at 100% 100%, #1b0a3d 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.c-pink { color: var(--pink); }
.c-cyan { color: var(--cyan); }
.c-yellow { color: var(--yellow); }
.c-violet { color: var(--violet); }
.accent { color: var(--pink); }

/* ---------- Sternenhimmel ---------- */
.stars,
.stars::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 75% 45%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 85%, #fff 50%, transparent 51%);
  background-size: 400px 400px;
  opacity: .5;
}
.stars::after {
  content: "";
  background-size: 290px 290px;
  background-position: 70px 120px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .1; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid #ffffff12;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
}
.logo__badge {
  font-family: var(--pixel);
  font-size: .65rem;
  padding: .45rem .5rem;
  border: 2px solid var(--pink);
  box-shadow: 3px 3px 0 var(--cyan);
  color: var(--pink);
}
.nav nav { display: flex; gap: clamp(.75rem, 3vw, 2rem); }
.nav nav a {
  font-size: .9rem;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--pink);
  scale: 0 1;
  transform-origin: left;
  transition: scale .25s;
}
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { scale: 1 1; }
.nav nav .nav__app { color: var(--pink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem 3rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.blink { color: #4ade80; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.title {
  margin: 0;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(1.8rem, 7vw, 4.5rem);
  line-height: 1.1;
}

/* Glitch-Effekt */
.glitch {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch-a 3s steps(1) infinite;
}
.glitch::after {
  color: var(--pink);
  animation: glitch-b 3s steps(1) infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
@keyframes glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); translate: 0; }
  88% { clip-path: inset(20% 0 55% 0); translate: -4px 0; }
  91% { clip-path: inset(60% 0 10% 0); translate: 4px 0; }
  94% { clip-path: inset(40% 0 40% 0); translate: -2px 0; }
}
@keyframes glitch-b {
  0%, 87%, 100% { clip-path: inset(0 0 100% 0); translate: 0; }
  89% { clip-path: inset(70% 0 5% 0); translate: 4px 0; }
  92% { clip-path: inset(10% 0 70% 0); translate: -4px 0; }
  95% { clip-path: inset(45% 0 30% 0); translate: 3px 0; }
}

/* Wechselnde Rolle */
.tagline {
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5ch;
}
.ticker {
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  font-weight: 700;
  text-align: left;
}
.ticker__list {
  display: flex;
  flex-direction: column;
  animation: ticker 8s cubic-bezier(.7, 0, .3, 1) infinite;
}
.ticker__list > span { height: 1.4em; line-height: 1.4em; }
@keyframes ticker {
  0%, 20%   { translate: 0 0; }
  25%, 45%  { translate: 0 -1.4em; }
  50%, 70%  { translate: 0 -2.8em; }
  75%, 95%  { translate: 0 -4.2em; }
  100%      { translate: 0 -5.6em; }
}

/* ---------- Arcade-Automat ---------- */
.cabinet {
  width: min(960px, 100%);
  padding: clamp(.6rem, 1.5vw, 1rem);
  border-radius: 22px;
  background: linear-gradient(160deg, #2b1666, #150a33);
  box-shadow:
    0 0 0 2px #ffffff14 inset,
    0 30px 80px -20px #ff2e9766,
    0 0 120px -40px #22d3ee88;
}

.screen {
  --px: clamp(3px, .65vw, 6px);            /* Größe eines Sprite-Pixels */
  --ball: clamp(20px, 3.2vw, 34px);
  --ground: 12%;
  container-type: size;
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 230px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(#0d0226 0%, #2a0845 45%, #6b1450 62%, #120320 62.2%);
  isolation: isolate;
}

.hud-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 3cqh 3cqw;
  font-family: var(--pixel);
  font-size: clamp(.45rem, 1.2vw, .7rem);
  color: var(--ink);
  text-shadow: 0 0 8px var(--pink);
}
.rally { color: var(--yellow); text-shadow: 0 0 8px var(--yellow); }
.rally__count {
  font-weight: 400;
  animation: rally calc(var(--beat) * 100) steps(100) infinite;
  counter-reset: rally var(--rally);
}
.rally__count::after { content: counter(rally, decimal-leading-zero); }
@keyframes rally { to { --rally: 100; } }

/* Synthwave-Sonne */
.sun {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 34cqh;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: linear-gradient(var(--yellow) 10%, #ff8a3d 45%, var(--pink) 85%);
  box-shadow: 0 0 60px #ff2e9788;
  -webkit-mask: linear-gradient(#000, #000) top / 100% 55% no-repeat,
                repeating-linear-gradient(#000 0 7px, transparent 7px 11px) bottom / 100% 45% no-repeat;
          mask: linear-gradient(#000, #000) top / 100% 55% no-repeat,
                repeating-linear-gradient(#000 0 7px, transparent 7px 11px) bottom / 100% 45% no-repeat;
  animation: sun-pulse 4s ease-in-out infinite alternate;
}
@keyframes sun-pulse { to { box-shadow: 0 0 110px #ff2e97cc; } }

/* Berge / Skyline am Horizont */
.skyline {
  position: absolute;
  left: 0; right: 0;
  bottom: 38%;
  height: 16%;
  background: #1a0636;
  clip-path: polygon(0 100%, 0 60%, 8% 30%, 15% 55%, 24% 10%, 33% 60%, 40% 40%, 47% 70%,
                     53% 70%, 60% 35%, 68% 60%, 76% 15%, 85% 55%, 92% 30%, 100% 50%, 100% 100%);
  filter: drop-shadow(0 -1px 0 var(--pink));
}

/* Neon-Gitterboden */
.floor {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  perspective: 180px;
  overflow: hidden;
  border-top: 2px solid var(--pink);
  box-shadow: 0 -4px 24px #ff2e97aa;
}
.floor__grid {
  position: absolute;
  inset: -40% -60% -10%;
  transform: rotateX(62deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(#22d3eecc 2px, transparent 2px),
    linear-gradient(90deg, #22d3ee88 2px, transparent 2px);
  background-size: 40px 40px;
  animation: floor-move 1s linear infinite;
  -webkit-mask: linear-gradient(transparent, #000 45%);
          mask: linear-gradient(transparent, #000 45%);
}
@keyframes floor-move { to { background-position: 0 40px; } }

/* Schwebende Code-Schnipsel */
.float {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(.6rem, 1.4vw, .9rem);
  opacity: .55;
  animation: float 6s ease-in-out infinite;
}
.f1 { left: 8%;  top: 20%; color: var(--cyan); }
.f2 { right: 9%; top: 24%; color: var(--yellow); animation-delay: -2s; }
.f3 { left: 22%; top: 40%; color: var(--violet); animation-delay: -4s; }
.f4 { right: 22%; top: 42%; color: var(--pink); animation-delay: -1s; }
@keyframes float {
  50% { translate: 0 -10px; opacity: .9; }
}

/* Volleyballnetz */
.net {
  position: absolute;
  left: 50%;
  bottom: var(--ground);
  width: 3.4cqw;
  height: 34cqh;
  translate: -50% 0;
  z-index: 2;
  border-left: 3px solid #e5e7eb;
  border-right: 3px solid #e5e7eb;
}
.net::before {                     /* Netzmaschen */
  content: "";
  position: absolute;
  inset: 0 0 48%;
  border-top: 4px solid #fff;
  background:
    repeating-linear-gradient(90deg, #ffffff66 0 1px, transparent 1px 6px),
    repeating-linear-gradient(#ffffff66 0 1px, transparent 1px 6px);
  box-shadow: 0 0 12px #22d3ee88;
}

/* ---------- Pixel-Sprites (Box-Shadow-Pixel-Art) ---------- */
.player {
  position: absolute;
  bottom: var(--ground);
  z-index: 3;
  font-size: var(--px);
  filter: drop-shadow(0 0 6px #0008);
}
.player--dad {
  left: 10%;
  width: 12em;
  height: 16em;
  animation: jump-dad calc(var(--beat) * 2) ease-in-out infinite;
}
.player--kid {
  right: 10%;
  width: 9em;
  height: 11em;
  animation: jump-kid calc(var(--beat) * 2) ease-in-out infinite;
}
.sprite {
  position: absolute;
  left: -1em;
  top: -1em;
  width: 1em;
  height: 1em;
}
.sprite--dad {
  box-shadow: 4em 1em #3b2416, 5em 1em #3b2416, 6em 1em #3b2416, 7em 1em #3b2416, 8em 1em #3b2416, 3em 2em #3b2416, 4em 2em #3b2416, 5em 2em #3b2416, 6em 2em #3b2416, 7em 2em #3b2416, 8em 2em #3b2416, 9em 2em #3b2416, 3em 3em #3b2416, 4em 3em #f5c29b, 5em 3em #f5c29b, 6em 3em #f5c29b, 7em 3em #f5c29b, 8em 3em #f5c29b, 9em 3em #f5c29b, 3em 4em #f5c29b, 4em 4em #22d3ee, 5em 4em #22d3ee, 6em 4em #f5c29b, 7em 4em #22d3ee, 8em 4em #22d3ee, 9em 4em #f5c29b, 3em 5em #f5c29b, 4em 5em #f5c29b, 5em 5em #f5c29b, 6em 5em #f5c29b, 7em 5em #f5c29b, 8em 5em #f5c29b, 9em 5em #f5c29b, 3em 6em #f5c29b, 4em 6em #6b4226, 5em 6em #6b4226, 6em 6em #6b4226, 7em 6em #6b4226, 8em 6em #6b4226, 9em 6em #f5c29b, 4em 7em #f5c29b, 5em 7em #f5c29b, 6em 7em #f5c29b, 7em 7em #f5c29b, 8em 7em #f5c29b, 2em 8em #f5c29b, 5em 8em #f5c29b, 6em 8em #f5c29b, 7em 8em #f5c29b, 11em 8em #f5c29b, 2em 9em #f5c29b, 3em 9em #f5c29b, 4em 9em #ff2e97, 5em 9em #ff2e97, 6em 9em #ff2e97, 7em 9em #ff2e97, 8em 9em #ff2e97, 9em 9em #ff2e97, 10em 9em #f5c29b, 11em 9em #f5c29b, 3em 10em #f5c29b, 4em 10em #ff2e97, 5em 10em #ff2e97, 6em 10em #ff2e97, 7em 10em #ff2e97, 8em 10em #ff2e97, 9em 10em #ff2e97, 10em 10em #f5c29b, 4em 11em #ff2e97, 5em 11em #ff2e97, 6em 11em #fde047, 7em 11em #ff2e97, 8em 11em #ff2e97, 9em 11em #ff2e97, 4em 12em #ff2e97, 5em 12em #ff2e97, 6em 12em #ff2e97, 7em 12em #ff2e97, 8em 12em #ff2e97, 9em 12em #ff2e97, 4em 13em #3730a3, 5em 13em #3730a3, 6em 13em #3730a3, 7em 13em #3730a3, 8em 13em #3730a3, 9em 13em #3730a3, 4em 14em #3730a3, 5em 14em #3730a3, 8em 14em #3730a3, 9em 14em #3730a3, 4em 15em #3730a3, 5em 15em #3730a3, 8em 15em #3730a3, 9em 15em #3730a3, 3em 16em #111827, 4em 16em #111827, 5em 16em #111827, 8em 16em #111827, 9em 16em #111827, 10em 16em #111827;
}
.sprite--kid {
  box-shadow: 3em 1em #3b2416, 4em 1em #3b2416, 5em 1em #3b2416, 6em 1em #3b2416, 2em 2em #3b2416, 3em 2em #3b2416, 4em 2em #3b2416, 5em 2em #3b2416, 6em 2em #3b2416, 7em 2em #3b2416, 2em 3em #f5c29b, 3em 3em #f5c29b, 4em 3em #f5c29b, 5em 3em #f5c29b, 6em 3em #f5c29b, 7em 3em #3b2416, 2em 4em #f5c29b, 3em 4em #111827, 4em 4em #f5c29b, 5em 4em #f5c29b, 6em 4em #111827, 7em 4em #f5c29b, 2em 5em #f5c29b, 3em 5em #f5c29b, 4em 5em #f5c29b, 5em 5em #f5c29b, 6em 5em #f5c29b, 7em 5em #f5c29b, 1em 6em #f5c29b, 3em 6em #f5c29b, 4em 6em #f5c29b, 5em 6em #f5c29b, 6em 6em #f5c29b, 9em 6em #f5c29b, 1em 7em #f5c29b, 2em 7em #22d3ee, 3em 7em #22d3ee, 4em 7em #22d3ee, 5em 7em #22d3ee, 6em 7em #22d3ee, 7em 7em #22d3ee, 8em 7em #22d3ee, 9em 7em #f5c29b, 3em 8em #22d3ee, 4em 8em #22d3ee, 5em 8em #22d3ee, 6em 8em #22d3ee, 7em 8em #22d3ee, 3em 9em #22d3ee, 4em 9em #22d3ee, 5em 9em #22d3ee, 6em 9em #22d3ee, 7em 9em #22d3ee, 3em 10em #3730a3, 4em 10em #3730a3, 6em 10em #3730a3, 7em 10em #3730a3, 2em 11em #111827, 3em 11em #111827, 6em 11em #111827, 7em 11em #111827;
}

/* Sprung genau im Moment der Ballberührung */
@keyframes jump-dad {
  0%, 100% { translate: 0 -3em; }
  12%, 88% { translate: 0 0; }
}
@keyframes jump-kid {
  0%, 38%, 62%, 100% { translate: 0 0; }
  50% { translate: 0 -4em; }
}

/* ---------- Der Ball ---------- */
/* X: linear hin & her – Y: Parabel (ease-out hoch, ease-in runter) */
.ball-x,
.shadow-ball {
  position: absolute;
  left: calc(10% + 6 * var(--px) - var(--ball) / 2);
  z-index: 4;
  animation: ball-x var(--beat) linear infinite alternate;
}
.ball-x { bottom: calc(var(--ground) + 16 * var(--px)); }
.ball-y {
  animation: ball-y calc(var(--beat) / 2) cubic-bezier(.33, .66, .66, 1) infinite alternate;
}
.ball {
  width: var(--ball);
  height: var(--ball);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 45%),
    conic-gradient(from 0deg, var(--yellow) 0 120deg, #fff 0 240deg, var(--cyan) 0);
  box-shadow:
    inset -3px -4px 6px #0005,
    0 0 18px #fde047aa;
  position: relative;
  animation: spin calc(var(--beat) / 2) linear infinite;
}
.ball::before,
.ball::after {                     /* Nähte */
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid #1e1b4b55;
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.ball::after { inset: 30% -10% -10% 30%; }

@keyframes ball-x {
  to { translate: calc(80cqw - 10.5 * var(--px)) 0; }
}
@keyframes ball-y {
  to { translate: 0 -46cqh; }
}
@keyframes spin { to { rotate: 1turn; } }

.shadow-ball {
  bottom: calc(var(--ground) - 1.2cqh);
  width: var(--ball);
  height: calc(var(--ball) / 4);
  border-radius: 50%;
  background: #000a;
  filter: blur(2px);
  z-index: 2;
}

/* Treffer-Popups */
.pop {
  position: absolute;
  z-index: 6;
  font-family: var(--pixel);
  font-size: clamp(.45rem, 1.3vw, .75rem);
  bottom: calc(var(--ground) + 26 * var(--px));
  opacity: 0;
  pointer-events: none;
}
.pop--dad {
  left: 6%;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--pink);
  animation: pop-dad calc(var(--beat) * 2) ease-out infinite;
}
.pop--kid {
  right: 6%;
  color: var(--cyan);
  text-shadow: 2px 2px 0 var(--violet);
  animation: pop-kid calc(var(--beat) * 2) ease-out infinite;
}
@keyframes pop-dad {
  0%   { opacity: 1; translate: 0 0; scale: 1.2; }
  22%  { opacity: 0; translate: 0 -20px; scale: 1; }
  100% { opacity: 0; }
}
@keyframes pop-kid {
  0%, 49% { opacity: 0; translate: 0 0; }
  50%     { opacity: 1; translate: 0 0; scale: 1.2; }
  72%     { opacity: 0; translate: 0 -20px; scale: 1; }
  100%    { opacity: 0; }
}

/* CRT-Scanlines & Vignette */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    repeating-linear-gradient(#0000 0 2px, #0000002e 2px 4px),
    radial-gradient(ellipse at center, transparent 55%, #000a 100%);
  animation: flicker 5s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: .85; }
  49% { opacity: 1; }
}

/* Automaten-Bedienfeld */
.cabinet__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem .5rem .25rem;
}
.stick {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 10px 0 -4px #0006, 0 0 0 6px #ffffff10;
  animation: stick calc(var(--beat) * 2) ease-in-out infinite;
}
@keyframes stick {
  0%, 100% { translate: -4px 0; }
  50% { translate: 4px 0; }
}
.btn {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--pixel);
  font-size: .55rem;
  color: #0b0620;
  box-shadow: 0 4px 0 #0008;
}
.btn--a { background: var(--yellow); animation: press calc(var(--beat) * 2) infinite; }
.btn--b { background: var(--cyan);   animation: press calc(var(--beat) * 2) calc(var(--beat) * -1) infinite; }
@keyframes press {
  0%, 8% { translate: 0 3px; box-shadow: 0 1px 0 #0008; }
  12%, 100% { translate: 0 0; box-shadow: 0 4px 0 #0008; }
}
.insert {
  margin-left: auto;
  font-family: var(--pixel);
  font-size: clamp(.45rem, 1.2vw, .65rem);
  color: var(--yellow);
  animation: blink 1.2s steps(1) infinite;
}

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding: .9rem 1.6rem;
  font-family: var(--pixel);
  font-size: .75rem;
  text-decoration: none;
  color: var(--bg);
  background: var(--yellow);
  border: 3px solid var(--bg);
  box-shadow: 5px 5px 0 var(--pink), 5px 5px 0 3px var(--bg);
  transition: translate .12s, box-shadow .12s;
}
.cta:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--pink), 7px 7px 0 3px var(--bg); }
.cta:active { translate: 5px 5px; box-shadow: 0 0 0 var(--pink); }
.cta kbd { font: inherit; text-decoration: underline; }
.cta--alt { background: var(--cyan); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }

.section-title {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(.9rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.section-title::before { content: "▸ "; color: var(--pink); }

.about,
.skills,
.contact {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2.5rem;
  align-items: center;
}

/* Stat-Balken */
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.bars li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
}
.bar {
  height: 16px;
  padding: 2px;
  border: 2px solid #ffffff30;
  background: #00000040;
}
.bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--c) 0 10px, transparent 10px 12px);
  box-shadow: 0 0 10px var(--c);
}
.bar--energy   i { --c: #4ade80;       animation: energy 7s ease-in-out infinite; }
.bar--coffee   i { --c: var(--yellow); width: 96%; }
.bar--patience i { --c: var(--pink);   animation: patience 3s steps(4) infinite; }
.bar--jump     i { --c: var(--cyan);   width: 88%; }
@keyframes energy {
  0%, 100% { width: 90%; }
  70% { width: 12%; }
  75% { width: 12%; }
}
@keyframes patience {
  0%, 100% { width: 70%; }
  50% { width: 40%; }
}
.stats__note { color: var(--muted); margin: 1.5rem 0 0; max-width: 46ch; }

/* Terminal */
.terminal {
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a18;
  border: 1px solid #ffffff1a;
  box-shadow: 0 20px 60px -20px #22d3ee55;
  transition: rotate .4s, scale .4s;
}
.terminal:hover { rotate: -1deg; scale: 1.02; }
.terminal__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  background: #16162b;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
}
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: .6rem; }
.terminal__body {
  margin: 0;
  padding: 1.2rem 1.2rem 1.4rem;
  font-family: var(--mono);
  font-size: clamp(.78rem, 1.8vw, .95rem);
  line-height: 1.8;
  color: #d4d4f7;
  overflow-x: auto;
}
.terminal__body code { font: inherit; }
.line {
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
  animation: type 1s steps(var(--n)) var(--d) forwards;
}
@keyframes type { to { width: calc(var(--n) * 1ch); } }
.ok   { color: #4ade80; font-weight: 700; }
.warn { color: var(--yellow); font-weight: 700; }
.cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}

/* Skill-Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #1d1045, #120a2e);
  border: 1px solid #ffffff14;
  overflow: hidden;
  transition: translate .3s, box-shadow .3s, border-color .3s;
}
.card::before {                        /* wandernder Glanz */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--c) 25%, transparent) 50%, transparent 60%);
  translate: -100% 0;
  transition: translate .6s;
}
.card:hover {
  translate: 0 -6px;
  border-color: var(--c);
  box-shadow: 0 16px 40px -12px var(--c);
}
.card:hover::before { translate: 100% 0; }
.card h3 {
  margin: 1rem 0 .4rem;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: .85rem;
  color: var(--c);
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--c);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--c));
}
.icon--dad  { animation: bob 2.4s ease-in-out infinite; }
.icon--code { animation: glow 2s ease-in-out infinite alternate; }
.icon--pad  { animation: wiggle 3s ease-in-out infinite; }
.icon--ball { animation: spin 6s linear infinite; }
@keyframes bob    { 50% { translate: 0 -5px; } }
@keyframes glow   { to { filter: drop-shadow(0 0 14px var(--c)); } }
@keyframes wiggle {
  0%, 70%, 100% { rotate: 0deg; }
  76% { rotate: -10deg; }
  82% { rotate: 10deg; }
  88% { rotate: -6deg; }
  94% { rotate: 4deg; }
}

/* Kontakt */
.contact { text-align: center; }
.contact p { color: var(--muted); margin: 0; }
.contact .cta { margin-top: 1.75rem; }

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid #ffffff12;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  gap: 1.25rem;
}

.footer__legal a {
  text-decoration: none;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--cyan);
}

/* ---------- Team-App ---------- */
.app {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) 0;
}
.app__panel {
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 2px solid var(--cyan);
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, #22d3ee0d 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #22d3ee0d 0 1px, transparent 1px 24px),
    linear-gradient(160deg, #1d1045, #120a2e);
  box-shadow: 6px 6px 0 var(--pink);
}
.app__panel p { max-width: 34rem; margin: 0; color: var(--muted); }
.app__panel .app__level {
  margin-bottom: 1rem;
  font-family: var(--pixel);
  font-size: .6rem;
  color: var(--yellow);
  animation: blink 1.2s steps(1) infinite;
}
.app__panel .cta { margin-top: 1.75rem; }

/* ---------- Rechtliches (Impressum, Datenschutz) ---------- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}

.legal h1 {
  margin: 0 0 2rem;
  font-family: var(--pixel);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  line-height: 1.5;
  color: var(--pink);
}

.legal h2 {
  margin: 2.25rem 0 .5rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--cyan);
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .todo {
  padding: 0 .25rem;
  border-radius: .25rem;
  background: var(--yellow);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .9em;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  /* Auf dem Handy bleibt nur der Link zur App in der Navigation. */
  .nav nav a:not(:last-child) { display: none; }
  /* Größere Sprite-Pixel, damit Papa und Kind auf dem kleinen Bildschirm erkennbar bleiben. */
  .screen { aspect-ratio: 4 / 3; --px: 4px; --ball: 22px; }
  .hero .cta { margin-top: 2rem; }
  /* Skill-Karten zu zweit nebeneinander, kompakter */
  .cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card { padding: 1.1rem .9rem; }
  .card p { font-size: .85rem; line-height: 1.45; }
  .card h3 { margin-top: .75rem; font-size: .62rem; }
  .icon { width: 40px; height: 40px; }
  .float.f3,
  .float.f4 { display: none; }
  .bars li { grid-template-columns: 6rem 1fr; }
}

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .line { width: calc(var(--n) * 1ch); }
}
