/* ============================================
   SOLDATSEIN.COMMUNITY  v1
   Erlebnis-Seite, Dark Mode, Design-Tokens der App
   ============================================ */

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

:root {
  --gold:        #E5B800;
  --gold-hover:  #F5CA10;
  --bg:          #0A0A0A;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --card-bg:     #161616;
  --card-border: rgba(255,255,255,0.08);
  --fg:          #FFFFFF;
  --muted-fg:    rgba(255,255,255,0.62);
  --dim-fg:      rgba(255,255,255,0.38);
  --border:      rgba(255,255,255,0.1);
  --green:       #00B67A;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-sm:   8px;
  --max-w:       760px;
  --max-w-wide:  1120px;
  --header-h:    56px;
  --font:        'General Sans', system-ui, -apple-system, sans-serif;
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
ul, ol { list-style: none; }
blockquote { quotes: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #000; padding: 0.75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: var(--max-w-wide); }

.section { padding: 3.5rem 0; }
.section-dark { background: var(--bg-2); }
.section-tight { padding: 2rem 0; }

@media (min-width: 900px) {
  .section { padding: 5.5rem 0; }
}

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: transform 240ms var(--ease-out);
  height: var(--header-h);
}
.header--hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--max-w-wide); margin: 0 auto; height: var(--header-h);
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.header-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.header-logo img { width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font); font-weight: 600; border: none; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: opacity 150ms var(--ease-out), transform 140ms var(--ease-out), background 150ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { opacity: 0.92; } }

.btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; border-radius: 8px; }
.btn-primary { background: var(--gold); color: #000; border-radius: 10px; }
.btn-outline-sm {
  padding: 0.5rem 0.875rem; font-size: 0.8125rem; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--fg); border: 1.5px solid rgba(255,255,255,0.24);
}

.btn-store {
  padding: 0.6875rem 1.25rem; border-radius: 12px; gap: 0.625rem;
  font-size: 0.75rem; line-height: 1.3; min-width: 165px;
}
.btn-store span { display: block; text-align: left; }
.btn-store-ios { background: var(--gold); color: #000; }
@media (hover: hover) and (pointer: fine) { .btn-store-ios:hover { background: var(--gold-hover); opacity: 1; } }
.btn-store-android { background: rgba(255,255,255,0.06); color: var(--fg); border: 1.5px solid rgba(255,255,255,0.28); }
@media (hover: hover) and (pointer: fine) { .btn-store-android:hover { background: rgba(255,255,255,0.12); opacity: 1; } }
.store-icon { flex-shrink: 0; }
.store-label { font-size: 0.6875rem; font-weight: 400; opacity: 0.75; }
.store-name { font-size: 0.9375rem; font-weight: 700; }

.store-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem auto 0; }
.cta-note { font-size: 0.78125rem; color: var(--muted-fg); text-align: center; margin-top: 0.75rem; }

/* ---- Hero ---- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 620px;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.40) 24%,
    rgba(10,10,10,0.80) 60%, rgba(10,10,10,0.97) 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-title {
  font-size: clamp(2rem, 8vw, 3.375rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 0.875rem; text-wrap: balance;
}
.text-gold { color: var(--gold); }

.hero-sub {
  font-size: 0.9375rem; color: rgba(255,255,255,0.82);
  max-width: 480px; margin: 0 auto; line-height: 1.6; text-wrap: pretty;
}

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.75rem; }
.hero-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--fg);
  padding: 0.75rem 1.25rem; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.24); background: rgba(255,255,255,0.04);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.hero-secondary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hero-secondary:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); } }

@media (min-width: 768px) {
  .hero { min-height: 78svh; }
  .hero-sub { font-size: 1.0625rem; max-width: 560px; }
}

/* ---- Presse ---- */
.section-press { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.press-known-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim-fg); text-align: center; margin-bottom: 1rem;
}
.press-logos-img { display: flex; align-items: center; justify-content: center; gap: 1.5rem 2rem; flex-wrap: wrap; }
.press-logo-img {
  height: 34px; width: auto; max-width: 140px; object-fit: contain; opacity: 0.7;
  border-radius: 4px; transition: opacity 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .press-logo-img:hover { opacity: 1; } }
.press-ad-label {
  display: inline-block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-fg); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px; padding: 1px 5px; vertical-align: middle; margin-left: 0.4rem; opacity: 0.6;
}

