/* ═══════════════════════════════════════════════════════
   StromNachbar – Design System v3 „Daylight"
   Light-Theme · Graphit + Mist + Kupfer · Rollen-Theming
   WCAG 2.1 AA (mindestens 4.5:1 auf allen Fließtexten)
   ═══════════════════════════════════════════════════════ */

/* ─── 0. Self-hosted Fonts (DSGVO: kein Drittanbieter) ─── */
/* Nunito Variable Font: eine Datei, Gewichte 200–1000 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito-variable.woff2') format('woff2');
}

/* ─── 1. Design Tokens ─── */
:root {
  color-scheme: light;

  /* Marken-Farben */
  --graphite:       #1F2628;   /* Primär-Akzent, Haupttext */
  --graphite-hover: #000000;
  --mist:           #5A8AA5;   /* Gast-Rollenfarbe, Sekundär-Akzent */
  --mist-deep:      #3E6C87;
  --mist-soft:      #B8D0DF;
  --mist-tint:      #EAF2F7;
  --copper:         #C85A2E;   /* Host-Rollenfarbe, Signatur */
  --copper-deep:    #8E3E1E;
  --copper-tint:    #FCE7DD;

  /* Text-Hierarchie (auf hellem Hintergrund) */
  --text-primary:   #1F2628;   /* 15.6:1 */
  --text-secondary: #4A5558;   /*  8.4:1 */
  --text-muted:     #656F71;   /*  4.8:1 AA normal auch auf hellstem BG */
  --text-invert:    #FFFFFF;   /* Text auf dunklen CTAs */

  /* Hintergrund */
  --bg-0:           #F5F8FA;
  --bg-1:           #EAF0F4;
  --bg-2:           #DCE7EE;

  /* Glass / Karten */
  --glass-bg:       rgba(255, 255, 255, 0.86);
  --glass-bg-hi:    rgba(255, 255, 255, 0.96);
  --glass-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-border:   rgba(62, 108, 135, 0.18);
  --glass-blur:     20px;
  --glass-shadow:   0 8px 32px rgba(31, 38, 40, 0.08);

  /* Status (AA auf Weiß) */
  --ok:             #1F8A4E;
  --ok-bg:          #E4F5EB;
  --warn:           #B87400;
  --warn-bg:        #FFF3D6;
  --err:            #B3261E;
  --err-bg:         #FCE4E2;

  /* Radien */
  --radius-xs:      8px;
  --radius-sm:      12px;
  --radius-md:      14px;
  --radius:         16px;
  --radius-lg:      24px;
  --radius-pill:    999px;

  /* Schrift */
  --font:           'Nunito', sans-serif;

  /* Spacing */
  --gap-xs:         6px;
  --gap-sm:         10px;
  --gap:            14px;
  --gap-lg:         20px;
  --gap-xl:         28px;

  /* ── Legacy-Aliase: bestehende CSS-/HTML-Nutzung soll weiter funktionieren ── */
  --white:          var(--text-primary);     /* Legacy: war Text auf dunklem BG, jetzt Dark-Text auf hellem BG */
  --shadow:         var(--graphite);
  --sunflower:      var(--copper);            /* Legacy-Akzent → Kupfer-Signatur (nicht Primär-CTA) */
  --sunflower-hover:var(--graphite-hover);
  --sunflower-dark: var(--graphite);
  --text-dark:      var(--text-primary);
  --text-dark-muted:var(--text-secondary);
  --dark:           var(--graphite);

  /* Rollenfarbe – Default = Gast/Mist. Umschaltung per body[data-mode] ODER body[data-role] */
  --role-color:     var(--mist);
  --role-deep:      var(--mist-deep);
  --role-tint:      var(--mist-tint);
  --role-glow:      rgba(90, 138, 165, 0.22);
}

body[data-role="host"],
body[data-mode="host"] {
  --role-color:     var(--copper);
  --role-deep:      var(--copper-deep);
  --role-tint:      var(--copper-tint);
  --role-glow:      rgba(200, 90, 46, 0.22);
}
body[data-role="gast"],
body[data-role="guest"],
body[data-mode="guest"] {
  --role-color:     var(--mist);
  --role-deep:      var(--mist-deep);
  --role-tint:      var(--mist-tint);
  --role-glow:      rgba(90, 138, 165, 0.22);
}


