/* ==========================================================================
   StromAutark.solar - Institutionelles Verbraucherportal Design System 2026
   Deutscher Standard (Style Finanztip / Stiftung Warentest / Verbraucherzentrale)
   ========================================================================== */

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-subtle: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-accent: rgba(5, 150, 105, 0.4);
  --border-focus: #059669;

  --brand-navy: #0f2e5a;
  --brand-navy-dark: #0a1f3d;
  --brand-navy-light: #1e3a8a;
  
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-light: #ecfdf5;
  --emerald-glow: rgba(5, 150, 105, 0.12);
  
  --amber: #d97706;
  --amber-dark: #b45309;
  --amber-light: #fffbeb;
  
  --blue-accent: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-invert: #ffffff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Sedo Acquisition Header Strip (Discreet & Professional) */
.top-notice-bar {
  font-family: inherit;
  min-height: 36px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-notice-bar strong {
  color: var(--text-primary);
}

.top-notice-bar a {
  color: var(--brand-navy-light);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
}

/* Navigation - Institutional Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--emerald-dark);
  font-weight: 600;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--emerald-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--brand-navy);
}

/* Mobile Nav Optimization */
@media (max-width: 768px) {
  .nav-container {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .logo {
    font-size: 1.15rem;
    align-self: flex-start;
  }
  .nav-links {
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    font-size: 0.8rem;
    padding: 5px 10px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    display: inline-block;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 56px 20px 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero {
    padding: 30px 14px 18px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .hero-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-bottom: 14px;
    white-space: normal;
    text-align: left;
  }
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.85rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin-bottom: 16px;
  word-break: break-word;
}

.hero h1 .gradient-text {
  color: var(--emerald-dark);
  font-weight: 800;
}

.hero p {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Institutional German Authority & Trust Badges */
.trust-bar-container {
  max-width: 1040px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
}

@media (max-width: 640px) {
  .trust-bar-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
    margin-bottom: 26px;
  }
}

.trust-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

@media (max-width: 640px) {
  .trust-pill-item {
    justify-content: center;
    padding: 7px 8px;
    font-size: 0.72rem;
    text-align: center;
    border-radius: var(--radius-md);
  }
}

.trust-pill-item:hover {
  border-color: var(--border-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.trust-pill-item svg {
  color: var(--emerald-dark);
  flex-shrink: 0;
}

/* Calculator Master Container */
.calc-wrapper {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .calc-wrapper {
    padding: 0 10px;
    margin-bottom: 36px;
  }
}

.calc-glass-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  overflow: hidden;
}

@media (max-width: 960px) {
  .calc-glass-box {
    grid-template-columns: 1fr;
  }
}

/* Left Panel: Inputs & Controls */
.calc-controls {
  padding: 36px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: #ffffff;
}

@media (max-width: 640px) {
  .calc-controls {
    padding: 22px 16px;
    gap: 22px;
  }
}

.calc-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.control-label .val-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

/* Segmented Household Buttons */
.segmented-household {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-input);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 500px) {
  .segmented-household {
    grid-template-columns: repeat(2, 1fr);
  }
}

.segment-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
}

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

.segment-btn:hover {
  background: #ffffff;
  color: var(--brand-navy);
}

.segment-btn.active {
  background: #ffffff;
  border-color: var(--border-card);
  color: var(--brand-navy);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* System Size & Battery Selector Cards */
.system-cards-grid,
.battery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .system-cards-grid,
  .battery-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .system-cards-grid,
  .battery-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sys-card,
.battery-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
}

@media (max-width: 640px) {
  .sys-card,
  .battery-card {
    padding: 10px 4px;
    text-align: center;
  }
}

.sys-card:hover,
.battery-card:hover {
  border-color: var(--border-card);
  background: #ffffff;
}

.sys-card.active,
.battery-card.active {
  background: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 2px var(--brand-navy);
}

.sys-card .badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--emerald-dark);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .sys-card .badge {
    font-size: 0.58rem;
    padding: 1px 4px;
    top: -7px;
    right: 4px;
  }
}

.sys-card-title,
.battery-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-navy);
}

@media (max-width: 640px) {
  .sys-card-title,
  .battery-card-title {
    font-size: 0.92rem;
  }
}

.sys-card-sub,
.battery-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 640px) {
  .sys-card-sub,
  .battery-card-sub {
    font-size: 0.68rem;
  }
}

/* Sliders */
.slider-container {
  position: relative;
  padding: 8px 0;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-navy);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: 2px solid #ffffff;
}

