/*
Theme Name: ratgeben.net
Theme URI: https://ratgeben.net
Author: Mark Gebur
Description: Schlankes Ratgeber-Theme für Themen-Hubs, Finder, Vergleiche und praxisnahe Entscheidungsinhalte.
Version: 0.9.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ratgeben
*/

@font-face { font-family: Manrope; src: url("assets/fonts/Manrope-300.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/Manrope-400.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/Manrope-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --rg-navy: #123a57;
  --rg-blue: #2f6f9f;
  --rg-cyan: #42afc9;
  --rg-pale: #e8f3f8;
  --rg-ink: #17242d;
  --rg-muted: #5e707b;
  --rg-line: #dce6eb;
  --rg-paper: #f7f9fa;
  --rg-white: #fff;
  --rg-warn: #fff3d6;
  --rg-radius: 16px;
  --rg-shadow: 0 18px 55px rgba(18, 58, 87, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rg-ink);
  background: var(--rg-white);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--rg-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.rg-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.rg-reading { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(18, 58, 87, .1);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 36px; }
.site-logo { display: inline-flex; align-items: baseline; text-decoration: none; letter-spacing: -.05em; white-space: nowrap; }
.site-logo .rat { color: var(--rg-navy); font-size: 28px; font-weight: 800; }
.site-logo .geben { color: var(--rg-navy); font-size: 28px; font-weight: 300; }
.site-logo .dot { color: var(--rg-cyan); font-size: 28px; font-weight: 800; }
.site-logo .net { color: var(--rg-navy); font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--rg-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--rg-blue); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--rg-line); border-radius: 9px; background: #fff; padding: 9px 12px; }

.rg-hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 0;
  background: linear-gradient(135deg, #0d314b, #185675);
  color: #fff;
}
.rg-hero::after {
  content: ""; position: absolute; right: -9%; bottom: -55%; width: 600px; height: 600px;
  border: 90px solid rgba(66,175,201,.16); border-radius: 50%;
}
.rg-eyebrow { margin: 0 0 14px; color: var(--rg-cyan); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rg-hero h1, .rg-page-head h1 { max-width: 850px; margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: 1.02; letter-spacing: -.055em; }
.rg-hero p:not(.rg-eyebrow) { max-width: 690px; margin: 26px 0 0; color: #d8e8ef; font-size: 20px; }
.rg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rg-button, button.rg-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 8px; padding: 13px 18px;
  background: var(--rg-cyan); color: #092c40; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.rg-button.secondary { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }

.rg-section { padding: clamp(65px, 8vw, 105px) 0; }
.rg-section.alt { background: var(--rg-paper); }
.rg-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 38px; }
.rg-section-head h2 { margin: 0; color: var(--rg-navy); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.rg-section-head p { margin: 0; color: var(--rg-muted); }
.rg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rg-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--rg-line); border-radius: var(--rg-radius);
  background: var(--rg-white); padding: 27px; box-shadow: 0 1px 0 rgba(18,58,87,.03);
}
a.rg-card { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.rg-card:hover { transform: translateY(-4px); border-color: #b8d1dd; box-shadow: var(--rg-shadow); }
.rg-card .kicker { color: var(--rg-blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.rg-card h2, .rg-card h3 { margin: 12px 0 8px; color: var(--rg-navy); font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.rg-card p { color: var(--rg-muted); font-size: 14px; }
.rg-card .arrow { margin-top: auto; color: var(--rg-cyan); font-weight: 800; }

.rg-page-head { padding: 75px 0 55px; background: var(--rg-paper); border-bottom: 1px solid var(--rg-line); }
.rg-page-head h1 { color: var(--rg-navy); font-size: clamp(40px, 6vw, 68px); }
.rg-page-head .intro { max-width: 760px; margin-top: 20px; color: var(--rg-muted); font-size: 19px; }
.rg-breadcrumbs { margin-bottom: 20px; color: var(--rg-muted); font-size: 13px; }
.rg-breadcrumbs a { color: inherit; }
.rg-content { padding: 60px 0 90px; }
.rg-content h2 { margin-top: 2.2em; color: var(--rg-navy); font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.rg-content h3 { margin-top: 1.8em; color: var(--rg-navy); font-size: 24px; line-height: 1.3; }
.rg-content p, .rg-content li { color: #354750; }
.rg-content blockquote { margin: 35px 0; border-left: 4px solid var(--rg-cyan); background: var(--rg-pale); padding: 22px 28px; }
.rg-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; color: var(--rg-muted); font-size: 13px; }

.rg-affiliate {
  margin: 32px 0; border: 1px solid #cfe0e7; border-radius: 12px;
  background: var(--rg-pale); padding: 17px 20px; color: #45606d; font-size: 13px;
}
.rg-notice { margin: 32px 0; border-left: 4px solid #e0aa3e; background: var(--rg-warn); padding: 20px 24px; }
.rg-notice strong { display: block; color: #624c1d; }

.rg-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.rg-product { border: 1px solid var(--rg-line); border-radius: 14px; background: #fff; padding: 23px; display: flex; flex-direction: column; }
.rg-product h3 { margin: 8px 0; font-size: 19px; }
.rg-product .brand { color: var(--rg-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rg-product .specs { margin: 12px 0; color: var(--rg-muted); font-size: 13px; white-space: pre-line; }
.rg-product .rg-button { margin-top: auto; }

.rg-finder { margin: 35px 0; border: 1px solid var(--rg-line); border-radius: 18px; background: #fff; padding: clamp(22px, 5vw, 48px); box-shadow: var(--rg-shadow); }
.rg-progress { height: 5px; overflow: hidden; border-radius: 9px; background: #e5edf1; }
.rg-progress span { display: block; height: 100%; width: 0; background: var(--rg-cyan); transition: width .25s; }
.rg-finder-step small { display: block; margin: 25px 0 8px; color: var(--rg-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.rg-finder-step h2 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 42px); }
.rg-finder-step > p { margin: -15px 0 22px; color: var(--rg-muted); font-size: 14px; }
.rg-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rg-option { min-height: 125px; border: 1.5px solid #c9e2e2; border-radius: 15px; background: #fff; padding: 15px 8px; color: var(--rg-ink); font: inherit; text-align: center; cursor: pointer; transition: .18s; }
.rg-option span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: #dff7f5; color: #058e96; font-weight: 800; }
.rg-option b { font-size: 12px; line-height: 1.35; }
.rg-option.tone-1 span { background: #e6f0fc; color: #3478b5; }
.rg-option.tone-2 span { background: #edf8df; color: #629600; }
.rg-option.tone-3 span { background: #f2eafa; color: #7856bd; }
.rg-option.tone-4 span { background: #fff1d9; color: #b27100; }
.rg-option:hover, .rg-option.selected { transform: translateY(-3px); border-color: var(--rg-cyan); background: #f4ffff; box-shadow: 0 12px 25px rgba(18,58,87,.08); }
.rg-finder-footer { display: flex; align-items: center; gap: 18px; margin: 30px -48px -48px; border-top: 1px solid #dce9e7; background: #f5f9f8; padding: 18px 40px; }
.rg-finder-footer > div { display: flex; flex-direction: column; gap: 6px; }
.rg-finder-footer > b { margin-left: auto; color: #058e96; font-size: 11px; }
.rg-result { padding: 15px 0; }
.rg-result h2 { color: var(--rg-navy); font-size: 42px; }

.rg-calculator {
  margin: 38px 0; overflow: hidden; border: 1px solid #d4e3ea; border-radius: 24px;
  background: #fff; padding: 0; box-shadow: 0 28px 80px rgba(18,58,87,.13);
}
.rg-calc-heading { padding: 34px clamp(24px, 4vw, 48px) 26px; border-bottom: 1px solid var(--rg-line); }
.rg-calc-heading > span { color: var(--rg-blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rg-calculator h2 { margin: 6px 0 8px; font-size: clamp(29px, 4vw, 42px); }
.rg-calculator .rg-calc-intro { margin: 0 0 26px; color: var(--rg-muted); }
.rg-calc-heading .rg-calc-intro { max-width: 720px; margin-bottom: 0; }
.rg-calc-workspace { display: grid; grid-template-columns: 320px 1fr; min-height: 470px; }
.rg-calc-form { padding: 36px clamp(24px, 4vw, 48px) 42px; }
.rg-calc-visual {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
  padding: 31px 27px; color: #fff; background: linear-gradient(155deg, #0b3854, #147895);
}
.rg-calc-visual::after {
  content: ""; position: absolute; right: -85px; bottom: -105px; width: 250px; height: 250px;
  border: 42px solid rgba(255,255,255,.09); border-radius: 50%;
}
.rg-calc-visual-label { align-self: flex-start; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 5px 10px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rg-calc-visual strong { position: relative; z-index: 2; margin-top: auto; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.rg-calc-visual small { position: relative; z-index: 2; margin-top: 8px; color: #c6e2eb; line-height: 1.5; }
.rg-calc-scene { position: relative; height: 210px; margin: 24px -8px 12px; }
.rg-calc-water {
  position: absolute; left: 3px; right: 3px; bottom: 18px; height: 115px; overflow: hidden;
  border: 8px solid rgba(255,255,255,.88); border-radius: 50%; background: repeating-radial-gradient(ellipse at center, #6fe0e8 0 11px, #28b9cb 12px 21px);
  box-shadow: 0 18px 35px rgba(2,30,45,.24);
}
.rg-calc-machine {
  position: absolute; z-index: 2; left: 8px; bottom: 4px; width: 64px; height: 91px;
  border-radius: 18px 18px 13px 13px; background: #f7fbfc; box-shadow: 0 12px 22px rgba(2,30,45,.28);
}
.rg-calc-machine::before { content: ""; position: absolute; left: 13px; top: 14px; width: 38px; height: 38px; border: 7px solid #174a63; border-radius: 50%; background: var(--rg-cyan); }
.rg-calc-machine::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 13px; height: 8px; border-radius: 5px; background: #174a63; }
.rg-calc-pipe { position: absolute; z-index: 1; left: 62px; bottom: 50px; width: 55px; height: 38px; border-top: 8px solid rgba(255,255,255,.9); border-right: 8px solid rgba(255,255,255,.9); border-radius: 0 16px 0 0; }
.rg-calc-bubble { position: absolute; z-index: 3; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.rg-calc-bubble.one { width: 14px; height: 14px; right: 34px; top: 48px; }
.rg-calc-bubble.two { width: 8px; height: 8px; right: 57px; top: 80px; }
.rg-calc-visual-runtime { background: linear-gradient(155deg, #123a57, #2f6f9f); }
.rg-calc-visual-volume { background: linear-gradient(155deg, #09516c, #1a9db2); }
.rg-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rg-calc-field { display: flex; flex-direction: column; gap: 7px; }
.rg-calc-field.full { grid-column: 1 / -1; }
.rg-calc-field label, .rg-calc-label { color: var(--rg-navy); font-size: 13px; font-weight: 800; }
.rg-calc-field input, .rg-calc-field select {
  width: 100%; min-height: 50px; border: 1px solid var(--rg-line); border-radius: 9px;
  background: #fff; padding: 10px 12px; color: var(--rg-ink); font: inherit;
}
.rg-input-unit { position: relative; display: block; margin-top: 7px; }
.rg-input-unit input { padding-right: 72px; }
.rg-input-unit i {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--rg-muted);
  font-size: 12px; font-style: normal; font-weight: 700; pointer-events: none;
}
.rg-choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 8px; }
.rg-choice { position: relative; cursor: pointer; }
.rg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rg-choice > span:not(.shape) { display: none; }
.rg-choice b {
  display: flex; align-items: center; gap: 10px; min-height: 54px; border: 1px solid var(--rg-line);
  border-radius: 10px; padding: 10px; background: #fff; color: var(--rg-ink); font-size: 12px;
}
.rg-choice .shape { position: absolute; z-index: 2; left: 12px; top: 17px; width: 25px; height: 18px; border: 3px solid var(--rg-cyan); }
.rg-choice .shape + b { padding-left: 47px; }
.rg-choice .shape.round { width: 20px; height: 20px; border-radius: 50%; }
.rg-choice .shape.oval { width: 27px; border-radius: 50%; }
.rg-choice input:checked ~ b { border-color: var(--rg-blue); background: var(--rg-pale); box-shadow: inset 0 0 0 1px var(--rg-blue); }
.rg-calc-field input:focus, .rg-calc-field select:focus { outline: 3px solid rgba(66,175,201,.2); border-color: var(--rg-cyan); }
.rg-calc-actions { display: flex; gap: 10px; margin-top: 24px; }
.rg-calc-actions .rg-button { min-height: 52px; padding-inline: 22px; }
.rg-calc-actions .rg-button span { font-size: 19px; }
.rg-calc-result { margin: 0; border-top: 1px solid #b9dae4; border-radius: 0; background: linear-gradient(135deg, #e5f5f8, #f3fafb); padding: clamp(28px, 5vw, 48px); }
.rg-calc-result[hidden] { display: none; }
.rg-calc-result h3 { margin: 0 0 20px; color: var(--rg-navy); font-size: clamp(27px, 4vw, 40px); }
.rg-calc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rg-calc-kpi { border: 1px solid #bedce6; border-radius: 14px; background: rgba(255,255,255,.88); padding: 20px; }
.rg-calc-kpi strong { display: block; color: var(--rg-navy); font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.rg-calc-kpi span { color: var(--rg-muted); font-size: 12px; }
.rg-calc-footnote { color: var(--rg-muted); font-size: 12px; }
.rg-calc-error { margin-top: 14px; color: #9c2f25; font-weight: 700; }

.rg-faq { margin: 45px 0; }
.rg-faq details { border-top: 1px solid var(--rg-line); padding: 18px 0; }
.rg-faq summary { color: var(--rg-navy); font-weight: 800; cursor: pointer; }
.rg-related { margin-top: 70px; border-top: 1px solid var(--rg-line); padding-top: 45px; }
.rg-related h2 { margin-top: 0; }

.site-footer { background: #0d314b; color: #c8dbe4; padding: 65px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #c8dbe4; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px; font-size: 12px; }

@media (max-width: 850px) {
  .primary-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rg-line); padding: 20px; }
  .primary-nav.open { display: block; }
  .primary-nav ul { align-items: flex-start; flex-direction: column; }
  .menu-toggle { display: block; }
  .rg-grid, .rg-product-grid { grid-template-columns: 1fr 1fr; }
  .rg-section-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .rg-wrap, .rg-reading { width: min(100% - 28px, 1180px); }
  .rg-grid, .rg-product-grid, .rg-options, .rg-calc-grid, .rg-calc-kpis, .footer-grid { grid-template-columns: 1fr; }
  .rg-hero { padding: 70px 0; }
  .rg-hero h1 { font-size: 46px; }
}

/* =========================================================
   PORTAL DESIGN 0.3
   ========================================================= */
.rg-portal-hero, .rg-hub-hero, .rg-entry-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background-color: var(--rg-navy); background-size: cover; background-position: center;
}
.rg-portal-hero { min-height: 700px; display: flex; align-items: center; background-image: url("assets/images/home-hero.jpg"); }
.rg-portal-hero::before, .rg-hub-hero::before, .rg-entry-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,35,52,.94) 0%, rgba(7,35,52,.78) 39%, rgba(7,35,52,.22) 70%, rgba(7,35,52,.06) 100%);
}
.rg-portal-copy { max-width: 760px; padding: 105px 0; }
.rg-portal-copy h1, .rg-hub-copy h1, .rg-entry-copy h1 {
  margin: 0; color: #fff; font-size: clamp(54px, 7.5vw, 94px); line-height: .94; letter-spacing: -.062em;
}
.rg-portal-copy h1 em { display: block; color: #91dfec; font-style: normal; font-weight: 300; }
.rg-portal-copy > p:not(.rg-eyebrow) { max-width: 650px; margin: 28px 0 0; color: #d9e8ee; font-size: 19px; }
.rg-portal-proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; color: #c5d9e2; font-size: 12px; }
.rg-portal-proof b { display: block; color: #fff; font-size: 22px; line-height: 1.1; }

.rg-tool-strip { position: relative; z-index: 5; margin-top: -54px; }
.rg-tool-strip-inner {
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr);
  overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(12,45,65,.16);
}
.rg-tool-strip-title { padding: 27px; background: var(--rg-cyan); color: #092c40; }
.rg-tool-strip-title small { display: block; margin-bottom: 5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rg-tool-strip-title strong { display: block; font-size: 22px; line-height: 1.15; }
.rg-tool-link {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 150px;
  border-right: 1px solid var(--rg-line); padding: 25px; color: var(--rg-ink); text-decoration: none;
}
.rg-tool-link:last-child { border-right: 0; }
.rg-tool-link:hover { background: var(--rg-pale); }
.rg-tool-link span:first-child { color: var(--rg-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rg-tool-link strong { color: var(--rg-navy); font-size: 17px; line-height: 1.3; }
.rg-tool-link i { align-self: flex-end; color: var(--rg-cyan); font-size: 24px; font-style: normal; }

.rg-worlds { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.rg-world {
  position: relative; isolation: isolate; overflow: hidden; min-height: 310px;
  border-radius: 18px; padding: 30px; color: #fff; text-decoration: none;
  background: linear-gradient(145deg, #1e6381, #0d354d);
}
.rg-world:nth-child(1), .rg-world:nth-child(2) { grid-column: span 6; min-height: 380px; }
.rg-world:nth-child(n+3) { grid-column: span 4; }
.rg-world.pool { background-image: linear-gradient(145deg, rgba(4,52,76,.45), rgba(3,31,48,.88)), url("assets/images/pool-hero.jpg"); background-size: cover; background-position: center; }
.rg-world.garten { background: linear-gradient(145deg, #477953, #173f39); }
.rg-world.haus-klima { background: linear-gradient(145deg, #dfb35e, #995d36); }
.rg-world.energie-vorsorge { background: linear-gradient(145deg, #397e9e, #113f5f); }
.rg-world.werkstatt { background: linear-gradient(145deg, #9a593d, #49332e); }
.rg-world::after {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; bottom: -100px;
  border: 46px solid rgba(255,255,255,.12); border-radius: 50%; transition: transform .35s;
}
.rg-world:hover::after { transform: scale(1.12); }
.rg-world .number { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; }
.rg-world h3 { max-width: 420px; margin: 80px 0 10px; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.045em; }
.rg-world p { max-width: 450px; color: rgba(255,255,255,.78); font-size: 14px; }
.rg-world .go { position: absolute; right: 28px; bottom: 25px; color: #fff; font-size: 26px; }

.rg-promise { background: #0d314b; color: #fff; }
.rg-promise-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.rg-promise h2 { margin: 0; color: #fff; font-size: clamp(42px, 5vw, 67px); line-height: 1.03; letter-spacing: -.05em; }
.rg-principles article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; }
.rg-principles b { color: var(--rg-cyan); font-size: 24px; }
.rg-principles h3 { margin: 2px 0 5px; color: #fff; }
.rg-principles p { margin: 0; color: #abc5d1; font-size: 14px; }

.rg-hub-hero { min-height: 570px; display: flex; align-items: flex-end; background-image: url("assets/images/home-hero.jpg"); }
.rg-hub-hero.pool { background-image: url("assets/images/pool-hero.jpg"); }
.rg-hub-copy { max-width: 850px; padding: 95px 0 70px; }
.rg-hub-copy h1 { font-size: clamp(55px, 8vw, 92px); }
.rg-hub-copy .intro { max-width: 690px; margin: 22px 0 0; color: #d8e8ef; font-size: 19px; }
.rg-hub-nav { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--rg-line); }
.rg-hub-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rg-hub-nav a { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--rg-line); border-radius: 10px; padding: 15px; color: var(--rg-navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.rg-hub-nav a:hover { border-color: var(--rg-cyan); background: var(--rg-pale); }

.rg-feature-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rg-feature-tool { position: relative; min-height: 260px; border-radius: 16px; padding: 25px; color: #fff; text-decoration: none; background: linear-gradient(145deg, #187a96, #123a57); }
.rg-feature-tool:nth-child(2) { background: linear-gradient(145deg, #42afc9, #246883); }
.rg-feature-tool:nth-child(3) { background: linear-gradient(145deg, #2f6f9f, #172f46); }
.rg-feature-tool small { font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.rg-feature-tool h3 { margin: 70px 0 8px; color: #fff; font-size: 28px; line-height: 1.1; }
.rg-feature-tool p { color: rgba(255,255,255,.78); font-size: 13px; }

.rg-entry-hero { min-height: 480px; display: flex; align-items: flex-end; background-image: url("assets/images/home-hero.jpg"); }
.rg-entry-hero.pool { background-image: url("assets/images/pool-hero.jpg"); }
.rg-entry-copy { max-width: 900px; padding: 90px 0 58px; }
.rg-entry-copy h1 { font-size: clamp(44px, 6.5vw, 76px); }
.rg-entry-copy .intro { max-width: 700px; margin: 20px 0 0; color: #d7e7ee; font-size: 18px; }
.rg-entry-copy .rg-meta { color: #c3d7df; }

.rg-tool-page { padding: 50px 0 100px; background: var(--rg-paper); }
.rg-tool-lead { max-width: 820px; margin: 0 auto 30px; color: var(--rg-muted); font-size: 18px; }
.rg-tool-page .rg-calculator, .rg-tool-page .rg-finder { width: min(1180px, 100%); margin: 0 auto; }
.rg-tool-intro {
  display: grid; grid-template-columns: 48px 1fr 48px 1fr; gap: 15px;
  max-width: 950px; margin: 0 auto 28px; align-items: start;
}
.rg-tool-intro strong { display: block; color: var(--rg-navy); }
.rg-tool-intro p { margin: 3px 0 0; color: var(--rg-muted); font-size: 13px; }
.rg-tool-number {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--rg-cyan); color: #092c40; font-size: 12px; font-weight: 800;
}
.rg-calculator-stage.has-result .rg-calc-workspace { min-height: auto; }
.rg-tool-explain { padding: 75px 0; background: #fff; }
.rg-tool-explain-grid { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 70px; align-items: start; }
.rg-tool-side { position: sticky; top: 105px; }
.rg-tool-side strong { display: block; color: var(--rg-navy); font-size: 17px; }
.rg-tool-side p { color: var(--rg-muted); font-size: 13px; }

.rg-article { padding: 70px 0 100px; }
.rg-article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 70px; align-items: start; }
.rg-article-toc { position: sticky; top: 105px; border-left: 2px solid var(--rg-line); padding-left: 18px; }
.rg-article-toc strong { display: block; margin-bottom: 12px; color: var(--rg-navy); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.rg-toc-list { display: flex; flex-direction: column; gap: 10px; }
.rg-toc-list a { color: var(--rg-muted); font-size: 12px; line-height: 1.35; text-decoration: none; }
.rg-toc-list a:hover { color: var(--rg-blue); }
.rg-quick-answer { margin: 0 0 40px; border-radius: 15px; background: var(--rg-pale); padding: 24px; }
.rg-quick-answer strong { display: block; margin-bottom: 8px; color: var(--rg-blue); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.rg-article-body > p:first-child { font-size: 20px; color: #344c59; }

.rg-product { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.rg-product:hover { transform: translateY(-3px); box-shadow: var(--rg-shadow); }
.rg-product::before { content: ""; display: block; height: 7px; margin: -23px -23px 20px; background: linear-gradient(90deg, var(--rg-cyan), var(--rg-blue)); }

@media (max-width: 900px) {
  .rg-tool-strip-inner { grid-template-columns: 1fr 1fr; }
  .rg-tool-strip-title { grid-column: 1 / -1; }
  .rg-world:nth-child(n) { grid-column: span 6; min-height: 320px; }
  .rg-promise-grid, .rg-tool-explain-grid, .rg-article-layout { grid-template-columns: 1fr; gap: 35px; }
  .rg-tool-intro { grid-template-columns: 42px 1fr; }
  .rg-feature-tools { grid-template-columns: 1fr; }
  .rg-calc-workspace { grid-template-columns: 250px 1fr; }
  .rg-hub-nav-grid { grid-template-columns: 1fr 1fr; }
  .rg-tool-side, .rg-article-toc { position: static; }
}
@media (max-width: 650px) {
  .rg-portal-hero { min-height: 680px; background-position: 58% center; }
  .rg-portal-hero::before, .rg-hub-hero::before, .rg-entry-hero::before { background: linear-gradient(90deg, rgba(7,35,52,.94), rgba(7,35,52,.62)); }
  .rg-portal-copy { padding: 85px 0 120px; }
  .rg-portal-copy h1 { font-size: 51px; }
  .rg-tool-strip { margin-top: -35px; }
  .rg-tool-strip-inner { grid-template-columns: 1fr; }
  .rg-tool-strip-title { grid-column: auto; }
  .rg-tool-link { min-height: 110px; }
  .rg-world:nth-child(n) { grid-column: 1 / -1; min-height: 300px; }
  .rg-hub-nav-grid { grid-template-columns: 1fr; }
  .rg-calc-workspace { grid-template-columns: 1fr; }
  .rg-calc-visual { min-height: 300px; }
  .rg-calc-scene { position: absolute; width: 210px; right: 15px; top: 38px; opacity: .85; }
  .rg-calc-visual strong, .rg-calc-visual small { max-width: 55%; }
  .rg-choice-row { grid-template-columns: 1fr; }
}

/* =========================================================
   GUIDED CALCULATORS 0.5
   ========================================================= */
.rg-entry-hero.calc-pump_runtime_cost {
  background-image: url("assets/images/pumpenlaufzeit-hero.png");
  background-position: center 46%;
}
.rg-entry-hero.calc-pump_runtime_cost::before {
  background: linear-gradient(90deg, rgba(7,35,52,.94) 0%, rgba(7,35,52,.78) 38%, rgba(7,35,52,.16) 72%, rgba(7,35,52,.03) 100%);
}
.rg-tool-page .rg-calculator { max-width: 1100px; }
.rg-calculator .rg-calc-heading {
  padding: 30px 40px 22px;
  background: #fff;
}
.rg-calculator .rg-calc-heading h2 { font-size: clamp(28px, 3.4vw, 39px); }
.rg-calc-workspace { display: block; min-height: 0; }
.rg-calc-visual { display: none; }
.rg-calc-form { padding: 0; }
.rg-calc-wizard { min-height: 350px; }
.rg-calc-step { display: none; padding: 34px 40px 28px; animation: rgStepIn .24s ease; }
.rg-calc-step.active { display: block; }
.rg-wizard-step {
  display: block; color: #079ca4; font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.rg-calc-step > h3 {
  margin: 8px 0 4px; color: var(--rg-navy); font-size: clamp(23px, 3vw, 30px);
  line-height: 1.2; letter-spacing: -.03em;
}
.rg-calc-step > p { margin: 0 0 24px; color: var(--rg-muted); font-size: 14px; }
.rg-wizard-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.rg-wizard-fields .rg-calc-field { min-width: 0; }
.rg-wizard-fields .rg-calc-field.full { grid-column: 1 / -1; }
.rg-wizard-fields .rg-choice-row { gap: 12px; }
.rg-wizard-fields .rg-choice b {
  min-height: 94px; justify-content: center; border-radius: 15px; padding: 45px 12px 10px;
  text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.rg-wizard-fields .rg-choice:hover b { transform: translateY(-3px); border-color: var(--rg-cyan); box-shadow: 0 12px 25px rgba(18,58,87,.08); }
.rg-wizard-fields .rg-choice .shape { left: 50%; top: 16px; transform: translateX(-50%); }
.rg-wizard-fields .rg-choice .shape + b { padding-left: 12px; }
.rg-wizard-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 27px;
}
.rg-wizard-nav .rg-calc-actions { margin: 0; }
.rg-wizard-back {
  border: 1px solid var(--rg-line); border-radius: 9px; background: #fff; padding: 12px 16px;
  color: var(--rg-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.rg-wizard-bar {
  display: flex; align-items: center; gap: 18px; min-height: 60px; border-top: 1px solid #deebe9;
  background: #f3f8f7; padding: 0 40px;
}
.rg-wizard-progress { width: 190px; height: 4px; overflow: hidden; border-radius: 5px; background: #d5e6e3; }
.rg-wizard-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--rg-cyan); transition: width .25s; }
.rg-wizard-bar > span { color: #72868d; font-size: 10px; }
.rg-calculator-stage.has-result .rg-calc-heading,
.rg-calculator-stage.has-result .rg-calc-workspace { display: none; }
.rg-calculator-stage.has-result .rg-calc-result { border-top: 0; }
.rg-click-question { min-height: 390px; padding: 34px 40px 0; animation: rgStepIn .24s ease; }
.rg-click-question > h3 {
  margin: 8px 0 4px; color: var(--rg-navy); font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2; letter-spacing: -.035em;
}
.rg-click-question > p { margin: 0 0 25px; color: var(--rg-muted); font-size: 14px; }
.rg-click-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.rg-click-option {
  min-height: 135px; border: 1.5px solid #c9e2e2; border-radius: 16px; background: #fcfefe;
  padding: 16px 9px; color: var(--rg-navy); font: inherit; cursor: pointer; transition: .18s;
}
.rg-click-option span {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  margin: 0 auto 12px; border-radius: 50%; background: #dff7f5; color: #058e96; font-size: 16px; font-weight: 800;
}
.rg-click-option b { display: block; font-size: 12px; line-height: 1.35; }
.rg-click-option.tone-1 span { background: #e6f0fc; color: #3478b5; }
.rg-click-option.tone-2 span { background: #edf8df; color: #629600; }
.rg-click-option.tone-3 span { background: #f2eafa; color: #7856bd; }
.rg-click-option.tone-4 span { background: #fff1d9; color: #b27100; }
.rg-click-option:hover, .rg-click-option.selected {
  transform: translateY(-4px); border-color: var(--rg-cyan); background: #f4ffff;
  box-shadow: 0 12px 25px rgba(18,58,87,.09);
}
.rg-click-question footer {
  display: flex; align-items: center; min-height: 72px; margin: 30px -40px 0;
  border-top: 1px solid #dce9e7; padding: 0 40px; background: #f5f9f8;
}
.rg-click-question footer > div { display: flex; flex-direction: column; gap: 7px; }
.rg-click-progress { display: block; width: 220px; height: 5px; overflow: hidden; border-radius: 5px; background: #d9e9e6; }
.rg-click-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rg-cyan), #8bd45a); transition: width .25s; }
.rg-click-question footer small { color: #75898e; font-size: 10px; }
.rg-click-question footer > b { margin-left: auto; color: #058e96; font-size: 11px; }
.rg-click-back {
  margin-right: 18px; border: 1px solid #c7dcd9; border-radius: 8px; background: #fff;
  padding: 8px 12px; color: var(--rg-navy); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
}
.rg-result-products { margin-top: 42px; border-top: 1px solid #bddbe4; padding-top: 35px; }
.rg-result-products > h3 { margin: 6px 0 0; }
.rg-product-source { margin: 3px 0 20px; color: var(--rg-muted); font-size: 11px; }
.rg-result-products .rg-product-grid { margin-top: 0; }
.rg-result-products .rg-product { padding: 20px; }
.rg-result-products .rg-product small { color: var(--rg-muted); font-size: 11px; }
.rg-result-products .rg-product h3 { margin: 4px 0 14px; font-size: 19px; }
.rg-product-symbol {
  position: relative; height: 105px; margin: 14px 0; overflow: hidden; border-radius: 12px;
  background: linear-gradient(145deg, #edf7f7, #dae9ea);
}
.rg-product-symbol i {
  position: absolute; left: 50%; top: 22px; width: 110px; height: 62px; transform: translateX(-50%);
  border-radius: 10px; background: #29434d; box-shadow: 0 12px 18px rgba(18,58,87,.18);
}
.rg-product-symbol i::after {
  content: ""; position: absolute; right: 8px; top: 7px; width: 48px; height: 48px;
  border: 5px solid #1c343e; border-radius: 50%; background: #52727d;
}
.rg-product-symbol b { position: absolute; z-index: 2; left: calc(50% - 42px); top: 39px; width: 28px; height: 17px; border-radius: 3px; background: var(--rg-cyan); }
.rg-result-products dl { margin: 0 0 15px; }
.rg-result-products dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--rg-line); padding: 7px 0; font-size: 11px; }
.rg-result-products dt { color: var(--rg-muted); }
.rg-result-products dd { margin: 0; color: var(--rg-navy); font-weight: 800; text-align: right; }
.rg-result-products .rg-amazon { background: #ffca62; color: #3b310d; }
.rg-manufacturer { display: block; margin-top: 8px; border: 1px solid var(--rg-line); border-radius: 8px; padding: 9px; color: var(--rg-navy); font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; }
@keyframes rgStepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 700px) {
  .rg-calculator .rg-calc-heading, .rg-calc-step { padding-left: 22px; padding-right: 22px; }
  .rg-wizard-fields { grid-template-columns: 1fr; }
  .rg-wizard-fields .rg-calc-field.full { grid-column: auto; }
  .rg-wizard-bar { padding-inline: 22px; }
  .rg-wizard-progress { flex: 1; }
  .rg-click-question { padding-inline: 20px; }
  .rg-click-options { grid-template-columns: 1fr 1fr; }
  .rg-click-question footer { margin-inline: -20px; padding-inline: 20px; }
  .rg-click-question footer > b { display: none; }
  .rg-click-progress { width: 130px; }
}
@media (max-width: 430px) {
  .rg-click-options { grid-template-columns: 1fr; }
}

/* Compact hub dashboard */
.rg-hub-page { background: #f4f8fa; }
.rg-hub-hero.rg-hub-hero-compact {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-position: center 55%;
}
.rg-hub-hero-compact::before {
  background: linear-gradient(90deg, rgba(7, 35, 54, .94) 0%, rgba(7, 35, 54, .74) 48%, rgba(7, 35, 54, .18) 100%);
}
.rg-hub-hero-compact .rg-hub-copy { padding-top: 72px; padding-bottom: 38px; }
.rg-hub-hero-compact h1 {
  max-width: 830px;
  margin: 7px 0 8px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
}
.rg-hub-hero-compact .intro { max-width: 720px; font-size: 16px; }
.rg-hub-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rg-hub-stats span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(5,35,54,.45);
  padding: 7px 13px;
  color: rgba(255,255,255,.78);
  font-size: 11px;
}
.rg-hub-stats strong { color: #fff; font-size: 16px; }
.rg-hub-topics, .rg-hub-quick, .rg-hub-library-section { padding: 48px 0; }
.rg-hub-topics { border-bottom: 1px solid var(--rg-line); background: #fff; }
.rg-hub-quick { background: #f4f8fa; }
.rg-hub-compact-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}
.rg-hub-compact-head h2 {
  max-width: 720px;
  margin: 3px 0 0;
  color: var(--rg-navy);
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.rg-hub-compact-head > p { margin: 0; color: var(--rg-muted); font-size: 13px; }
.rg-topic-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rg-topic-pills a {
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #cddde4;
  border-radius: 12px;
  background: #fff;
  padding: 13px 40px 13px 15px;
  color: var(--rg-navy);
  text-decoration: none;
  transition: .18s ease;
}
.rg-topic-pills a:hover {
  transform: translateY(-2px);
  border-color: var(--rg-cyan);
  box-shadow: 0 10px 24px rgba(18,58,87,.08);
}
.rg-topic-pills span { font-size: 13px; font-weight: 800; line-height: 1.25; }
.rg-topic-pills small { margin-top: 4px; color: var(--rg-muted); font-size: 10px; }
.rg-topic-pills b { position: absolute; right: 15px; top: calc(50% - 10px); color: var(--rg-cyan); }
.rg-hub-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rg-hub-tool-card {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--rg-navy);
  padding: 22px;
  color: #fff;
  text-decoration: none;
  transition: .18s ease;
}
.rg-hub-tool-card:nth-child(2n) { background: #266f8d; }
.rg-hub-tool-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(18,58,87,.16); }
.rg-hub-tool-type {
  color: #a9e9ec;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.rg-hub-tool-card h3 {
  margin: 15px 0 20px;
  color: #fff;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.rg-hub-card-action { margin-top: auto; font-size: 11px; font-weight: 800; }
.rg-hub-card-action b { margin-left: 5px; }
.rg-hub-library-section { border-top: 1px solid var(--rg-line); background: #fff; }
.rg-hub-library {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}
.rg-hub-library-intro { position: sticky; top: 95px; }
.rg-hub-library-intro h2 {
  margin: 5px 0 16px;
  color: var(--rg-navy);
  font-size: clamp(29px, 3.5vw, 43px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.rg-hub-library-intro > p:not(.rg-eyebrow) { color: var(--rg-muted); font-size: 13px; line-height: 1.7; }
.rg-hub-library-intro > a {
  display: inline-block;
  margin-top: 12px;
  color: #087f9d;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.rg-hub-article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg-hub-article a {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  border: 1px solid #d3e1e6;
  border-radius: 12px;
  background: #fff;
  padding: 17px 42px 16px 18px;
  color: var(--rg-navy);
  text-decoration: none;
  transition: .16s ease;
}
.rg-hub-article a:hover { border-color: var(--rg-cyan); background: #f7fcfd; }
.rg-hub-article-type {
  color: #287699;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rg-hub-article h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.28; }
.rg-hub-article p { margin: 0; color: var(--rg-muted); font-size: 10px; line-height: 1.45; }
.rg-hub-article b { position: absolute; right: 17px; top: 18px; color: var(--rg-cyan); }

@media (max-width: 980px) {
  .rg-topic-pills, .rg-hub-tool-grid { grid-template-columns: 1fr 1fr; }
  .rg-hub-library { grid-template-columns: 1fr; gap: 28px; }
  .rg-hub-library-intro { position: static; max-width: 620px; }
  .rg-hub-library-intro > a { display: none; }
}
@media (max-width: 700px) {
  .rg-hub-hero.rg-hub-hero-compact { min-height: 320px; }
  .rg-hub-hero-compact .rg-hub-copy { padding-top: 64px; padding-bottom: 28px; }
  .rg-hub-hero-compact h1 { font-size: 42px; }
  .rg-hub-topics, .rg-hub-quick, .rg-hub-library-section { padding: 36px 0; }
  .rg-hub-compact-head { grid-template-columns: 1fr; gap: 8px; }
  .rg-hub-compact-head > p { max-width: 470px; }
  .rg-hub-tool-card { min-height: 150px; }
  .rg-hub-article-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rg-topic-pills, .rg-hub-tool-grid { grid-template-columns: 1fr; }
  .rg-topic-pills a { min-height: 66px; }
  .rg-hub-tool-card { min-height: 138px; }
}
