/* ============================================================
   SELBST-GEHOSTETE SCHRIFTEN
   Dateien liegen in: Webdaten/fonts/
   Download-Anleitung: siehe CLAUDE.md / Dokumentation
   ============================================================ */

/* Fraunces – Leicht (300), Normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fraunces-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces – Leicht (300), Kursiv */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fraunces-300italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces – Medium (500), Normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fraunces-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces – Halbfett (600), Normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fraunces-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans – Leicht (300) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans – Normal (400) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans – Medium (500) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/dm-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #1a3a2a;
  --primary-light: #2d5c42;
  --accent: #c8a96e;
  --accent-light: #e8d4a8;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface2: #f0ede6;
  --border: #ddd8ce;
  --text: #1a1a18;
  --text-muted: #6b6860;
  --text-light: #9a9890;
  --green: #1d6b4a;
  --green-bg: #e8f5ee;
  --red: #8b2c2c;
  --red-bg: #fceaea;
  --blue: #1a4270;
  --blue-bg: #e6eff8;
  --amber: #7a4a10;
  --amber-bg: #fdf3e0;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(26,58,42,0.08);
  --shadow-lg: 0 8px 32px rgba(26,58,42,0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
@media(max-width:900px){ .content-with-sidebar { grid-template-columns: 1fr; } }

/* ===== HEADER ===== */
header {
  background: var(--primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -0.3px; }
.logo-text span { color: var(--accent); }
nav { display: flex; gap: 4px; }
nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
@media(max-width:680px){ nav { display: none; } }

/* ===== AD BANNER TOP ===== */
.ad-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  text-align: center;
}
.ad-slot {
  background: linear-gradient(135deg, #f8f6f1 0%, #ede9e0 100%);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}
.ad-slot::before {
  content: 'WERBUNG';
  position: absolute;
  top: 6px; left: 10px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-light);
}
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-rectangle { width: 300px; height: 250px; }
.ad-sidebar { width: 100%; height: 250px; margin-bottom: 1.5rem; }
.ad-sidebar-tall { width: 100%; height: 600px; margin-bottom: 1.5rem; }
.ad-in-content { width: 100%; height: 90px; margin: 1.5rem 0; }

/* ===== HERO ===== */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 3.5rem 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(200,169,110,0.1);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(200,169,110,0.06);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.hero-badge:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }

.accent-bar { height: 20px; background: var(--accent); }

/* ===== QUICK STATS ===== */
.quick-stats {
  background: var(--accent);
  padding: 1rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
@media(max-width:900px){ .stats-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:500px){ .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(26,58,42,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--primary); }
.stat-lbl { font-size: 11px; color: rgba(26,58,42,0.7); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== MAIN CONTENT ===== */
main { padding: 2.5rem 0; }

/* ===== TOOL NAVIGATION ===== */
.tool-nav { margin-bottom: 2rem; }
.tool-nav h2 { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.75rem; }
.tool-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tool-tab-group-label {
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-light);
  padding: 6px 2px 2px;
  margin-top: 2px;
}
.tool-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  font-weight: 400;
}
.tool-tab .icon { font-size: 15px; }
.tool-tab:hover { border-color: var(--primary-light); color: var(--primary); background: var(--surface); }
.tool-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

/* ===== PANELS ===== */
.panel { display: none; animation: fadeIn 0.25s ease; }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== ZURÜCK-BUTTON IM RECHNER ===== */
.back-bar {
  padding: 1.25rem 0 0.5rem;
}
.back-to-overview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px 7px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  box-shadow: var(--shadow);
}
.back-to-overview:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(-2px);
}
.back-to-overview svg {
  flex-shrink: 0;
  transition: transform 0.18s;
}
.back-to-overview:hover svg {
  transform: translateX(-2px);
}

