/*
Theme Name: BauMit Holding - Neue Website
Theme URI: https://baumit-ag.de/
Author: BauMit Holding AG
Description: Eigenstaendiges WordPress-Theme fuer die neue blau-orange BauMit Website mit Photovoltaik-, Speicher-, IAB-, Referenz- und Ratgeberseiten.
Version: 3.1.34
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: baumit-holding
*/

/* ============================================================
   BAUMIT HOLDING AG — Design System
   "Sunset Fintech" · warm coral on white canvas
   Single typeface (DM Sans) · outline-driven · weightless
   WordPress-ready: semantic blocks, CSS variables only
   ============================================================ */

.spa-prerender {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  background: #f7f9fc;
  color: #173f5f;
}

.spa-prerender-inner {
  max-width: 880px;
}

.spa-prerender h1 {
  max-width: 760px;
  margin: 12px 0 20px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.05em;
}

.spa-prerender p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.spa-prerender nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.spa-prerender nav a {
  padding: 10px 16px;
  border: 1px solid rgba(23, 63, 95, .2);
  border-radius: 999px;
  color: #173f5f;
  text-decoration: none;
  background: #fff;
}

:root {
  /* ---- Brand palette ---- */
  --coral-flame: #2A6AD6;        /* original brand blue — dominant UI color */
  --coral-deep:  #1d52ad;        /* darker blue for text on white */
  --coral-soft:  #aecbf3;        /* blue tints */
  --coral-gradient: linear-gradient(135deg, #7fb0f5 0%, #2A6AD6 60%, #133b8f 100%);
  --sunset-hero: linear-gradient(160deg, #eef4fe 0%, #c4dbfb 26%, #6fa0f0 60%, #2A6AD6 100%);
  --logo-orange: #F59025;
  --orange-deep: #B95708;
  --orange-tint: #FFF0E1;

  --brandwood:   #1A1A2E;        /* navy — display text, input borders */
  --brandwood-2: #2a2a44;
  --ink:         #1A1A2E;
  --ink-muted:   #5b5b70;
  --ink-faint:   #9a9aac;

  --sunset-fade: #eef3fb;        /* cool blue-tinted surface */
  --paper:       #ffffff;
  --line:        rgba(26,26,46,0.10);
  --line-strong: rgba(26,26,46,0.18);

  /* ---- Accents (color-coded) ---- */
  --mint-action:  #34c771;       /* EEG / Verfügbar */
  --mint-tint:    #e7f8ee;
  --cobalt-pulse: #6b5cf0;       /* Stromhandel / Info — violet, distinct from brand blue */
  --cobalt-tint:  #ecebfd;
  --coral-tint:   #e9f1fd;       /* original blue tint */

  /* ---- Shadows ---- */
  --shadow-float: 0 8px 24px rgba(42,106,214,0.12);
  --shadow-float-lg: 0 16px 48px rgba(42,106,214,0.18);
  --shadow-lift:  0 -4px 16px rgba(0,0,0,0.05);          /* card lift-from-below */
  --shadow-card:  0 -4px 16px rgba(0,0,0,0.05), 0 12px 32px rgba(26,26,46,0.05);

  /* ---- Type ---- */
  --font: "DM Sans", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --ls-display: 0.01em;          /* positive only, never negative */
  --ls-wide: 0.18em;

  /* ---- Radii ---- */
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* ---- Rhythm ---- */
  --pad-x: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 120px);
  --max: 1200px;
  --max-narrow: 880px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY — one font, positive tracking, airy editorial
   ============================================================ */
.display-xl, .display-lg, .display-md, .h2, .h3 {
  font-family: var(--font);
  color: var(--brandwood);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
}
.display-xl {
  font-weight: 500;
  font-size: clamp(54px, 9vw, 106px);
  line-height: 0.92;
}
.display-lg {
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.96;
}
.display-md {
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.0;
}
.h2 {
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.h3 {
  font-weight: 600;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: 0.005em;
}
.coral { color: var(--logo-orange); }
.coral-text { color: var(--coral-deep); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral-flame);
}
.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-muted);
  font-weight: 450;
  max-width: 60ch;
  letter-spacing: 0.005em;
}
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-sm { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.bg-tint { background: var(--sunset-fade); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   BUTTONS — outline is the signature. Coral fill forbidden
   (single exception: .btn-hero on the homepage hero)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r);
  text-decoration: none;
  border: 1.75px solid transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
  background: none;
}
/* Primary CTA = outlined coral on white */
.btn-outline {
  background: var(--paper);
  border-color: var(--coral-flame);
  color: var(--coral-deep);
}
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  background: var(--sunset-fade);
}
/* Navy outline — secondary */
.btn-navy {
  background: var(--paper);
  border-color: var(--brandwood);
  color: var(--brandwood);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--brandwood);
  color: #fff;
}
/* Ghost */
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-muted);
}
.btn-ghost:hover { border-color: var(--brandwood); color: var(--brandwood); transform: translateY(-2px); }
/* THE single allowed solid coral: hero CTA */
.btn-hero {
  background: var(--logo-orange);
  color: #fff;
  border-color: var(--logo-orange);
  box-shadow: 0 8px 24px rgba(245,144,37,0.18);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(245,144,37,0.24);
  background: #D97513;
}
.btn-arrow { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   CARDS — weightless, upward lift shadow, no hard borders
   ============================================================ */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
}
.card-tint {
  background: var(--sunset-fade);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float-lg);
}
.card-line {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease, border-color .25s ease;
}
.card-line.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: var(--coral-soft);
}

