/* ==========================================================================
   Die Rust-Werkstatt – Offizielles Stylesheet (Styleguide Version 3.0)
   Autor: Volker Dähn
   Stand: Oktober 2026
   Keine externen Abhängigkeiten · 100% lokal · Schnell & DSGVO-konform
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Farbsystem (Corporate Colors & Funktionsfarben)
   -------------------------------------------------------------------------- */
:root {
  /* Hauptfarben */
  --rust-orange: #E05626;
  --rust-orange-hover: #FF7A3D;
  --gold: #F59E0B;
  --gold-hover: #FBBF24;
  --slate-navy: #0F172A;
  --amboss-stahl: #F8FAFC;
  --tld-cyan: #38BDF8;

  /* Die sechs Rubriken (Leitsystem) */
  --rubrik-tastatur: #A4410B;
  --rubrik-passiert: #2A3D54;
  --rubrik-bughunter: #B02020;
  --rubrik-challenge: #5B3FA8;
  --rubrik-klartext: #1D6B36;
  --rubrik-toolbox: #C27803;

  /* Dark Theme (Standard) - Nie reines #000000 */
  --bg-primary: #0B0F17;
  --bg-surface: #131B26;
  --bg-surface-elevated: #1A2433;
  --border-subtle: #243042;
  --border-strong: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-faint: #64748B;
  --header-bg: rgba(11, 15, 23, 0.85);
  --code-bg: #070A0F;
  --code-border: #1E293B;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --glow-orange: 0 0 25px rgba(224, 86, 38, 0.25);

  /* Typografie */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'DejaVu Sans Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* Abstands-Raster (4er/8er-System) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radien */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --max-width: 1200px;
  --transition: all 0.2s ease-in-out;
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --header-bg: rgba(248, 250, 252, 0.88);
  --code-bg: #0F172A;
  --code-border: #E2E8F0;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --glow-orange: 0 0 25px rgba(224, 86, 38, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rust-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--rust-orange-hover);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* Skiplink für Barrierefreiheit */
.skiplink {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--rust-orange);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 600;
  transition: top 0.2s;
}

.skiplink:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   3. Layout-Container & Typografie-Hierarchie
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.container-narrow {
  max-width: 860px;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.2rem);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.section-kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--rust-orange);
  margin-bottom: var(--space-2);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--space-12);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   4. Top Announcement Bar & Header Navigation (Elegant & Responsive)
   -------------------------------------------------------------------------- */
.top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  z-index: 101;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.top-bar-highlight {
  color: var(--rust-orange);
  font-weight: 700;
}

.top-bar-sep {
  opacity: 0.4;
}

.top-bar-sister {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tld-cyan);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: var(--transition);
}

.top-bar-sister:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #fff;
  border-color: rgba(56, 189, 248, 0.45);
}

/* Fixierter Header mit Glasmorphismus */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 34px;
  width: auto;
}

/* Light/Dark Logo Umschaltung */
.logo-dark-mode { display: block; }
.logo-light-mode { display: none; }

[data-theme="light"] .logo-dark-mode { display: none; }
[data-theme="light"] .logo-light-mode { display: block; }

.main-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: var(--radius-md);
  white-space: nowrap !important;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  position: relative;
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-menu a[aria-current="page"] {
  color: var(--rust-orange);
  font-weight: 600;
  background: rgba(234, 88, 12, 0.1);
}

/* --------------------------------------------------------------------------
   Dropdown Navigation (Bücher / Die 3 Bände)
   -------------------------------------------------------------------------- */
.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.has-dropdown:hover .dropdown-chevron,
.has-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: var(--space-2);
  margin-top: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 120;
}

[data-theme="light"] .dropdown-menu {
  background: #FFFFFF;
  border-color: var(--border-subtle);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Unsichtbare Brücke, damit Hover beim Bewegen der Maus nicht abreißt */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px 4px;
}

.dropdown-item {
  display: flex !important;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 10px 12px !important;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: normal !important;
}

.dropdown-item:hover {
  background: rgba(224, 86, 38, 0.08) !important;
  border-color: rgba(224, 86, 38, 0.2);
}

