/* ==========================================================================
   paperball.de — statische Landingpage.
   Look & Feel: Paperball (Tokens aus paperball-finance/frontend/src/index.css).
   Aufbau: 121apps.com (Header · Hero · Eyebrow-Sections · App-Grid · Legal-Footer).
   Schriften lokal (Regel #17): Atkinson Hyperlegible Next + Nunito.
   ========================================================================== */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 200 1000; font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Ziffern'; font-weight: 200 1000; font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'Atkinson Fallback'; src: local('Arial');
  ascent-override: 98.43%; descent-override: 31.61%; line-gap-override: 0%; size-adjust: 99.97%; }
@font-face { font-family: 'Nunito Fallback'; src: local('Arial');
  ascent-override: 102.87%; descent-override: 35.92%; line-gap-override: 0%; size-adjust: 98.28%; }

:root {
  --primary: #0168c8;            /* Oberkante der Wortmarke */
  --primary-dark: #033497;       /* Unterkante der Wortmarke */
  --primary-verlauf: linear-gradient(180deg, #0168c8, #033497);
  --brand-darkest: #020e68;
  --gold: #fec602;
  --gold-verlauf: linear-gradient(180deg, #fee46c, #fec602 55%, #fd9801);
  --gold-bg: rgba(254, 198, 2, 0.14);
  --text-on-gold: #3b2a00;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fb;       /* Papierweiß */
  --bg-tertiary: #eff2f8;
  --text-primary: #0b1640;
  --text-secondary: #4a5578;
  --text-tertiary: #646d8b;
  --text-marke: #033497;
  --border: rgba(3, 52, 151, 0.1);
  --border-strong: rgba(3, 52, 151, 0.2);
  --success: #0a7a4e; --success-bg: #e6f4ee;
  --warning: #b45309; --warning-bg: #fdf3e6;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 28px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(3, 52, 151, .06), 0 1px 1px rgba(3, 52, 151, .04);
  --shadow: 0 6px 18px rgba(3, 52, 151, .08), 0 2px 4px rgba(3, 52, 151, .05);
  --shadow-knopf: 0 6px 16px rgba(253, 152, 1, .28);
  --buehne-verlauf: radial-gradient(120% 90% at 85% 0%, #0168c8 0%, #033497 45%, #020e68 100%);
  --glass-bg: rgba(255, 255, 255, .72);
  --font-sans: 'Nunito Ziffern', 'Atkinson Hyperlegible Next', 'Atkinson Fallback', system-ui, sans-serif;
  --font-display: 'Nunito', 'Nunito Fallback', system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg-secondary); color: var(--text-primary);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }
a { color: var(--primary); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text-marke); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--text-secondary); line-height: 1.55; }
.eyebrow { font-family: var(--font-display); font-size: .8125rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }

/* --- Kopf (121apps-Machart, Paperball-Glas) --- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--text-primary); font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--primary); }
@media (max-width: 760px) { .nav a.navlink { display: none; } }

/* --- Knöpfe: Gold = „hier klicken“ (paperball-Regel) --- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; border-radius: var(--radius-pill);
  padding: 13px 24px; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-verlauf); color: var(--text-on-gold); box-shadow: var(--shadow-knopf); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1px solid var(--border-strong); }
.btn-ghost-hell { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.nav .btn { padding: 9px 18px; font-size: .92rem; white-space: nowrap; }
.nav .btn .kurz { display: none; }
@media (max-width: 480px) { .nav .btn .lang { display: none; } .nav .btn .kurz { display: inline; } .brand img { height: 34px; } }

/* --- Abzeichen --- */
.badge { display: inline-block; font-family: var(--font-display); font-size: .75rem; font-weight: 800;
  letter-spacing: .04em; padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.badge-beta { background: rgba(1,104,200,.1); color: var(--primary-dark); }
.badge-soon { background: var(--gold-bg); color: #7a4a00; }
.badge-neu  { background: rgba(1,104,200,.1); color: var(--primary-dark); }

/* --- Hero --- */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-wirbel { display: none; } }
.hero h1 .akzent { background: var(--primary-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 620px; margin-top: 22px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wirbel { position: relative; aspect-ratio: 1; max-width: 360px; justify-self: center; width: 100%; }
.hero-wirbel::before { content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,198,2,.35), rgba(1,104,200,.12) 55%, transparent 72%); filter: blur(8px); }
.hero-wirbel img { position: relative; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }

/* --- Abschnitte --- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .lead { margin-top: 14px; }
.section-weiss { background: var(--bg-primary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* --- Zeitleiste der Geschichte --- */
.zeitleiste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; position: relative; }
@media (min-width: 640px) { .zeitleiste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .zeitleiste { grid-template-columns: repeat(4, 1fr); } }
.zeitleiste li { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px 24px; box-shadow: var(--shadow-sm); position: relative; }
.section-weiss .zeitleiste li { background: var(--bg-secondary); }
.zeitleiste .wann { font-family: var(--font-display); font-weight: 900; font-size: .85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.zeitleiste .punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--primary-verlauf); flex-shrink: 0; }
.zeitleiste li.heute { background: var(--buehne-verlauf); border-color: transparent; color: #e8ecff; box-shadow: var(--shadow); }
.zeitleiste li.heute h3 { color: #fff; }
.zeitleiste li.heute .wann { color: var(--gold); }
.zeitleiste li.heute .punkt { background: var(--gold-verlauf); }
.zeitleiste h3 { margin-bottom: 8px; font-size: 1.15rem; }
.zeitleiste p { margin: 0; font-size: .98rem; color: var(--text-secondary); }
.zeitleiste li.heute p { color: #cdd6ff; }

/* --- Neuanfang-Bühne --- */
.buehne { background: var(--buehne-verlauf); border-radius: var(--radius-xl); color: #e8ecff;
  padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.buehne::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,198,2,.35), transparent 70%); }
.buehne h2 { color: #fff; max-width: 760px; position: relative; }
.buehne .eyebrow { color: var(--gold); }
.buehne p { color: #cdd6ff; max-width: 720px; position: relative; }
.buehne-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; margin-top: 30px; position: relative; }
.buehne-zahlen div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 18px 20px; }
.buehne-zahlen strong { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: #fff; line-height: 1.1; }
.buehne-zahlen span { font-size: .92rem; color: #cdd6ff; }

/* --- Produktkarten (Paperball-Familie) --- */
.produkt-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 980px) { .produkt-grid { grid-template-columns: repeat(3, 1fr); } }
.produkt { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 30px 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease; }
.produkt:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.produkt-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.produkt-kopf img { height: 46px; width: auto; max-width: 75%; display: block; }
.produkt h3 { margin-bottom: 10px; }
.produkt .beschreibung { color: var(--text-secondary); font-size: 1rem; }
.merkmale { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 9px; }
.merkmale li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.merkmale li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%;
  background: var(--gold-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23033497' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.produkt-fuss { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.produkt-fuss a { font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.produkt-fuss .domain { font-size: .88rem; color: var(--text-tertiary); }
.hinweis-klein { font-size: .82rem; color: var(--text-tertiary); margin: -8px 0 16px; }

/* --- Schwesterprojekte (121apps-Kartenstil, ruhiger) --- */
.schwester-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .schwester-grid { grid-template-columns: repeat(2, 1fr); } }
.schwester { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px; display: flex; flex-direction: column; }
.schwester-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.schwester-name h3 { margin: 0; line-height: 0; }
.schwester-name img { height: 34px; width: auto; display: block; }
.schwester p { color: var(--text-secondary); font-size: .97rem; }
.schwester a { margin-top: auto; font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.dach { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--text-secondary); font-size: .97rem; }
.dach img { height: 26px; width: auto; }

/* --- Abschluss --- */
.abschluss { text-align: center; }
.abschluss h2 { max-width: 760px; margin: 0 auto; }
.abschluss .lead { max-width: 620px; margin: 16px auto 0; }
.abschluss .hero-cta { justify-content: center; }

/* --- Footer (121-Apps-Standard, Regel #21) --- */
.site-footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 28px 0; font-size: .92rem; color: var(--text-secondary); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* --- Rechtstexte (Fragmente aus 121apps-site/legal/de, siehe build.py) --- */
.recht { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.prose { max-width: 780px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); margin-bottom: 10px; }
.prose h1, .prose h2 { overflow-wrap: normal; -webkit-hyphens: auto; hyphens: auto; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.08rem; margin: 1.4rem 0 .5rem; color: var(--text-primary); }
.prose p, .prose li { color: var(--text-secondary); font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.prose .updated { color: var(--text-tertiary); font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose .hinweis-quelle { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-tertiary); }
.site-footer a[aria-current="page"] { color: var(--primary); }
