/*
 * Wärmepumpe Radar - Design System V3
 * Sophisticated with personality
 * Complete with header/footer polish
 */

:root {
  /* Primary - Confident Blue */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  /* Accent - Energy Green */
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  --accent-subtle: rgba(16, 185, 129, 0.08);
  
  /* Neutrals - Warmer Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic */
  --text: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-500);
  --border: var(--gray-200);
  --border-subtle: var(--gray-100);
  --surface: #ffffff;
  
  /* Typography */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Layout */
  --container: 1280px;
  --container-narrow: 720px;
  --container-text: 65ch;
  --gutter: clamp(1.5rem, 5vw, 3rem);
  
  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.display {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.text-balance {
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

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

.text-tertiary {
  color: var(--text-tertiary);
}

.text-sm {
  font-size: var(--text-sm);
}

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

/* ============================================
   LAYOUT
   ============================================ */
.section {
  width: 100%;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}

.section--compact {
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter);
}

.section--hero {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.container--text {
  max-width: var(--container-text);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HEADER - With Gradient Border & Mobile Logo Fix
   ============================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  /* Gradient top border for visual tie-in */
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%) 1;
}

.navbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .navbar {
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--duration-base) var(--ease);
}

.brand:hover {
  opacity: 0.75;
}

.brand svg {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

/* Mobile: BIGGER logo (not smaller!) */
@media (max-width: 768px) {
  .brand {
    font-size: var(--text-base);
    gap: var(--space-2);
  }
  
  .brand svg {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .brand svg {
    width: 72px;
    height: 72px;
  }
}

/* Brand name: allow two lines on mobile */
.brand-name {
  white-space: normal;
  line-height: 1.2;
}

.brand-name .mobile-br {
  display: none;
}

@media (max-width: 560px) {
  .brand-name .mobile-br {
    display: inline;
  }
}

nav.primary {
  display: none;
  gap: var(--space-8);
  align-items: center;
  justify-self: end;
}

nav.primary a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease);
  white-space: nowrap;
}

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

@media (min-width: 1024px) {
  nav.primary {
    display: flex;
  }
}

.actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  color: var(--text-secondary);
  line-height: 1.2;
  min-height: auto;
}

.pill-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--text);
}

.pill-btn.burger {
  display: flex;
}

@media (min-width: 1024px) {
  .pill-btn.burger {
    display: none;
  }
}

.drawer, .search-drawer {
  position: fixed;
  inset: 0 0 auto 0;
  top: 65px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-base) var(--ease), 
              opacity var(--duration-base) var(--ease);
  z-index: 99;
}

.drawer.open, .search-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer .wrap, .search-drawer .wrap {
  padding: var(--space-8) var(--gutter);
}

.drawer nav {
  display: grid;
  gap: var(--space-2);
}

.drawer a {
  font-weight: 500;
  font-size: var(--text-lg);
  text-decoration: none;
  color: var(--text);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background var(--duration-fast) var(--ease);
}

.drawer a:hover {
  background: var(--gray-50);
}

/* Search drawer additions */
.search-drawer .inner {
  max-width: 640px;
  margin: 0 auto;
}

.search-drawer .calc {
  margin-top: var(--space-4);
}

.search-drawer .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.search-drawer input[type="search"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--duration-base) var(--ease);
}

.search-drawer input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-drawer .ta {
  margin-top: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow: auto;
}

.search-drawer .ta ul {
  list-style: none;
  padding: var(--space-2);
  margin: 0;
}

.search-drawer .ta li {
  padding: 0;
  margin: 0;
}

.search-drawer .ta a {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--duration-fast) var(--ease);
}