/* ===== OVERVIEW INTRO ===== */
.ov-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 0;
}
.ov-intro-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}
.ov-intro-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 1rem;
}
.ov-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ov-intro-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(26,54,93,0.06);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ===== OVERVIEW SECTION ===== */
.ov-group { margin-bottom: 2.5rem; }
.ov-group-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.rechner-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
  font-family: var(--font-body);
  box-shadow: var(--shadow);
}
.rechner-card:hover {
  border-color: var(--primary-light);
  background: #f5f8fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,54,93,0.10);
}
.rc-icon { font-size: 22px; }
.rc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}
.rc-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}
.ov-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
}
.ov-back-btn:hover { text-decoration: underline; }
@media(max-width:640px){
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--primary); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== GRIDS ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media(max-width:680px){
  .grid2,.grid3,.grid4 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}

/* ===== FORM FIELDS ===== */
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label, .field .lbl {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 400;
}
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row input[type=range] { flex: 1; }
.field .val {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  min-width: 85px;
  text-align: right;
  background: var(--surface2);
  padding: 3px 8px;
  border-radius: 6px;
}
input[type=range] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type=number], input[type=text], select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
input[type=number]:focus, select:focus { border-color: var(--primary-light); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6860' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ===== METRIC CARDS ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.metric {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.15;
}
.metric.green::before { background: var(--green); opacity: 1; }
.metric.red::before { background: var(--red); opacity: 1; }
.metric.blue::before { background: var(--blue); opacity: 1; }
.metric.amber::before { background: var(--amber); opacity: 1; }
.metric-label { font-size: 11.5px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.3; }
.metric-value { font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--text); }
.metric.green .metric-value { color: var(--green); }
.metric.red .metric-value { color: var(--red); }
.metric.blue .metric-value { color: var(--blue); }
.metric.amber .metric-value { color: var(--amber); }

/* ===== RESULT ROWS ===== */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.result-row:last-child { border-bottom: none; }
.result-row .lbl { color: var(--text-muted); }
.result-row .val { font-weight: 500; color: var(--text); }
.result-row.total { font-family: var(--font-display); font-size: 15px; padding: 10px 0 6px; }
.result-row.total .lbl { color: var(--text); }
.result-row.total .val { color: var(--primary); font-size: 17px; }

/* ===== VERDICT BOX ===== */
.verdict {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  border-left: 4px solid;
}
.verdict.buy { background: var(--green-bg); border-color: var(--green); }
.verdict.rent { background: var(--amber-bg); border-color: var(--amber); }
.verdict-title { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin-bottom: 5px; }
.verdict.buy .verdict-title { color: var(--green); }
.verdict.rent .verdict-title { color: var(--amber); }
.verdict p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* ===== INFO BOX / WARNING BOX ===== */
.info-box {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--blue);
  line-height: 1.65;
  margin: 1rem 0 1.25rem;
}
.info-box a { color: var(--blue); }
.warning-box {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--amber);
  line-height: 1.65;
  margin: 1rem 0 1.25rem;
}