/* Expert Settings Accordion Drawer */
.expert-settings-drawer {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.expert-settings-drawer[open] {
  border-color: var(--border-card);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.expert-settings-toggle {
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.expert-settings-toggle::-webkit-details-marker {
  display: none;
}

.expert-toggle-icon {
  font-size: 1.25rem;
  color: var(--emerald-dark);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.expert-settings-drawer[open] .expert-toggle-icon {
  transform: rotate(45deg);
}

.expert-settings-body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .expert-grid {
    grid-template-columns: 1fr;
  }
}

.expert-field-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.expert-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}

.expert-select:focus {
  border-color: var(--brand-navy);
}

/* Tier 1 & 3 Product Recommendation Box */
.product-rec-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.product-rec-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-rec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.product-rec-item:hover {
  background: #ffffff;
  border-color: var(--emerald-dark);
  box-shadow: var(--shadow-sm);
}

.product-rec-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.product-rec-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-rec-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald-dark);
  background: var(--emerald-light);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  white-space: nowrap;
}

/* Right Panel: Telemetry & Live Dashboard */
.calc-dashboard {
  background: #f8fafc;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border-left: 1px solid var(--border-subtle);
}

@media (max-width: 960px) {
  .calc-dashboard {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .calc-dashboard {
    padding: 18px 12px;
    gap: 16px;
  }
}

.dash-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .dash-header-title {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
}

/* Big Hero KPI: Annual Savings Box */
.big-saving-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .big-saving-box {
    padding: 16px 12px;
    margin-bottom: 14px;
  }
}

.saving-subhead {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .saving-subhead {
    font-size: 0.76rem;
  }
}

.saving-number {
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 800;
  color: var(--emerald-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.saving-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Interactive Energy Flow Telemetry */
.energy-flow-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .energy-flow-card {
    padding: 12px 10px;
    margin-bottom: 14px;
  }
}

.flow-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .flow-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .flow-arrow {
    display: none !important;
  }
  .flow-node {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
  }
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.flow-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

@media (max-width: 640px) {
  .flow-icon-circle {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
  }
  .flow-icon-circle svg {
    width: 16px;
    height: 16px;
  }
}

.flow-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .flow-label {
    font-size: 0.68rem;
  }
}

.flow-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .flow-val {
    font-size: 0.82rem;
  }
}

.flow-arrow {
  color: #94a3b8;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Secondary KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .kpi-grid {
    gap: 8px;
    margin-bottom: 14px;
  }
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .kpi-card {
    padding: 10px 10px;
  }
}

.kpi-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .kpi-title {
    font-size: 0.7rem;
  }
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
}

@media (max-width: 640px) {
  .kpi-val {
    font-size: 1.15rem;
  }
}

/* Progress Meters */
.meter-row {
  margin-bottom: 12px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.meter-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.verdict-badge {
  background: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 640px) {
  .verdict-badge {
    padding: 10px 12px;
    gap: 10px;
  }
}

.verdict-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.verdict-text strong {
  color: var(--emerald-dark);
  font-size: 0.95rem;
  display: block;
}

.verdict-text span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Action CTA Buttons */
.btn-cta {
  background: var(--brand-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
  background: var(--brand-navy-dark);
  transform: translateY(-1px);
}

.btn-cta-green {
  background: var(--emerald-dark);
}

.btn-cta-green:hover {
  background: #046c4e;
}

/* Content Sections */
.section-wrapper {
  max-width: 1240px;
  margin: 60px auto;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .section-wrapper {
    margin: 36px auto;
    padding: 0 14px;
  }
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
}

@media (max-width: 640px) {
  .section-head {
    margin-bottom: 22px;
  }
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .section-head h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }
}

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

@media (max-width: 640px) {
  .section-head p {
    font-size: 0.92rem;
  }
}

/* Regional Cities Hub 2026 - Institutional Consumer Edition */
.hub-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.city-search-box {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 20px;
}

@media (max-width: 768px) {
  .city-search-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

#city-search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 44px 13px 48px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

@media (max-width: 640px) {
  #city-search-input {
    padding: 11px 36px 11px 40px;
    font-size: 0.88rem;
  }
}

#city-search-input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(15, 46, 90, 0.15);
}

#city-search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.city-dropdown-wrap select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

@media (max-width: 640px) {
  .city-dropdown-wrap select {
    padding: 11px 14px;
    font-size: 0.88rem;
  }
}

.city-dropdown-wrap select:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(15, 46, 90, 0.15);
}

/* Quick Filter Chips */
.quick-city-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 24px;
}

@media (max-width: 640px) {
  .quick-city-chips {
    gap: 6px;
    margin-bottom: 16px;
  }
  .chips-label {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }
}

.chips-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 4px;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  font-family: inherit;
}