[data-theme="light"] .dropdown-item:hover {
  background: rgba(224, 86, 38, 0.06) !important;
  border-color: rgba(224, 86, 38, 0.15);
}

.dropdown-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.2;
}

.dropdown-badge.band-1 {
  background: rgba(56, 189, 248, 0.15);
  color: var(--tld-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.dropdown-badge.band-2 {
  background: rgba(224, 86, 38, 0.15);
  color: var(--rust-orange);
  border: 1px solid rgba(224, 86, 38, 0.35);
}

.dropdown-badge.band-3 {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dropdown-badge.band-4 {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-title {
  color: var(--rust-orange);
}

.dropdown-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.dropdown-footer {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.dropdown-footer-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px !important;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rust-orange) !important;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.dropdown-footer-link:hover {
  background: rgba(224, 86, 38, 0.1) !important;
  color: var(--rust-orange-hover) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.nav-cta-short {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

/* Theme Toggle Button */
.btn-theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.btn-theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.mobile-nav-toggle .icon-close { display: none; }
.mobile-nav-toggle .icon-hamburger { display: block; }

.mobile-nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger { display: none; }

.mobile-only-item {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Buttons & Badges (Styleguide-konform)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

/* Primary: Verlauf von #FF7A3D zu #E05626, Glow-Schatten */
.btn-primary {
  background: linear-gradient(135deg, var(--rust-orange-hover) 0%, var(--rust-orange) 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(224, 86, 38, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF8F57 0%, #E85E2E 100%);
  box-shadow: 0 6px 20px rgba(224, 86, 38, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary: Transparenter Hintergrund, Rand 1.5px #475569, Text #F1F5F9 */
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--rust-orange);
  color: var(--rust-orange) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.pill-orange {
  background: rgba(224, 86, 38, 0.15);
  border: 1px solid rgba(224, 86, 38, 0.35);
  color: #FF7A3D;
}

.pill-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold);
}

.pill-blue {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--tld-cyan);
}

.pill-green {
  background: rgba(29, 107, 54, 0.15);
  border: 1px solid rgba(29, 107, 54, 0.35);
  color: #4ADE80;
}

.pill-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

/* --------------------------------------------------------------------------
   6. Hero-Bereich (Display, Cover, Artwork, Stats)
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 85% 20%, rgba(224, 86, 38, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-content .eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-content h1 span.highlight {
  color: var(--rust-orange);
  background: linear-gradient(120deg, #FF7A3D 0%, #E05626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content .subheading {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-6);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-card-3d {
  position: relative;
  perspective: 1000px;
  max-width: 360px;
}

.book-card-3d img.cover-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(224, 86, 38, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book-card-3d:hover img.cover-img {
  transform: translateY(-6px) rotateY(-3deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(224, 86, 38, 0.35);
}

.book-badge-float {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--bg-surface);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Stats-Leiste */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  text-align: center;
}

.stat-item .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-item .stat-num span.accent {
  color: var(--rust-orange);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Sektionen & Grid-Systeme
   -------------------------------------------------------------------------- */
.section-py {
  padding: var(--space-16) 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* --------------------------------------------------------------------------
   8. Karten (Cards) nach 60-30-10 Regel
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-highlight {
  border: 2px solid var(--rust-orange);
  background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
  box-shadow: var(--glow-orange);
  position: relative;
}

.card-header-badge {
  position: absolute;
  top: -14px;
  left: var(--space-6);
  background: linear-gradient(135deg, var(--rust-orange-hover) 0%, var(--rust-orange) 100%);
  color: #fff;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.card-body p {
  color: var(--text-secondary);
}

.card-feature-list {
  list-style: none;
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card-feature-list li strong {
  color: var(--text-primary);
}

.card-feature-list li .check-icon {
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. Die sechs Rubriken (Leitsystem visualisiert)
   -------------------------------------------------------------------------- */
.rubrik-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left-width: 5px;
  transition: var(--transition);
}

.rubrik-card:hover {
  transform: translateX(4px);
}

.rubrik-card.rubrik-1 { border-left-color: var(--rubrik-tastatur); }
.rubrik-card.rubrik-2 { border-left-color: var(--rubrik-passiert); }
.rubrik-card.rubrik-3 { border-left-color: var(--rubrik-bughunter); }
.rubrik-card.rubrik-4 { border-left-color: var(--rubrik-challenge); }
.rubrik-card.rubrik-5 { border-left-color: var(--rubrik-klartext); }
.rubrik-card.rubrik-6 { border-left-color: var(--rubrik-toolbox); }

.rubrik-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #fff;
  margin-bottom: var(--space-2);
}

.rubrik-card.rubrik-1 .rubrik-tag { background: var(--rubrik-tastatur); }
.rubrik-card.rubrik-2 .rubrik-tag { background: #385070; }
.rubrik-card.rubrik-3 .rubrik-tag { background: var(--rubrik-bughunter); }
.rubrik-card.rubrik-4 .rubrik-tag { background: var(--rubrik-challenge); }
.rubrik-card.rubrik-5 .rubrik-tag { background: var(--rubrik-klartext); }
.rubrik-card.rubrik-6 .rubrik-tag { background: var(--rubrik-toolbox); }

/* Rubrik Callout im Fließtext / Leseprobe */
.callout-rubrik {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--rust-orange);
}

.callout-rubrik.bughunter {
  border-left-color: var(--rubrik-bughunter);
  background: rgba(176, 32, 32, 0.08);
}

.callout-rubrik.toolbox {
  border-left-color: var(--rubrik-toolbox);
  background: rgba(194, 120, 3, 0.08);
}

.callout-rubrik.klartext {
  border-left-color: var(--rubrik-klartext);
  background: rgba(29, 107, 54, 0.08);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   10. Quelltext & Code-Container (JetBrains Mono & 70-Zeichen-Regel)
   -------------------------------------------------------------------------- */
.code-container {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
  overflow: hidden;
  position: relative;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--code-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-header .file-name {
  color: var(--text-secondary);
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.75rem;
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

pre {
  margin: 0;
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #E2E8F0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

p code, li code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: #FF7A3D;
}

/* Einfache Syntax-Farbklassen */
pre .kw { color: #F43F5E; font-weight: 600; } /* fn, let, mut, struct */
pre .fn { color: #38BDF8; }                  /* Funktionsnamen */
pre .str { color: #A7F3D0; }                 /* "Hallo" */
pre .com { color: #64748B; font-style: italic; } /* // Kommentare */
pre .type { color: #FBBF24; }                /* String, u32 */
pre .macro { color: #FB923C; }               /* println! */

/* Zeilennummern & Markierungen für Code-Along-Etappen */
pre code.has-lines {
  display: block;
}
pre code.has-lines .cl {
  display: block;
  padding-left: 3.4em;
  position: relative;
  min-height: 1.55em;
}
pre code.has-lines .cl::before {
  content: attr(data-ln);
  position: absolute;
  left: 0;
  width: 2.6em;
  text-align: right;
  color: #64748B;
  font-size: 0.85em;
  user-select: none;
  -webkit-user-select: none;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  padding-right: 0.6em;
}
pre code.has-lines .cl-add {
  background: rgba(245, 158, 11, 0.11);
  border-left: 2px solid #F59E0B;
  margin-left: -0.5rem;
  padding-left: calc(3.4em + 0.5rem - 2px);
}

/* --------------------------------------------------------------------------
   11. Preiskarten (nach preisempfehlung.md)
   -------------------------------------------------------------------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.price-box {
  margin: var(--space-4) 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-amount span.currency {
  font-size: 1.5rem;
  font-weight: 600;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.price-deal-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   12. Autoren-Box (Volker Dähn)
   -------------------------------------------------------------------------- */
.author-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--rust-orange);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.author-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(224, 86, 38, 0.15);
  border: 2px solid var(--rust-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rust-orange);
  font-size: 1.8rem;
}

/* --------------------------------------------------------------------------
   13. FAQ-Akkordeon & Info-Banner
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 860px;
  margin: 0 auto;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  transition: var(--transition);
}

details.faq-item[open] {
  border-color: var(--rust-orange);
}

summary.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

summary.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--rust-orange);
  transition: transform 0.2s;
}

details.faq-item[open] summary.faq-question::after {
  content: '−';
}

.faq-answer {
  padding-top: var(--space-4);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--rust-orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   15. Responsive Anpassungen (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content .eyebrow-row,
  .hero-ctas {
    justify-content: center;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Kompakte Desktop-Navigation für mittlere Bildschirme (Laptops / iPads quer) */
@media (max-width: 1240px) {
  .nav-menu a {
    padding: 6px 8px;
    font-size: 0.84rem;
  }
  .nav-cta-long {
    display: none;
  }
  .nav-cta-short {
    display: inline;
  }
  .brand-logo-img {
    height: 30px;
  }
}

/* Responsive Navigation für Tablets & Smartphones */
@media (max-width: 1024px) {
  .nav-cta-long {
    display: none;
  }
  .nav-cta-short {
    display: inline;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-6) var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    display: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-menu.is-active {
    display: flex;
  }

  .nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    width: 100%;
  }

  .nav-menu a:hover,
  .nav-menu a[aria-current="page"] {
    background: rgba(234, 88, 12, 0.1);
  }

  /* Dropdown im Mobilmenü flach & übersichtlich einbetten */
  .has-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
    padding: var(--space-2);
    margin-top: var(--space-2);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .has-dropdown .dropdown-menu::before {
    display: none;
  }

  .dropdown-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 10px 12px !important;
  }

  .dropdown-label {
    padding: 4px 6px;
  }

  .mobile-only-item {
    display: block;
    margin-top: var(--space-2);
  }

  .mobile-sister-link {
    color: var(--tld-cyan) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    font-weight: 600;
  }

  .mobile-theme-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  [data-theme="light"] .mobile-theme-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--border-subtle);
    color: var(--text-primary);
  }

  .mobile-theme-btn:hover {
    background: rgba(234, 88, 12, 0.1);
    border-color: var(--rust-orange);
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    font-size: 0.75rem;
  }
  .top-bar-sister {
    display: none;
  }
  .nav-cta span {
    display: none;
  }
  .nav-cta {
    padding: 8px 10px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .author-card {
    padding: var(--space-6);
  }
}

/* Pricing Band Tabs */
.pricing-band-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.pricing-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 22px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.pricing-tab-btn.is-active {
  border-color: var(--rust-orange);
  background: rgba(224, 86, 38, 0.12);
  color: var(--rust-orange-hover);
  box-shadow: 0 2px 10px rgba(224, 86, 38, 0.2);
}

.pricing-panel {
  display: none;
}

.pricing-panel.is-active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

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



/* --------------------------------------------------------------------------
   16. Ergänzungen: bisher ungestylte Bausteine & Layout-Feinschliff
   -------------------------------------------------------------------------- */
main { flex: 1 0 auto; }

/* Ankersprünge landen nicht unter dem fixierten Header */
section[id], [id="inhalt"] { scroll-margin-top: 84px; }

:focus-visible {
  outline: 2px solid var(--rust-orange-hover);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.top-bar-right { flex-shrink: 0; }

/* Schwester-Badge in der Navigation */
.nav-menu a.sister-badge {
  color: var(--tld-cyan);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.85rem;
}

.nav-menu a.sister-badge:hover {
  background: rgba(56, 189, 248, 0.18);
  color: var(--text-primary);
}

.nav-menu a.btn { color: #fff; }

.mobile-nav-toggle { font-size: 1.2rem; line-height: 1; }

/* Hero: Checkliste */
.hero-checkpoints {
  display: grid;
  gap: var(--space-3);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.hero-checkpoints strong { color: var(--text-primary); }

.hero-checkpoints > div { padding-left: 1.5em; text-indent: -1.5em; }

/* Karten: Fußbereich bündig am unteren Rand */
.card-footer { margin-top: auto; padding-top: var(--space-4); }
.card-body { flex: 1 1 auto; }
.card > div:first-child:not(.card-body):not(.card-header-badge) { flex: 1 1 auto; }

.pill { align-self: flex-start; }
.card .pill { margin-bottom: var(--space-3); }

/* Format-Vergleich */
.format-showcase { max-width: 1000px; margin: 0 auto; }
.format-showcase > .section-kicker,
.format-showcase > h2,
.format-showcase > p { text-align: center; }
.format-showcase > p { max-width: 720px; margin-left: auto; margin-right: auto; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.format-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--card-shadow);
}

.format-box.highlight {
  border: 2px solid var(--rust-orange);
  box-shadow: var(--glow-orange);
}

.format-box p { color: var(--text-secondary); }
.format-box .pill { margin-bottom: var(--space-3); }
.format-icon { font-size: 2.2rem; line-height: 1; margin-bottom: var(--space-3); }

/* Preis-Panels: Hervorgehobene Karte nicht abschneiden (Badge ragt heraus) */
.pricing-panel .grid-3 { padding-top: var(--space-4); align-items: stretch; }
.pricing-panel .pricing-duo { padding-top: var(--space-4); align-items: stretch; max-width: 880px; margin: 0 auto; }

/* Lesbare Zeilenlänge im Fließtext der Karten */
.card-body p, .faq-answer p { max-width: 68ch; }

@media (max-width: 992px) {
  .format-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-12) 0 var(--space-8); }
  .hero-visual { order: -1; }
  .book-card-3d { max-width: 260px; }
  .hero-checkpoints { text-align: left; }
  .section-py { padding: var(--space-12) 0; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > [style*="grid-column"] { grid-column: auto !important; }
  .card, .format-box { padding: var(--space-6); }
  .hero-ctas .btn { width: 100%; white-space: normal; }
  .btn { white-space: normal; text-align: center; }
  .pricing-tab-btn { width: 100%; justify-content: center; }
  .stat-item .stat-num { font-size: 1.8rem; }
  .book-badge-float { right: 0; }
}

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

/* --------------------------------------------------------------------------
   17. Band-Seiten, Kapitelübersicht & Conversion-Elemente
   -------------------------------------------------------------------------- */
.card-link { position: relative; color: inherit; text-decoration: none; }
.card-link:hover { border-color: var(--rust-orange); color: inherit; }
.stretched-link { color: inherit; }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-footer .btn, .card-sublink { position: relative; z-index: 2; }
.card-sublink { display: block; text-align: center; margin-top: var(--space-3); font-size: 0.875rem; color: var(--text-secondary); }
.card-sublink:hover { color: var(--rust-orange); }

.teil-card h4 { margin-top: var(--space-1); }
.teil-card p { color: var(--text-secondary); font-size: 0.95rem; }
.teil-programm { margin-top: var(--space-3); font-size: 0.875rem !important; color: var(--gold) !important; }
.teil-programm strong { color: var(--text-primary); }

.trust-strip { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: var(--space-3) 0; }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-8); font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; }

.price-hint { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: var(--space-6) !important; }
.price-hint strong { color: var(--gold); }
.final-cta { background: radial-gradient(circle at 50% 0%, rgba(224, 86, 38, 0.12) 0%, transparent 65%); border-top: 1px solid var(--border-subtle); }

/* Band-Seiten */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--rust-orange); }
.proj-line { font-size: 0.95rem; color: var(--text-secondary); }
.proj-line strong { color: var(--text-primary); }

.teil-tools { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-4); }
.teil-list { display: flex; flex-direction: column; gap: var(--space-3); }
.teil-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); transition: var(--transition); }
.teil-item[open] { border-color: var(--rust-orange); }
.teil-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); cursor: pointer; list-style: none; }
.teil-summary::-webkit-details-marker { display: none; }
.teil-summary::after { content: '+'; grid-column: 4; font-size: 1.4rem; color: var(--rust-orange); }
.teil-item[open] .teil-summary::after { content: '−'; }
.teil-summary { grid-template-columns: auto 1fr auto auto; }
.teil-num { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--rust-orange); padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.teil-head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.teil-head strong { font-size: 1.05rem; }
.teil-head small { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.45; }
.teil-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.kapitel-liste { margin: 0; padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 2em); border-top: 1px solid var(--border-subtle); padding-top: var(--space-4); color: var(--text-secondary); display: grid; gap: var(--space-2); }
.kapitel-liste li::marker { color: var(--text-muted); font-size: 0.85em; }
.kapitel-liste li.feierabend { color: var(--text-primary); font-weight: 600; }
.badge-feier { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(245, 158, 11, 0.15); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.35); padding: 1px 8px; border-radius: var(--radius-full); margin-right: var(--space-2); }
.plan-note { margin-top: var(--space-6); font-size: 0.875rem; color: var(--text-muted); text-align: center; }
.who-list { max-width: 640px; margin: 0 auto var(--space-8); }
.band-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.band-nav-link { font-weight: 600; font-size: 0.95rem; }

/* Mobile Kauf-Leiste */
.sticky-buy { display: none; }
@media (max-width: 992px) {
  .sticky-buy {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
  }
  .sticky-buy div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .sticky-buy strong { font-size: 0.875rem; }
  .sticky-buy span { font-size: 0.8rem; color: var(--gold); }
  .sticky-buy .btn { white-space: nowrap; }
  body { padding-bottom: 68px; }
}
@media (max-width: 640px) {
  .teil-summary { grid-template-columns: auto 1fr auto; padding: var(--space-4); }
  .teil-count { display: none; }
  .kapitel-liste { padding-left: calc(var(--space-4) + 1.6em); padding-right: var(--space-4); }
  .band-nav { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   18. Politur: 4-Band-Cover-Fächer, Band-Thumbnails, Roadmap & Lesefortschritt
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rust-orange), var(--gold));
  z-index: 9999;
  transition: width 0.08s linear;
  pointer-events: none;
}

.book-fan {
  position: relative;
  width: 340px;
  max-width: 100%;
  height: 460px;
  margin: 0 auto;
  perspective: 1200px;
}

.book-fan-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 290px;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55), 0 0 24px rgba(224, 86, 38, 0.18);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  transform-origin: bottom center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-fan-card.b4 { transform: translateX(-34%) rotate(11deg) scale(0.86); z-index: 1; opacity: 0.85; }
.book-fan-card.b3 { transform: translateX(-40%) rotate(6deg) scale(0.91); z-index: 2; opacity: 0.92; }
.book-fan-card.b2 { transform: translateX(-46%) rotate(2deg) scale(0.96); z-index: 3; opacity: 0.96; }
.book-fan-card.b1 { transform: translateX(-56%) rotate(-3deg) scale(1); z-index: 4; }