/* ===== CHART ===== */
.chart-wrap {
  margin-top: 1.5rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.chart-title { font-family: var(--font-display); font-size: 15px; font-weight: 500; margin-bottom: 1rem; color: var(--primary); }
canvas { display: block; max-height: 260px; width: 100% !important; }

/* ===== SECTION HEADING ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 80px; min-width: 0; overflow: hidden; grid-row: 1; grid-column: 2; }
@media(max-width:900px){
  .sidebar {
    grid-column: 1;
    grid-row: auto;
    position: static;
    overflow: visible;
    display: block;
    width: 100%;
  }
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  min-width: 0;
  overflow: hidden;
}
.sidebar-title { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--primary); margin-bottom: 0.75rem; }
.tip-list { list-style: none; }
.tip-list li { font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.tip-list li span { min-width: 0; flex: 1; }
.tip-list li:last-child { border-bottom: none; }
.tip-list li::before { content: '→'; color: var(--accent); font-weight: 500; flex-shrink: 0; }
.sidebar-btn {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}
.sidebar-btn:hover { opacity: 0.88; }

/* ===== FAQ ===== */
.faq { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q .arrow { font-size: 18px; color: var(--text-muted); transition: transform 0.2s; }
.faq-q.open .arrow { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 1rem; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.faq-a.open { display: block; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media(max-width:700px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo-text { color: #fff; font-size: 18px; }
.footer-brand p { font-size: 13px; margin-top: 0.5rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
footer h4 { font-family: var(--font-display); color: var(--accent); font-size: 13px; letter-spacing: 0.5px; margin-bottom: 0.75rem; font-weight: 500; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; transition: color 0.15s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; font-size: 12px; color: rgba(255,255,255,0.35); }
.disclaimer {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 2rem;
}

/* ===== BADGE ===== */
.badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }

/* ===== RESPONSIVE ===== */
@media(max-width:480px){
  .tool-tab .label { display: none; }
  .metric-value { font-size: 17px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
/* ── Logo Variante 3 ──────────────────────────────────── */
.logo-v3 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-svg {
  flex-shrink: 0;
}
.logo-v3-divider {
  width: 1px;
  height: 32px;
  background: rgba(200,169,110,0.35);
  flex-shrink: 0;
}
.logo-v3-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-v3-top {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.75);
  line-height: 1;
  text-transform: uppercase;
}
.logo-v3-bottom {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #c8a96e;
  line-height: 1;
  text-transform: uppercase;
}
.logo-v3-ch {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
/* Footer-Variante (etwas kleiner) */
.logo-v3-footer .logo-v3-top    { font-size: 10px; }
.logo-v3-footer .logo-v3-bottom { font-size: 16px; }

/* ===== ARTIKEL ===== */
.artikel-body { max-width: 760px; }
.artikel-body h2 { font-family: var(--font-display); font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text); }
.artikel-body h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.artikel-body p  { line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.artikel-body ul, .artikel-body ol { line-height: 2; color: var(--text-muted); padding-left: 1.25rem; margin-bottom: 1rem; }
.artikel-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.artikel-hero { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.artikel-hero p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--text-muted); }
.artikel-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; }
.artikel-nav a { display: inline-block; padding: 0.5rem 1rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--primary); font-size: 14px; text-decoration: none; }
.artikel-nav a:hover { border-color: var(--primary); }
.info-kasten { background: var(--surface); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.info-kasten p { margin: 0; }
.warnung-kasten { background: var(--amber-bg); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.warnung-kasten p { margin: 0; color: var(--text-muted); }
.fazit-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.fazit-box h3 { color: #fff; margin: 0 0 0.75rem; font-size: 1.05rem; }
.fazit-box p { color: rgba(255,255,255,0.85); margin: 0 0 0.75rem; line-height: 1.7; font-size: 14px; }
.fazit-box ul { margin: 0; padding-left: 1.25rem; line-height: 2; font-size: 14px; }
.vergleich-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.vergleich-card .vc-title { font-weight: 600; margin-bottom: 0.75rem; font-size: 15px; }
.vergleich-card ul { margin: 0; padding-left: 1rem; font-size: 13.5px; color: var(--text-muted); line-height: 1.9; }
.vergleich-card.gruen { border-color: #b6d9c8; }
.vergleich-card.orange { border-color: #f0c07a; }
.vergleich-card.blau { border-color: #a8c4e0; }
.rechenbeispiel { background: #f0f7f3; border: 1.5px solid #b6d9c8; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; overflow-x: auto; }
.rechenbeispiel .rb-title { font-weight: 600; margin-bottom: 0.75rem; color: var(--text); font-size: 15px; }
.rechenbeispiel .rb-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 1rem; }
.rechenbeispiel .rb-note { font-size: 11.5px; color: var(--text-light); margin-top: 0.75rem; line-height: 1.6; }
.rechenbeispiel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rechenbeispiel th { text-align: left; font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 0.4rem 0.5rem 0.4rem 0; border-bottom: 1.5px solid #b6d9c8; }
.rechenbeispiel th:not(:first-child) { text-align: right; }
.rechenbeispiel td { padding: 5px 0; color: var(--text-muted); border-bottom: 1px solid #d5ece3; }
.rechenbeispiel td:last-child { text-align: right; }
.rechenbeispiel tr:last-child td { border-bottom: none; font-weight: 600; color: var(--text); }

/* ── Datenschutz-Styles ───────────────────────────────────── */
.ds-hero {
  background: var(--primary);
  color: #fff;
  padding: 2.5rem 0 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 20px solid var(--accent);
}
.ds-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(200,169,110,0.1);
  pointer-events: none;
}
.ds-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(200,169,110,0.06);
  pointer-events: none;
}
.ds-hero h1, .ds-hero p { position: relative; z-index: 1; }
.ds-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.5px;
}
.ds-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  margin-top: 6px;
}
.ds-content {
  max-width: 760px;
  padding: 3rem 0 4rem;
}
.ds-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.ds-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ds-section-title .ico {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ds-prose {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.ds-prose p { margin-bottom: 0.85rem; }
.ds-prose p:last-child { margin-bottom: 0; }
.ds-prose strong { color: var(--text); font-weight: 500; }
.ds-prose h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}
.ds-prose h3:first-child { margin-top: 0; }
.ds-prose ul {
  list-style: none;
  margin: 0.4rem 0 0.85rem 0;
}
.ds-prose ul li {
  padding: 4px 0 4px 1.2rem;
  position: relative;
  font-size: 14px;
}
.ds-prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.ds-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: baseline;
}
.ds-row:last-child { border-bottom: none; }
.ds-row .lbl { color: var(--text-muted); font-size: 13px; }
.ds-row .val { color: var(--text); line-height: 1.5; }
.ds-row .val a { color: var(--blue); text-decoration: none; }
.ds-row .val a:hover { text-decoration: underline; }
.edit-hint {
  background: var(--amber-bg);
  border: 1px dashed var(--amber);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.edit-hint strong { font-weight: 500; }
.badge-legal {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: middle;
}
.toc {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.toc-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
  columns: 2;
  gap: 1rem;
}
.toc ol li {
  font-size: 13px;
  padding: 3px 0;
}
.toc ol li a {
  color: var(--blue);
  text-decoration: none;
}
.toc ol li a:hover { text-decoration: underline; }
@media(max-width:560px){
  .ds-row { grid-template-columns: 1fr; gap: 2px; }
  .ds-row .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
  .ds-section { padding: 1.25rem; }
  .toc ol { columns: 1; }
}

/* ── Impressum-Styles ───────────────────────────────────── */
/* Hero: verwendet .ds-hero aus dem Datenschutz-Abschnitt */
.impressum-content {
  max-width: 760px;
  padding: 3rem 0 4rem;
}
.imp-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.imp-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.imp-section-title .ico {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.imp-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: baseline;
}
.imp-row:last-child { border-bottom: none; }
.imp-row .lbl { color: var(--text-muted); font-size: 13px; }
.imp-row .val { color: var(--text); }
.imp-row .val a { color: var(--blue); text-decoration: none; }
.imp-row .val a:hover { text-decoration: underline; }
.imp-prose {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.imp-prose p { margin-bottom: 0.75rem; }
.imp-prose p:last-child { margin-bottom: 0; }
.imp-prose strong { color: var(--text); font-weight: 500; }
.imp-prose ul {
  list-style: none;
  margin: 0.5rem 0 0.75rem 0;
}
.imp-prose ul li {
  padding: 4px 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 14px;
}
.imp-prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
.notice-box {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--blue);
  line-height: 1.65;
  margin-top: 1rem;
}
@media(max-width:560px){
  .imp-row { grid-template-columns: 1fr; gap: 2px; }
  .imp-row .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
  .imp-section { padding: 1.25rem; }
}
/* ===== ZEITSTRAHL ===== */
.zt-ph{display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:none;cursor:pointer;padding:0;min-width:88px}
.zt-dot{width:38px;height:38px;border-radius:50%;background:var(--surface);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--text-light);font-size:11px;font-weight:500;transition:all .2s}
.zt-ph:hover .zt-dot{border-color:var(--primary-light);color:var(--primary)}
.zt-ph.active .zt-dot{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 0 0 4px rgba(26,58,42,.12)}
.zt-ph.done .zt-dot{background:var(--accent);border-color:var(--accent);color:var(--primary)}
.zt-pl{display:flex;flex-direction:column;align-items:center;gap:3px}
.zt-pn{font-size:12px;font-weight:500;color:var(--text-muted);white-space:nowrap}
.zt-pc{font-size:11px;color:var(--red);font-weight:500;white-space:nowrap}
.zt-ph.active .zt-pn{color:var(--primary)}
.zt-cn{flex:1;height:2px;background:var(--border);margin-top:1.1rem;transition:background .3s}
.zt-panel{display:none;animation:fadeIn .25s ease}
.zt-panel.active{display:block}
.zt-hdr{display:flex;align-items:center;gap:1rem;padding:1.25rem 1.5rem;border-radius:var(--radius-lg);margin-bottom:1.5rem;border-left:4px solid}
.zt-c0{background:#f0ede8;border-color:var(--primary)}
.zt-c1{background:var(--blue-bg);border-color:var(--blue)}
.zt-c2{background:var(--green-bg);border-color:var(--green)}
.zt-c3{background:var(--amber-bg);border-color:var(--amber)}
.zt-c4{background:var(--red-bg);border-color:var(--red)}
.zt-ico{font-size:28px;flex-shrink:0}
.zt-htitle{font-family:var(--font-display);font-size:18px;font-weight:500;color:var(--primary);margin-bottom:4px}
.zt-hsub{font-size:13.5px;color:var(--text-muted)}
.zt-badge{margin-left:auto;background:var(--primary);color:#fff;font-family:var(--font-display);font-size:16px;font-weight:500;padding:6px 16px;border-radius:24px;white-space:nowrap;flex-shrink:0}
.zt-cr{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:13.5px;border-bottom:1px solid var(--border)}
.zt-cr:last-child{border-bottom:none}
.zt-cr.tot{border-top:2px solid var(--border);border-bottom:none;padding-top:12px;margin-top:4px;font-family:var(--font-display);font-size:15px}
.zt-lbl{color:var(--text-muted)}
.zt-lbl strong{color:var(--text)}
.zt-val{font-weight:500}
.zt-val.r{color:var(--red)}.zt-val.g{color:var(--green)}.zt-val.a{color:var(--amber)}.zt-val.b{color:var(--blue)}
.zt-slabel{font-size:11px;font-weight:500;color:var(--text-light);text-transform:uppercase;letter-spacing:.8px;margin-bottom:.6rem}
.zt-tool{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-decoration:none;font-size:13px;font-weight:500;color:var(--primary);transition:all .18s}
.zt-tool:hover{border-color:var(--primary);background:var(--surface2)}
.zt-nav-btn{padding:9px 22px;border-radius:var(--radius);border:1.5px solid var(--border);background:var(--surface);font-family:var(--font-body);font-size:13.5px;font-weight:500;color:var(--text-muted);cursor:pointer;transition:all .18s}
.zt-nav-btn:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}
.zt-nav-btn:disabled{opacity:.35;cursor:default}
.zt-nav-btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.zt-nav-btn.primary:hover{background:var(--primary-light)}
.zt-dot-n{width:8px;height:8px;border-radius:50%;background:var(--border);cursor:pointer;border:none;padding:0;transition:background .2s}
.zt-dot-n.active{background:var(--primary)}
@media(max-width:680px){.zt-ph{min-width:56px}.zt-pc,.zt-badge{display:none}.zt-dot{width:30px;height:30px;font-size:10px}}

/* ===== MARKTÜBERSICHT ===== */
.mk-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media(max-width:700px){ .mk-kpi-grid { grid-template-columns: repeat(2,1fr); } }
.mk-kpi { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; }
.mk-kpi-val { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--primary); line-height: 1; margin-bottom: 0.35rem; }
.mk-kpi-lbl { font-size: 12px; color: var(--text-muted); margin-bottom: 0.4rem; }
.mk-kpi-trend { font-size: 11px; font-weight: 500; }
.mk-kpi-trend.up   { color: var(--red); }
.mk-kpi-trend.down { color: var(--green); }
.mk-kpi-trend.neutral { color: var(--text-muted); }
.mk-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
@media(max-width:900px){ .mk-grid { grid-template-columns: 1fr; } }
.mk-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.mk-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--primary); }
.mk-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0.5rem 0.5rem 0.5rem 0; border-bottom: 1.5px solid var(--border); }
.mk-table td { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.mk-table tr:last-child td { border-bottom: none; }
.trend-up     { color: var(--red);   font-weight: 500; font-size: 12px; }
.trend-down   { color: var(--green); font-weight: 500; font-size: 12px; }
.trend-neutral{ color: var(--text-muted); font-size: 12px; }
.mk-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }
.mk-badge.red    { background: var(--red-bg);   color: var(--red); }
.mk-badge.amber  { background: var(--amber-bg); color: var(--amber); }
.mk-badge.green  { background: var(--green-bg); color: var(--green); }
.mk-hint { font-size: 11px; color: var(--text-light); margin-top: 0.75rem; line-height: 1.5; }
.mk-afford-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mk-afford-item { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; }
.mk-afford-kanton { width: 80px; flex-shrink: 0; color: var(--text-muted); }
.mk-afford-bar-wrap { flex: 1; background: var(--surface2); border-radius: 4px; height: 8px; overflow: hidden; }
.mk-afford-bar { height: 8px; border-radius: 4px; }
.mk-afford-val { width: 40px; text-align: right; font-weight: 500; font-size: 13px; }
.mk-impi-grid { grid-template-columns: repeat(3,1fr); }
@media(max-width:480px){ .mk-impi-grid { grid-template-columns: 1fr; } }

/* ===== KANTON-VERGLEICH ===== */
.kv-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--primary); margin-bottom: 0.5rem; }
.kv-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.kv-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--primary); }
.kv-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.kv-picker { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.kv-picker-col { flex: 1; min-width: 160px; }
.kv-picker-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.kv-select { width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; background: var(--surface); color: var(--text); cursor: pointer; }
.kv-vs { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--accent); margin-top: 1.2rem; }
.kv-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .kv-compare-grid { grid-template-columns: 1fr; } }
.kv-compare-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kv-compare-header { background: var(--primary); color: #fff; padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.kv-compare-header span { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 300; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.kv-compare-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.kv-compare-row:last-child { border-bottom: none; }
.kv-compare-lbl { color: var(--text-muted); }
.kv-compare-val { font-weight: 500; color: var(--text); }
.kv-winner { color: var(--green) !important; }
.kv-loser  { color: var(--red) !important; }
.kv-nk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:600px){ .kv-nk-grid { grid-template-columns: 1fr; } }
.kv-nk-card { background: var(--surface2); border-radius: var(--radius); padding: 1.25rem; }
.kv-nk-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--primary); margin-bottom: 0.75rem; }
.kv-nk-row { display: flex; justify-content: space-between; font-size: 13px; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.kv-nk-row:last-child { border-bottom: none; font-weight: 500; font-size: 14px; }
.kv-nk-row span:first-child { color: var(--text-muted); }
.kv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv-table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1.5px solid var(--border); white-space: nowrap; }
.kv-table td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.kv-table tr:last-child td { border-bottom: none; }
.kv-rank { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--text-muted); }
.kv-rank.gold   { color: #c8a96e; }
.kv-rank.silver { color: #888; }
.kv-rank.bronze { color: #a0673a; }
.kv-score-bar { display: flex; align-items: center; gap: 0.5rem; }
.kv-score-bg { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.kv-score-fill { height: 6px; border-radius: 3px; background: var(--primary); }
.kv-badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px; }
.kv-badge.green  { background: var(--green-bg);  color: var(--green); }
.kv-badge.amber  { background: var(--amber-bg);  color: var(--amber); }
.kv-badge.red    { background: var(--red-bg);    color: var(--red); }
@media(max-width:640px) { .kv-col-hide { display: none; } }
.th-short { display: none; }
@media(max-width:640px) { .th-full { display: none; } .th-short { display: inline; } }
.kv-abk-legende { display: none; font-size: 11px; color: var(--text-muted); margin-top: 0.5rem; line-height: 1.6; }
@media(max-width:640px) { .kv-abk-legende { display: block; } }

/* ===== GLOSSAR ===== */
.gl-search-wrap { margin-bottom: 1rem; }
.gl-search-wrap input { width: 100%; max-width: 480px; padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; background: var(--surface); color: var(--text); outline: none; transition: border-color 0.15s; }
.gl-search-wrap input:focus { border-color: var(--primary); }
.gl-filter-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.gl-filter { padding: 0.35rem 0.9rem; border-radius: 20px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted); font-family: var(--font-body); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.gl-filter:hover { border-color: var(--primary); color: var(--primary); }
.gl-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gl-count { font-size: 12px; color: var(--text-muted); margin-bottom: 1rem; }
.gl-no-result { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--text-muted); font-size: 14px; }
.gl-section { margin-bottom: 2.5rem; }
.gl-section-title { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid var(--border); }
.gl-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.15s; }
.gl-item:hover { border-color: var(--accent); }
.gl-item.hidden { display: none; }
.gl-term { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--primary); cursor: pointer; user-select: none; }
.gl-term::after { content: '＋'; margin-left: auto; font-size: 18px; color: var(--accent); font-family: var(--font-body); font-weight: 300; transition: transform 0.2s; }
.gl-item.open .gl-term::after { content: '－'; }
.gl-badge { font-family: var(--font-body); font-size: 11px; font-weight: 400; background: var(--surface2); color: var(--text-muted); padding: 2px 8px; border-radius: 20px; }
.gl-def { display: none; padding: 0 1.25rem 1.25rem; font-size: 14px; color: var(--text); line-height: 1.7; border-top: 1px solid var(--border); }
.gl-def p { margin-bottom: 0.6rem; }
.gl-def p:last-child { margin-bottom: 0; }
.gl-def ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.gl-def ul li { margin-bottom: 0.35rem; }
.gl-item.open .gl-def { display: block; }
.gl-example { background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 0.6rem 0.9rem; font-size: 13px; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.6; }
.gl-related { margin-top: 3rem; }
.gl-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.gl-related-list li { font-size: 14px; color: var(--text-muted); line-height: 1.6; padding-left: 1.1rem; position: relative; }
.gl-related-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.gl-related-list a { color: var(--primary); font-weight: 500; text-decoration: none; }
.gl-related-list a:hover { text-decoration: underline; }