.search-drawer .ta a:hover,
.search-drawer .ta .is-active a {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ============================================
   HERO - More Visual Interest
   ============================================ */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #ecfdf5 100%);
  border-bottom: 1px solid var(--primary-subtle);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .lead {
  margin: 0 auto var(--space-10);
  max-width: 42rem;
}

/* Trust line */
.trust-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* trust-line checkmarks now in HTML */

/* ============================================
   SEARCH - Vibrant Focus
   ============================================ */
.search-spotlight {
  max-width: 640px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--duration-base) var(--ease);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.search-input:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-hint {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-align: center;
}

.listbox {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--space-2));
  max-height: 400px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-2);
  z-index: 50;
}

.listbox:empty,
.listbox[aria-expanded="false"] {
  display: none;
}

.listbox a {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--duration-fast) var(--ease);
}

.listbox a:hover,
.listbox [aria-selected="true"] a {
  background: var(--primary-subtle);
  color: var(--primary);
}

/* ============================================
   VALUE CARDS - More Personality
   ============================================ */
.value-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

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

.value-card {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-200) 100%);
  transition: all var(--duration-base) var(--ease);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.value-card:hover::before {
  height: 4px;
}

.value-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.value-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.value-card--primary::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.value-card--primary:hover::before {
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
}

.value-card--accent::before {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}

.value-card--accent:hover::before {
  background: linear-gradient(90deg, var(--accent-light) 0%, var(--accent) 100%);
}

/* ============================================
   BUTTONS - Keep fixed hover states
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: white;
}

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

.btn-primary:visited {
  color: white;
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.badge-primary {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent-dark);
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */
.content-block {
  max-width: 65ch;
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: var(--space-4);
}

.content-block p {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.content-block p:last-child {
  margin-bottom: 0;
}

/* ============================================
   PROCESS LIST (Keep V2's good spacing)
   ============================================ */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-6);
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.process-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.process-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.process-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FOOTER - Gorgeous V3 Treatment
   ============================================ */
footer.site {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%) 1;
  margin-top: var(--space-24);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-16) var(--gutter) var(--space-12);
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}

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

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

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

.footer-col strong {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col li {
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-10);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-align: center;
}

/* Legacy footer classes */
.list-tight {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-tight li {
  margin: 0;
  padding: 0;
}

.underline {
  text-decoration: underline;
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease);
}

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

.no-underline {
  text-decoration: none;
}

/* ============================================
   LEGACY COMPATIBILITY
   ============================================ */