/* ---- Section-Typo ---- */
.eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.625rem; }
.section-title { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.18; margin-bottom: 0.75rem; text-wrap: balance; }
.section-sub { font-size: 0.9375rem; color: var(--muted-fg); line-height: 1.65; margin-bottom: 1.5rem; text-wrap: pretty; }
.section-sub--lead { max-width: 620px; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* ---- Angebots-Bento ---- */
.offer-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 780px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .offer-card--app { grid-column: span 3; }
  .offer-card--kf, .offer-card--blog, .offer-card--eltern { grid-column: span 1; }
}

.offer-card {
  display: block; position: relative;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 1.5rem; overflow: hidden;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .offer-card:hover { border-color: rgba(229,184,0,0.35); transform: translateY(-2px); }
}

.offer-card--app {
  background: linear-gradient(155deg, rgba(229,184,0,0.10), var(--card-bg) 55%);
  border-color: rgba(229,184,0,0.28);
  display: grid; gap: 1.25rem;
}
@media (min-width: 780px) { .offer-card--app { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

.offer-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.offer-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.offer-card--app .offer-title { font-size: 1.6rem; }
.offer-text { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

.segment-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.125rem; }
.segment-pill {
  font-size: 0.78125rem; font-weight: 600; color: var(--fg);
  padding: 0.4375rem 0.8125rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .segment-pill:hover { border-color: rgba(229,184,0,0.45); background: rgba(229,184,0,0.08); }
}

.offer-visual { border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 5 / 4; }
.offer-visual img { width: 100%; height: 100%; object-fit: contain; }

.offer-arrow { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--gold); margin-top: 1rem; }

/* ---- Trust-Zahlen ---- */
.trust-numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; text-align: center; }
@media (min-width: 640px) { .trust-numbers { grid-template-columns: repeat(4, 1fr); } }
.trust-num-value { display: block; font-size: 1.625rem; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.trust-num-label { display: block; font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* ---- Trustpilot Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 0.875rem; margin-top: 1.5rem; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card { padding: 1.125rem 1.25rem; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--card-border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; gap: 0.5rem; }
.review-name { font-size: 0.84375rem; font-weight: 600; }
.review-stars { color: var(--green); font-size: 0.8125rem; letter-spacing: 1px; flex-shrink: 0; }
.review-text {
  font-size: 0.8125rem; color: var(--muted-fg); line-height: 1.55; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-date { font-size: 0.6875rem; color: var(--dim-fg); margin-top: 0.5rem; }

.reviews-link { text-align: center; margin-top: 1.5rem; }
.reviews-link a { font-size: 0.8125rem; color: var(--gold); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .reviews-link a:hover { color: var(--gold-hover); } }

/* ---- App-Screens ---- */
.screens-row { display: flex; justify-content: center; gap: 1rem; overflow-x: auto; padding: 0.25rem 0 1rem; scroll-snap-type: x mandatory; }
.screens-row img { height: 340px; width: auto; border-radius: 16px; border: 1px solid var(--card-border); scroll-snap-align: center; flex-shrink: 0; }
@media (min-width: 768px) { .screens-row img { height: 400px; } }

/* ---- Independence-Hinweis ---- */
.independence-card {
  display: flex; align-items: flex-start; gap: 0.875rem;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
}
.independence-icon { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.independence-text { font-size: 0.84375rem; color: var(--muted-fg); line-height: 1.6; }
.independence-text strong { color: var(--fg); }

/* ---- Final CTA ---- */
.section-cta { text-align: center; border-top: 1px solid var(--border); }
.trust-row { font-size: 0.75rem; color: var(--dim-fg); margin-top: 1rem; }

/* ---- Footer ---- */
.footer { padding: 2.5rem 0 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.footer-links { display: flex; gap: 1.25rem; font-size: 0.78125rem; color: var(--muted-fg); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--fg); } }
.footer-copy { font-size: 0.71875rem; color: var(--dim-fg); }

/* ---- Sticky Mobile CTA ---- */
.sticky-cta {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 90;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  transform: translateY(140%); transition: transform 280ms var(--ease-out);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; }
.sticky-cta-logo { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; }
.sticky-cta-text { flex: 1; min-width: 0; }
.sticky-cta-text strong { display: block; font-size: 0.84375rem; }
.sticky-cta-text span { font-size: 0.71875rem; color: var(--muted-fg); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---- Scroll Reveal ----
   Nur wenn JS laeuft (html.js). Ohne JS bleibt alles sichtbar.
   app.js entfernt die Klasse zusaetzlich per Failsafe-Timer. */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .sticky-cta { transition: none; }
  .offer-card:hover { transform: none; }
}