/* ─── 2. Reset & Basis ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-weight: 500;
  min-height: 100vh;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at top right, var(--role-glow), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(90, 138, 165, 0.16), transparent 55%),
    linear-gradient(170deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s ease;
}

/* Dekorative Hintergrund-Blobs (dezenter als vorher) */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 380px; height: 380px;
  background: var(--role-color);
  top: -120px; right: -100px;
  transition: background 0.6s ease;
}
body::after {
  width: 320px; height: 320px;
  background: var(--mist-soft);
  bottom: -100px; left: -100px;
}


/* ─── 3. Layout ─── */
.layout-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.layout-center > .legal-footer {
  margin-top: auto;
  width: 100%;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--glass-shadow);
}

.layout-app {
  padding: var(--gap-sm);
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.shell {
  position: relative;
  min-height: calc(100vh - 20px);
  padding: 22px 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 48px rgba(31, 38, 40, 0.10);
  overflow: hidden;
}
/* Rollen-Border-Top der Shell */
.shell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--role-color);
  transition: background 0.5s ease;
}


/* ─── 4. App Bar ─── */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--gap);
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ─── 5. Logo / Brand ─── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--graphite);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--text-invert);
  box-shadow: 0 4px 14px rgba(31, 38, 40, 0.18);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 1px;
}


/* ─── 6. Typografie ─── */
.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--gap-xs);
}

.section-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tagline {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--gap-xl);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--role-tint);
  border: 1px solid var(--role-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--role-deep);
  margin-bottom: var(--gap-sm);
  transition: all 0.4s ease;
}


/* ─── 7. Buttons ─── */
.btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--graphite);
  color: var(--text-invert);
  box-shadow: 0 4px 16px rgba(31, 38, 40, 0.28);
}
.btn-primary:hover:not(:disabled) {
  background: var(--graphite-hover);
  box-shadow: 0 8px 24px rgba(31, 38, 40, 0.32);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1.5px solid var(--glass-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--bg-1);
  border-color: var(--mist-deep);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--graphite);
  color: var(--graphite);
  margin-top: var(--gap-sm);
}
.btn-outline:hover:not(:disabled) {
  background: var(--graphite);
  color: var(--text-invert);
}

.btn-danger {
  background: var(--err);
  color: var(--text-invert);
}
.btn-danger:hover:not(:disabled) {
  background: #8E1D17;
}

/* Icon Button */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: #FFFFFF;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: var(--bg-1);
  border-color: var(--mist-deep);
  transform: translateY(-1px);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--text-invert);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ─── 8. Formular-Elemente ─── */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border 0.25s, background 0.25s, box-shadow 0.25s;
}
input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
input:focus {
  border-color: var(--role-color);
  box-shadow: 0 0 0 3px var(--role-tint);
}
input:read-only {
  opacity: 0.7;
  background: var(--bg-1);
  cursor: default;
}

/* Passwort-Toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--text-primary); }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}
.divider span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ─── 9. Alerts / Benachrichtigungen ─── */
.alert {
  display: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  align-items: center;
  gap: 8px;
  line-height: 1.45;
}
.alert.visible { display: flex; }

.alert-error {
  background: var(--err-bg);
  border: 1px solid rgba(179, 38, 30, 0.3);
  color: var(--err);
}
.alert-success {
  background: var(--ok-bg);
  border: 1px solid rgba(31, 138, 78, 0.3);
  color: var(--ok);
}
.alert-info {
  background: var(--mist-tint);
  border: 1px solid var(--glass-border);
  color: var(--mist-deep);
}
.alert-warning {
  background: var(--warn-bg);
  border: 1px solid rgba(184, 116, 0, 0.3);
  color: var(--warn);
}


/* ─── 10. Info-Cards ─── */
.info-card {
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: var(--gap);
}

.info-card .info-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.info-card .info-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}


/* ─── 11. Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(31, 138, 78, 0.3);
}
.badge-pending {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(184, 116, 0, 0.3);
}
.badge-muted {
  background: var(--bg-1);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}
.badge-error {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--graphite);
  color: var(--text-invert);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 800;
}


/* ─── 12. Metric Cards ─── */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}

.metric-card {
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--glass-shadow);
}

.metric-card.highlight {
  background: var(--graphite);
  color: var(--text-invert);
  border-color: var(--graphite);
}
.metric-card.highlight .metric-label,
.metric-card.highlight .metric-sub,
.metric-card.highlight .metric-value {
  color: var(--text-invert);
}
.metric-card.highlight .metric-label {
  opacity: 0.75;
}

.metric-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ─── 13. Sections ─── */
.section {
  margin-bottom: var(--gap);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}

