@font-face {
  font-family: "Comfortaa";
  src: url("fonts/Comfortaa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Comfortaa";
  src: url("fonts/Comfortaa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Gleiche Palette wie die Arobia-App (lib/theme/app_colors.dart,
     app_background.dart) - dunkler Lila-Grund, dieselben Verlaeufe. */
  --bg: #07050c;
  --surface: #171b24;
  --surface-2: #1d2230;
  --border: #2c3142;
  --primary: #673ab7;
  --primary-light: #9575cd;
  --primary-accent: #7c4dff;
  --glow-blue: #1f6feb;
  --glow-green: #14b88a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.64);
  --text-faint: rgba(255, 255, 255, 0.4);
  --brand-subtitle: #d8c8ff;
  --font-brand: "Comfortaa", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Fest positionierter Seiten-Hintergrund: sanfte Blau-/Gruen-Leuchtflecken
   in den Ecken, genau wie der feste App-Hintergrund (AppBackground). Laeuft
   ueber die ganze Seite, unabhaengig vom Scrollen. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 70vw;
  height: 60vh;
  pointer-events: none;
}

body::before {
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at bottom right, rgba(20, 184, 138, 0.22), transparent 70%);
}

body::after {
  left: 0;
  bottom: 0;
  background: radial-gradient(circle at bottom left, rgba(31, 111, 235, 0.12), transparent 70%);
}

a {
  color: var(--primary-light);
}

h1, h2, h3 {
  font-family: var(--font-brand);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 5, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

nav.main-nav a.current {
  color: var(--text);
}

nav.main-nav a.cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-accent));
  margin-left: 6px;
}

nav.main-nav a.cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f5b8d5, transparent 70%);
  top: -120px;
  right: -80px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #7c4dff, transparent 70%);
  bottom: -160px;
  left: -100px;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(124, 77, 255, 0.14);
  border: 1px solid rgba(124, 77, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.button-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-accent));
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #262c3d;
}

.hero-note {
  font-size: 13px;
  color: var(--text-faint);
}

/* Sections */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
  font-weight: 700;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Feature / channel cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 77, 255, 0.4);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.card .age-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffd6a0;
  background: rgba(255, 176, 59, 0.14);
  border: 1px solid rgba(255, 176, 59, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Channel gradient icon backgrounds - identisch zu channelGradient() in der App */
.grad-lobby { background: linear-gradient(135deg, #f6e7a4, #f4ce98); }
.grad-flirt { background: linear-gradient(135deg, #f5b8d5, #cdb8f0); }
.grad-flirt18 { background: linear-gradient(135deg, #d4b5e9, #a8b6e8); }
.grad-kaffee { background: linear-gradient(135deg, #f2c8aa, #e9b8c7); }
.grad-spiele { background: linear-gradient(135deg, #aedbe0, #b8c8f0); }
.grad-purple { background: linear-gradient(135deg, var(--primary), var(--primary-accent)); }

/* Steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 77, 255, 0.4);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-accent));
  font-weight: 700;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-family: var(--font-body);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* CTA band */

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(103, 58, 183, 0.22), rgba(124, 77, 255, 0.1));
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
}

.cta-band p {
  margin: 0 0 26px;
  color: var(--text-muted);
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details.faq {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  flex-shrink: 0;
}

details.faq[open] summary::after {
  content: "\2212";
}

details.faq .faq-body {
  padding: 0 0 18px;
  color: var(--text-muted);
  font-size: 14.5px;
}

details.faq .faq-body p {
  margin: 0 0 10px;
}

details.faq .faq-body p:last-child {
  margin-bottom: 0;
}

details.faq .faq-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

/* Command table */

.command-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14px;
}

.command-table code {
  color: var(--brand-subtitle);
  font-weight: 700;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.command-table th,
.command-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.command-table th {
  color: var(--text-muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

.command-table tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.table-scroll .command-table {
  min-width: 480px;
}

/* Placeholder / notice callouts */

.notice {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 59, 0.1);
  border: 1px solid rgba(255, 176, 59, 0.32);
  color: #ffd6a0;
  font-size: 14px;
}

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 13.5px;
}

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

footer.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--text-faint);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--text-muted);
}

/* Formulare (News-Admin/Login) */

.news-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-form label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-form input,
.news-form textarea,
.news-form select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #29253b;
  border: 1px solid #544d70;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.news-form input:focus,
.news-form textarea:focus,
.news-form select:focus {
  outline: none;
  border-color: var(--primary-accent);
  border-width: 2px;
}

/* Responsive */

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  nav.main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav.main-nav a {
    padding: 14px 12px;
  }

  nav.main-nav a.cta {
    margin-left: 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 48px 0;
  }
}
