/* =============================================
   RUHESTANDSPLANER MÜNSTER - Edelstein Investments
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #1B4332;
  --primary-dark: #0D2B1F;
  --primary-light: #2D6A4F;
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #A68A1A;
  --white: #FFFFFF;
  --off-white: #FAF8F3;
  --light-gray: #F4F1E8;
  --mid-gray: #E8E4D8;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --border: #E0DBD0;
  --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
  --shadow-md: 0 8px 32px rgba(27,67,50,0.12);
  --shadow-lg: 0 16px 64px rgba(27,67,50,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 80px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================
   UTILITY
   ============================================= */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-gold { color: var(--gold); }
.text-green { color: var(--primary); }
.text-center { text-align: center; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(212,175,55,0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,67,50,0.3); }
.btn-gold { background: var(--gold); color: var(--primary-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 22px; height: 22px; fill: var(--gold); }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.nav-logo-sub { font-size: 0.65rem; color: var(--gold-dark); font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-menu a { padding: 8px 14px; font-size: 0.88rem; font-weight: 500; color: var(--text-mid); border-radius: 8px; transition: all var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--light-gray); }
.nav-cta { padding: 9px 20px; background: var(--gold); color: var(--primary-dark) !important; border-radius: 50px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: var(--primary-dark) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,43,31,0.92) 0%, rgba(27,67,50,0.75) 50%, rgba(13,43,31,0.88) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); margin-bottom: 24px; font-weight: 700; }
.hero h1 .highlight { color: var(--gold); display: block; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.hero-stat-value { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--primary); margin: 12px 0; }
.section-header p { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.section-divider { width: 60px; height: 3px; background: linear-gradient(to right, var(--gold), var(--gold-light)); border-radius: 2px; margin: 16px auto 0; }

/* =============================================
   STONE CARDS
   ============================================= */
.stones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.stone-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all 0.3s ease; position: relative; }
.stone-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.stone-card-img { height: 220px; overflow: hidden; position: relative; }
.stone-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.stone-card:hover .stone-card-img img { transform: scale(1.06); }
.stone-card-tag { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em; }
.stone-card-body { padding: 24px; }
.stone-card-body h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.stone-card-body p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.stone-card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.stone-card-rendite { font-size: 0.8rem; color: var(--text-light); }
.stone-card-rendite strong { color: var(--primary-light); font-size: 1rem; display: block; }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar { background: var(--primary); padding: 28px 0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.9); font-size: 0.88rem; font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* =============================================
   FEATURES / WHY
   ============================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.feature-card { padding: 32px 28px; background: var(--off-white); border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); }
.feature-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon { width: 52px; height: 52px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 24px; height: 24px; color: var(--gold); }
.feature-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }

/* =============================================
   SIMULATOR / CALCULATOR (Stone pages)
   ============================================= */
.simulator-wrap {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
}

.simulator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.simulator-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 12px; }
.simulator-subtitle { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; line-height: 1.65; }
.sim-field { margin-bottom: 24px; }
.sim-field label { display: block; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.sim-field input[type="range"] { width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); outline: none; cursor: pointer; }
.sim-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); cursor: pointer; border: 2px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.sim-value { display: inline-block; margin-top: 6px; font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.sim-field select { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: var(--white); font-size: 0.95rem; cursor: pointer; outline: none; }
.sim-field select option { background: var(--primary-dark); color: var(--white); }
.simulator-results { background: rgba(255,255,255,0.07); border: 1px solid rgba(212,175,55,0.3); border-radius: var(--radius); padding: 32px; }
.sim-result-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sim-result-item:last-child { border-bottom: none; }
.sim-result-label { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.sim-result-value { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.sim-result-value.big { font-size: 1.8rem; }
.sim-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.5; }

/* =============================================
   ADVANCED CALCULATOR PAGE (rendite-rechner)
   ============================================= */

/* Hero */
.calc-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--primary-dark);
}

.calc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.calc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,43,31,0.96) 0%, rgba(27,67,50,0.85) 100%);
}

/* Bundesbank Live Box */
.bb-live-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: inline-block;
  width: 100%;
}

.bb-live-dot {
  width: 8px;
  height: 8px;
  background: #52B788;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
  margin-right: 6px;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.bb-live-content { display: inline; }
.bb-live-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  justify-content: center;
}