.breadcrumbs {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

.section {
  margin: var(--space-12) 0;
}

.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #ecfdf5 100%);
  border: 1px solid var(--primary-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  font-weight: 600;
  background: var(--gray-50);
  font-size: var(--text-sm);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: var(--text-sm);
}

/* Additional calc/form styling */
.calc {
  margin-top: var(--space-4);
}

.calc label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.calc input[type="number"],
.calc input[type="text"],
.calc input[type="search"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  transition: all var(--duration-base) var(--ease);
  background: var(--surface);
}

.calc input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.unit {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================================================
   AUX PAGES V3 REDESIGN - CSS ADDITIONS (TIGHTER SPACING VERSION)
   Replace the previous aux-pages CSS with this version
   ============================================================================ */

/* --- Additional CSS Variables for Aux Pages --- */
:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --bg-success: #ecfdf5;
  --good: #065f46;
}

/* --- Layout Containers (similar to .wrap but semantic) --- */
.container {
  max-width: var(--container, 1100px);
  margin: 0 auto;
  padding: 0 16px;
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container,
  .container--narrow {
    padding: 0 24px;
  }
}

/* --- Section Wrappers (REDUCED SPACING) --- */
.section {
  padding: 1.25rem 0;  /* Was 2rem - now 20px top/bottom = 40px between sections */
}

.section--hero {
  padding: 1.5rem 0;   /* Was 2.5rem - now 24px top/bottom */
}

@media (min-width: 768px) {
  .section {
    padding: 1.5rem 0;  /* Was 2.5rem - now 24px top/bottom = 48px between sections */
  }
  
  .section--hero {
    padding: 2rem 0;    /* Was 3rem - now 32px top/bottom */
  }
}

/* --- Hero Content --- */
.hero-content h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero-content .lead {
  margin: 0.5rem 0 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted, #5b6476);
}

/* --- Text Balance (Better Wrapping for Headings) --- */
.text-balance {
  text-wrap: balance;
}

/* Safari fallback (doesn't support text-wrap yet) */
@supports not (text-wrap: balance) {
  .text-balance {
    max-width: 50ch;
  }
}

/* --- Value Cards (Emphasized Content Blocks) --- */
.value-card {
  background: #ffffff;
  border: 1px solid var(--border, #dbe2ee);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  margin: 1rem 0;  /* Reduced from 1.5rem */
}

.value-card h2,
.value-card h3 {
  margin-top: 0;
}

.value-card p:last-child {
  margin-bottom: 0;
}

/* Primary value card (blue accent) */
.value-card--primary {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: #bfdbfe;
  border-left-width: 4px;
  border-left-color: var(--accent, #1d4ed8);
}

/* Success value card (green accent) - applied via inline styles */
.value-card[style*="--bg-success"],
.value-card[style*="#ecfdf5"] {
  border-left-width: 4px;
  border-left-color: var(--good, #059669);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .value-card {
    padding: 1.25rem;
    margin: 0.75rem 0;  /* Reduced from 1rem */
  }
}

/* --- Utilities --- */

/* Ensure lead text works in hero and elsewhere */
.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted, #5b6476);
}

/* Section background alternation helper */
.section[style*="background: var(--gray-50)"],
.section[style*="background:var(--gray-50)"] {
  background: var(--gray-50);
}

/* --- Typography Polish for Aux Pages --- */

/* Ensure headings in sections have proper spacing */
.section h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink, #111318);
}

.section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

/* Links in value cards should be bold */
.value-card a {
  font-weight: 600;
}

/* --- Mobile Optimization --- */
@media (max-width: 640px) {
  .section {
    padding: 1rem 0;    /* Was 1.5rem - now 16px top/bottom */
  }
  
  .section--hero {
    padding: 1.25rem 0; /* Was 2rem - now 20px top/bottom */
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }
}

/* --- Print Styles (Bonus) --- */
@media print {
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .value-card {
    border: 2px solid #000;
    page-break-inside: avoid;
  }
}

/* ============================================================================
   END AUX PAGES V3 REDESIGN CSS
   ============================================================================ */

/* ============================================================================
   HUB PAGES V3 - ADDITIONAL COMPONENTS
   Sophisticated navigation & search experiences
   ============================================================================ */

/* ============================================
   GRID LAYOUTS - Responsive Navigation Grids
   ============================================ */
.grid-2 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

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

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

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

/* ============================================
   NAVIGATION CARDS - Hover Effects for Hubs
   ============================================ */
.card-hover {
  transition: all var(--duration-base) var(--ease);
}

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

.card-hover:hover::before {
  height: 5px;
}

/* Links inside navigation cards */
.card-hover a.underline {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease);
}

.card-hover a.underline:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================
   SEARCH BOX - Prominent Hub Search
   ============================================ */
.search {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--surface) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--space-4);
}

.search-box input[type="search"] {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--duration-base) var(--ease);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.search-box input[type="search"]:hover {
  border-color: var(--gray-400);
  box-shadow: var(--shadow);
}

.search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow);
}

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

/* Hint text below search */
.search-box .hint {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
  margin: var(--space-3) 0 0 0;
}

.search-box .hint kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: monospace;
  font-size: var(--text-xs);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ============================================
   TYPEAHEAD DROPDOWN - Search Results
   ============================================ */
.typeahead {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--space-2));
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-2);
  margin: 0;
  z-index: 50;
  display: none;
}

.typeahead[style*="display: block"] {
  display: block;
}

.typeahead li {
  margin: 0;
  padding: 0;
}

.typeahead li {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--duration-fast) var(--ease);
  color: var(--text);
  font-size: var(--text-base);
}

