/* ============================================================
   Kaloriendefizit-Rechner — Seiten-Styles (nutzt :root-Vars aus style.css)
   ============================================================ */

.rc-page { background: var(--bg, #050807); }

/* Nav auf Unterseite: immer solide */
.rc-page .nav.is-solid {
  position: sticky; top: 0;
  background: rgba(5, 8, 7, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

/* ---------- Hero ---------- */
.rc-hero {
  position: relative;
  padding: clamp(72px, 11vw, 150px) 24px clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.rc-hero__bg {
  position: absolute; inset: 0;
  background: url("../assets/rechner-ambience.jpg?v=20260710") center right / cover no-repeat;
}
.rc-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,8,7,0.96) 0%, rgba(5,8,7,0.86) 42%, rgba(5,8,7,0.45) 75%, rgba(5,8,7,0.55) 100%),
    linear-gradient(180deg, rgba(5,8,7,0.55) 0%, rgba(5,8,7,0.1) 40%, rgba(5,8,7,0.92) 100%);
}
.rc-hero__inner { position: relative; max-width: 1120px; margin: 0 auto; }
.rc-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 600;
  color: var(--green-300, #81C784);
  border: 1px solid var(--border-green, rgba(76,175,80,0.18));
  background: rgba(76, 175, 80, 0.08);
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.rc-hero__title {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: #fff; margin-bottom: 18px;
}
.rc-hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65;
  color: var(--text-secondary, rgba(255,255,255,0.72));
  margin-bottom: 22px;
}
.rc-hero__chips { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; padding: 0; }
.rc-hero__chips li {
  font-size: 14px; font-weight: 600; color: var(--green-100, #E8F5E9);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Rechner-Layout ---------- */
.rc-calc { padding: clamp(40px, 6vw, 80px) 24px; }
.rc-calc__container { max-width: 1120px; margin: 0 auto; }
.rc-calc__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .rc-calc__grid { grid-template-columns: 1fr; } }

.rc-card {
  background: linear-gradient(180deg, var(--surface, #0e1814) 0%, var(--bg-soft, #0a1310) 100%);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.rc-card__title {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-300, #81C784); font-weight: 700;
  margin-bottom: 22px;
}

/* ---------- Felder ---------- */
.rc-field { margin-bottom: 22px; }
.rc-field:last-child { margin-bottom: 0; }
.rc-field__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--green-100, #E8F5E9);
  margin-bottom: 10px;
}
.rc-field__value {
  font-variant-numeric: tabular-nums;
  color: var(--green-300, #81C784); font-weight: 700;
}
.rc-field__hint {
  margin-top: 8px; font-size: 13px; line-height: 1.5;
  color: var(--text-tertiary, rgba(255,255,255,0.45));
}

/* Range-Slider */
.rc-page input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-500, #4CAF50) var(--fill, 50%), rgba(255,255,255,0.12) var(--fill, 50%));
  outline: none; cursor: pointer;
}
.rc-page input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-500, #4CAF50);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 0 6px rgba(76,175,80,0.12);
  transition: transform 0.15s ease;
}
.rc-page input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.rc-page input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-500, #4CAF50);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.rc-page input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12);
}
.rc-page input[type="range"]::-moz-range-progress {
  height: 6px; border-radius: 999px; background: var(--green-500, #4CAF50);
}
.rc-page input[type="range"]:focus-visible {
  outline: 2px solid var(--green-400, #66BB6A); outline-offset: 4px; border-radius: 999px;
}

/* Segmented Buttons */
.rc-seg { display: flex; gap: 8px; flex-wrap: nowrap; }
.rc-seg--wrap { flex-wrap: wrap; }
.rc-seg__btn {
  flex: 1 1 auto;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-secondary, rgba(255,255,255,0.72));
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 11px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  min-height: 44px;
}
.rc-seg__btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; margin-top: 2px; }
.rc-seg__btn:hover { border-color: var(--border-green, rgba(76,175,80,0.3)); color: #fff; }
.rc-seg__btn.is-active {
  background: linear-gradient(135deg, var(--green-700, #2E7D32), var(--green-500, #4CAF50));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(46,125,50,0.35);
}

/* ---------- Ergebnis ---------- */
.rc-result { display: flex; flex-direction: column; }
.rc-ring { position: relative; width: min(240px, 64vw); margin: 4px auto 14px; }
.rc-ring__svg { width: 100%; height: auto; transform: rotate(-90deg); display: block; }
.rc-ring__track {
  fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 14; stroke-linecap: round;
}
.rc-ring__bar {
  fill: none; stroke: url(#rcGrad); stroke-width: 14; stroke-linecap: round;
  stroke-dasharray: 527.8; stroke-dashoffset: 132;
  filter: drop-shadow(0 0 10px rgba(76,175,80,0.35));
}
.rc-ring__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.rc-ring__value {
  font-size: clamp(38px, 5vw, 50px); font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rc-ring__unit { font-size: 14px; color: var(--green-300, #81C784); font-weight: 600; margin-top: 4px; }
.rc-ring__caption { font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,0.45)); margin-top: 2px; }

.rc-floor {
  font-size: 13.5px; line-height: 1.55;
  color: var(--green-100, #E8F5E9);
  background: rgba(76,175,80,0.10);
  border: 1px solid var(--border-green, rgba(76,175,80,0.25));
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.rc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.rc-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 16px;
  padding: 14px;
}
.rc-stat dt {
  font-size: 12.5px; color: var(--text-tertiary, rgba(255,255,255,0.5));
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.rc-stat dd {
  font-size: 20px; font-weight: 700; color: var(--green-100, #E8F5E9);
  font-variant-numeric: tabular-nums;
}
.rc-info {
  font: inherit; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55); background: transparent;
  cursor: help; line-height: 1; flex: none;
  position: relative;
}
.rc-info:hover::after, .rc-info:focus-visible::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 220px; padding: 10px 12px;
  font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left;
  color: var(--green-100, #E8F5E9);
  background: var(--surface-elev, #18271f);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10;
}
.rc-disclaimer-mini { margin-top: 14px; font-size: 12px; color: var(--text-tertiary, rgba(255,255,255,0.45)); }
.rc-disclaimer-mini a { color: var(--green-300, #81C784); }

.rc-noscript {
  display: none;
  padding: 18px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border, rgba(255,255,255,0.08));
  color: var(--text-secondary, rgba(255,255,255,0.72));
}
.rc-noscript a { color: var(--green-300, #81C784); }

/* ---------- CTA ---------- */
.rc-cta { padding: clamp(30px, 5vw, 60px) 24px; }
.rc-cta__inner {
  max-width: 860px; margin: 0 auto; text-align: center;
  background:
    radial-gradient(120% 160% at 50% -30%, rgba(76,175,80,0.16) 0%, rgba(76,175,80,0.02) 55%, transparent 100%),
    linear-gradient(180deg, var(--surface, #0e1814), var(--bg-soft, #0a1310));
  border: 1px solid var(--border-green, rgba(76,175,80,0.18));
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
}
.rc-cta__title {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin-bottom: 14px;
}
.rc-cta__sub {
  max-width: 620px; margin: 0 auto 24px;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  color: var(--text-secondary, rgba(255,255,255,0.72));
}
.rc-cta__badges { justify-content: center; }

/* ---------- Ratgeber ---------- */
.rc-guide { padding: clamp(30px, 5vw, 70px) 24px clamp(60px, 8vw, 110px); }
.rc-guide__container { max-width: 760px; margin: 0 auto; }
.rc-block { margin-bottom: clamp(36px, 5vw, 56px); }
.rc-block h2, .rc-faq h2, .rc-sources h2 {
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -0.02em;
  color: var(--green-100, #E8F5E9);
  margin-bottom: 16px;
}
.rc-block p {
  font-size: clamp(15.5px, 1.5vw, 17.5px); line-height: 1.75;
  color: var(--text-secondary, rgba(255,255,255,0.72));
  margin-bottom: 14px;
}
.rc-block p strong { color: var(--green-100, #E8F5E9); }

.rc-formula {
  display: grid; gap: 10px; margin: 18px 0;
}
.rc-formula__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 14px; padding: 13px 16px;
  min-width: 0; /* Grid-Item: min-content-Falle — sonst sprengt das nowrap-code die Spur */
}
.rc-formula__row span { font-weight: 700; color: var(--green-300, #81C784); font-size: 14px; flex: none; }
.rc-formula__row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; color: var(--green-100, #E8F5E9);
  overflow-x: auto; white-space: nowrap;
  flex: 1 1 auto; min-width: 0; /* Flex-Item darf schrumpfen → scrollt intern statt die Seite zu sprengen */
}

.rc-example {
  background: rgba(76,175,80,0.06);
  border: 1px solid var(--border-green, rgba(76,175,80,0.18));
  border-radius: 18px; padding: 20px 22px; margin-top: 18px;
}
.rc-example h3 {
  font-size: 15px; font-weight: 700; color: var(--green-100, #E8F5E9); margin-bottom: 12px;
}
.rc-example ol { padding-left: 20px; display: grid; gap: 8px; }
.rc-example li { font-size: 15px; line-height: 1.6; color: var(--text-secondary, rgba(255,255,255,0.72)); }
.rc-example li strong { color: var(--green-100, #E8F5E9); }

.rc-faq { margin-bottom: clamp(36px, 5vw, 56px); }
.rc-faq h2 { margin-bottom: 20px; }

.rc-sources {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 20px; padding: clamp(20px, 3vw, 30px);
}
.rc-sources h2 { font-size: 18px; margin-bottom: 14px; }
.rc-sources ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 18px; }
.rc-sources li { font-size: 13.5px; line-height: 1.6; color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.rc-sources li a { color: var(--green-300, #81C784); }
.rc-medical {
  font-size: 13.5px; line-height: 1.65; color: var(--text-secondary, rgba(255,255,255,0.65));
  border-top: 1px solid var(--border, rgba(255,255,255,0.07));
  padding-top: 14px;
}
.rc-meta { margin-top: 10px; font-size: 12.5px; color: var(--text-tertiary, rgba(255,255,255,0.45)); }
.rc-meta a { color: var(--green-300, #81C784); }

/* Reveal-Basiszustand kommt aus style.css ([data-reveal]{opacity:0}) —
   rechner.js animiert + Fallback. reduced-motion-Fallback aus style.css greift. */

/* ---------- Vergleichs-Tabelle ---------- */
.rc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--border, rgba(255,255,255,0.07)); margin: 20px 0; }
.rc-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.rc-table th, .rc-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border, rgba(255,255,255,0.06)); color: var(--text-secondary, rgba(255,255,255,0.72)); vertical-align: top; }
.rc-table thead th { background: rgba(255,255,255,0.04); color: var(--green-100, #E8F5E9); font-weight: 700; white-space: nowrap; }
.rc-table tbody tr:last-child td { border-bottom: 0; }
.rc-table td:first-child { color: var(--green-100, #E8F5E9); font-weight: 600; min-width: 190px; }
.rc-table .is-vesta { background: rgba(76,175,80,0.07); }
.rc-table .yes { color: var(--green-300, #81C784); font-weight: 700; }
.rc-table .no { color: rgba(255,255,255,0.35); }
.rc-table sup a { color: var(--green-300, #81C784); text-decoration: none; }

/* ---------- Ratgeber-Hub-Karten ---------- */
.rc-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.rc-hub-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: linear-gradient(180deg, var(--surface, #0e1814), var(--bg-soft, #0a1310));
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: 20px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.rc-hub-card:hover { transform: translateY(-4px); border-color: var(--border-green, rgba(76,175,80,0.35)); }
.rc-hub-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.rc-hub-card__body { padding: 18px 20px 22px; }
.rc-hub-card__tag { font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--green-300, #81C784); }
.rc-hub-card__title { font-size: 19px; font-weight: 700; color: var(--green-100, #E8F5E9); margin: 8px 0 8px; line-height: 1.3; }
.rc-hub-card__text { font-size: 14px; line-height: 1.6; color: var(--text-secondary, rgba(255,255,255,0.65)); }

/* ---------- Artikel ---------- */
.rc-article-hero { width: 100%; border-radius: 20px; margin: 0 0 26px; display: block; }
.rc-article h3 { font-size: 18px; font-weight: 700; color: var(--green-100, #E8F5E9); margin: 22px 0 10px; }
.rc-article ul, .rc-article ol { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 14px; }
.rc-article li { font-size: 15.5px; line-height: 1.65; color: var(--text-secondary, rgba(255,255,255,0.72)); }
.rc-article li strong { color: var(--green-100, #E8F5E9); }
.rc-breadcrumb { font-size: 13px; color: var(--text-tertiary, rgba(255,255,255,0.45)); margin-bottom: 18px; }
.rc-breadcrumb a { color: var(--green-300, #81C784); text-decoration: none; }

/* ---------- Fakten-Grid (Über-Seite) ---------- */
.rc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.rc-fact { background: rgba(255,255,255,0.03); border: 1px solid var(--border, rgba(255,255,255,0.06)); border-radius: 16px; padding: 16px; }
.rc-fact dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary, rgba(255,255,255,0.45)); margin-bottom: 6px; }
.rc-fact dd { font-size: 15.5px; font-weight: 600; color: var(--green-100, #E8F5E9); line-height: 1.45; }

/* Transparenz-Box (Werbe-Kennzeichnung Vergleich) */
.rc-disclosure {
  font-size: 13.5px; line-height: 1.6; color: var(--text-secondary, rgba(255,255,255,0.65));
  background: rgba(249,168,37,0.07); border: 1px solid rgba(249,168,37,0.25);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 26px;
}