.bb-live-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bb-stat { text-align: center; }
.bb-stat-val { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.bb-stat-lbl { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.bb-stat-sep { color: rgba(255,255,255,0.2); font-size: 1.4rem; }

/* Tab Nav */
.calc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.calc-tab {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.calc-tab:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.calc-tab.active {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
  font-weight: 700;
}

/* Panels */
.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* Calculator Card */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.calc-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.calc-section-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
}

/* Calc fields */
.calc-field { margin-bottom: 24px; }
.calc-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.calc-field input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--mid-gray);
  outline: none;
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(27,67,50,0.3);
}

.range-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.range-min, .range-max { font-size: 0.75rem; color: var(--text-light); }
.range-val { font-size: 1.05rem; font-weight: 700; color: var(--primary); }

/* Stone radio grid */
.stone-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stone-radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
}

.stone-radio-opt:hover {
  border-color: var(--primary);
  background: rgba(27,67,50,0.04);
}

.stone-radio-opt.selected,
.stone-radio-opt input:checked + .stone-radio-emoji + .stone-radio-info {
  /* handled by JS */
}

.stone-radio-opt input { accent-color: var(--primary); }
.stone-radio-emoji { font-size: 1.2rem; }
.stone-radio-info strong { display: block; font-size: 0.82rem; color: var(--primary); }
.stone-radio-info em { font-size: 0.74rem; color: var(--text-light); font-style: normal; }

/* Result cards */
.result-main-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  margin-bottom: 16px;
}

.result-label-sm {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.result-big-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
}

.result-gain-line {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

.result-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-mini {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.result-mini-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.result-mini-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.result-mini-val.gold { color: var(--gold); }
.result-mini-val.green { color: #52B788; }

/* Compare mini card */
.compare-mini-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.compare-mini-card h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.compare-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-mid);
}

.compare-mini-row:last-child { border-bottom: none; }
.compare-mini-row.highlight-row { font-weight: 600; color: var(--primary); }

/* Chart box */
.chart-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.chart-legend {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Disclaimer */
.calc-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Inflation tab */
.inf-stone-row { cursor: default; }

/* Steuer law box */
.steuer-law-box {
  background: rgba(27,67,50,0.06);
  border: 1px solid rgba(27,67,50,0.15);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

/* =============================================
   STONE DETAIL PAGE
   ============================================= */
.stone-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 100px 0 60px;
  color: var(--white);
}

.stone-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stone-hero-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); aspect-ratio: 4/3; }
.stone-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.stone-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 8px; }
.stone-hero-sub { font-size: 1.1rem; color: var(--gold); margin-bottom: 20px; font-weight: 500; }
.stone-hero-lead { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 28px; }
.stone-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.stone-spec { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 12px 16px; }
.stone-spec-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.stone-spec-value { font-size: 1rem; font-weight: 600; color: var(--gold); }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--white); border: none; cursor: pointer; text-align: left; font-family: 'Inter', sans-serif; font-size: 0.98rem; font-weight: 600; color: var(--primary); transition: background var(--transition); }
.faq-question:hover { background: var(--off-white); }
.faq-icon { width: 28px; height: 28px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 16px; transition: transform var(--transition); }
.faq-icon svg { width: 14px; height: 14px; color: var(--gold); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--gold); }
.faq-item.open .faq-icon svg { color: var(--primary-dark); }
.faq-answer { display: none; padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; background: var(--white); }
.faq-item.open .faq-answer { display: block; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--off-white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--text-mid); line-height: 1.7; margin-bottom: 28px; }
.contact-bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-bullets li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: var(--text-mid); }
.contact-bullets li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.tally-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 8px; border: 1px solid var(--border); min-height: 500px; }

/* =============================================
   COMPARE TABLE
   ============================================= */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--white); }
.compare-table th { padding: 20px 24px; font-family: 'Playfair Display', serif; font-size: 1.05rem; text-align: center; border-bottom: 2px solid var(--border); }
.compare-table th.highlight-col { background: var(--primary); color: var(--white); border-bottom-color: var(--primary); }
.compare-table td { padding: 16px 24px; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-mid); }
.compare-table td.highlight-col { background: rgba(27,67,50,0.04); font-weight: 600; color: var(--primary); }
.compare-table tr:last-child td { border-bottom: none; }
.check-yes { color: #2D6A4F; font-size: 1.2rem; }
.check-no { color: #B0B0B0; font-size: 1.2rem; }
.check-partial { color: var(--gold-dark); font-size: 1.2rem; }

/* =============================================
   RELATED STONES
   ============================================= */
.related-stones { background: var(--light-gray); padding: 56px 0; }
.related-stones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 32px; }
.related-stone-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; text-align: center; border: 1px solid var(--border); transition: all var(--transition); }
.related-stone-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.related-stone-card .stone-emoji { font-size: 2.2rem; margin-bottom: 10px; }
.related-stone-card h4 { font-size: 0.92rem; color: var(--primary); margin-bottom: 6px; }
.related-stone-card .rendite-badge { font-size: 0.78rem; color: var(--primary-light); font-weight: 600; }

