/* Knobelwerk – gemeinsames Aussehen aller Seiten. Schriften liegen lokal (keine Google-Server). */
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b1626;
  --bg-2: #0f1e34;
  --panel: #13233d;
  --line: #22385a;
  --text: #eaf2ff;
  --muted: #9fb3cf;
  --gold: #ffd95f;
  --blue: #79c7ff;
  --pink: #ff829f;
  --green: #71df91;
  --violet: #c794ff;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b5e0ff; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--gold); font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7em; display: block; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 22, 38, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 199, 255, .20), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -40% -10%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 95, .14), transparent 65%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-art { display: flex; justify-content: center; }

/* Kugel-Dekoration (reines CSS, kein Bild) */
.tubes { display: flex; gap: 16px; align-items: flex-end; padding: 26px 28px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.tube { width: 54px; height: 196px; border: 3px solid rgba(220, 235, 255, .55); border-top: none; border-radius: 0 0 28px 28px; display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; padding: 6px 0; }
.ball { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset -6px -8px 12px rgba(0,0,0,.25), inset 6px 6px 10px rgba(255,255,255,.35); }
.ball.r { background: #ff6b7d; } .ball.b { background: #5aa9ff; } .ball.g { background: #5fd98f; } .ball.y { background: #ffd34f; } .ball.v { background: #b98bff; }
.ball.float { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-58px); } 50% { transform: translateY(-70px); } }
@media (prefers-reduced-motion: reduce) { .ball.float { animation: none; transform: translateY(-62px); } html { scroll-behavior: auto; } }

/* Knöpfe */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn-primary { background: var(--gold); color: #1d1606; }
.btn-primary:hover { background: #ffe58b; color: #1d1606; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Abschnitte */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* App-Karte */
.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.app-card img.icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.app-card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: rgba(255, 217, 95, .14); color: var(--gold); margin-bottom: 8px; }

/* Raster */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); width: 100%; height: auto; aspect-ratio: 9 / 16; }
.shots figcaption { color: var(--muted); font-size: .88rem; margin-top: 10px; text-align: center; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 500; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--gold); }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); }

/* Textseiten (Datenschutz, Impressum) */
.doc { max-width: 780px; padding: 56px 22px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 2em; color: var(--gold); }
.doc h3 { margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* Fusszeile */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; text-align: left; }
  .app-card img.icon { width: 84px; height: 84px; border-radius: 20px; }
  .app-card .btn { justify-content: center; }
  .wrap { padding: 0 18px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav { gap: 14px; }
  .nav a { font-size: .9rem; }
  .nav a.hide-sm { display: none; }
  .tube { width: 44px; height: 164px; }
  .ball { width: 34px; height: 34px; }
  @keyframes bob { 0%, 100% { transform: translateY(-48px); } 50% { transform: translateY(-58px); } }
}