.book-fan:hover .book-fan-card.b4 { transform: translateX(-20%) rotate(16deg) scale(0.88); }
.book-fan:hover .book-fan-card.b3 { transform: translateX(-31%) rotate(9deg) scale(0.92); }
.book-fan:hover .book-fan-card.b2 { transform: translateX(-43%) rotate(3deg) scale(0.96); }
.book-fan:hover .book-fan-card.b1 { transform: translateX(-60%) translateY(-6px) rotate(-5deg) scale(1.02); box-shadow: 0 28px 55px rgba(0, 0, 0, 0.65), 0 0 36px rgba(224, 86, 38, 0.35); }

@media (max-width: 992px) {
  .book-fan { width: 260px; height: 350px; }
  .book-fan-card { width: 220px; }
}

.band-thumb-wrap {
  margin: 0 auto 18px auto;
  width: 150px;
  perspective: 700px;
}
.band-thumb-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  border: 1px solid var(--border-subtle);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-link:hover .band-thumb-img {
  transform: translateY(-4px) rotateY(-6deg) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.52), 0 0 20px rgba(224, 86, 38, 0.25);
}

/* Erscheinungs- & Lernpfad-Timeline */
.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-10);
}
.roadmap-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.roadmap-step strong { font-size: 0.95rem; color: var(--text-primary); }
.roadmap-step span { font-size: 0.82rem; color: var(--text-secondary); }
.roadmap-date { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .roadmap-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .roadmap-strip { grid-template-columns: 1fr; }
}

/* Sanfter Scroll-Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Nach-oben-Button */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 80;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover {
  border-color: var(--rust-orange);
  color: var(--rust-orange);
}
@media (max-width: 992px) {
  .back-to-top { bottom: 78px; right: 16px; }
}