/* =============================================
   STICKY FOOTER
   ============================================= */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--primary-dark);
  border-top: 2px solid var(--gold);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.sticky-footer.hidden { transform: translateY(100%); }
.sticky-footer-text { color: var(--white); font-size: 0.9rem; line-height: 1.4; }
.sticky-footer-text strong { color: var(--gold); font-size: 1rem; }
.sticky-footer-ctas { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.sticky-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; padding: 4px; font-size: 1.4rem; line-height: 1; margin-left: 8px; transition: color var(--transition); }
.sticky-close:hover { color: var(--white); }

/* =============================================
   EXIT POPUP
   ============================================= */
.exit-popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 10000; backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.exit-popup-overlay.active { display: flex; }
.exit-popup { background: var(--white); border-radius: var(--radius-lg); max-width: 540px; width: 90%; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.4); animation: popupIn 0.35s ease; }

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.exit-popup-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 28px 32px; position: relative; }
.exit-popup-header h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.exit-popup-header p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.exit-popup-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--white); font-size: 1rem; transition: background var(--transition); }
.exit-popup-close:hover { background: rgba(255,255,255,0.3); }
.exit-popup-body { padding: 32px; }
.exit-popup-offer { display: flex; align-items: center; gap: 16px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.exit-popup-offer-icon { font-size: 2.5rem; flex-shrink: 0; }
.exit-popup-offer p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.exit-popup-offer strong { color: var(--primary); }
.exit-popup-btns { display: flex; flex-direction: column; gap: 10px; }
.exit-popup-skip { background: none; border: none; color: var(--text-light); font-size: 0.83rem; cursor: pointer; text-align: center; padding: 8px; text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin: 16px 0 20px; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-text { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.footer-logo-sub { font-size: 0.62rem; color: var(--gold); font-family: 'Inter', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 16px; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { padding: 14px 0; font-size: 0.83rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: rgba(255,255,255,0.3); }

/* =============================================
   PAGE HEROES
   ============================================= */
.rendite-page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0 64px; color: var(--white); text-align: center; }
.rendite-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin: 12px 0; }
.rendite-advanced { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 48px; margin-top: -40px; position: relative; z-index: 10; }
.vergleich-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; text-align: center; color: var(--white); }
.vergleich-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin: 12px 0; }
.vergleich-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.winner-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--primary-dark); padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.kontakt-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 80px 0; text-align: center; color: var(--white); }
.kontakt-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin: 12px 0; }

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .simulator-grid { grid-template-columns: 1fr; gap: 36px; }
  .stone-hero-grid { grid-template-columns: 1fr; }
  .calc-inner-grid { grid-template-columns: 1fr !important; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 12px 16px; font-size: 1rem; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { min-height: 70vh; padding: 40px 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .section { padding: 56px 0; }
  .stones-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .simulator-wrap { padding: 32px 20px; }
  .rendite-advanced, .calc-card { padding: 24px 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .sticky-footer { flex-direction: column; padding: 16px; text-align: center; }
  .sticky-footer-ctas { width: 100%; justify-content: center; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.82rem; }
  .stone-specs { grid-template-columns: 1fr; }
  .calc-hero { min-height: auto; padding: 60px 0 80px; }
  .calc-tabs { gap: 6px; }
  .calc-tab { padding: 8px 14px; font-size: 0.8rem; }
  .result-big-num { font-size: 2rem; }
  .stone-radio-grid { grid-template-columns: 1fr; }
  .bb-live-stats { gap: 10px; }
  .bb-stat-val { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { padding: 15px 28px; font-size: 0.95rem; }
  .exit-popup-body { padding: 20px; }
  .result-grid-4 { grid-template-columns: 1fr 1fr; }
  .calc-card { margin-top: -40px; }
}