/* ===== HERO MINI CALC ===== */
.hero-mini-calc {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hmc-label { font-size: 13px; color: rgba(255,255,255,0.72); white-space: nowrap; }
.hmc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
}
.hmc-input {
  background: none; border: none; outline: none;
  color: #fff; font-family: var(--font-body); font-size: 14px; width: 110px;
}
.hmc-input::placeholder { color: rgba(255,255,255,0.4); }
.hmc-unit { font-size: 13px; color: rgba(255,255,255,0.5); }
.hmc-result { font-size: 13.5px; font-weight: 600; color: var(--accent); min-width: 200px; white-space: nowrap; }
@media(max-width:600px){
  .hero-mini-calc { flex-direction: column; align-items: flex-start; }
  .hmc-result { min-width: unset; }
}

/* ===== RECHNER WRAPPER ===== */
.rechner-wrapper {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 2.5rem;
}
.rechner-wrapper .ov-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.4rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.rechner-wrapper .rechner-card {
  background: var(--surface2);
}
.rechner-wrapper .rechner-card:hover {
  background: #e8e4dc;
}

/* ===== RC BADGE (Beliebt) ===== */
.rechner-card { position: relative; }
.rc-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 600;
  background: var(--accent); color: var(--primary);
  padding: 2px 7px; border-radius: 10px; letter-spacing: 0.3px;
  pointer-events: none;
}

