/* ==========================================================================
   agibel.de – Design System & Responsive Stylesheet
   Modernes Editorial- & Tech-Portal Design (Core Web Vitals 100/100 optimiert)
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #161f33;
  --bg-card-hover: #1e2942;
  --bg-elevated: #23304d;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --amazon-orange: #ff9900;
  --amazon-orange-hover: #e68a00;
  --border-color: rgba(148, 163, 184, 0.16);
  --border-highlight: rgba(56, 189, 248, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 1240px;
  --article-width: 860px;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #0284c7;
  --accent-secondary: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --border-color: rgba(15, 23, 42, 0.1);
  --border-highlight: rgba(2, 132, 199, 0.4);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

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

/* ==========================================================================
   Layout & Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-container {
  width: 100%;
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Top Affiliate Disclosure Bar & Sticky Header
   ========================================================================== */

.top-disclosure {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
  text-align: center;
}

.top-disclosure a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-primary);
  text-decoration: none !important;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.brand-claim {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-l1 { background: #10b981; }
.dot-l2 { background: #f59e0b; }
.dot-l3 { background: #38bdf8; }
.dot-l4 { background: #a855f7; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    padding: 0.75rem 0;
    flex-wrap: wrap;
  }
  .main-nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
  }
  .nav-link {
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Hero & Badges
   ========================================================================== */

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(129, 140, 248, 0.1), transparent 45%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
}

.badge-l1 { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-l2 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-l3 { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.badge-l4 { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

[data-theme="light"] .badge-l1 { color: #047857; }
[data-theme="light"] .badge-l2 { color: #b45309; }
[data-theme="light"] .badge-l3 { color: #0369a1; }
[data-theme="light"] .badge-l4 { color: #7e22ce; }

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
}

.btn-amazon {
  background: var(--amazon-orange);
  color: #111827 !important;
  font-weight: 700;
  border: 1px solid #d97706;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
}

.btn-amazon:hover {
  background: var(--amazon-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
}

/* ==========================================================================
   4-Stage Roadmap Cards (Level 1 to Level 4)
   ========================================================================== */

.section {
  padding: 4rem 0;
}

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

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 720px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

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

.level-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.level-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.level-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
  font-weight: 750;
}

.level-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   GEO & Editorial Components (TL;DR Box, Comparison Tables, Callouts)
   ========================================================================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.geo-tldr-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border-highlight);
  border-left: 5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-glow);
}

.geo-tldr-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
}

.geo-tldr-box p {
  font-size: 1.04rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.geo-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.fact-item {
  background: var(--bg-card);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.fact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.fact-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Article Typography */
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.02em;
}

.article-content h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.5rem 1.4rem;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--text-primary);
}

/* Callout Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-card);
}

.callout-tip { border-left-color: var(--accent-emerald); }
.callout-warn { border-left-color: var(--accent-amber); }
.callout-danger { border-left-color: var(--accent-rose); }

.callout-title {
  font-weight: 750;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

/* Comparison Tables (Semantic HTML for GEO & SEO) */
.table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.comparison-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comparison-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Code & YAML Blocks */
.code-block {
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  overflow: hidden;
}

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

.copy-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--accent-primary);
}

.code-block pre {
  padding: 1.15rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
}

/* ==========================================================================
   Affiliate Product Cards & "Projekt-Warenkorb" (Shopping Lists)
   ========================================================================== */

.shopping-bundle {
  background: var(--bg-card);
  border: 2px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.bundle-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
}

.bundle-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.product-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  transition: border-color 0.2s ease;
}

.product-item:hover {
  border-color: var(--accent-primary);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.product-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.product-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 !important;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.product-tag {
  font-size: 0.73rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}

.product-action {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.price-range {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.affiliate-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: right;
}

@media (max-width: 700px) {
  .product-item {
    grid-template-columns: 1fr;
  }
  .product-action {
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   Sidebar (Sticky Table of Contents & Quick Upgrade Path)
   ========================================================================== */

.sidebar-sticky {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.sidebar-box h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.55rem;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
}

/* ==========================================================================
   Interactive Widgets (Level-Finder & Live Home Assistant Wall Display Mockup)
   ========================================================================== */

.interactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.quiz-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-btn:hover, .quiz-btn.selected {
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

.quiz-btn strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.quiz-btn span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.quiz-result {
  margin-top: 1.25rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent-emerald);
}

/* Interactive Wall Display Mockup */
.tablet-frame {
  background: #090d16;
  border: 12px solid #1e293b;
  border-radius: 26px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin: 2rem 0;
  color: #f8fafc;
}

.tablet-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ha-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.85rem;
}

.ha-mushroom-card {
  background: #161f33;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.ha-mushroom-card.active-light {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.5);
}

.ha-mushroom-card.active-climate {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
}

.ha-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.ha-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  display: block;
}

.ha-card-state {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent-primary);
}

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

details.faq-item p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

@media (max-width: 850px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
