/* ==========================================================================
   LastBrowser Web Platform - Component Library
   Modular, performant, responsive components
   ========================================================================== */

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--stroke);
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 16px rgba(37, 99, 255, 0.25);
  display: block;
}

.logo strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.logo span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Language Selector --- */
.lang-picker {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: rgba(16, 24, 39, 0.6);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--cyan);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}

.lang-menu.open {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
}

/* --- Theme Toggle --- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* --- Mobile Menu Drawer --- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nearBlack);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--stroke);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--electricBlue), var(--purple));
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(37, 99, 255, 0.5);
}

.btn-cyan {
  color: #070A12;
  background: var(--cyan);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

.btn-cyan:hover {
  background: #33ebff;
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.45);
}

.btn-ghost {
  background: rgba(16, 24, 39, 0.85);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* --- Badges --- */
.pill-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.badge-purple {
  background: rgba(138, 63, 252, 0.15);
  color: var(--purple);
  border-color: rgba(138, 63, 252, 0.3);
}

.badge-green {
  background: rgba(124, 255, 107, 0.12);
  color: var(--green);
  border-color: rgba(124, 255, 107, 0.3);
}

.badge-yellow {
  background: rgba(255, 200, 0, 0.12);
  color: var(--yellow);
  border-color: rgba(255, 200, 0, 0.3);
}

/* --- Hero --- */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

/* CTA-Banner (Home + Features): vorher ohne eigene Regeln, dadurch
   linksbuendige Ueberschrift bei zentrierten Buttons und fehlender Abstand. */
.cta-banner {
  margin: 70px auto 10px;
  padding: 8px 0;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 14px;
}

.cta-banner > .container > p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 22px;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sub-cta-note {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

/* --- Feature Cards --- */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--stroke-glow);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 800;
}

.fc-icon.blue { background: rgba(37, 99, 255, 0.15); border: 1px solid rgba(37, 99, 255, 0.3); color: var(--cyan); }
.fc-icon.purple { background: rgba(138, 63, 252, 0.15); border: 1px solid rgba(138, 63, 252, 0.3); color: var(--purple); }
.fc-icon.pink { background: rgba(255, 45, 143, 0.15); border: 1px solid rgba(255, 45, 143, 0.3); color: var(--magenta); }
.fc-icon.green { background: rgba(124, 255, 107, 0.15); border: 1px solid rgba(124, 255, 107, 0.3); color: var(--green); }
.fc-icon.yellow { background: rgba(255, 200, 0, 0.15); border: 1px solid rgba(255, 200, 0, 0.3); color: var(--yellow); }

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Screenshot Showcase --- */
.showcase-container {
  margin: 40px auto 0;
  max-width: 1100px;
}

.showcase-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sc-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 24, 39, 0.8);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.sc-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.25), rgba(0, 229, 255, 0.15));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.showcase-window {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(7, 10, 18, 0.98));
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.window-titlebar {
  height: 42px;
  background: rgba(7, 10, 18, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--stroke);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.omnibox-mock {
  flex: 1;
  max-width: 560px;
  margin: 0 16px;
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.omnibox-shield {
  color: var(--green);
  font-weight: 600;
  font-size: 11px;
}

.showcase-view {
  position: relative;
  background: #05070D;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.showcase-view img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
  cursor: zoom-in;
}

.showcase-view img.fade-out {
  opacity: 0;
}

.showcase-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(11, 18, 32, 0.95);
  border-top: 1px solid var(--stroke);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Sticky Floating Download Bar --- */
.floating-bar {
  position: fixed;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  background: rgba(16, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90%;
}

.floating-bar.visible {
  bottom: 24px;
}

.floating-bar .fb-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-bar .fb-info img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.floating-bar .fb-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.floating-bar .fb-text span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

/* SmartScreen Steps in Modal */
.ss-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(16, 24, 39, 0.6);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
}

.ss-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--electricBlue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Lightbox Modal */
.lightbox-dialog {
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.lightbox-dialog img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* --- Onboarding Steps --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--electricBlue), var(--purple));
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(37, 99, 255, 0.4);
}