/* ===== PANEL ERKLÄRUNG ===== */
.panel-erklaerung {
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
}
.panel-erklaerung h3 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

/* ===== MARKT TEASER ===== */
.markt-teaser {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mt-header { margin-bottom: 0.6rem; }
.mt-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.mt-kpis { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.mt-kpi { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mt-val { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--primary); }
.mt-lbl { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.mt-link {
  font-size: 13px; font-weight: 500; color: var(--primary);
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 1rem; transition: all 0.15s; flex-shrink: 0;
}
.mt-link:hover { border-color: var(--primary); background: var(--surface2); }
@media(max-width:640px){ .mt-kpis { gap: 1.25rem; } .mt-link { width: 100%; text-align: center; } }

/* ===== ARTIKEL TEASERS ===== */
.ov-artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media(max-width:700px){ .ov-artikel-grid { grid-template-columns: 1fr; } }
.ov-artikel-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.ov-artikel-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(26,54,93,0.10);
}
.oac-label {
  font-size: 10.5px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem;
}
.oac-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  color: var(--text); margin-bottom: 0.4rem; line-height: 1.35;
}
.oac-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 0.75rem; }
.oac-link { font-size: 12.5px; font-weight: 600; color: var(--primary); }

/* ── Mobile Navigation ──────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:680px){
  nav { display: none; }
  .nav-burger { display: flex; }
}

/* Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

/* Slide-in Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-bottom: 2rem;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--primary);
  position: sticky;
  top: 0;
}
.mobile-nav-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-section {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.25rem 0.35rem;
}
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mobile-nav-link:hover {
  background: var(--surface2);
  color: var(--primary);
}
/* ===== INFO BUTTON & POPOVER ===== */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--text-light);
  color: var(--text-light);
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
  margin-left: 5px;
  padding: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.info-btn:hover, .info-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--green-bg);
}
#info-popover {
  position: fixed;
  z-index: 999;
  width: 300px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: none !important;
  font-size: 13px;
  line-height: 1.6;
}
#info-popover.visible { display: block !important; }
.ip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.ip-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
}
.ip-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.ip-close:hover { color: var(--text); }
.ip-text { color: var(--text-muted); margin-bottom: 0.5rem; }
.ip-text:last-child { margin-bottom: 0; }
.ip-tag {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 0.5rem;
}
.ip-chart-wrap {
  margin-top: 0.75rem;
  height: 90px;
  position: relative;
}

