/* ============================================================
   Folanza Landingpage — Schriften (self-hosted)
   Bewusst lokal ausgeliefert, kein Drittanbieter-CDN, damit keine
   IP-Adresse beim Seitenaufruf an Google geht (Schrems II + LG
   Muenchen I 20.01.2022 Az. 3 O 17493/20). Quelle: Google Fonts
   v30 / v17, Lizenz SIL OFL 1.1 (siehe assets/fonts/LICENSE.txt).
   Variable Fonts: ein WOFF2 deckt jeweils mehrere Gewichte ab —
   robotoflex-*.woff2 enthaelt 400-600, sora-*.woff2 enthaelt
   500-700. Subset latin + latin-ext reicht fuer DACH-/EU-Sprachen.
   ============================================================ */

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/roboto-flex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('assets/fonts/roboto-flex-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Folanza 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(8px, 1vw, 24px);
  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(56px, 7vw, 96px) 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; }

/* Generische Sektion-Fussnote — sitzt mittig unter dem Card-Grid, dezenter
   als der Section-Lead, klare Brücke zu verwandten Sektionen.
   Verwendung: Geraete-Sektion verlinkt damit auf die Modi-Sektion. */
.section__footnote {
  margin: var(--sp-7) auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.section__footnote strong {
  color: var(--text);
  font-weight: 600;
}

.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;
}
/* Prominente Variante: erscheint VOR den Steuer-Kacheln, statt versteckt
   danach. StBerG-/Abmahn-Haertung — der Hinweis muss vor den Funktions-
   Beschreibungen sichtbar sein, nicht erst als Footnote.
   Etwas dezenter Akzent-Border statt voller Hervorhebung — soll
   informieren, nicht erschlagen. */
.tax-disclaimer--top {
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  border-left: 3px solid var(--primary);
  background: var(--primary-bg);
  color: var(--primary-fg);
  text-align: left;
}
.tax-disclaimer--top strong {
  color: var(--primary-fg);
  font-weight: 700;
}

/* ============================================================
   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__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0 0 var(--sp-2);
}
.feature__title {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.012em;
  min-width: 0;
  flex: 1 1 auto;
}
.feature__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Sync-Modus-Markierung: Brand-Teal als Pille, damit "Sync-Modus"
   visuell aus der Feature-Liste sticht ohne die Aufmerksamkeit zu
   stehlen. Kennt der User aus der Modi-Sektion oben wieder. */
.feature__badge--mode {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.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);
  white-space: nowrap;
}
.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;
}

/* ============================================================
   Modi-Switcher (Lokal- vs Sync-Modus)
   CSS-only Tab-Komponente — die zwei <input type="radio"> oben in
   der Section sind visuell versteckt, ihr :checked-Zustand steuert
   per ~-Selektor sowohl die aktive Tab-Optik als auch die Sichtbarkeit
   der Panels. Kein JavaScript, kein Tracking, kein persistenter State.
   ============================================================ */

.mode-switch {
  max-width: 920px;
  margin: var(--sp-7) auto 0;
}

/* Radio-Inputs unsichtbar, aber fokussierbar (fuer Keyboard-Navigation) */
.mode-switch > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Tab-Leiste */
.mode-switch__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: 6px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--divider);
  margin-bottom: var(--sp-6);
}

.mode-switch__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  color: var(--text-muted);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
  user-select: none;
  min-width: 0;
}
.mode-switch__tab:hover {
  color: var(--text);
}
.mode-switch__tab-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.mode-switch__tab-label {
  /* Verhindert internen Wort-Umbruch im "Lokal-Modus" / "Sync-Modus"
     Bindestrich-Compound. Auf engen Mobile-Tabs wuerde sonst
     "Lokal-" auf Zeile 1 und "Modus" auf Zeile 2 landen. */
  white-space: nowrap;
}
.mode-switch__tab-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  margin-left: 4px;
  white-space: nowrap;
}
/* Auf engen Viewports (Mobile-Portrait) ist neben Icon + Label kein
   Platz mehr fuer den Hint-Zusatz ("EMPFOHLEN" / "CROSS-DEVICE").
   Der Hint ist redundant — die ausfuehrlichen Mode-Panels darunter
   tragen die Information ohnehin. Auf Mobile blenden wir ihn aus
   und reduzieren das Padding leicht. */
@media (max-width: 540px) {
  .mode-switch__tab {
    padding: 12px 10px;
    gap: 6px;
    font-size: 14px;
  }
  .mode-switch__tab-icon {
    font-size: 16px;
  }
  .mode-switch__tab-hint {
    display: none;
  }
}

/* Aktive Tab via :checked auf dem zugehoerigen Radio */
.mode-switch > #mode-tab-lokal:checked ~ .mode-switch__tabs label[for="mode-tab-lokal"],
.mode-switch > #mode-tab-sync:checked  ~ .mode-switch__tabs label[for="mode-tab-sync"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
}

/* Keyboard-Focus-Ring auf den Labels (weil Inputs visuell versteckt sind) */
.mode-switch > #mode-tab-lokal:focus-visible ~ .mode-switch__tabs label[for="mode-tab-lokal"],
.mode-switch > #mode-tab-sync:focus-visible  ~ .mode-switch__tabs label[for="mode-tab-sync"] {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Panel-Container */
.mode-switch__panels {
  position: relative;
}

.mode-switch__panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
  animation: mode-fade .25s ease;
}

@keyframes mode-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mode-switch__panel { animation: none; }
}

/* Aktives Panel via :checked */
.mode-switch > #mode-tab-lokal:checked ~ .mode-switch__panels .mode-switch__panel--lokal,
.mode-switch > #mode-tab-sync:checked  ~ .mode-switch__panels .mode-switch__panel--sync {
  display: block;
}

/* Panel-Inhalt */
.mode-panel__head {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--divider);
}

.mode-panel__title {
  font-family: var(--font-brand);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 var(--sp-2);
  line-height: 1.2;
}

.mode-panel__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.mode-panel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: 0;
}
@media (min-width: 640px) {
  .mode-panel__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4) var(--sp-6);
  }
}

.mode-panel__item dt {
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
}
.mode-panel__item dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.mode-switch__footnote {
  margin: var(--sp-5) auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.55;
}
.mode-switch__footnote strong {
  color: var(--text-muted);
  font-weight: 600;
}