.section-tag {
  background: var(--role-tint);
  border: 1px solid var(--role-color);
  color: var(--role-deep);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.4s;
}


/* ─── 14. List Cards (Sessions, Einladungen) ─── */
.stack-list {
  display: grid;
  gap: var(--gap-sm);
}

.list-card {
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.list-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-sm);
}

.list-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.list-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.meta-item {
  background: var(--bg-1);
  border-radius: var(--radius-xs);
  padding: 10px;
}

.meta-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.money {
  display: inline-block;
  background: var(--graphite);
  color: var(--text-invert);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-weight: 800;
}


/* ─── 15. Empty States ─── */
.empty-card {
  background: var(--bg-1);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}
.empty-card-rich {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
}
.empty-card-rich .empty-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.empty-card-rich .empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.empty-card-rich .empty-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.empty-card-rich .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 10px 20px;
}
.host-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}


/* ─── 15b. Copyable Cards + Toast ─── */
.list-card-copyable {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.list-card-copyable:hover {
  border-color: var(--role-color);
}
.list-card-copyable:active {
  background: var(--bg-1);
}
#copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--graphite);
  color: var(--text-invert);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(31, 38, 40, 0.24);
}
#copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ─── 16. Bottom Navigation ─── */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: var(--gap);
  padding: 10px 4px 2px;
  border-top: 1px solid var(--glass-border);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-item.active {
  color: var(--text-primary);
}
.nav-item.active .nav-icon {
  background: var(--graphite);
  color: var(--text-invert);
  border-color: var(--graphite);
  box-shadow: 0 3px 12px rgba(31, 38, 40, 0.24);
}


/* ─── 17. Session Card (Live-Laden) ─── */
.session-card {
  background: var(--copper-tint);
  border: 1px solid rgba(200, 90, 46, 0.35);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: var(--gap);
  text-align: center;
}
.session-card .kwh-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.session-card .kwh-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}
.session-card .cost-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--copper-deep);
  margin-top: 10px;
}
.session-card .duration {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}


/* ─── 18. Done Card (Abrechnung) ─── */
.done-card {
  text-align: center;
  padding: var(--gap-sm) 0 var(--gap-xs);
}
.done-icon   { font-size: 48px; margin-bottom: 12px; }
.done-title  { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.done-sub    { font-size: 15px; color: var(--text-secondary); font-weight: 600; margin-bottom: var(--gap); }
.done-amount { font-size: 30px; font-weight: 800; color: var(--graphite); margin-bottom: 4px; }
.done-kwh    { font-size: 15px; color: var(--text-muted); font-weight: 600; }


/* ─── 19. Hero (Premium, FAQ) ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
  margin-bottom: var(--gap);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #FFFFFF, var(--role-tint)),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background 0.5s;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--role-color);
  opacity: 0.12;
  filter: blur(6px);
  transition: background 0.5s;
}

.hero-title {
  position: relative; z-index: 1;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: var(--gap-sm);
  color: var(--text-primary);
}

.hero-text {
  position: relative; z-index: 1;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text-secondary);
}


/* ─── 20. Feature Cards (Premium) ─── */
.feature-grid {
  display: grid;
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}

.feature-card {
  padding: 15px;
  border-radius: var(--radius);
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.feature-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mist-deep);
  margin-bottom: var(--gap-xs);
}

.feature-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-secondary);
}


/* ─── 21. Compare Table (Premium) ─── */
.compare-list {
  display: grid;
  gap: 6px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: var(--gap-sm);
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}
.compare-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compare-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.compare-free,
.compare-premium {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  padding: 7px 9px;
  border-radius: var(--radius-xs);
  text-align: center;
}

.compare-free {
  background: var(--bg-1);
  color: var(--text-secondary);
}

.compare-premium {
  background: var(--graphite);
  color: var(--text-invert);
}


/* ─── 22. CTA Band ─── */
.cta-band {
  padding: 16px;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(31, 38, 40, 0.10);
  border: 1px solid var(--glass-border);
}

.cta-band .section-title {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cta-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--gap);
}

.cta-stack {
  display: grid;
  gap: var(--gap-sm);
}

.cta-band .btn-secondary {
  background: transparent;
  border: 1.5px solid var(--mist-deep);
  color: var(--mist-deep);
}
.cta-band .btn-outline {
  background: transparent;
  border: 1.5px solid var(--mist-deep);
  color: var(--mist-deep);
}
.cta-band .btn-outline:hover:not(:disabled) {
  background: var(--mist-deep);
  color: var(--text-invert);
}