/* ============================================================
   COLOR-CODED ACTION TILES
   ============================================================ */
.tile {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tile-mint   { background: var(--mint-tint);   color: var(--mint-action); }
.tile-cobalt { background: var(--cobalt-tint); color: var(--cobalt-pulse); }
.tile-coral  { background: var(--orange-tint); color: var(--orange-deep); }
.tile svg { width: 26px; height: 26px; }

/* status / info chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chip-mint   { background: var(--mint-tint);   color: #1d8a4b; }
.chip-cobalt { background: var(--cobalt-tint); color: #2f5fc0; }
.chip-coral  { background: var(--orange-tint); color: var(--orange-deep); }
.chip-navy   { background: rgba(26,26,46,0.06); color: var(--brandwood); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ============================================================
   STAT NUMBERS
   ============================================================ */
.stat-num {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--brandwood);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-num .unit { font-size: 0.42em; font-weight: 600; margin-left: 4px; color: var(--coral-deep); }
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ============================================================
   FORMS — 16px radius, navy borders
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 9px; }
.field label, .field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input, .field textarea, .field select, .input {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 450;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus, .input:focus {
  border-color: var(--coral-flame);
  box-shadow: 0 0 0 3px rgba(42,106,214,0.12);
}

/* segmented chips for forms */
.seg {
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink-muted);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
}
.seg:hover { border-color: var(--coral-soft); }
.seg-active {
  background: var(--brandwood);
  color: #fff;
  border-color: var(--brandwood);
}

/* ============================================================
   SLIDER
   ============================================================ */
input[type="range"].slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  outline: none;
  margin: 18px 0;
}
@media (max-width: 768px) {
  input[type="range"].slider {
    box-sizing: border-box;
    height: 44px;
    padding: 20px 0;
    margin: 8px 0;
    background-clip: content-box;
    touch-action: pan-y;
  }
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--coral-flame);
  border: 4px solid var(--paper);
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: transform .15s;
}
input[type="range"].slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"].slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral-flame); border: 4px solid var(--paper);
  box-shadow: var(--shadow-float); cursor: pointer;
}

/* ============================================================
   KEY-VALUE ROWS
   ============================================================ */
