/* ==========================================================================
   WebTec - Main Stylesheet (High-End Dark Tech Theme)
   ========================================================================== */

/* ============================================
   Self-hosted webfonts (SIL OFL 1.1, see fonts/OFL.txt)
   No request leaves for a font CDN.
   ============================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-400.woff2?v=1.0.0.4') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-500.woff2?v=1.0.0.4') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-600.woff2?v=1.0.0.4') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-700.woff2?v=1.0.0.4') format('woff2');
}

/* Declared as a range so that font-weight: 900 resolves to this file instead of
   being synthesised into a smeared faux-bold. No 900 cut is self-hosted. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-800.woff2?v=1.0.0.4') format('woff2');
}

/* ============================================
   Design Tokens & Variables
   ============================================ */
:root {
  /* Color System */
  --bg-main: #060913;                 /* Deep slate black */
  --bg-surface: #0c1222;              /* Deep card slate */
  --bg-surface-elevated: #131c34;     /* Floating card surface */
  
  --color-primary: #4ade80;           /* Leaf Green (Logo-Verlauf) */
  --color-primary-rgb: 74, 222, 128;
  --color-secondary: #06b6d4;         /* Electric Cyan */
  --color-secondary-rgb: 6, 182, 212;
  --color-accent: #10b981;            /* Energetic Emerald */
  --color-accent-rgb: 16, 185, 129;
  
  --color-text-primary: #e2e8f0;      /* Weiches Weiss - nicht das grelle Reinweiss */
  --color-text-secondary: #aab8c9;    /* Fliesstext, aufgehellt fuer die Lesbarkeit */
  --color-text-muted: #8593a6;        /* Nebentexte, ebenfalls eine Stufe heller */
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(74, 222, 128, 0.25);
  
  /* Background ramp (atmosphere only - accents are solid colours) */
  --gradient-dark: linear-gradient(180deg, #060913 0%, #0c1222 100%);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Glows */
  --glow-primary: 0 0 30px rgba(74, 222, 128, 0.15);
  --glow-secondary: 0 0 30px rgba(6, 182, 212, 0.15);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

/* ============================================
   Base Setup & Reset
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--color-text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--color-text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  position: relative;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

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

strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Core Layout Utilities */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .grid-2-lg { grid-template-columns: repeat(2, 1fr); }
  .items-center { align-items: center; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center-flex { align-items: center; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing Helpers */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* Styling Components */
.gradient-text {
  color: var(--color-primary);
  display: inline;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(74, 222, 128, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(74, 222, 128, 0.2);
  margin-bottom: 1.5rem;
}

.badge-secondary {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: #060913;
  box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -8px rgba(74, 222, 128, 0.6), var(--glow-primary);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.btn-cta-primary {
  background: var(--color-primary);
  color: #060913;
  font-size: 1rem;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(74, 222, 128, 0.5), var(--glow-primary);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.6rem;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Navigation Bar (Glassmorphic)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.navbar-brand img {
  height: 2.5rem;
  width: auto;
  transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
  transform: rotate(-8deg) scale(1.05);
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.navbar-link {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.navbar-link:hover {
  color: var(--color-text-primary);
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-toggle {
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.navbar-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Scrolled Nav & Page Overrides */
.navbar.scrolled, .navbar.scrolled-always {
  background: rgba(6, 9, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .navbar-inner, .navbar.scrolled-always .navbar-inner {
  height: 4.5rem;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 5.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(12, 18, 34, 0.95);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu a {
  padding: 0.75rem 1.5rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--color-primary);
  background: rgba(74, 222, 128, 0.05);
  padding-left: 2rem;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Tab Panels (one header entry = one page)
   ============================================ */
.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tabPanelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* Tabs without a full-bleed hero start below the fixed 5.5rem navbar */
.tab-panel:not(#page-home) > .section:first-of-type {
  padding-top: 11rem;
}

/* Selected tab in the header */
.navbar-link.active {
  color: var(--color-text-primary);
}

.navbar-link.active::after {
  width: 100%;
}

.mobile-menu a.active {
  color: var(--color-primary);
  background: rgba(74, 222, 128, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel.is-active {
    animation: none;
  }
}

/* ============================================
   Scroll-To-Top Button
   ============================================ */
.to-top-btn {
  position: fixed;
  bottom: 6px;
  right: 20px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #060913;
  box-shadow: 0 10px 30px -10px rgba(var(--color-primary-rgb), 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: all var(--transition-normal);
}

.to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.to-top-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

@media (max-width: 767px) {
  .to-top-btn span {
    display: none;
  }

  .to-top-btn {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .to-top-btn {
    transition: none;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  /* Die Navigationsleiste liegt fest ueber dem Inhalt. Ohne eigenen Abstand
     verschwindet die Kopfzeile des Heros darunter, sobald der Inhalt hoeher
     wird als das Fenster - auf Telefonen also immer. */
  padding: 7rem 0 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/wind_turbines_sunset.png?v=1.0.0.4');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(4, 7, 14, 0.4) 20%, rgba(4, 7, 14, 0.85) 90%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  max-width: 44rem;
  text-align: center;
  padding: 0 3.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

/* Auf schmalen Geraeten kostet der breite Innenabstand Zeilen - und jede
   zusaetzliche Zeile drueckt den Hero weiter ueber die Fensterhoehe hinaus. */
@media (max-width: 640px) {
  .hero-text {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

/* Floating animation for hero image */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(10px);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ============================================
   Pillars & Key Benefits
   ============================================ */
.pillars {
  padding: 3rem 0;
  background: var(--bg-surface);
  position: relative;
  z-index: 10;
  margin-top: -3rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card {
  background: rgba(20, 28, 48, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.pillar-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--color-primary);
  color: #060913;
}

.pillar-icon-box.alt {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--color-secondary);
}

.pillar-card:hover .pillar-icon-box.alt {
  background: var(--color-secondary);
  color: #060913;
}

.pillar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: rgba(6, 182, 212, 0.15);
}

.stats-card:hover::before {
  width: 100%;
}

.stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ============================================
   Product Cards Section
   ============================================ */
.products-section {
  background: linear-gradient(180deg, #060913 0%, #0c1222 100%);
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Sprung aus der Abschnitts-Einleitung in die Live-Demo */
.section-header-cta {
  margin-top: 1.75rem;
  gap: 0.55rem;
}
.section-header-cta svg {
  width: 1.05rem;
  height: 1.05rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(74, 222, 128, 0.04) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

.card-image-box {
  background: #060913;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-image-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.card:hover .card-image-box img {
  transform: scale(1.08);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-icon.secondary {
  color: var(--color-secondary);
}

.card-link {
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-fast);
}

.card-link:hover {
  color: var(--color-text-primary);
}

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

/* ============================================
   Interactive Energy Flow Simulation (Dashboard)
   ============================================ */
.dashboard-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dashboard-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dashboard-status-indicator {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  animation: blink 2s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 2.2fr 1fr;
  }
}

.flow-simulation-wrapper {
  position: relative;
  height: 18rem;
  border: 1px solid var(--border-light);
  background: #060913;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

/* Flow Nodes */
.flow-node {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.flow-node:hover {
  transform: scale(1.05);
}

.flow-node svg {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.2rem;
}

.flow-node span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.flow-node.node-pv {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  border-color: #eab308;
  color: #eab308;
}

.flow-node.node-pv:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.flow-node.node-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--color-primary);
  color: var(--color-primary);
  width: 6rem;
  height: 6rem;
}

.flow-node.node-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.25);
}

.flow-node.node-battery {
  bottom: 10%;
  left: 15%;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.flow-node.node-battery:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.flow-node.node-wb {
  bottom: 10%;
  right: 15%;
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.flow-node.node-wb:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Connecting Lines (SVG overlay) */
.flow-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.flow-connection-path {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 3;
}

.flow-connection-path.active {
  stroke-width: 4;
  stroke-dasharray: 8, 12;
  animation: flowAnimation 20s linear infinite;
}

.flow-connection-path.active-pv {
  stroke: #eab308;
  animation-duration: 10s;
}

.flow-connection-path.active-battery {
  stroke: var(--color-accent);
  animation-duration: 12s;
}

.flow-connection-path.active-wb {
  stroke: var(--color-secondary);
  animation-duration: 8s;
}

@keyframes flowAnimation {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Control Widget Panel */
.dashboard-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.control-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.control-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.control-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Range input styling */
.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  outline: none;
  margin: 0.75rem 0;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-primary);
  transition: transform var(--transition-fast);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-input.slider-secondary::-webkit-slider-thumb {
  background: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary);
}

.slider-input.slider-accent::-webkit-slider-thumb {
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

/* Info pill badges */
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  border: 1px solid var(--border-light);
}

/* ============================================
   Product Detail & Tech Expertise Section
   ============================================ */
.grid-detail-row {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-detail-row {
    grid-template-columns: 1fr 1fr;
  }
  .order-md-2 {
    order: 2;
  }
}

.detail-img-box {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
  padding: 2rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.detail-img-box img {
  max-width: 85%;
  height: auto;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.5));
}

.detail-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.detail-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Expertise / Tech Grid styles */
.tech-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  transition: border var(--transition-normal);
}

.tech-box-card:hover {
  border-color: var(--border-hover);
}

.tech-box-card h3 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.tech-box-card h3 svg {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--color-primary);
}

.tech-box-card.secondary h3 svg {
  color: var(--color-secondary);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.tech-row:hover {
  background: rgba(74, 222, 128, 0.05);
  border-color: rgba(74, 222, 128, 0.15);
  transform: translateX(5px);
}

.tech-row.secondary:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.15);
}

.tech-indicator {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.tech-row.secondary .tech-indicator {
  background: var(--color-secondary);
  box-shadow: 0 0 8px var(--color-secondary);
}

.tech-details {
  display: flex;
  flex-direction: column;
}

.tech-name {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.tech-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Emerald variant, used by the consulting card */
.tech-box-card.accent h3 svg {
  color: var(--color-accent);
}

.tech-row.accent:hover {
  background: rgba(var(--color-accent-rgb), 0.05);
  border-color: rgba(var(--color-accent-rgb), 0.15);
}

.tech-row.accent .tech-indicator {
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* ============================================
   Reference Architecture Diagram
   ============================================ */
.arch-diagram {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* The diagram has a fixed readable width - let it scroll rather than shrink */
.arch-diagram-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.arch-svg {
  display: block;
  width: 100%;
  min-width: 56rem;
  height: auto;
  font-family: var(--font-sans);
}

.arch-col-head text {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.arch-node rect {
  fill: var(--bg-surface-elevated);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.arch-node-title {
  font-size: 15px;
  font-weight: 700;
  fill: var(--color-text-primary);
}

.arch-node-sub {
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--color-text-secondary);
}

/* The bar on the left edge carries the layer colour */
.arch-node-field .arch-node-bar { fill: var(--color-secondary); }
.arch-node-link .arch-node-bar { fill: var(--color-primary); }
.arch-node-service .arch-node-bar { fill: var(--color-accent); }
.arch-node-state .arch-node-bar { fill: var(--color-text-muted); }

.arch-node-actor rect {
  fill: transparent;
  stroke: rgba(var(--color-accent-rgb), 0.35);
  stroke-dasharray: 4 4;
}

.arch-edge path {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.arch-edge-store path {
  stroke-dasharray: 5 4;
}

/* Only the event stream animates - the one flow that never stops */
.arch-edge-event path {
  stroke-dasharray: 7 6;
  animation: archFlow 1.6s linear infinite;
}

@keyframes archFlow {
  to { stroke-dashoffset: -13; }
}

@media (prefers-reduced-motion: reduce) {
  .arch-edge-event path {
    animation: none;
  }
}

.arch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border-light);
}

.arch-legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.arch-legend-key {
  width: 1.6rem;
  height: 0;
  flex: none;
  border-top-width: 2px;
  border-top-style: solid;
}

.arch-legend-item.event .arch-legend-key { border-top-color: var(--color-primary); }
.arch-legend-item.session .arch-legend-key { border-top-color: var(--color-secondary); }
.arch-legend-item.call .arch-legend-key { border-top-color: var(--color-accent); }
.arch-legend-item.store .arch-legend-key {
  border-top-color: var(--color-text-muted);
  border-top-style: dashed;
}

.arch-principle {
  border-left: 2px solid rgba(var(--color-primary-rgb), 0.35);
  padding-left: 1.25rem;
}

.arch-principle h4 {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.arch-principle p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ============================================
   Brochure Philosophy & Quote Area
   ============================================ */
.philosophy-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 7rem 0;
}

.quote-circle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.quote-circle {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: #060913;
  border: 2px dashed rgba(74, 222, 128, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), var(--glow-primary);
  animation: float 8s ease-in-out infinite alternate;
}

.quote-circle svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.quote-text {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.quote-author {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.05em;
}

/* Highlights Box Card */
.highlight-panel {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  color: #060913;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.highlight-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

.highlight-panel h4 {
  color: #060913;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.highlight-panel p {
  color: #060913;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CTA Contact Section
   ============================================ */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: radial-gradient(circle at 100% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
              linear-gradient(135deg, #0c1222 0%, #060913 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  color: var(--color-text-secondary);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
}

.cta-btn-primary {
  background: var(--color-primary);
  color: #060913;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
}

.cta-btn-primary:hover {
  box-shadow: 0 15px 35px rgba(74, 222, 128, 0.4), var(--glow-primary);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Footer Section
   ============================================ */
.footer {
  background: #04070e;
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.footer-brand img {
  height: 2.2rem;
  width: auto;
}

.footer-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 25rem;
}

.footer-title {
  color: var(--color-text-primary);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 2rem;
  height: 2px;
  background: var(--color-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-bottom a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ============================================
   Legal pages: sticky chapter rail + body
   (shared by datenschutz.html and impressum.html)
   ============================================ */
/* Two-column layout: sticky chapter rail + policy text */
.page-content .container.privacy-layout {
  max-width: 78rem;
}
.privacy-layout {
  display: block;
}
@media (min-width: 1024px) {
  .privacy-layout {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}
.privacy-nav {
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .privacy-nav {
    position: sticky;
    top: 7.5rem;
    margin-bottom: 0;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
  }
}
.privacy-nav-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
}
.privacy-nav-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem 0.75rem;
}
.privacy-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy-nav li {
  list-style: none;
  margin: 0;
}
.privacy-nav a {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-secondary);
  border-bottom: none;
  transition: all var(--transition-fast);
}
.privacy-nav a:hover {
  color: var(--color-text-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}
.privacy-nav a.active {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
}
.privacy-nav-num {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}
.privacy-nav a.active .privacy-nav-num {
  color: var(--color-primary);
}
/* Second level: service-specific chapters under their parent */
.privacy-nav ul ul {
  margin: 0 0 0.25rem 0;
  padding-left: 2rem;
  border-left: 1px solid var(--border-light);
  margin-left: 1.3rem;
}
.privacy-nav ul ul a {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
}
/* Clear the fixed navbar when jumping to a chapter */
.privacy-content h2,
.privacy-content h3 {
  scroll-margin-top: 7.5rem;
}

/* Intro box above the policy text */
.tab-description {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--color-primary);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.tab-description p {
  margin: 0;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.tab-description p + p {
  margin-top: 0.75rem;
  font-weight: 500;
}
.privacy-content h2 {
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.privacy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.privacy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.privacy-content ul, .privacy-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}
.privacy-content li {
  margin-bottom: 0.6rem;
  list-style: disc;
}
.privacy-content ol li {
  list-style: decimal;
}
.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}
.privacy-content table td {
  padding: 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.privacy-content a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}
.privacy-content a:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-primary);
}

/* Key/value rows used for the legal facts in the Impressum */
.legal-facts {
  margin: 1.5rem 0 2rem;
}

.legal-facts > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 640px) {
  .legal-facts > div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

.legal-facts dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-facts dd {
  margin: 0;
  color: var(--color-text-primary);
}

/* ============================================
   Page Layout & Legal Subpages (AGB, Datenschutz, Impressum)
   ============================================ */
.page-content {
  padding-top: 9rem;
  padding-bottom: 6rem;
  background: var(--bg-main);
  min-height: 100vh;
}

.page-content .container {
  max-width: 50rem;
}

.page-content h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.prose {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.prose h2 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose a {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}

.prose a:hover {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-primary);
}

/* Embedded third-party document (e.g. the hosted Server & App policy) */
.doc-embed {
  margin-top: 4rem;
  /* Offset for the fixed navbar when linked to directly via #server */
  scroll-margin-top: 8rem;
}

.doc-embed h2 {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.doc-embed > p {
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
}

/* Click-to-load gate for third-party embeds: nothing is requested until asked */
.consent-embed {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.consent-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(var(--color-primary-rgb), 0.25);
  border-radius: var(--radius-md);
}

.consent-embed-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-primary);
}

.consent-embed-placeholder h3 {
  font-size: 1.15rem;
  color: var(--color-text-primary);
}

.consent-embed-placeholder p {
  max-width: 34rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.consent-embed-placeholder .btn {
  margin-top: 0.5rem;
}

.consent-embed-alt a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--border-light);
}

.consent-embed-alt a:hover {
  color: var(--color-primary);
}

.consent-embed.is-loaded iframe {
  display: block;
  border: none;
  border-radius: var(--radius-md);
  background: #ffffff; /* third party policy is a light document */
}

.iframe-container {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.iframe-container iframe {
  display: block;
  border: none;
  border-radius: var(--radius-md);
  background: #ffffff; /* third party policy is a light document */
}

.info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
}

.info-box p {
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-grid p {
  margin-bottom: 0.5rem;
}

.page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.5rem;
}

/* Document cards (AGB page layout styles in style.css) */
.document-cards {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .document-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.document-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.document-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.document-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.document-icon.secondary {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.2);
  color: var(--color-secondary);
}

.document-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.document-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.document-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.document-card .btn {
  width: 100%;
}

/* ============================================
   Dot Navigation (One-Pager Sidebar)
   ============================================ */
.dot-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: none; /* Hidden on mobile, and on tabs with nothing to scroll between */
  flex-direction: column;
  gap: 1rem;
  z-index: 90;
}
/* .visible is set by the script only when the open tab has several sections */
@media (min-width: 1024px) {
  .dot-nav.visible {
    display: flex;
  }
}
.dot-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* The dots are <button> elements so they are keyboard reachable */
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.dot-nav-label {
  position: absolute;
  right: 2rem;
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid var(--border-light);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  transform: translateX(10px);
  white-space: nowrap;
}
.dot-nav-item:hover .dot-nav-label {
  opacity: 1;
  transform: translateX(0);
}
.dot-nav-circle {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.dot-nav-item:hover .dot-nav-circle {
  background: var(--color-primary);
  transform: scale(1.2);
}
.dot-nav-item.active .dot-nav-circle {
  background: var(--color-primary);
  border-color: var(--bg-main);
  box-shadow: 0 0 12px var(--color-primary);
  transform: scale(1.4);
}

/* ============================================
   AI Chat Assistant (S4E-Inspired)
   ============================================ */
.chat-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  height: 28rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chat-widget::before {
  content: '';
  height: 4px;
  background: var(--color-primary);
}
.chat-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-status {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: blink 2s infinite alternate;
}
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.chat-msg {
  max-width: 85%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideDown 0.3s ease forwards;
}
.chat-msg.bot {
  background: var(--bg-surface-elevated);
  color: var(--color-text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.chat-msg.user {
  background: var(--color-primary);
  color: #060913;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
  font-weight: 600;
}
.chat-quick-replies {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(0,0,0,0.15);
}
.quick-reply-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quick-reply-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(74,222,128,0.05);
}
.hero-svg-wrapper {
  position: relative;
  width: 100%;
  height: 28rem;
  border: 1px solid var(--border-light);
  background-image: url('../images/hero_forest_bg.png?v=1.0.0.4');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-svg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(4, 7, 14, 0.3) 20%, rgba(4, 7, 14, 0.9) 90%);
  pointer-events: none;
  z-index: 5;
}
.hero-svg-element {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

/* Glowing Neon Wires and Stars */
.grid-wire {
  stroke-dasharray: 6, 8;
  animation: linePulse 2s linear infinite;
}
@keyframes linePulse {
  to {
    stroke-dashoffset: -500;
  }
}
.grid-wire-glow {
  filter: drop-shadow(0 0 4px var(--color-primary));
}
.grid-wire-glow-sec {
  filter: drop-shadow(0 0 4px var(--color-secondary));
}
.grid-wire-glow-yellow {
  filter: drop-shadow(0 0 4px #eab308);
}
.energy-star {
  filter: drop-shadow(0 0 6px currentColor);
}

/* ============================================
   Team Section Styles
   ============================================ */
.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: center;
}

/* Alle vier Karten teilen sich dieselben Zeilen des Gitters. Dadurch stehen
   Name, Rolle und vor allem die Zwischentitel "Werdegang" und "Aufgaben" in
   jeder Karte auf derselben Hoehe - unabhaengig davon, ueber wie viele Zeilen
   der Text darueber laeuft. Ohne Subgrid bleibt es beim bisherigen Verhalten. */
@supports (grid-template-rows: subgrid) {
  .team-grid {
    /* Die Zeilenluecke des Gitters liegt jetzt zwischen den Kartenzeilen -
       der Abstand zwischen umgebrochenen Karten kommt darum vom Aussenrand. */
    row-gap: 0;
  }
  .team-card {
    grid-row: span 7;
    grid-template-rows: subgrid;
    margin-bottom: 1.5rem;
  }
  .team-cv-section {
    grid-row: span 4;
    display: grid;
    grid-template-rows: subgrid;
  }
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card), var(--glow-primary);
}
.team-avatar {
  width: 5.5rem;
  height: 5.5rem;
  justify-self: center;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 800;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.team-card:hover .team-avatar {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
  transform: scale(1.05);
}
.team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-primary);
}
.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   Presentation Slide-Inspired Styles
   ============================================ */

/* Stats deck (Die Energiewende ist da) */
.stats-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}
.stat-card-slide {
  background: rgba(20, 28, 48, 0.45);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}
.stat-card-slide:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card), var(--glow-primary);
}
.stat-card-slide .num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.stat-card-slide .label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}
.stat-card-slide .desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Imbalance / Mismatch (Tag vs Nacht) */
.imbalance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .imbalance-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.imbalance-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.imbalance-card.day {
  background: rgba(234, 179, 8, 0.04);
  border-color: rgba(234, 179, 8, 0.15);
}
.imbalance-card.night {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.15);
}
.imbalance-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.imbalance-card.day h4 { color: #eab308; }
.imbalance-card.night h4 { color: #3b82f6; }
.imbalance-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Interactive workflow tab buttons & layout */
.workflow-tabs {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.workflow-tab-btn {
  background: rgba(20, 28, 48, 0.55);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.6rem;
  color: var(--color-text-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.workflow-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.workflow-tab-btn.active {
  background: var(--color-primary);
  color: #060913;
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}
.workflow-tab-btn .circle-num {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.workflow-content {
  display: none;
}
.workflow-content.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  animation: fadeIn 0.4s ease-in-out forwards;
}
@media (min-width: 1024px) {
  .workflow-content.active {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Detailed Team CV additions */
.team-cv-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  text-align: left;
  justify-self: stretch;
}
.team-cv-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.team-cv-text {
  font-size: 0.85rem !important;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.8rem !important;
}

/* Key benefits listing in tab contents */
.benefit-badge-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 640px) {
  .benefit-badge-list {
    grid-template-columns: 1fr 1fr;
  }
}
.benefit-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20, 28, 48, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}
.benefit-badge-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.benefit-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

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

/* ============================================
   Smart Grid Legend Card Styles
   ============================================ */
.legend-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2.5rem;
}
.legend-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-normal);
}
.legend-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(74, 222, 128, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(74, 222, 128, 0.1);
}
.legend-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legend-card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 6px currentColor);
}
.legend-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}
.legend-card-desc {
  font-size: 0.95rem;
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ============================================
   EEG Live - Gemeinschafts-Simulation
   ============================================ */

/* Einordnung unter der Sektions-Einleitung */
/* Verweise aus der Einleitung in den Simulationsbereich */
.eeg-jump {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(var(--color-primary-rgb), 0.45);
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.eeg-jump:hover,
.eeg-jump:focus-visible {
  color: var(--color-primary);
  text-decoration-color: currentColor;
}

.eeg-intro-note {
  margin: 0.9rem auto 0;
  max-width: 40rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.eeg-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .eeg-summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eeg-card,
.eeg-map-card,
.eeg-control-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.eeg-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.eeg-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.eeg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}
.eeg-card-head h3 {
  margin-right: auto;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-text-primary);
}
.eeg-card-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.eeg-card-tag--live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
}
.eeg-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0.5);
  animation: eegPulse 2s ease-out infinite;
}
@keyframes eegPulse {
  70% { box-shadow: 0 0 0 0.5rem rgba(var(--color-primary-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-primary-rgb), 0); }
}

/* Bilanz-Karte: Ringdiagramm */
.eeg-donut-wrap {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}
.eeg-donut {
  width: 100%;
  max-width: 13.5rem;
  height: auto;
}
.eeg-donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 16;
}
/* Drei Abschnitte: Saldo oben, Erzeugung rechts, Verbrauch links */
.eeg-donut-arc {
  fill: none;
  stroke-width: 16;
  stroke-linecap: butt;
}
.eeg-donut-arc--gen { stroke: #eab308; }
.eeg-donut-arc--load { stroke: var(--color-secondary); }
.eeg-donut-arc--saldo { stroke: var(--color-primary); }
.eeg-donut-arc--saldo.is-deficit { stroke: #ef4444; }

.eeg-donut-value {
  font-size: 26px;
  font-weight: 900;
  fill: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.eeg-donut-value.is-surplus { fill: var(--color-primary); }
.eeg-donut-value.is-deficit { fill: #ef4444; }
.eeg-donut-caption {
  font-size: 10px;
  font-weight: 800;
  fill: var(--color-text-muted);
  letter-spacing: 0.14em;
}
/* Seitenbeschriftung unterhalb des Rings */
.eeg-donut-axis {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.eeg-donut-axis--gen { fill: #eab308; }
.eeg-donut-axis--load { fill: var(--color-secondary); }

/* Kennzahlenlisten (Leistung jetzt, Gemeinschaft) */
.eeg-kv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.eeg-kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}
.eeg-kv + .eeg-kv {
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-light);
}
.eeg-kv-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.eeg-kv-value--gen { color: #eab308; }
.eeg-kv-value--load { color: var(--color-secondary); }
.eeg-kv-value--share { color: #a78bfa; }
.eeg-kv-value--export { color: var(--color-primary); }
.eeg-kv-value--import { color: #ef4444; }
.eeg-kv-value--muted { color: var(--color-text-muted); font-weight: 700; }

.eeg-card-foot {
  font-size: 0.8rem;
  margin: 0;
  margin-top: auto;
  color: var(--color-text-secondary);
}

/* Karte + Regler */
.eeg-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .eeg-live-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }
}

.eeg-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.35rem;
}

.eeg-household-frame {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
  stroke-dasharray: 7 5;
}
.eeg-household-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  fill: var(--color-text-muted);
}

.eeg-node rect,
.eeg-node circle {
  fill: var(--bg-surface-elevated);
  stroke: var(--border-light);
  stroke-width: 1.5;
}
.eeg-node--gen rect { stroke: rgba(234, 179, 8, 0.35); }
.eeg-node--load rect { stroke: rgba(var(--color-secondary-rgb), 0.35); }
.eeg-node--ess rect { stroke: rgba(167, 139, 250, 0.35); }
.eeg-node--ev rect { stroke: rgba(251, 146, 60, 0.35); }
/* Fuellstand der Speicherkacheln: Hintergrund als Fortschrittsbalken */
.eeg-node rect.eeg-node-soc {
  fill: rgba(167, 139, 250, 0.26);
  stroke: none;
  transition: width var(--transition-normal);
}
.eeg-node rect.eeg-node-soc--ev { fill: rgba(251, 146, 60, 0.24); }
/* Marke des Mindestladestands in der Speicherkachel */
.eeg-node rect.eeg-node-floor {
  fill: rgba(167, 139, 250, 0.75);
  stroke: none;
}

/* Sprechblasen an den Kacheln - der Zipfel zeigt nach oben zur Kachel */
.eeg-bubble-shape {
  fill: var(--bg-surface-elevated);
  stroke: rgba(167, 139, 250, 0.45);
  stroke-width: 1.5;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.eeg-bubble--ev .eeg-bubble-shape { stroke: rgba(251, 146, 60, 0.5); }
.eeg-bubble-title {
  font-size: 10px;
  font-weight: 800;
  fill: #a78bfa;
}
.eeg-bubble--ev .eeg-bubble-title { fill: #fb923c; }
.eeg-bubble-body {
  font-size: 9px;
  font-weight: 700;
  fill: var(--color-text-secondary);
}
.eeg-node--grid rect { stroke: rgba(255, 255, 255, 0.18); }
.eeg-node--hub circle {
  fill: var(--bg-surface);
  stroke: var(--color-primary);
  stroke-width: 2;
}

.eeg-node-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--color-text-primary);
}
.eeg-node-value {
  font-size: 11px;
  font-weight: 800;
  fill: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}
.eeg-node--gen .eeg-node-value { fill: #eab308; }
.eeg-node--load .eeg-node-value { fill: var(--color-secondary); }
.eeg-node--ess .eeg-node-value { fill: #a78bfa; }
.eeg-node--ev .eeg-node-value { fill: #fb923c; }

.eeg-hub-label {
  font-size: 11px;
  font-weight: 800;
  fill: var(--color-primary);
  letter-spacing: 0.02em;
}
.eeg-hub-value {
  font-size: 13px;
  font-weight: 800;
  fill: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.eeg-hub-value.is-surplus { fill: var(--color-primary); }
.eeg-hub-value.is-deficit { fill: #ef4444; }
.eeg-hub-caption {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--color-text-muted);
}

/* Verbindungen: ruhige Linie, Stärke = Leistung */
.eeg-flow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-width var(--transition-normal);
}
.eeg-flow--gen.is-active { stroke: rgba(234, 179, 8, 0.3); }
.eeg-flow--load.is-active { stroke: rgba(var(--color-secondary-rgb), 0.3); }
.eeg-flow--ess.is-active { stroke: rgba(167, 139, 250, 0.3); }
.eeg-flow--ev.is-active { stroke: rgba(251, 146, 60, 0.3); }
.eeg-flow--export.is-active { stroke: rgba(var(--color-primary-rgb), 0.3); }
.eeg-flow--import.is-active { stroke: rgba(239, 68, 68, 0.3); }

/* Steht das Auto zu Hause, umfasst dieser Rahmen Wohnanlage und Kachel.
   Die Deckkraft setzt das Skript, damit die Fahrt auch beim Spulen stimmt. */
.eeg-dock-frame {
  fill: rgba(251, 146, 60, 0.04);
  stroke: rgba(251, 146, 60, 0.35);
  stroke-width: 1;
  stroke-dasharray: 7 5;
  opacity: 0;
  pointer-events: none;
}

/* Laufende Energiemarker: Kern mit weichem Halo, Richtung = Energierichtung */
.eeg-marker--gen { color: #eab308; }
.eeg-marker--load { color: var(--color-secondary); }
.eeg-marker--ess { color: #a78bfa; }
.eeg-marker--ev { color: #fb923c; }
.eeg-marker--export { color: var(--color-primary); }
.eeg-marker--import { color: #ef4444; }
.eeg-marker--grid { color: var(--color-text-muted); }
.eeg-marker-halo {
  fill: currentColor;
  opacity: 0.16;
}
.eeg-marker-core {
  fill: currentColor;
}

.eeg-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
}
.eeg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.eeg-legend-swatch {
  flex-shrink: 0;
  width: 1.4rem;
  height: 0.2rem;
  border-radius: var(--radius-full);
  background: var(--color-text-muted);
}
.eeg-legend-swatch--gen { background: #eab308; }
.eeg-legend-swatch--load { background: var(--color-secondary); }
.eeg-legend-swatch--ess { background: #a78bfa; }
.eeg-legend-swatch--ev { background: #fb923c; }
.eeg-legend-swatch--export { background: var(--color-primary); }
.eeg-legend-swatch--import { background: #ef4444; }

/* Regler */
.eeg-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.eeg-control-group {
  --eeg-accent: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eeg-control-group--gen { --eeg-accent: #eab308; }
.eeg-control-group--load { --eeg-accent: var(--color-secondary); }
.eeg-control-group--ess { --eeg-accent: #a78bfa; }

.eeg-control-group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  color: var(--eeg-accent);
}
.eeg-control-group-title span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.eeg-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.eeg-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.eeg-slider-value {
  color: var(--eeg-accent);
  font-variant-numeric: tabular-nums;
}
.eeg-controls input[type="range"] {
  width: 100%;
  accent-color: var(--eeg-accent);
  cursor: pointer;
}

/* Ladestand der Speicher unter den Reglern */
.eeg-soc-readout--ev { --eeg-accent: #fb923c; }
.eeg-soc-readout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.eeg-soc-bar {
  flex: 1;
  height: 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.eeg-soc-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--eeg-accent);
  transition: width var(--transition-normal);
}
.eeg-soc-readout strong {
  color: var(--eeg-accent);
  font-variant-numeric: tabular-nums;
}

/* Tagesverlauf: aufklappbarer Bereich mit Zeitachse und Diagramm */
.eeg-day {
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-normal);
}
.eeg-day[open],
.eeg-day:hover {
  border-color: var(--border-hover);
}

.eeg-day-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.eeg-day-summary::-webkit-details-marker { display: none; }
.eeg-day-summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.eeg-day-summary-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.1);
}
.eeg-day-summary-icon svg { width: 1.3rem; height: 1.3rem; }

.eeg-day-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.eeg-day-summary-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-primary);
}
.eeg-day-summary-text span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.eeg-day-summary-chevron {
  margin-left: auto;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  transition: transform var(--transition-normal), color var(--transition-normal);
}
.eeg-day-summary-chevron svg { width: 1.15rem; height: 1.15rem; }
.eeg-day[open] .eeg-day-summary-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.eeg-day-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.35rem;
}
/* Infoblase in der Kopfzeile statt eines Absatzes im Koerper */
.eeg-info {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}
/* schiebt den Knopf samt Nachbarn an den rechten Rand der Kopfzeile */
.eeg-info--push { margin-left: auto; }
.eeg-info-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.eeg-info-btn svg { width: 1.15rem; height: 1.15rem; }
.eeg-info:hover .eeg-info-btn,
.eeg-info.is-open .eeg-info-btn,
.eeg-info-btn:focus-visible {
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.5);
}

.eeg-info-pop {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 20;
  width: min(30rem, calc(100vw - 3rem));
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  color: var(--color-text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  user-select: text;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  /* Sichtbarkeit schaltet hart: beim Zeigen sofort, beim Ausblenden erst nach der Blende. */
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.eeg-info:hover .eeg-info-pop,
.eeg-info:focus-within .eeg-info-pop,
.eeg-info.is-open .eeg-info-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.eeg-info-pop strong { color: var(--color-text-secondary); }
/* Schlusssatz etwas kraeftiger als der uebrige Hinweis */
.eeg-day-note-lead {
  font-weight: 600;
  color: var(--color-text-secondary);
}

.eeg-day-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.eeg-day-play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  color: #060913;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: filter var(--transition-fast);
}
.eeg-day-play:hover { filter: brightness(1.1); }
.eeg-day-play svg { width: 1.05rem; height: 1.05rem; }
.eeg-day-play .eeg-day-pause-icon { display: none; }
.eeg-day.is-playing .eeg-day-play .eeg-day-play-icon { display: none; }
.eeg-day.is-playing .eeg-day-play .eeg-day-pause-icon { display: block; }

.eeg-day-speed {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}
.eeg-day-speed select {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* "Fancy Stuff": Zusatzschalter neben dem Tempo, als kleines Aufklappmenue */
.eeg-fancy { position: relative; }
.eeg-fancy-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.eeg-fancy-summary::-webkit-details-marker { display: none; }
.eeg-fancy-summary::marker { content: ''; }
.eeg-fancy-summary:hover,
.eeg-fancy[open] .eeg-fancy-summary {
  color: var(--color-text-primary);
  border-color: rgba(74, 222, 128, 0.45);
}
.eeg-fancy-chevron {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform var(--transition-fast);
}
.eeg-fancy[open] .eeg-fancy-chevron { transform: rotate(180deg); }
.eeg-fancy-panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.5rem);
  left: 0;
  width: min(23rem, 80vw);
  padding: 0.85rem 0.95rem;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(2, 6, 20, 0.5);
}
.eeg-fancy-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
}
.eeg-fancy-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.eeg-fancy-option > span {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.eeg-fancy-option strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text-primary);
}
.eeg-fancy-option + .eeg-fancy-option {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-light);
}
/* Der Vorbehalt zur Prognose - sichtbar, aber nicht laut */
.eeg-fancy-warn {
  display: block;
  margin-top: 0.35rem;
  color: #fbbf24;
}

.eeg-day-clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-left: auto;
}
.eeg-day-clock strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}
.eeg-day-clock span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.eeg-day-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.eeg-day-timeline-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
/* Eigene Spur und eigener Griff statt der Darstellung des Browsers: Nur mit
   bekannter Griffbreite laesst sich der Mittelpunkt des Griffs auf die
   senkrechte Marke im Diagramm legen (siehe alignTimeline im Skript).
   --eeg-p ist die Reglerstellung von 0 bis 1 und faerbt die Spur bis zum Griff. */
.eeg-day-timeline input[type="range"] {
  --eeg-thumb: 16px;
  --eeg-track: 5px;
  --eeg-p: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--eeg-thumb);
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.eeg-day-timeline input[type="range"]::-webkit-slider-runnable-track {
  height: var(--eeg-track);
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--color-primary) 0 calc(var(--eeg-thumb) / 2 + (100% - var(--eeg-thumb)) * var(--eeg-p)),
    rgba(255, 255, 255, 0.12) calc(var(--eeg-thumb) / 2 + (100% - var(--eeg-thumb)) * var(--eeg-p)) 100%);
}
.eeg-day-timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--eeg-thumb);
  height: var(--eeg-thumb);
  margin-top: calc((var(--eeg-track) - var(--eeg-thumb)) / 2);
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}
.eeg-day-timeline input[type="range"]::-moz-range-track {
  height: var(--eeg-track);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.eeg-day-timeline input[type="range"]::-moz-range-progress {
  height: var(--eeg-track);
  border-radius: 999px;
  background: var(--color-primary);
}
.eeg-day-timeline input[type="range"]::-moz-range-thumb {
  width: var(--eeg-thumb);
  height: var(--eeg-thumb);
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}
.eeg-day-timeline input[type="range"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 999px;
}
.eeg-day-ticks {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.eeg-day-chart-wrap {
  position: relative;
  height: 20rem;
}
@media (max-width: 640px) {
  .eeg-day-summary { padding: 1rem; }
  .eeg-day-summary-text { flex: 1 1 100%; order: -1; }
  .eeg-info--push { margin-left: 0; }
  .eeg-day-body { padding: 1.2rem 1rem 1.25rem; }
  .eeg-day-clock { margin-left: 0; }
  .eeg-day-chart-wrap { height: 16rem; }
}

.eeg-day-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.eeg-day-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.eeg-day-stats span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.eeg-day-stats strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

/* Start und Reset sitzen rechts in der Kopfzeile des Tagesverlaufs */
.eeg-day-start {
  flex-shrink: 0;
  padding: 0.6rem 1.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: #060913;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.eeg-day-start:hover { filter: brightness(1.1); }
/* Laeuft die Simulation, wird aus dem Aufruf ein Schalter zum Abstellen. */
.eeg-day-start.is-running {
  color: var(--color-primary);
  background: transparent;
  border-color: rgba(var(--color-primary-rgb), 0.5);
}
.eeg-day-start.is-running:hover {
  filter: none;
  background: rgba(var(--color-primary-rgb), 0.1);
}

.eeg-day-reset {
  margin-left: 0;
  flex-shrink: 0;
}
.eeg-day-summary-chevron {
  margin-left: 0;
}

.eeg-reset-btn {
  padding: 0.6rem 1.35rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.eeg-reset-btn:hover {
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb), 0.5);
  background: rgba(var(--color-primary-rgb), 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .eeg-live-dot {
    animation: none;
  }
}