/* ─── 23. FAQ ─── */
.faq-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.faq-card {
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--glass-shadow);
}

.faq-question {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-secondary);
}

.faq-list + .section {
  margin-top: 12px;
}


/* ─── 24. Warning Card ─── */
.warning-card {
  background: var(--warn-bg);
  color: var(--text-primary);
  border: 1px solid rgba(184, 116, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: var(--gap);
}
.warning-card .section-title,
.warning-card .warning-text {
  color: var(--text-primary);
}
.warning-text {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}


/* ─── 25. Card Footer (Login) ─── */
.card-footer {
  text-align: center;
  margin-top: var(--gap-lg);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.card-footer a {
  color: var(--mist-deep);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1.5px solid var(--mist-deep);
  transition: color 0.2s, border-color 0.2s;
}
.card-footer a:hover {
  color: var(--graphite);
  border-color: var(--graphite);
}


/* ─── 26. Loading ─── */
.loading {
  display: none;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--gap);
  color: var(--text-secondary);
}
.loading.visible { display: block; }


/* ─── 27. Quick Links ─── */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-sm);
  margin-bottom: var(--gap);
}


/* ─── 28. Membership Card ─── */
.membership {
  margin-bottom: var(--gap);
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}


/* ─── 29. Step-basierte Seiten (Einladung) ─── */
.step { display: none; }
.step.active { display: block; }


/* ─── 30. Responsive ─── */
@media (min-width: 600px) {
  .layout-center { padding: 40px 20px; }
  .layout-app { padding: 20px; }
  .shell { padding: 26px 22px 20px; }
  .hero { padding: 24px; }
  .hero-title { font-size: 28px; }
  .card { padding: 36px 32px; }
}

@media (max-width: 420px) {
  .shell { padding: 16px 12px 14px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick-links, .meta-grid { grid-template-columns: 1fr; }
  .bottom-nav { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .bottom-nav .nav-item { font-size: 11px; padding: 10px 4px 8px; }
  .nav-icon { font-size: 18px; }
  .hero { padding: 14px; }
  .hero-title { font-size: 22px; }
  .hero-text { font-size: 14px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .section-tag, .badge { width: fit-content; }
  .compare-row { grid-template-columns: 1fr; gap: 5px; }
  .compare-free::before  { content: 'Free: '; }
  .compare-premium::before { content: 'Premium: '; }
  .feature-card { padding: 12px; }
  .feature-title { font-size: 14px; }
  .faq-question { font-size: 15px; }
  .faq-answer { font-size: 13px; }
  .card { padding: 24px 18px; }
  .modal { padding: 18px; }
  .metric-value { font-size: 22px; }
  .metric-label { font-size: 11px; }
  .metric-sub { font-size: 12px; }
  .metric-card { padding: 10px; }
  .info-card { padding: 12px; }
  .cta-band { padding: 14px; }
  .btn { font-size: 14px; padding: 12px 14px; }
}

@media (max-width: 340px) {
  .shell { padding: 12px 10px 10px; }
  .card { padding: 20px 14px; }
  .metrics { grid-template-columns: 1fr; }
  .hero-title { font-size: 20px; }
  .bottom-nav { grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .appbar { gap: 8px; }
  .logo-text { font-size: 16px; }
  .section-title { font-size: 15px; }
  .btn { font-size: 13px; padding: 11px 12px; }
}


/* ─── 31. Site Footer ─── */
.site-footer {
  margin: var(--gap-xl) 0 0;
  padding: 22px 18px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.site-footer * { min-width: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-bottom: 16px;
}
.footer-grid > :first-child {
  grid-column: 1 / -1;   /* Brand+Tagline immer auf voller Breite */
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.footer-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.footer-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}
.footer-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

/* Hervorgehobener Footer-Link: Featured-Klasse deaktiviert (wird wie normaler Link behandelt) */
.footer-links a.footer-link-featured { font-weight: 600; color: var(--text-secondary); letter-spacing: 0; }
.footer-links a.footer-link-featured:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--text-primary); }
.footer-bottom-sep { color: var(--text-muted); opacity: .6; }
.footer-bottom-made { margin-left: auto; }
@media (max-width: 480px) {
  .footer-bottom-made { margin-left: 0; width: 100%; text-align: center; padding-top: 4px; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Legacy footer */
.legal-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 24px;
  font-size: 13px;
  font-weight: 600;
}
.legal-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-footer a:hover { color: var(--text-primary); }


/* ─── 32. Modal / Overlay ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(31, 38, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 20px;
  overflow-y: auto;
}
.modal-overlay.visible { display: flex; }
.modal {
  width: 100%;
  max-width: 400px;
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 48px rgba(31, 38, 40, 0.22);
}
.modal .section-title { margin-bottom: 4px; }
.modal .section-sub { margin-bottom: 16px; }
.modal .form-group { margin-bottom: 14px; }
.modal .btn { margin-top: 6px; }


/* ─── 33. Copy-Link Box ─── */
.copy-link-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 12px;
}
.copy-link-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--glass-border);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.copy-link-box button { white-space: nowrap; }


/* ─── 34. Skeleton Loading ─── */
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-1) 25%, var(--bg-2) 50%, var(--bg-1) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 50%; }
.skeleton-text.wide { width: 95%; }
.skeleton-metric { height: 32px; width: 60px; margin: 6px auto; }
.skeleton-card {
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
}
.skeleton-card .skeleton-text:last-child { margin-bottom: 0; }