.typeahead li:hover,
.typeahead li:focus {
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 500;
}

/* ============================================
   CHIPS/BADGES - Zone Tags
   ============================================ */
.chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease);
}

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

/* ============================================
   LIST VARIANTS - Tight & Inline
   ============================================ */
.list-tight {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-tight li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.list-tight li:last-child {
  border-bottom: none;
}

.list-tight a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease);
}

.list-tight a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.list-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

.list-inline li::after {
  content: "·";
  margin-left: var(--space-4);
  color: var(--text-tertiary);
}

.list-inline li:last-child::after {
  content: none;
}

.list-inline a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease);
}

.list-inline a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ============================================
   DETAILS/FAQ ACCORDION - Smooth Expansion
   ============================================ */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-4) 0;
  transition: all var(--duration-base) var(--ease);
}

details:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-lg);
  transition: color var(--duration-fast) var(--ease);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Remove default marker */
details summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow */
details summary::before {
  content: "▶";
  font-size: var(--text-sm);
  color: var(--primary);
  transition: transform var(--duration-base) var(--ease);
  display: inline-block;
  width: 1em;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  color: var(--primary);
}

details summary:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Content inside details */
details > *:not(summary) {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ============================================
   404 PAGE - Friendly Personality
   ============================================ */
.error-404 {
  text-align: center;
}

.error-404 .hero {
  background: linear-gradient(135deg, #fef3c7 0%, #ffffff 50%, #eff6ff 100%);
}

.error-404 .hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.error-404 .hero .lead {
  font-size: var(--text-xl);
}

/* PLZ Form on 404 */
.form-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 400px;
  margin: var(--space-6) auto;
}

.form-inline label {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text);
  text-align: left;
}

.form-inline input {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: all var(--duration-base) var(--ease);
  box-shadow: var(--shadow-sm);
}

.form-inline input:hover {
  border-color: var(--gray-400);
}

.form-inline input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow);
}

.form-inline input:invalid {
  border-color: var(--border);
}

.form-inline button {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease);
  box-shadow: var(--shadow);
}

.form-inline button:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-inline button:active {
  transform: translateY(0);
}

.form-inline .error {
  color: #dc2626;
  font-size: var(--text-sm);
  font-weight: 500;
  margin: 0;
  min-height: 1.5em;
}

/* ============================================
   UTILITY CLASSES - Hub-Specific Helpers
   ============================================ */
.m0 {
  margin: 0 !important;
}

.mt4 {
  margin-top: var(--space-4) !important;
}

.mt8 {
  margin-top: var(--space-8) !important;
}

.mb8 {
  margin-bottom: var(--space-8) !important;
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link for accessibility */
a.visually-hidden:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary);
  color: white;
  padding: var(--space-4);
  border-radius: var(--radius);
  z-index: 999;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS - Mobile Polish
   ============================================ */
@media (max-width: 640px) {
  .search {
    padding: var(--space-6);
  }
  
  .search-box input[type="search"] {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-5);
  }
  
  .chip {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
  
  .form-inline {
    max-width: 100%;
  }
  
  details {
    padding: var(--space-4);
  }
  
  details summary {
    font-size: var(--text-base);
  }
}

/* ============================================================================
   END HUB PAGES V3 CSS
   ============================================================================ */

/* ============================================================================
   RATGEBER PAGES V3 - GUIDE-SPECIFIC COMPONENTS
   Beautiful, functional guides with impressive calculator
   ============================================================================ */

/* ============================================
   BADGES - Enhanced Guide Tags
   ============================================ */
.badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease);
}

.badge:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   FACTS LISTS - Visual Bullet Points
   ============================================ */
.facts {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.fact {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.fact::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
}

.fact strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   CTA SECTIONS - Call to Action Blocks
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--gray-50) 100%);
  border: 2px solid var(--accent);
  text-align: center;
}