/* Popup auf Mobile: CSS-zentriert statt JS near-button (robuster cross-browser) */
@media(max-width:900px) {
  #info-popover.visible {
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: min(340px, calc(100vw - 2rem)) !important;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}

/* Backdrop: schliesst Popover bei Tippen ausserhalb (funktioniert cross-browser) */
#info-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 998;
}
#info-backdrop.active { display: block; }

/* ----------------------------------------------------------------
   COOKIE-BANNER & EINSTELLUNGS-MODAL
   ---------------------------------------------------------------- */
#immo-cookie-banner {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -4px 32px rgba(26,58,42,0.16);
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 9000;
  font-family: var(--font-body);
  font-size: 14px;
}
#immo-cookie-banner.hidden { display: none; }
#immo-cookie-banner p { margin: 0; color: var(--text-muted); max-width: 640px; line-height: 1.5; }
#immo-cookie-banner a { color: var(--primary); text-decoration: underline; }
#immo-cookie-banner .cb-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Buttons (eigenständig, da kein globales Button-System) */
.cb-btn {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s, color .15s;
}
.cb-btn--outline { background: var(--surface); color: var(--text); }
.cb-btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.cb-btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.cb-btn--primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* Modal-Overlay */
#immo-cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#immo-cookie-overlay.open { display: flex; }

#immo-cookie-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
#immo-cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 1.25rem;
}

.ck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.ck-row:last-of-type { border-bottom: none; }
.ck-row strong { font-size: 15px; color: var(--text); display: block; margin-bottom: 2px; }
.ck-row span   { font-size: 12.5px; color: var(--text-muted); }
.ck-always     { font-size: 12.5px; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Toggle-Switch */
.ck-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.ck-toggle input { opacity: 0; width: 0; height: 0; }
.ck-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 11px; cursor: pointer;
  transition: background .15s;
}
.ck-slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 2px; top: 2px;
  background: #fff; border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ck-toggle input:checked + .ck-slider { background: var(--primary); }
.ck-toggle input:checked + .ck-slider::before { transform: translateX(18px); }

.ck-footer { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.5rem; }

@media (max-width: 600px) {
  #immo-cookie-banner .cb-actions { width: 100%; }
  #immo-cookie-banner .cb-actions .cb-btn { flex: 1; text-align: center; }
}
