/* Rewardino – statische SEO-Website. Dark Theme angepasst an die
   Flutter-Landingpage (lib/screens/landing_screen.dart):
   bg #0A0C0B, card #14181A, border #1C3023, green #3DBA6B,
   lime #A4F05A, text #FFF, muted #A3A5B4, gold #FFC453. Mobile-first,
   keine externen Abhaengigkeiten. */

:root {
  --bg: #0a0c0b;
  --card: #14181a;
  --border: #1c3023;
  --green: #3dba6b;
  --green-hover: #4bcc7c;
  --lime: #a4f05a;
  --text: #ffffff;
  --muted: #a3a5b4;
  --gold: #ffc453;
  --bg-alt: #101312;
  --radius: 16px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-var-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.25; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

a { color: var(--green); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 4rem 0 4.5rem; }
.section-alt { background: var(--bg-alt); }
.section-sub { color: var(--muted); margin-top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 18px; width: auto; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Login-Button wie _FilledButton (dense) auf der Landingpage */
.nav-login {
  display: inline-block;
  background: var(--green);
  color: #07130c;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.125rem;
  box-shadow: 0 8px 10px rgba(61, 186, 107, 0.28);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.nav-login:hover { background: #4bcc7c; box-shadow: 0 8px 14px rgba(61, 186, 107, 0.45); }

/* Sprachumschalter wie LanguageButton (language_button.dart):
   kreisförmiger Globe-Button 46x46, Dropdown mit Flaggen + Häkchen */
.lang-menu { position: relative; flex: none; }
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.16s ease;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn svg { width: 22px; height: 22px; }
.lang-btn:hover,
.lang-menu[open] .lang-btn { border-color: var(--green); }

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 216px;
  max-width: calc(100vw - 32px);
  background: #121514;
  border: 1px solid #22312a;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 2px 6px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #d3d6e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.14s ease;
}
.lang-item:hover { background: rgba(255, 255, 255, 0.06); }
.lang-item.active { background: rgba(61, 186, 107, 0.1); color: var(--text); font-weight: 600; }
.lang-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-check { width: 20px; height: 20px; color: var(--green); flex: none; }

/* Flaggen wie _FlagBadge/_FlagPainter: 22x22, rund, heller Rand */
.flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex: none;
}
.flag svg { display: block; width: 100%; height: 100%; }

@media (max-width: 899px) {
  .nav-row { gap: 0.65rem; }
  .brand img { height: 16px; max-width: 128px; }
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 0.7rem 1.4rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #07130c; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(61, 186, 107, 0.12), transparent 60%),
    linear-gradient(180deg, #0a0c0b 0%, #0e110f 100%);
  padding: 3.5rem 0 4rem;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.badge {
  display: inline-block;
  background: rgba(61, 186, 107, 0.15);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin: 0 0 1rem;
}
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.hero-note { color: var(--muted); font-size: 0.88rem; margin: 0; }
.hero-media { text-align: center; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Kategorien */
.category-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
.category-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover { border-color: var(--green); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.category-card img {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.category-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Schritte */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps-compact { grid-template-columns: 1fr; }
.step { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--green);
  color: #07130c;
  font-weight: 800;
  font-size: 1rem;
}
.step p { margin: 0; color: var(--muted); }

/* Auszahlung */
.payout-methods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
}
.payout-methods li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
}

/* Referral */
.referral-box {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(135deg, #121514 0%, #162033 100%);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.referral-box h2 { margin: 0 0 0.5rem; }
.referral-box p { margin: 0; color: var(--muted); }
.referral-box .btn { justify-self: start; background: var(--green); color: #07130c; }
.referral-box .btn:hover { background: var(--green-hover); }
@media (min-width: 800px) {
  .referral-box { grid-template-columns: 1.4fr auto; }
}

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 0; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--green); flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0.75rem 0 0; color: var(--muted); }

/* CTA-Band */
.cta-band {
  background: linear-gradient(135deg, #2fa75d 0%, #238a4b 100%);
  color: #07130c;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { margin-top: 0; color: #07130c; }
.cta-band p { color: rgba(7, 19, 12, 0.85); max-width: 34rem; margin: 0 auto 1.5rem; }
.cta-band .btn { background: #07130c; color: var(--green); }
.cta-band .btn:hover { background: #0f2a18; }

/* Topic-Artikel */
.breadcrumb { padding-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.article { max-width: 46rem; }
.article h1 { margin: 0 0 1rem; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 2.5rem; }
/* Blockabstaende wie Landingpage-Rhythmus (72-96px zwischen Sektionen) */
.article > h2 { margin: 2.75rem 0 1rem; }

/* Hero-Illustration */
.hero-fig { margin: 0 0 2.75rem; }
.hero-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* Benefit-Karten */
.benefits {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}
.benefit-card:hover { border-color: var(--green); }
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(61, 186, 107, 0.12);
  color: var(--green);
  margin-bottom: 0.75rem;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Long-Form-Absaetze */
.deep { margin: 0 0 1rem; color: var(--muted); line-height: 1.7; }

.tips { padding-left: 1.25rem; color: var(--muted); }
.tips li { margin: 0.5rem 0; }
.topic-box {
  margin-top: 3.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.topic-box h2 { margin: 0 0 0.75rem; }
.topic-box p { color: var(--muted); }
.topic-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; font-weight: 600; }

/* Footer */
.site-footer { background: #0d100e; color: var(--muted); padding: 3rem 0 3.5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 { color: var(--text); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.site-footer a { display: block; color: var(--muted); text-decoration: none; margin: 0.35rem 0; }
.site-footer a:hover { color: var(--text); }
.footer-claim { max-width: 22rem; }

/* 404 */
.notfound { text-align: center; padding: 5rem 0; }
.notfound h1 { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