.cta h2 {
  color: var(--accent);
}

.cta .lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Disabled buttons in CTA (for pre-launch state) */
.cta button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   CALCULATOR - Beautiful Interactive Tool
   ============================================ */
.calc-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.calc-panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease);
}

.calc-panel:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Form Fields */
.field {
  margin-bottom: var(--space-6);
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-base);
}

.field legend {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.field small {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Input Row (with unit) */
.row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.row input {
  flex: 1;
}

.row .unit {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* Input Styles */
.field input[type="number"],
.field select {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  transition: all var(--duration-base) var(--ease);
  font-family: inherit;
}

.field input[type="number"]:hover,
.field select:hover {
  border-color: var(--gray-400);
}

.field input[type="number"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Radio List */
.radio-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  font-weight: 500;
}

.radio-list label:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.radio-list input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.radio-list input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--primary);
}

/* Result Panel */
.results-heading {
  margin-top: 0;
  margin-bottom: var(--space-6);
  text-align: center;
  color: var(--primary);
  font-size: var(--text-2xl);
}

.result-cards {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.result-card {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--surface) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-base) var(--ease);
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.result-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

/* Verdict Box */
.verdict {
  background: var(--accent-subtle);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   HINT GRID - Two-Column Tips
   ============================================ */
.hint-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin: var(--space-4) 0;
}

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

.hint {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
}

/* ============================================
   GUIDE-SPECIFIC LAYOUTS
   ============================================ */

/* Guide Grid (2-column card layout) */
.grid--2 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

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

/* Narrow Wrap for Text-Heavy Guides */
.wrap--narrow {
  max-width: 800px;
}

/* ============================================
   GUIDE CARDS - Enhanced Navigation
   ============================================ */
.guide-card {
  transition: all var(--duration-base) var(--ease);
}

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

.guide-card h3 {
  color: var(--primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.guide-card .lead {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section {
  margin: var(--space-8) 0;
}

.section:first-child {
  margin-top: 0;
}

.section:last-child {
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE CALCULATOR
   ============================================ */
@media (max-width: 767px) {
  .calc-grid {
    gap: var(--space-6);
  }
  
  .calc-panel {
    padding: var(--space-6);
  }
  
  .field {
    margin-bottom: var(--space-5);
  }
  
  .result-cards {
    gap: var(--space-3);
  }
  
  .result-card {
    padding: var(--space-4);
  }
  
  .result-value {
    font-size: var(--text-xl);
  }
  
  .results-heading {
    font-size: var(--text-xl);
  }
}

/* ============================================
   PRINT STYLES - Calculator Friendly
   ============================================ */
@media print {
  .calc-panel {
    border: 2px solid #000;
    page-break-inside: avoid;
  }
  
  .result-card {
    border: 1px solid #000;
    background: none;
  }
  
  .cta {
    display: none; /* Hide CTAs in print */
  }
}

/* ============================================
   UTILITY - Guide-Specific Helpers
   ============================================ */

/* Muted small text */
.muted.small {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* Visually hidden (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link focus state */
a.visually-hidden:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--primary);
  color: white;
  padding: var(--space-4);
  border-radius: var(--radius);
  z-index: 999;
}

/* ============================================
   FIELDSET POLISH
   ============================================ */
fieldset.field {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: 0 0 var(--space-6) 0;
  transition: border-color var(--duration-base) var(--ease);
}

fieldset.field:hover {
  border-color: var(--primary);
}

fieldset.field legend {
  padding: 0 var(--space-3);
  color: var(--primary);
}

/* ============================================
   EMPHASIS IN GUIDES
   ============================================ */
article em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================================================
   END RATGEBER PAGES V3 CSS
   ============================================================================ */

/* ============================================================================
   ANALYSEN (Insights articles)
   ============================================================================ */
/* Center badges/chips inside hero teasers */
.badges { justify-content: center; }
.chips  { justify-content: center; }