.kv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  gap: 24px;
}
.kv-row .k { color: var(--ink-muted); font-size: 15px; }
.kv-row .v {
  font-size: 16px;
  font-weight: 600;
  color: var(--brandwood);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   PAGE HERO (interior pages, white — no gradient)
   ============================================================ */
.page-hero {
  padding-top: clamp(140px, 17vw, 220px);
  padding-bottom: clamp(48px, 7vw, 88px);
  background: var(--paper);
}

/* ============================================================
   LINKS
   ============================================================ */
.link-u {
  position: relative;
  text-decoration: none;
  color: var(--coral-deep);
  font-weight: 600;
  padding-bottom: 2px;
}
.link-u::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1.5px;
  background: currentColor;
  transition: right .3s ease;
}
.link-u:hover::after { right: 0; }

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  max-width: 78ch;
}
.disclaimer strong { color: var(--ink-muted); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease-out, transform .8s cubic-bezier(.22,1,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* page fade */
.page-fade { animation: pageFade .55s ease; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .page-fade { animation: none; } }

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

::selection { background: var(--logo-orange); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .section { padding-top: clamp(56px, 12vw, 80px); padding-bottom: clamp(56px, 12vw, 80px); }
  .site-cta { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .site-cta > *, .site-cta-actions { min-width: 0; width: 100%; }
  .site-cta .btn { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; justify-content: center; }
  .cmp-table-wrap { max-width: 100%; overflow-x: auto !important; overscroll-behavior-inline: contain; }
}
@media (max-width: 480px) {
  :root { --pad-x: 18px; }
  .hero-facts { gap: 10px 18px !important; font-size: 12.5px !important; }
  body.baumit-holding-app { overflow-x: clip; }
  .btn { box-sizing: border-box; max-width: 100%; padding-left: 16px; padding-right: 16px; white-space: normal; text-align: center; justify-content: center; }
}

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

.rg-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(118px, 14vw, 178px) 0 clamp(76px, 9vw, 112px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(245,144,37,.30), transparent 27%),
    linear-gradient(135deg, #123467 0%, #1d52ad 48%, #2a6ad6 100%);
}
.rg-hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -24vw;
  width: 52vw;
  height: 52vw;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 6vw rgba(255,255,255,.025), 0 0 0 12vw rgba(255,255,255,.02);
  pointer-events: none;
}
.rg-hero .wrap { position: relative; z-index: 1; }
.rg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.rg-back-link-light { color: rgba(255,255,255,.72); }
.rg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: end;
}
.rg-hero .display-lg {
  max-width: 850px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(50px, 7vw, 92px);
}
.rg-chip {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
}
.rg-hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}
.rg-hero-facts,
.rg-article-meta {
  border-top: 1px solid rgba(255,255,255,.24);
}
.rg-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: 13px;
}
.rg-meta-row span {
  color: rgba(255,255,255,.58);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rg-meta-row strong { color: #fff; font-weight: 650; }

.rg-index-section,
.rg-glossary-section {
  padding: clamp(66px, 9vw, 112px) 0;
  background: #f7f9fd;
}
.rg-tools {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 34px;
}
.rg-search {
  position: relative;
  display: block;
  max-width: 720px;
}
.rg-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--coral-deep);
  font-size: 27px;
  line-height: 1;
}
.rg-search input {
  width: 100%;
  min-height: 60px;
  padding: 14px 22px 14px 60px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.4 var(--font);
  box-shadow: 0 8px 30px rgba(26,26,46,.04);
  transition: border-color .2s, box-shadow .2s;
}
.rg-search input:focus {
  border-color: var(--coral-flame);
  box-shadow: 0 0 0 4px rgba(42,106,214,.10);
}
.rg-filter { display: flex; flex-wrap: wrap; gap: 9px; }
.rg-filter-button {
  appearance: none;
  padding: 10px 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink-muted);
  cursor: pointer;
  font: 650 13px/1 var(--font);
  transition: all .2s ease;
}
.rg-filter-button:hover,
.rg-filter-button.is-active {
  border-color: var(--coral-flame);
  background: var(--coral-flame);
  color: #fff;
}
.rg-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  color: var(--ink-muted);
  font-size: 14px;
}
.rg-result-line button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--coral-deep);
  cursor: pointer;
  font: 650 13px/1 var(--font);
}
.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rg-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(26,26,46,.04);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.rg-card:hover {
  transform: translateY(-5px);
  border-color: rgba(42,106,214,.35);
  box-shadow: 0 18px 44px rgba(42,106,214,.12);
}
.rg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}
.rg-category,
.rg-reading {
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .10em;
  line-height: 1.3;
  text-transform: uppercase;
}
.rg-reading { color: var(--ink-faint); white-space: nowrap; }
.rg-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 590;
  letter-spacing: -.012em;
  line-height: 1.18;
}
.rg-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.rg-read-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--coral-deep);
  font-size: 14px;
  font-weight: 700;
}
.rg-card:hover .rg-read-link span { transform: translateX(4px); }
.rg-read-link span { transition: transform .2s ease; }
.rg-empty {
  padding: 70px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: #fff;
  text-align: center;
}
.rg-empty h2 { margin: 0 0 10px; }
.rg-empty p { margin: 0; color: var(--ink-muted); }
.rg-glossary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #fff0e1 0%, #fff 52%, #edf4ff 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(245,144,37,.18);
}
.rg-glossary-banner h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 560;
  line-height: 1;
}
.rg-glossary-banner p { margin: 0; color: var(--ink-muted); }
.rg-glossary-arrow {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--logo-orange);
  color: #fff;
  font-size: 26px;
  transition: transform .2s ease;
}
.rg-glossary-banner:hover .rg-glossary-arrow { transform: translateX(5px); }
.rg-review-notice {
  max-width: 95ch;
  margin: 28px 0 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.65;
}

