/* ════════════════════════════════════════════════════════════
   howmuchtools.com — Design System
   style.css v2.0
   ════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* 2026 Palette */
  --color-bg:             #FAFAF8;
  --color-surface:        #FFFFFF;
  --color-text:           #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-muted:     #9B9B9B;

  --color-primary:        #2563EB;
  --color-primary-hover:  #1D4ED8;
  --color-primary-light:  #EFF6FF;

  --color-border:         #E5E5E3;
  --color-border-hover:   #D1D1CF;
  --color-shadow:         rgba(0, 0, 0, 0.04);
  --color-shadow-hover:   rgba(0, 0, 0, 0.08);

  /* Header */
  --header-bg:            #FFFFFF;
  --header-border:        #F0F0EE;

  /* Footer */
  --footer-bg:            #FAFAF8;
  --footer-text:          #1A1A1A;
  --footer-border:        #E5E5E3;
  --header-height:        56px;
  --header-height-mobile: 48px;

  /* Overlay */
  --overlay-bg:           rgba(0, 0, 0, 0.3);

  /* Category colors */
  --cat-kitchen:          #FEF3C7;
  --cat-kitchen-text:     #92400E;
  --cat-health:           #DCFCE7;
  --cat-health-text:      #166534;
  --cat-building:         #FEE2E2;
  --cat-building-text:    #991B1B;
  --cat-garden:           #D1FAE5;
  --cat-garden-text:      #065F46;
  --cat-finance:          #EDE9FE;
  --cat-finance-text:     #5B21B6;
  --cat-math:             #E0F2FE;
  --cat-math-text:        #075985;

  /* Legacy aliases — keep existing tool pages working */
  --cream:        var(--color-bg);
  --warm-white:   var(--color-surface);
  --parchment:    #F3F3F1;
  --gold:         var(--color-primary);
  --gold-light:   var(--color-primary-hover);
  --gold-pale:    var(--color-primary-light);
  --orange:       var(--color-primary);
  --brown-dark:   var(--color-text);
  --brown-mid:    var(--color-text-secondary);
  --brown-light:  #4B5563;
  --brown-pale:   var(--color-text-muted);
  --indigo:       #3730a3;

  /* Shadows */
  --shadow-sm:    0 1px 4px var(--color-shadow);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.12);

  /* Spacing */
  --space-xs:     0.25rem;
  --space-sm:     0.5rem;
  --space-md:     1rem;
  --space-lg:     2rem;
  --space-xl:     4rem;

  /* Border Radius */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition:   0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

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

[hidden] { display: none !important; }

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { position: relative; z-index: 1; }

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

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

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

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

/* ── Layout Container ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: transform 0.2s ease;
}

.site-header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.header-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.header-menu-btn:hover {
  background: var(--color-primary-light);
}

/* Hamburger Icon */
.header-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.header-menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animiertes X wenn offen */
.header-menu-btn[aria-expanded="true"] .header-menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.header-menu-btn[aria-expanded="true"] .header-menu-icon span:nth-child(2) {
  opacity: 0;
}
.header-menu-btn[aria-expanded="true"] .header-menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

.header-menu-text {
  display: none;
}

@media (min-width: 768px) {
  .header-menu-text {
    display: inline;
  }

  .logo-img {
    height: 36px;
  }
}

/* ── Backdrop ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Nav Panel ── */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--color-surface);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-panel--open {
  transform: translateX(0);
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.nav-panel-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-close {
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--color-text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-close:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
}

.nav-list {
  list-style: none;
  padding: 8px 12px;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 450;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.nav-link:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
}

.nav-link--home {
  font-weight: 500;
}

.nav-link-label {
  flex: 1;
}

.nav-link-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-right: 4px;
}

.nav-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.15s ease;
}

.nav-link:hover .nav-chevron {
  transform: translateX(2px);
  color: var(--color-primary);
}

.nav-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 20px;
}