.step-card h4 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
}

/* --- Footer ---
   Fix 2026-10-24: Der Footer nutzte pauschal ein dunkles Overlay
   (rgba(7,10,18,.6)) und vererbte zugleich --muted. Im Light-Theme ergab das
   einen muddy-grauen Block mit ~1.36:1 Kontrast. Jetzt theme-abhaengige
   Tokens (--footer-bg/--footer-fg) mit >= 4.5:1 in hell UND dunkel. */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--stroke);
  color: var(--footer-fg, var(--muted));
  font-size: 14px;
  background: var(--footer-bg, rgba(7, 10, 18, 0.72));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  line-height: 1.6;
  max-width: 320px;
  color: var(--footer-fg, var(--muted));
  font-size: 14px;
}

/* Fix 2026-10-24: .logo span nutzte pauschal --cyan (#0284C7 im Light-Theme)
   und lag damit im Footer bei nur 3.77:1. Theme-Token erzwingt >= 4.5:1. */
footer .logo span {
  color: var(--footer-accent, var(--cyan));
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--footer-fg, var(--muted));
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--footer-link-hover, var(--cyan));
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--stroke);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--footer-fg, var(--muted));
}

.footer-bottom a {
  color: var(--footer-fg, var(--muted));
}

.footer-bottom a:hover {
  color: var(--footer-link-hover, var(--cyan));
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-fg, #e8edf7);
}

.footer-social-links svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.footer-contact-highlight {
  background: var(--footer-contact-bg, rgba(0, 229, 255, 0.08));
  border: 1px solid var(--footer-contact-border, rgba(0, 229, 255, 0.25));
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--footer-contact-fg, var(--cyan));
  font-weight: 600;
}

/* Sichtbarer Tastatur-Fokus im Footer (beide Themes, >= 3:1 Traegheit) */
.footer-col a:focus-visible,
.footer-bottom a:focus-visible,
.footer-social-links a:focus-visible,
.footer-contact-highlight a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-bar {
    width: calc(100% - 24px);
    justify-content: space-between;
    padding: 10px 16px;
  }
  .floating-bar .fb-text span {
    display: none;
  }
}

/* ==========================================================================
   Home a11y fixes (design/home-a11y-fixes)
   a) kein horizontales Scrollen bei 390px
   c) solide statt Verlauf-Überschriften
   g) größerer Showcase
   h) durchgehend dunkler Hintergrund (kein Weißbruch in Full-Page-Shots)
   ========================================================================== */

/* h) html trägt die dunkle Grundfarbe, Body-Hintergrund scrollt mit
   (background-attachment:fixed erzeugt in Full-Page-Screenshots eine
   weiße Lücke unterhalb des Viewports). */
html {
  background-color: #05070D;
  max-width: 100%;
}

[data-theme="light"] html {
  background-color: #F1F5F9;
}

body {
  background-attachment: scroll;
  max-width: 100%;
}

img {
  max-width: 100%;
}

/* a) Header-Download auf Mobil ausblenden (Mitverursacher 444px-Overflow) */
@media (max-width: 640px) {
  nav .nav-actions .btn {
    display: none;
  }
}

/* a) Showcase-Fenster: Titelzeile darf umbrechen, Omnibox schrumpft mit Ellipse */
.window-titlebar {
  flex-wrap: wrap;
  height: auto;
  min-height: 42px;
  row-gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.omnibox-mock {
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
}

.omnibox-mock span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.showcase-window,
.showcase-nav,
.sc-btn {
  max-width: 100%;
}

.sc-btn {
  overflow-wrap: anywhere;
}

/* c) Solide Überschriften ohne Verlauf (Kontrast >= 4.5:1 via --text) */
.home-solid-title,
.section-header h2,
.hero h1,
.hero h1 .grad {
  background: none !important;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}

/* e) Versionszeile klein unter dem Download-Label */
.btn-stack {
  flex-direction: column;
  gap: 2px;
}

.btn-stack .btn-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
  line-height: 1.3;
}