.rg-article-hero {
  padding: clamp(122px, 14vw, 175px) 0 clamp(68px, 8vw, 100px);
  background:
    radial-gradient(circle at 86% 22%, rgba(245,144,37,.24), transparent 30%),
    linear-gradient(135deg, #112e59, #1d52ad 58%, #2a6ad6);
  color: #fff;
}
.rg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 50px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
}
.rg-breadcrumb a { color: rgba(255,255,255,.72); text-decoration: none; }
.rg-breadcrumb a:hover { color: #fff; }
.rg-category-light { color: #ffbc76; }
.rg-article-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, .45fr);
  gap: clamp(45px, 8vw, 100px);
  align-items: end;
}
.rg-article-title-row h1,
.rg-glossary-hero h1 {
  max-width: 960px;
  margin: 20px 0 0;
  color: #fff;
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 530;
  letter-spacing: -.025em;
  line-height: 1.02;
}
.rg-article-lead {
  max-width: 880px;
  margin: 27px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.58;
}
.rg-article-layout {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 100px);
  padding-top: clamp(62px, 8vw, 100px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.rg-toc {
  position: sticky;
  top: 112px;
  height: fit-content;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #f7f9fd;
}
.rg-toc > strong {
  display: block;
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.rg-toc nav { display: flex; flex-direction: column; gap: 3px; }
.rg-toc nav button {
  appearance: none;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: 520 12.5px/1.45 var(--font);
  text-align: left;
}
.rg-toc nav button:hover { color: var(--coral-deep); }
.rg-toc-back {
  display: inline-block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.rg-article-content { max-width: 820px; }
.rg-article-content > p {
  margin: 0 0 23px;
  color: #38384b;
  font-size: 17px;
  line-height: 1.82;
}
.rg-article-heading {
  scroll-margin-top: 120px;
  margin: clamp(52px, 7vw, 78px) 0 22px;
  color: var(--ink);
  font-weight: 570;
  letter-spacing: -.018em;
  line-height: 1.12;
}
h2.rg-article-heading { font-size: clamp(29px, 3.2vw, 42px); }
h3.rg-article-heading { font-size: clamp(22px, 2.4vw, 30px); }
.rg-article-content > :first-child { margin-top: 0; }
.rg-article-list {
  margin: 5px 0 29px;
  padding-left: 0;
  list-style: none;
  counter-reset: rg-list;
}
.rg-article-list li {
  position: relative;
  margin: 0;
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  color: #38384b;
  font-size: 16px;
  line-height: 1.68;
}
.rg-article-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-orange);
  box-shadow: 0 0 0 5px var(--orange-tint);
}
ol.rg-article-list { counter-reset: rg-list; }
ol.rg-article-list li { counter-increment: rg-list; }
ol.rg-article-list li::before {
  content: counter(rg-list);
  display: grid;
  top: 13px;
  width: 24px;
  height: 24px;
  place-items: center;
  box-shadow: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.rg-note {
  margin: 40px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--logo-orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--orange-tint);
  color: #6c3c15;
  font-size: 13px;
  line-height: 1.7;
}
.rg-table-wrap {
  max-width: 100%;
  margin: 26px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.rg-table-wrap table { width: 100%; min-width: 600px; border-collapse: collapse; background: #fff; }
.rg-table-wrap th,
.rg-table-wrap td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}
.rg-table-wrap th { background: #edf4ff; color: var(--ink); font-weight: 700; }
.rg-table-wrap tr:last-child td { border-bottom: 0; }
.rg-table-wrap th:last-child,
.rg-table-wrap td:last-child { border-right: 0; }
.rg-faq {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.rg-faq:first-of-type { margin-top: 48px; border-top: 1px solid var(--line); }
.rg-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 680;
}
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary > span:last-child { color: var(--logo-orange); font-size: 23px; transition: transform .2s; }
.rg-faq[open] summary > span:last-child { transform: rotate(45deg); }
.rg-faq p { margin: 0; padding: 0 48px 22px 0; color: var(--ink-muted); line-height: 1.75; }
.rg-related { padding: clamp(65px, 8vw, 105px) 0; background: #f7f9fd; }
.rg-section-heading { margin-bottom: 34px; }
.rg-section-heading h2 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 58px); font-weight: 550; line-height: 1; }
.rg-related .rg-card { min-height: 350px; }
.rg-cta { padding: clamp(62px, 8vw, 96px) 0; background: #102f5f; color: #fff; }
.rg-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.rg-cta h2 { margin: 14px 0 12px; color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 550; line-height: 1; }
.rg-cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.68); }
.rg-cta .btn { flex: 0 0 auto; }
.rg-glossary-hero h1 { margin-top: 18px; }
.rg-glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 34px; }
.rg-term { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rg-term h2 { margin: 0 0 11px; color: var(--coral-deep); font-size: 21px; }
.rg-term p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.rg-not-found { padding: 180px 0 120px; text-align: center; }
.rg-not-found h1 { margin: 18px auto; max-width: 800px; font-size: clamp(40px, 6vw, 70px); line-height: 1; }
.rg-not-found p { color: var(--ink-muted); }
.rg-not-found .btn { margin-top: 20px; }

@media (max-width: 1024px) {
  .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-article-layout { grid-template-columns: 1fr; }
  .rg-toc { position: static; }
  .rg-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
}
@media (max-width: 760px) {
  .rg-hero-grid,
  .rg-article-title-row { grid-template-columns: 1fr; }
  .rg-hero-facts,
  .rg-article-meta { max-width: 520px; }
  .rg-grid,
  .rg-glossary-grid { grid-template-columns: 1fr; }
  .rg-card { min-height: 0; }
  .rg-read-link { margin-top: 36px; }
  .rg-toc nav { grid-template-columns: 1fr; }
  .rg-cta-inner { align-items: flex-start; flex-direction: column; }
  .rg-glossary-banner { align-items: flex-start; }
}
@media (max-width: 520px) {
  .rg-hero { padding-top: 105px; }
  .rg-article-hero { padding-top: 110px; }
  .rg-back-link { margin-bottom: 30px; }
  .rg-filter { flex-wrap: nowrap; margin-right: calc(var(--pad-x) * -1); padding-right: var(--pad-x); overflow-x: auto; }
  .rg-filter-button { flex: 0 0 auto; }
  .rg-glossary-arrow { width: 48px; height: 48px; }
  .rg-article-content > p { font-size: 16px; }
}

/* ============================================================
   NATIVE WORDPRESS PAGES · SEO/GEO Ratgeber
   ============================================================ */
.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--coral-deep);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.baumit-native-page { margin: 0; background: #fff; color: var(--ink); }
.baumit-native-page * { box-sizing: border-box; }
.rg-native-main { min-height: 60vh; }

.native-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.native-nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 36px; }
.native-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.native-logo > span { font-size: 16px; font-weight: 750; letter-spacing: .02em; line-height: 1; }
.native-logo small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: 9px; font-weight: 650; letter-spacing: .16em; }
.native-menu { display: flex; align-items: center; gap: 4px; }
.native-menu a { padding: 10px 12px; border-radius: 999px; color: var(--ink); font-size: 13.5px; font-weight: 580; text-decoration: none; }
.native-menu a:hover,
.native-menu a.is-active { color: var(--coral-deep); background: #edf4ff; }
.native-menu .native-contact { margin-left: 6px; padding-inline: 18px; background: var(--coral-flame); color: #fff; }
.native-menu .native-contact:hover { background: var(--coral-deep); color: #fff; }
.native-mobile-menu { display: none; position: relative; }
.native-mobile-menu summary { display: grid; width: 44px; height: 44px; place-content: center; gap: 5px; border-radius: 50%; background: #edf4ff; cursor: pointer; list-style: none; }
.native-mobile-menu summary::-webkit-details-marker { display: none; }
.native-mobile-menu summary span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--coral-deep); }
.native-mobile-menu nav { position: absolute; top: 54px; right: 0; display: flex; width: min(300px, calc(100vw - 36px)); flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(26,26,46,.18); }
.native-mobile-menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 620; text-decoration: none; }
.native-mobile-menu nav a:hover { background: #edf4ff; color: var(--coral-deep); }

.rg-native-archive-hero { padding-top: clamp(82px, 9vw, 118px); }
.rg-hero-facts { display: grid; gap: 0; }
.rg-hero-facts > div { display: flex; flex-direction: column; gap: 4px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.rg-hero-facts strong { color: #fff; font-size: clamp(19px, 2.5vw, 28px); font-weight: 650; }
.rg-hero-facts span { color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.4; }
.rg-tools { flex-direction: row; align-items: center; }
.rg-tools .rg-search { width: min(720px, 100%); }
.rg-tools .btn { min-height: 58px; border: 0; }
.rg-filter-button { text-decoration: none; }
.rg-result-line a { color: var(--coral-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.rg-card h2 a { color: inherit; text-decoration: none; }
.rg-card-byline { display: flex; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 12px; }
.rg-card-byline span { color: var(--ink-muted); font-weight: 650; }
.rg-read-link { text-decoration: none; }
.rg-chip-light { color: var(--coral-deep); background: #edf4ff; border-color: #d7e6fb; }
.rg-glossary-section { background: #fff; }
.rg-section-heading > p { max-width: 700px; margin: 16px 0 0; color: var(--ink-muted); line-height: 1.65; }
.rg-glossary-grid { margin: 0; }
.rg-glossary-grid > div { padding: 25px; border: 1px solid var(--line); border-radius: var(--r); background: #f7f9fd; }
.rg-glossary-grid dt { margin: 0 0 10px; color: var(--coral-deep); font-size: 20px; font-weight: 720; }
.rg-glossary-grid dd { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }

.rg-article-meta { display: grid; max-width: 920px; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 34px; border-bottom: 1px solid rgba(255,255,255,.18); }
.rg-article-meta .rg-meta-row { flex-direction: column; justify-content: flex-start; gap: 5px; padding-right: 24px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 0; }
.rg-article-meta .rg-meta-row:last-child { border-right: 0; }
.rg-toc nav a { padding: 8px 0; color: var(--ink-muted); font-size: 12.5px; font-weight: 520; line-height: 1.45; text-decoration: none; }
.rg-toc nav a:hover { color: var(--coral-deep); }
.rg-note strong { display: block; margin-bottom: 5px; color: var(--orange-deep); }
.rg-note p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.rg-faq-item { border-bottom: 1px solid var(--line); background: #fff; }
.rg-faq-item:first-of-type { margin-top: 48px; border-top: 1px solid var(--line); }
.rg-faq-item summary { position: relative; padding: 22px 45px 22px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 680; line-height: 1.4; }
.rg-faq-item summary::-webkit-details-marker { display: none; }
.rg-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; color: var(--logo-orange); font-size: 28px; font-weight: 400; transition: transform .2s; }
.rg-faq-item[open] summary::after { transform: rotate(45deg); }
.rg-faq-item > div p { margin: 0; padding: 0 45px 22px 0; color: var(--ink-muted); font-size: 15px; line-height: 1.75; }

.rg-sources { scroll-margin-top: 110px; margin-top: 70px; padding: clamp(26px, 4vw, 38px); border: 1px solid #d7e6fb; border-radius: var(--r-lg); background: #f7f9fd; }
.rg-sources-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.rg-sources-head h2 { margin: 12px 0 0; font-size: clamp(28px, 4vw, 40px); }
.rg-sources-head > span { color: var(--ink-faint); font-size: 12px; white-space: nowrap; }
.rg-sources ol { margin: 0; padding-left: 24px; }
.rg-sources li { padding: 13px 0 13px 7px; border-top: 1px solid var(--line); color: var(--coral-deep); }
.rg-sources li:first-child { border-top: 0; }
.rg-sources a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.rg-sources a:hover strong { color: var(--coral-deep); }
.rg-sources a span { color: var(--ink-muted); font-size: 12px; }
.rg-author-box { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 22px; margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rg-author-initials { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 50%; background: var(--logo-orange); color: #fff; font-weight: 750; }
.rg-author-box span { color: var(--ink-faint); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.rg-author-box h2 { margin: 4px 0 8px; font-size: 24px; }
.rg-author-box p { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 1.7; }

.rg-archive-cta { padding: clamp(58px, 8vw, 90px) 0; background: linear-gradient(135deg,#102f5f,#1d52ad); color: #fff; }
.rg-archive-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.rg-archive-cta h2 { margin: 13px 0 12px; color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 560; line-height: 1; }
.rg-archive-cta p { max-width: 740px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.65; }
.rg-archive-cta .btn { flex: 0 0 auto; }

.native-footer { padding: 70px 0 22px; background: #0e213d; color: #fff; }
.native-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: clamp(35px, 7vw, 90px); padding-bottom: 50px; }
.native-footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.native-footer-brand { font-size: 19px; letter-spacing: .03em; }
.native-footer-brand span { display: block; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .16em; }
.native-footer p,
.native-footer span { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; }
.native-footer a { color: rgba(255,255,255,.75); font-size: 14px; text-decoration: none; }
.native-footer a:hover { color: #fff; }
.native-footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.native-footer-bottom nav { display: flex; gap: 20px; }

@media (max-width: 1000px) {
  .native-menu { display: none; }
  .native-mobile-menu { display: block; }
  .rg-article-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rg-article-meta .rg-meta-row:nth-child(2) { border-right: 0; }
  .rg-article-meta .rg-meta-row:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 760px) {
  .rg-tools { flex-direction: column; align-items: stretch; }
  .rg-tools .btn { width: 100%; }
  .rg-archive-cta .wrap { align-items: flex-start; flex-direction: column; }
  .native-footer-grid { grid-template-columns: 1fr; }
  .native-footer-bottom { flex-direction: column; }
}
@media (max-width: 540px) {
  .native-nav { min-height: 68px; }
  .rg-article-meta { grid-template-columns: 1fr; }
  .rg-article-meta .rg-meta-row { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .rg-article-meta .rg-meta-row:last-child { border-bottom: 0; }
  .rg-sources-head { flex-direction: column; }
  .rg-sources-head > span { white-space: normal; }
  .rg-author-box { grid-template-columns: 1fr; }
}

/* Serverseitige Seiteninhalte fuer Suche, GEO und den Ladezustand. */
.spa-prerender .baumit-ssr {
  width: min(100%, 920px);
  max-width: 920px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.baumit-ssr h1 {
  color: var(--brandwood);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  text-wrap: balance;
}
.baumit-ssr h2 {
  margin: 46px 0 14px;
  color: var(--brandwood);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
.baumit-ssr p,
.baumit-ssr li {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}
.baumit-ssr .lead {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 22px);
}
.baumit-ssr ul {
  margin: 0 0 24px;
  padding-left: 23px;
}
.baumit-ssr li { margin-bottom: 9px; }
.baumit-ssr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.baumit-ssr-nav h2 { flex-basis: 100%; margin-top: 0; }
.baumit-ssr-nav a {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--coral-deep);
  text-decoration: none;
}