.nav-section-title {
  padding: 12px 20px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.nav-level {
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.nav-level--tools[hidden] {
  display: none;
}

.nav-category-title {
  padding: 4px 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.nav-category-count {
  padding: 0 20px 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-back:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
}

.nav-list--footer .nav-link {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  padding: 10px 12px;
}

/* ── Language Switcher in Nav ── */
.nav-language {
  padding: 0 12px;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.language-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.language-item--active {
  font-weight: 600;
  color: var(--color-primary);
  cursor: default;
}

.language-globe {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}

.language-check {
  margin-left: auto;
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Category Accordion ── */
.nav-category-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 450;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.nav-category-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
}

.nav-category-label {
  flex: 1;
}

.nav-category-btn .nav-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  margin-left: 8px;
  transition: transform 0.15s ease;
}

.nav-category-btn[aria-expanded="true"] .nav-chevron {
  transform: rotate(90deg);
}

.nav-subcategory-list {
  list-style: none;
  padding: 4px 12px;
  margin: 0;
  background: var(--color-bg);
  border-radius: 8px;
}

.nav-link--tool {
  display: block;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link--tool:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
}

.nav-subcat-group {
  margin: 8px 0;
  padding: 0;
}

.nav-subcat-header {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-subcat-header:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.nav-subcat-tools {
  list-style: none;
  padding: 0 0 0 8px;
  margin: 4px 0 0 0;
}

.nav-subcat-tools .nav-link--tool {
  padding: 8px 12px;
  font-size: 0.8125rem;
}

.nav-subcategory-footer {
  padding: 8px 0 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.nav-link--viewall {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link--viewall:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

/* ── TOOL CARD (Calculator Wrapper) ── */
.tool-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% }
  100% { background-position: 200% }
}

/* ── TOOL HEADER ── */
.tool-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.tool-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.75rem;
  animation: float 3s ease-in-out infinite;
}

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

.tool-subtitle {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── FORM SECTION ── */
.form-section { margin-bottom: var(--space-lg); }

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.form-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.form-value .unit {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
}

/* ── SLIDER ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-primary);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
}

.slider-labels span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ── TOGGLE OPTIONS ── */
.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-option { position: relative; cursor: pointer; }

.toggle-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  transition: all var(--transition);
  user-select: none;
  text-align: center;
}

.toggle-face .toggle-emoji { font-size: 1.5rem; line-height: 1; }

.toggle-face .toggle-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.toggle-face .toggle-desc {
  font-size: 0.68rem;
  color: var(--color-text-secondary);
}

.toggle-option input:checked + .toggle-face {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

/* ── RESULT BOX ── */
.result-box {
  background: linear-gradient(135deg, var(--color-text), #374151);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) clamp(1.5rem, 4vw, 2.5rem);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.result-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.result-number {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-unit {
  font-size: 1.2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 6px;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: var(--space-md);
}

.breakdown-pill, .pill {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.breakdown-pill .pill-label, .pill .pill-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.breakdown-pill .pill-value, .pill .pill-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.result-tip {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

/* ── AFFILIATE BOX ── */
.affiliate-box {
  display: none;
  margin-top: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  transition: opacity 0.3s ease;
}

.affiliate-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.affiliate-product {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.affiliate-btn:hover {
  color: white;
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.affiliate-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.62rem;
  color: var(--color-text-muted);
}

/* ── SIDES BOX (light background variant) ── */
.sides-box {
  margin-top: 1.5rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.sides-box-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.sides-box .breakdown-pill, .sides-box .pill {
  background: rgba(37, 99, 235, 0.08);
}
.sides-box .breakdown-pill .pill-label, .sides-box .pill .pill-label {
  color: var(--color-text-muted, #6b7280);
}
.sides-box .breakdown-pill .pill-value, .sides-box .pill .pill-value {
  color: var(--color-text);
}

/* ── SEO CONTENT BLOCK ── */
.seo-content {
  max-width: 680px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-md);
}

.seo-content h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.seo-content h3 {
  font-size: 1.1rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.seo-content p {
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* ── SCENARIO TABLE ── */
.seo-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.scenario-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}
.scenario-table th, .data-table th {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid rgba(37, 99, 235, 0.2);
  white-space: nowrap;
}
.scenario-table td, .data-table td {
  padding: 0.55rem 0.75rem;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.scenario-table tr:last-child td, .data-table tr:last-child td {
  border-bottom: none;
}
.scenario-table tr:nth-child(even) td, .data-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.02);
}
.scenario-table td:first-child, .data-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .scenario-table, .data-table { font-size: 0.78rem; }
  .scenario-table th, .scenario-table td, .data-table th, .data-table td { padding: 0.45rem 0.55rem; }
}

/* ── ERROR ITEMS ── */
.error-item, .compare-block {
  background: var(--color-surface, #f9fafb);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}
.error-item p, .compare-block p {
  margin-bottom: 0 !important;
}

/* ── FAQ ── */
.faq, .faq-section { margin-top: var(--space-xl); }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-top: var(--space-sm);
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.8;
  font-size: 0.9rem;
}

.faq-item.open .faq-answer { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  margin-top: 120px;
  padding: 40px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav-list a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright-text {
  font-size: 0.8125rem;
  color: var(--footer-text);
  margin: 0;
  font-weight: 450;
}

.footer-copyright-text strong {
  font-weight: 600;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ── ANIMATIONS ── */
@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes num-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.bounce { animation: num-bounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .header-inner {
    padding: 0 16px;
  }

  .site-footer {
    margin-top: 80px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-nav-list {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .tool-card { padding: var(--space-lg) var(--space-md); }
  .result-breakdown { grid-template-columns: 1fr; }
  .toggle-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   HUB STARTSEITE — Bento-Grid Layout
   ════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.hub-hero {
  text-align: center;
  padding: 4rem var(--space-md) 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hub-tagline {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  max-width: 540px;
  margin: 0.75rem auto 0;
}

.hub-counter {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hub-counter strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ── Search ── */
.hub-search {
  position: relative;
  max-width: 600px;
  margin: 1.75rem auto 1.25rem;
}

.hub-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.hub-search input[type="search"] {
  width: 100%;
  height: 56px;
  padding: 0 1.5rem 0 3.2rem;
  border-radius: 28px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.hub-search input[type="search"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light), var(--shadow-sm);
}

.hub-search input[type="search"]::placeholder {
  color: var(--color-text-muted);
}

/* ── Filter Chips ── */
.hub-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 var(--space-md);
  margin-bottom: 0.5rem;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hub-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.hub-chip--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.hub-chip--active:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
}

/* ── Hub Content Area ── */
.hub-content {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* ── Search Empty State ── */
.hub-search-empty {
  text-align: center;
  padding: 3rem var(--space-md);
}

.hub-search-empty-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.hub-search-empty p {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ── Kategorie Sektion ── */
.hub-category {
  margin-bottom: 3rem;
}

.hub-category-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.hub-category-count {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ── Bento Grid ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Hub Cards ── */
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
  color: inherit;
}

.hub-card--featured {
  grid-column: span 2;
  padding: 24px 28px;
}

.hub-card-emoji {
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.hub-card--featured .hub-card-emoji {
  font-size: 2.4rem;
}

.hub-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.hub-card--featured .hub-card-name {
  font-size: 1.2rem;
}

.hub-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.5;
  flex-grow: 1;
}

.hub-card-cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Subcategory Sections ── */
.hub-subcategory {
  margin-bottom: 3rem;
}

.hub-subcategory-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.hub-subcategory-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.hub-subcategory-header a {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.hub-subcategory-header a:hover {
  color: var(--color-primary);
}

/* ── SEO Block ── */
.hub-seo {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hub-seo h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.hub-seo p {
  color: var(--color-text-secondary);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.hub-seo a {
  color: var(--color-primary);
  font-weight: 400;
}

/* ── Responsive Hub ── */
@media (max-width: 768px) {
  .hub-hero {
    padding: 2.5rem var(--space-md) 1.5rem;
  }

  .hub-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .hub-filters::-webkit-scrollbar {
    display: none;
  }

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

  .hub-card--featured {
    grid-column: span 2;
  }
}

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

  .hub-card--featured {
    grid-column: span 1;
  }
}

/* ── Share Button ── */
#share-container {
  display: none;
  text-align: center;
  margin-top: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

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

/* ── Share Toast ── */
.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.75rem);
  background: #1e1e2e;
  color: #e2e8f0;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}

.share-toast--in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Phase 1: Tool template & style system
   New canonical classes — use instead of inline styles.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero / page chrome ── */
.tool-hero { padding: 3rem 1rem 0; text-align: center; }
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.tool-intro { max-width: 520px; margin: 0.75rem auto 2.5rem; }
.tool-intro--wide { max-width: 540px; }
.tool-section { padding: 0 1rem 2rem; }
.tool-header h2 { font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ── Form additions ── */
.form-section + .form-section { margin-top: 1.25rem; }
.form-help {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.form-section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  font-weight: 600;
}
.form-time-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  outline: none;
  text-align: center;
}
.form-time-input:focus { border-color: var(--color-primary); }
.form-add-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.form-add-btn:hover { background: var(--color-primary-light); border-color: var(--color-primary); }

/* ── Toggle-grid modifiers ── */
.toggle-grid--2 { grid-template-columns: 1fr 1fr; }
.toggle-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.toggle-grid--4 { grid-template-columns: repeat(4, 1fr); }
.toggle-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 480px) {
  .toggle-grid--3, .toggle-grid--4, .toggle-grid--5 { grid-template-columns: 1fr; }
}

/* ── Number / select inputs (large, full-width) ── */
.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  box-sizing: border-box;
}
.form-input { font-size: 1.1rem; }
.form-select { font-size: 0.95rem; cursor: pointer; }
.form-input:focus, .form-select:focus { border-color: var(--color-primary); }
.form-input--sm,
.form-select--sm { font-size: 0.9rem; }

/* ── Inline input + remove button row ── */
.form-input-row { display: flex; gap: 8px; align-items: center; }
.form-input-row .form-input { flex: 1; padding: 0.65rem 0.9rem; font-size: 1rem; }
.form-remove-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.form-remove-btn:hover { border-color: var(--color-danger, #ef4444); color: var(--color-danger, #ef4444); }
.form-remove-btn--hidden { display: none; }

/* ── Inline unit label (e.g. "m" / "ft" right of label) ── */
.form-unit-label { font-size: 0.8rem; color: var(--color-text-muted); }

/* ── Small hint text (smaller than .form-help) ── */
.form-hint {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Plain prose note (e.g. safety / footnote under a result) ── */
.tool-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Generic visibility utility — for sections JS toggles on/off ── */
.is-hidden { display: none !important; }

/* ── Compact inline time input (used inside form-label-row) ── */
.form-time-input--sm {
  width: auto;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
}

/* ── form-value with inline children (e.g. value + UV badge) ── */
.form-value--inline { display: flex; align-items: center; gap: 6px; }

/* ── UV index badge (5 levels) ── */
.uv-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  background: #6b7280;
  color: #fff;
  white-space: nowrap;
}
.uv-badge--low      { background: #22c55e; color: #fff; }
.uv-badge--moderate { background: #eab308; color: #1a1a1a; }
.uv-badge--high     { background: #f97316; color: #fff; }
.uv-badge--veryhigh { background: #ef4444; color: #fff; }
.uv-badge--extreme  { background: #9333ea; color: #fff; }

/* ── Pill value alert color (e.g. sunburn time) ── */
.pill-value--alert { color: #f97316; }

/* ── Eyebrow label inside .compare-block ── */
.compare-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 0.4rem;
}

/* ── SVG arc (sunscreen protection visualization) ── */
.result-arc-wrap { text-align: center; margin-bottom: 0.75rem; }
.result-arc-svg { width: 176px; height: 97px; display: inline-block; }

/* ── Bottle stack visualization (sunscreen-vacation, etc.) ── */
.bottle-vis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 1rem;
}
.bottle-vis-icon { fill: rgba(255, 255, 255, 0.85); flex-shrink: 0; }
.bottle-vis-shine { fill: rgba(255, 255, 255, 0.25); }
.bottle-vis-more {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  align-self: center;
  white-space: nowrap;
}

/* ── Health/safety tip (primary-tinted, border-left, separate from .compare-block) ── */
.health-tip {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-top: 0.75rem;
}
.health-tip p {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.55;
}
.health-tip-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 0.4rem;
}
.health-tip-title {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0 0 0.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Toggle option modifier: span full row in a grid ── */
.toggle-option--full { grid-column: 1 / -1; }

/* ── Sub-section inside a result-box (e.g. cheese breakdown) ── */
.result-section { margin-top: 1.25rem; }
.result-subsection-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}
.pill-desc {
  font-size: 0.65rem;
  opacity: 0.55;
  margin-top: 0.2rem;
}

/* ── result-tip without divider/border (used for follow-up tips) ── */
.result-tip--clean { margin-top: 1rem; padding-top: 0; border-top: none; }

/* ── Device row body (variant of drink-row-body for slider+watts info) ── */
.device-row-body { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; }
.device-field-count { flex: 0 0 auto; display: flex; align-items: center; gap: 0.4rem; }
.device-field-hours { flex: 1 1 140px; display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.device-hours-input { flex: 1; min-width: 60px; }
.device-hours-val { min-width: 34px; text-align: right; }
.device-info { flex: 0 0 auto; color: var(--color-text-secondary); }
.device-input-count {
  width: 48px;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 0.85rem;
}

/* ── Breakdown panel (donut chart + list) ── */
.breakdown-panel { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.breakdown-donut-wrap { flex: 0 0 auto; width: 180px; }
.breakdown-donut-svg { width: 100%; height: auto; display: block; }
.breakdown-list-wrap { flex: 1 1 240px; min-width: 0; }
.breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}
.breakdown-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}
.breakdown-list-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
  background: #6b7280;
}
.breakdown-list-swatch--videoStreaming { background: #ef4444; }
.breakdown-list-swatch--musicStreaming { background: #f97316; }
.breakdown-list-swatch--socialMedia    { background: #eab308; }
.breakdown-list-swatch--videocalls     { background: #84cc16; }
.breakdown-list-swatch--emails         { background: #10b981; }
.breakdown-list-swatch--cloudStorage   { background: #06b6d4; }
.breakdown-list-swatch--webBrowsing    { background: #3b82f6; }
.breakdown-list-swatch--onlineGaming   { background: #8b5cf6; }
.breakdown-list-swatch--devices        { background: #6b7280; }
.breakdown-list-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breakdown-list-pct {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  font-size: 0.78rem;
}
.breakdown-list-value {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 70px;
  text-align: right;
}

/* ── Result-unit large variant (for big number with prominent unit) ── */
.result-unit--lg {
  font-size: 1.25rem;
  font-weight: 600;
  margin-left: 0.4rem;
}

/* ── Option list (compact secondary results, e.g. sleep cycle alternatives) ── */
.option-list { margin-top: 1rem; }
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  margin-bottom: 0.4rem;
}
.option-row--best {
  background: var(--color-primary-light);
  border-color: rgba(37, 99, 235, 0.2);
}
.option-row-content { display: flex; align-items: center; gap: 0.75rem; }
.option-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 60px;
}
.option-meta { font-size: 0.8rem; color: var(--color-text-secondary); }
.option-badge--best {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.option-badge--warn { font-size: 0.7rem; color: #b45309; }

/* ── Solid variant of form-add-btn (primary-light bg) ── */
.form-add-btn--solid {
  width: auto;
  margin-top: 0;
  margin-bottom: var(--space-lg);
  padding: 0.55rem 1.1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.form-add-btn--solid:hover { background: var(--color-primary-light); border-color: var(--color-primary); }

/* ── Result extras (currency, etc.) ── */
.result-currency-prefix {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Result-explanation when nested inside .result-box (dark bg) ── */
.result-explanation--inset {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Chart card (bordered white box for SVG visualizations) ── */
.chart-box {
  margin-top: 1.5rem;
  background: var(--color-bg-elevated, #fff);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.25rem;
}
.chart-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.chart-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}
.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--color-text-muted);
}
.chart-legend-swatch--contrib { background: #9ca3af; }
.chart-legend-swatch--interest { background: var(--color-primary); }
.chart-svg-wrap { position: relative; width: 100%; }
.chart-svg { width: 100%; height: 320px; display: block; }
.chart-x-label {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.4rem;
}

/* ── Collapsible section ── */
.collapse-wrap { margin-top: 1.5rem; }
.collapse-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.collapse-content {
  display: none;
  margin-top: 0.75rem;
  overflow-x: auto;
}
.collapse-content--open { display: block; }

/* ── Dynamic list rows (drinks, devices, etc.) ── */
.drink-row {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--color-bg-elevated, #fff);
}
.drink-row-header { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.drink-select {
  flex: 1;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}
.drink-remove-btn {
  padding: 0.4rem 0.65rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.drink-remove-btn:hover { border-color: var(--color-danger, #ef4444); color: var(--color-danger, #ef4444); }
.drink-row-body { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.drink-field { flex: 1 1 110px; display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; }
.drink-field--hidden { display: none; }
.drink-input-sm {
  width: 60px;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 0.85rem;
}
.drink-input-time {
  flex: 1;
  min-width: 90px;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 0.85rem;
}

/* ── Result extras ── */
.result-headline { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.25rem 0 1rem; }
.result-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.25rem; }
.result-detail { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); margin-top: 0.35rem; }
/* Stacked tips (e.g. main tip + followup hint) — second one drops the divider */
.result-tip + .result-tip { margin-top: 0.5rem; padding-top: 0; border-top: none; }
.result-summary { font-size: 0.8rem; opacity: 0.6; margin-top: 0.2rem; }
.result-explanation {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 1rem 0 0;
  line-height: 1.65;
}
.result-explanation p { margin: 0 0 0.4rem; }
.result-explanation p:last-child { margin-bottom: 0; }
.result-box .result-explanation,
.result-box .result-explanation p { color: rgba(255, 255, 255, 0.7); }
.result-whatif {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin: 0.5rem 0 0;
  line-height: 1.55;
}
.result-explanation-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md, 10px);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  border: 1px solid var(--color-border);
}

/* ── Pill modifiers ── */
.pill--full { grid-column: 1 / -1; }
.pill--hidden { display: none; }
.pill-unit { font-size: 0.7rem; color: var(--color-text-muted); }
.result-box .pill-unit { color: rgba(255, 255, 255, 0.5); }
.result-box .result-breakdown { margin-top: 1.25rem; }
.result-breakdown--3 { grid-template-columns: 1fr 1fr 1fr; margin-top: 0; }
@media (max-width: 480px) { .result-breakdown--3 { grid-template-columns: 1fr; } }

/* ── Disclaimer block (under tool, not inside result-box) ── */
.tool-disclaimer {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-muted, #f9fafb);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── SEO additions ── */
.faq-section h2, .faq h2 { margin-bottom: 1rem; }
.seo-disclaimer {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.55;
}
