/* ============================================================
   Folvia Landingpage — Design Tokens
   Light- und Dark-Schema parallel via prefers-color-scheme.
   Tokens kommen aus src/styles/theme.css und bleiben synchron.
   ============================================================ */

:root {
  --bg: #f4fafb;
  --surface: #ffffff;
  --surface-2: #eef4f5;
  --surface-3: #e8eef0;
  --divider: #e2e8ea;
  --hover: #e6f4f7;
  --text: #171d1e;
  --text-muted: #3f4849;
  --text-faint: #6f797b;
  --border: #bfc8ca;
  --primary: #006874;
  --primary-bg: #cde7ec;
  --primary-fg: #051f23;
  --on-primary: #ffffff;

  /* Akzent-Pair für Hero / CTAs */
  --primary-fixed: #97f0ff;
  --on-primary-fixed: #001f24;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-xxl: 28px;
  --r-pill: 9999px;

  /* Typo */
  --font-body: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Sora', system-ui, -apple-system, sans-serif;

  /* Spacing-Skala */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1416;
    --surface: #1a2326;
    --surface-2: #202a2d;
    --surface-3: #1f2629;
    --divider: #2a3437;
    --hover: #253034;
    --text: #e1e3e3;
    --text-muted: #bfc8ca;
    --text-faint: #8b9395;
    --border: #3a4244;
    --primary: #82d4e0;
    --primary-bg: #003f47;
    --primary-fg: #b3eaf3;
    --on-primary: #0a1416;
  }
}

/* ============================================================
   Reset + Base
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Accessibility
   ============================================================ */

.skip-link {
  position: absolute;
  top: -200px;
  left: var(--sp-4);
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: 820px; }

/* ============================================================
   Announcement Bar (Launch-Datum)
   ============================================================ */

.announce {
  background: linear-gradient(90deg,
    var(--primary) 0%,
    color-mix(in srgb, var(--primary) 75%, black) 100%);
  color: var(--on-primary);
  padding: 14px 0;
  position: relative;
  z-index: 11;
}
.announce__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.announce__headline {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-brand);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.announce__kicker {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
}
.announce__date {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--on-primary);
}
.announce__sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .announce { padding: 12px 0; }
  .announce__headline { gap: 10px; }
  .announce__sub { font-size: 12px; padding: 0 var(--sp-4); }
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand__wordmark { height: 42px; width: auto; }

.site-nav {
  display: none;
  gap: var(--sp-5);
}
.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  padding: var(--sp-2) 0;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 17px; }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, black);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--hover);
  border-color: var(--primary);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(64px, 9vw, 128px) 0 clamp(96px, 11vw, 160px);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.hero__eyebrow {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--sp-5);
}
.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 var(--sp-6);
  color: var(--text);
}
.hero__title-accent {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, white) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--text-muted);
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.hero__hint {
  font-size: 15px;
  color: var(--text-faint);
  margin: 0;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}
.section--alt {
  background: var(--surface-2);
}
.section__eyebrow {
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  margin: 0 0 var(--sp-4);
  display: block;
}
.section__title {
  font-family: var(--font-brand);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-5);
  text-align: center;
}
.section__lead {
  max-width: 720px;
  margin: 0 auto var(--sp-8);
  text-align: center;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-muted);
}

/* ============================================================
   Cards (Versprechen)
   ============================================================ */

.cards {
  display: grid;
  gap: var(--sp-5);
}
.cards--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border-radius: var(--r-xxl);
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--divider);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  background: var(--primary-bg);
  color: var(--primary);
  margin-bottom: var(--sp-5);
}
.card__icon svg { width: 36px; height: 36px; }

.card__title {
  font-family: var(--font-brand);
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.card__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}


/* ============================================================
   Vorschau-Section (Phone Screenshots)
   ============================================================ */

.section--accent {
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%,
      color-mix(in srgb, var(--primary) 14%, transparent) 0%,
      transparent 70%),
    var(--bg);
  position: relative;
}

.phones {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 56px);
  justify-items: center;
  margin-top: var(--sp-8);
}
@media (min-width: 720px) {
  .phones {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: clamp(32px, 4vw, 48px);
  }
}
@media (min-width: 1100px) {
  .phones {
    grid-template-columns: repeat(3, auto);
    gap: clamp(24px, 3vw, 40px);
  }
}

.phone {
  position: relative;
  width: 244px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #232b2e 0%, #0e1416 100%);
  border-radius: 36px;
  padding: 8px;
  border: 1px solid #2a3437;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .3),
    0 6px 16px rgba(0, 0, 0, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .05);
}
@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow:
      0 24px 60px rgba(0, 0, 0, .5),
      0 6px 16px rgba(0, 0, 0, .3),
      inset 0 0 0 1px rgba(255, 255, 255, .08);
  }
}

.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a1416;
  z-index: 2;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, .15);
}

.phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  background: var(--surface);
}

/* ============================================================
   Steuer-Section (DACH-USP)
   ============================================================ */

.tax-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-6);
}
@media (min-width: 768px) {
  .tax-grid { grid-template-columns: repeat(3, 1fr); }
}

.tax-card {
  background: var(--surface);
  border-radius: var(--r-xxl);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--divider);
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.tax-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tax-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-lg);
  background: var(--primary-bg);
  color: var(--primary);
  font-family: var(--font-brand);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: var(--sp-5);
}

.tax-card__title {
  font-family: var(--font-brand);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}
.tax-card__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.tax-disclaimer {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--divider);
  line-height: 1.5;
}

/* ============================================================
   Features (3x3 Grid)
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--divider);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.feature__title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.012em;
}
.feature__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ============================================================
   Steps (Wie funktioniert's)
   ============================================================ */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: var(--surface);
  border-radius: var(--r-xxl);
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--divider);
  position: relative;
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: var(--sp-5);
}
.step__title {
  font-family: var(--font-brand);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-3);
}
.step__body {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
}

.cta-row {
  margin-top: var(--sp-7);
  display: flex;
  justify-content: center;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq[open] {
  border-color: var(--primary);
}
.faq__q {
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--font-brand);
  letter-spacing: -0.012em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 28px;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq[open] .faq__q::after {
  content: '−';
}
.faq__a {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-muted);
}
.faq__a p { margin: 0; line-height: 1.65; font-size: 17px; }

/* ============================================================
   Final CTA
   ============================================================ */

.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%);
  color: var(--on-primary);
  text-align: center;
}
.cta__title {
  font-family: var(--font-brand);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-4);
  color: var(--on-primary);
}
.cta__lead {
  margin: 0 0 var(--sp-7);
  font-size: clamp(17px, 1.4vw, 20px);
  opacity: 0.9;
}
.section--cta .btn--primary {
  background: var(--on-primary);
  color: var(--primary);
}
.section--cta .btn--primary:hover {
  background: color-mix(in srgb, var(--on-primary) 92%, var(--primary));
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--divider);
  padding: var(--sp-6) 0;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  text-align: center;
}
@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-footer__logo { width: 32px; height: 32px; }
.site-footer__nav {
  display: flex;
  gap: var(--sp-5);
}
.site-footer__nav a {
  color: var(--text-muted);
  font-weight: 500;
}
.site-footer__nav a:hover {
  color: var(--text);
  text-decoration: none;
}