@media (max-width: 640px) {
  .chip-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

.chip-btn:hover {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
}

/* Compact Scrollable City Directory */
.city-scroll-container {
  max-width: 1040px;
  margin: 0 auto;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .city-scroll-container {
    max-height: 320px;
    padding: 8px;
  }
}

.city-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.city-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.city-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.city-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--brand-navy);
}

.city-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .city-pill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

.city-pill {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

@media (max-width: 640px) {
  .city-pill {
    padding: 8px 8px;
  }
}

.city-pill:hover {
  background: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.city-pill strong {
  color: var(--brand-navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .city-pill strong {
    font-size: 0.84rem;
  }
}

.city-pill span {
  font-size: 0.8rem;
  color: var(--emerald-dark);
  font-weight: 700;
}

@media (max-width: 640px) {
  .city-pill span {
    font-size: 0.72rem;
  }
}

/* Hardware Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .comparison-grid {
    gap: 16px;
  }
}

.device-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 640px) {
  .device-card {
    padding: 20px 16px;
    gap: 16px;
  }
}

.device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.device-card.popular {
  border: 2px solid var(--brand-navy);
}

.device-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.device-badge.green {
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.device-badge.blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.device-badge.gold {
  background: var(--amber-light);
  color: var(--amber-dark);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.device-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .device-name {
    font-size: 1.18rem;
  }
}

.device-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .device-desc {
    font-size: 0.86rem;
    margin-bottom: 12px;
  }
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.spec-list li strong {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

/* High-Ticket Lead Gen Box (Aroundhome) */
.lead-card-box {
  background: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

@media (max-width: 640px) {
  .lead-card-box {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }
}

.lead-card-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .lead-card-box h2 {
    font-size: 1.35rem;
  }
}

.lead-card-box p {
  color: #e2e8f0;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .lead-card-box p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
}

.lead-card-box .btn-cta {
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 36px;
}

@media (max-width: 640px) {
  .lead-card-box .btn-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

.lead-card-box .btn-cta:hover {
  background: #f1f5f9;
}

/* SEO Tables & Educational Rules */
.seo-guide-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 50px;
}

@media (max-width: 640px) {
  .seo-guide-section {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
  }
}

.seo-answer-box {
  background: var(--emerald-light);
  border-left: 4px solid var(--emerald-dark);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .seo-answer-box {
    padding: 14px 12px;
    margin-bottom: 20px;
  }
}

.seo-answer-box p {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .seo-answer-box p {
    font-size: 0.92rem;
  }
}

.seo-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

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

.seo-table th {
  background: #f8fafc;
  color: var(--brand-navy);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-subtle);
}

.seo-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .seo-table th,
  .seo-table td {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
}

.seo-table tr:hover {
  background: #f8fafc;
}

.seo-table .highlight-cell {
  color: var(--emerald-dark);
  font-weight: 700;
}

/* Solarpaket 1 Rules Grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }
}

.rule-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.15s, border-color 0.15s;
}

@media (max-width: 640px) {
  .rule-card {
    padding: 16px 14px;
  }
}

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

.rule-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

.rule-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .rule-title {
    font-size: 1.05rem;
  }
}

.rule-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .rule-card p {
    font-size: 0.86rem;
  }
}

/* Native Accessible FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.faq-card[open] {
  border-color: var(--border-card);
}

.faq-card summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

@media (max-width: 640px) {
  .faq-card summary {
    padding: 14px 16px;
    font-size: 0.92rem;
  }
}

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

.faq-card summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--emerald-dark);
}

.faq-card[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .faq-content {
    padding: 0 16px 14px;
    font-size: 0.88rem;
  }
}

.faq-content strong {
  color: var(--brand-navy);
}

/* Sedo Escrow Acquisition Card (Clean Institutional) */
.sedo-banner-card {
  max-width: 1240px;
  margin: 50px auto 40px;
  padding: 28px 32px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .sedo-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 14px;
    margin: 30px auto 24px;
  }
}

.sedo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .sedo-title {
    font-size: 1.05rem;
  }
}

.sedo-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .sedo-sub {
    font-size: 0.84rem;
  }
}

.btn-sedo-action {
  background: var(--brand-navy);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}

@media (max-width: 640px) {
  .btn-sedo-action {
    width: 100%;
    text-align: center;
    padding: 13px 18px;
  }
}

.btn-sedo-action:hover {
  background: var(--brand-navy-dark);
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  footer {
    padding: 28px 14px;
  }
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

.footer-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 640px) {
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 0.82rem;
  }
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* Off-screen Render Optimization */
.seo-guide-section,
#vergleich,
.lead-card-box,
#staedte,
#faq,
.sedo-banner-card {
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}