/* b) Fallback-Zeile statt leerer Download-Box */
.download-counter[hidden] {
  display: none !important;
}

.dl-fallback {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin: 0 auto 18px;
}

.dl-fallback[hidden] {
  display: none;
}

/* g) Produkt-Screenshot größer/lesbarer */
.showcase-container {
  max-width: 1240px;
}

.showcase-view {
  min-height: 440px;
}

/* i) Privacy-Sektion */
.privacy-band {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 960px;
  margin: 70px auto 10px;
}

.privacy-band h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.privacy-band p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

/* j) Benefit-Leiste mit 3 Punkten */
.benefit-band {
  margin: 56px auto 0;
  max-width: 1100px;
}

.benefit-bar {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.benefit-bar li {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.benefit-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .benefit-bar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Nav-Overhaul (nav-after): schlanker Header, max. 6 Links, Drawer a11y
   Nutzt bestehende Tokens (--nav-bg, --stroke, --text, --muted, --cyan ...).
   Kein Redesign der Seiten, nur Header/Nav/Drawer.
   ========================================================================== */

:root {
  --nav-h: 64px;
}

/* Einheitliche Header-Hoehe, kein Umbruch, ruhiger sticky Hintergrund */
nav.site-nav .inner {
  min-height: var(--nav-h);
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
}

.site-nav .logo {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Max. 6 Hauptlinks: ruhig, einzeilig, Pillen-Hover + klarer Aktiv-Zustand */
.site-nav .nav-links {
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.site-nav .nav-links a {
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.35;
  text-decoration: none;
}

.site-nav .nav-links a:hover {
  color: var(--text);
  background: rgba(0, 229, 255, 0.08);
  border-color: transparent;
  text-decoration: none;
}

.site-nav .nav-links a.active,
.site-nav .nav-links a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.25);
  text-decoration: none;
}

/* Light-Theme: dunkleres Aktiv-Cyan (#0369a1, Kontrast >= 4.5, wie P2-1/P2-3) */
[data-theme="light"] .site-nav .nav-links a.active,
[data-theme="light"] .site-nav .nav-links a[aria-current="page"],
[data-theme="light"] .mobile-drawer nav a[aria-current="page"],
[data-theme="light"] .drawer-langs a.active,
[data-theme="light"] .drawer-langs a[aria-current="true"] {
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.35);
  background: rgba(3, 105, 161, 0.08);
}

.site-nav .nav-actions {
  flex-shrink: 0;
  margin-left: auto;
  flex-wrap: nowrap;
}

/* Sichtbarer Fokus in beiden Themes (AA, 3:1+ gegen beide Hintergruende) */
.site-nav a:focus-visible,
.site-nav button:focus-visible,
.mobile-drawer a:focus-visible,
.mobile-drawer button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Einheitliche 44px-Tap-Ziele fuer Theme + Menue (alle Viewports) */
.site-nav .theme-toggle,
.site-nav .mobile-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

body.nav-open {
  overflow: hidden;
}

/* Drawer: vollbreit, grosse Tap-Ziele, eigener Scroll */
.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer {
  top: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--stroke);
  padding: 12px 20px 32px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
}

.mobile-drawer nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 6px;
  font-size: 17px;
}

.mobile-drawer nav a[aria-current="page"] {
  color: var(--cyan);
}

.mobile-drawer .drawer-download {
  min-height: 48px;
  width: 100%;
  margin-top: 16px;
  font-size: 16px;
  border-bottom: none;
}

.drawer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.drawer-langs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 8px;
}

.drawer-langs a.active,
.drawer-langs a[aria-current="true"] {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.35);
}

/* Mobile 390: nur Logo + Theme + Menue im Header.
   Sprache + Download wandern in den Drawer. */
@media (max-width: 760px) {
  .site-nav .lang-picker {
    display: none;
  }
}

@media (max-width: 1020px) {
  .site-nav .nav-links {
    display: none;
  }
  .site-nav .mobile-toggle {
    display: block;
  }
}