/* ─── 35. Active Session Hero ─── */
.active-session-hero {
  background: linear-gradient(135deg, var(--copper-tint), var(--mist-tint));
  border: 1px solid var(--copper);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: var(--gap);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.active-session-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 90, 46, 0.12), transparent 70%);
  pointer-events: none;
}
.active-session-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--graphite);
  border: 1px solid var(--copper);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  color: var(--copper-tint);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.active-session-hero .hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 90, 46, 0.5); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(200, 90, 46, 0); }
}
.active-session-hero .hero-kwh {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 2px;
}
.active-session-hero .hero-kwh-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.active-session-hero .hero-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.active-session-hero .hero-meta-item { text-align: center; }
.active-session-hero .hero-meta-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.active-session-hero .hero-meta-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.active-session-hero .hero-guest {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}


/* ─── 36. Tabs ─── */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: var(--gap);
}
.tab-btn {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(31, 38, 40, 0.08);
}
.tab-btn:hover:not(.active) {
  color: var(--text-primary);
}


/* ─── 37. Filter Row ─── */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: var(--gap);
}
.filter-row select {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--glass-border);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.filter-row .filter-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.btn-show-more {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin-top: 8px;
}
.btn-show-more:hover {
  background: var(--bg-1);
  color: var(--text-primary);
  border-color: var(--mist-deep);
}


/* ─── 38. Nav Badge Dot (aktives Laden) ─── */
.badge-dot {
  position: relative;
}
.badge-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid #FFFFFF;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ─── 39. Wizard Progress ─── */
.wizard-progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 20px;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--glass-border);
  overflow: visible;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.wizard-step.active,
.wizard-step.done {
  opacity: 1;
}
.wizard-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
}
.wizard-step.active .wizard-step-num {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--text-invert);
}
.wizard-step.done .wizard-step-num {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}
.wizard-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}
.wizard-step.active .wizard-step-label {
  color: var(--text-primary);
}


/* ─── 40. Rollen-Pill-Switch (Dashboard, 2-Optionen-Toggle) ─── */
.role-switch,
.role-toggle {
  display: flex;
  background: #FFFFFF;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--gap);
}
.role-switch button,
.role-toggle-btn {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
/* Aktiver Zustand — Gast/Guest */
body[data-mode="guest"] .role-toggle-btn.active[data-role="guest"],
body[data-role="gast"]  .role-switch button.active-gast,
body[data-role="guest"] .role-switch button.active-guest {
  background: var(--mist-deep);     /* 5.7:1 weiß darauf → AA */
  color: var(--text-invert);
}
/* Aktiver Zustand — Host */
body[data-mode="host"] .role-toggle-btn.active[data-role="host"],
body[data-role="host"] .role-switch button.active-host {
  background: var(--copper-deep);   /* 6.9:1 weiß darauf → AA */
  color: var(--text-invert);
}
.role-toggle-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ─── 41. Rollen-Theming: kaskadierende Akzente ─── */

/* a) Shell-Border-Top (schon definiert via .shell::before, hier nur Intensivierung) */
body[data-mode] .shell::before,
body[data-role] .shell::before {
  background: var(--role-color);
  height: 5px;
}

/* b) Hero-Welcome-Area dezent tönen */
body[data-mode="host"]  .shell,
body[data-role="host"]  .shell {
  background:
    radial-gradient(ellipse 90% 200px at 50% 0%, rgba(200, 90, 46, 0.10), transparent 70%),
    var(--glass-bg);
}
body[data-mode="guest"] .shell,
body[data-role="guest"] .shell,
body[data-role="gast"]  .shell {
  background:
    radial-gradient(ellipse 90% 200px at 50% 0%, rgba(90, 138, 165, 0.12), transparent 70%),
    var(--glass-bg);
}

/* c) Highlighted Metric-Card (z.B. Kosten-Kachel) bekommt Role-Akzent */
body[data-mode] .metric-card.highlight,
body[data-role] .metric-card.highlight {
  border-color: var(--role-color);
  box-shadow: 0 2px 14px var(--role-glow);
}
body[data-mode] .metric-card.highlight .metric-value,
body[data-role] .metric-card.highlight .metric-value {
  color: var(--role-deep);
}

/* d) Primär-Links und Akzent-Inline-Text folgen der Rolle */
body[data-mode] a.accent,
body[data-mode] .role-accent,
body[data-role] a.accent,
body[data-role] .role-accent {
  color: var(--role-deep);
}

/* e) Section-Title bekommt eine kleine Role-Color-Leiste links */
body[data-mode] .section-title.role-bar,
body[data-role] .section-title.role-bar {
  border-left: 3px solid var(--role-color);
  padding-left: 10px;
}

/* f) Bottom-Nav aktiver Tab folgt der Rolle (optional, wird angewandt wenn vorhanden) */
body[data-mode] .bottom-nav-item.active svg,
body[data-role] .bottom-nav-item.active svg {
  color: var(--role-deep);
}
body[data-mode] .bottom-nav-item.active span,
body[data-role] .bottom-nav-item.active span {
  color: var(--role-deep);
}

/* g) Session-Hero Rahmen tönt die Rolle */
body[data-mode] .session-hero,
body[data-role] .session-hero {
  border-top: 3px solid var(--role-color);
}


/* ─── 40. FAQ v2 (Pills, Akkordeon, Rechtshinweis) ─────────────────
   Ergänzende Klassen für die neu strukturierte /faq/.
   Bestehende .faq-list / .faq-card / .faq-question / .faq-answer
   bleiben unverändert für andere Seiten.
   ────────────────────────────────────────────────────────────────── */

/* Sticky Pill-Navigation */
.faq-pills {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 12px 2px;
  margin: 0 -2px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(62,108,135,0.08);
}
.faq-pills::-webkit-scrollbar { display: none; }
.faq-pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-1);
  border: 1px solid rgba(62,108,135,0.12);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.faq-pill:hover {
  background: var(--mist-tint);
  color: var(--mist-deep);
  border-color: var(--mist-soft);
}
.faq-pill.active {
  background: var(--graphite);
  color: var(--text-invert);
  border-color: var(--graphite);
}
.faq-pill.active:hover {
  background: var(--graphite-hover);
  color: var(--text-invert);
}

/* Kategorie-Gruppen */
.faq-group {
  scroll-margin-top: 72px;
  margin-bottom: 22px;
}
.faq-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 10px;
}
.faq-group-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}
.faq-group-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.faq-group[data-tone="legal"] .faq-group-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* Akkordeon-Item */
.faq-item {
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg-hi);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color .18s, background .18s;
}
.faq-item[open] {
  border-color: rgba(62,108,135,0.32);
  background: #FFFFFF;
}
.faq-item > summary {
  list-style: none;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-item .faq-plus::before,
.faq-item .faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--copper);
  border-radius: 1px;
  transition: transform .22s;
}
.faq-item .faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item-a {
  padding: 0 16px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-secondary);
}
.faq-item-a p + p { margin-top: 10px; }
.faq-item-a a { color: var(--copper-deep); font-weight: 800; }

/* Kleiner Rechtshinweis-Fuß am Ende einer Rechtliches-Antwort */
.faq-legal-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(62,108,135,0.22);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

/* Prominente Disclaimer-Box oberhalb der Pills */
.faq-disclaimer {
  background: var(--copper-tint);
  border: 1px solid rgba(200,90,46,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--copper-deep);
}
.faq-disclaimer strong { font-weight: 900; }

/* Gefiltert-Zustand: alle Gruppen ausgeblendet außer der aktiven */
.faq-groups.is-filtered .faq-group { display: none; }
.faq-groups.is-filtered .faq-group.is-active { display: block; }
