/* =========================================================
   QIyou – Relaunch 2026
   Farben & Schrift aus dem bisherigen Auftritt übernommen
   ========================================================= */

/* ---------- Schrift (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "Baloo Paaji 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/baloo-paaji-2-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo Paaji 2"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/baloo-paaji-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo Paaji 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/baloo-paaji-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo Paaji 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/baloo-paaji-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo Paaji 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/baloo-paaji-2-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --blue: #065280;        /* Hauptfarbe (bisher) */
  --blue-dark: #043a5b;
  --sky: #0aa6f0;         /* Rahmen / Chancengleichheit */
  --lime: #b5b520;        /* Effizienz */
  --orange: #f47a00;      /* Versorgung */
  --berry: #7a0a30;       /* Digitalisierung */
  --cream: #f7f7d3;       /* Hintergrund Ziele (bisher) */
  --cream-soft: #fbfbea;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --gray: #f3f3f3;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(6, 82, 128, .10);
  --shadow-sm: 0 4px 14px rgba(6, 82, 128, .08);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Baloo Paaji 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }
.qi { color: var(--blue); font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.section-title { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 5vw, 48px); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--sky), var(--lime), var(--orange), var(--berry));
}
.lead { font-size: 1.2rem; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--light { background: #fff; color: var(--blue); }
.btn--light:hover { background: var(--cream); color: var(--blue); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { color: inherit; background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 500;
  padding: .45em .9em; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--gray); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); background: rgba(6,82,128,.08); }
.nav .btn { margin-left: 8px; padding: .5em 1.1em; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--blue-dark); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--gray); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 12px; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; content: ""; transition: transform .25s, opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .8em 1em; font-size: 1.1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); }
.hero__img { width: 100%; aspect-ratio: 1920 / 620; object-fit: cover; }
.hero__intro { padding-block: clamp(36px, 6vw, 64px); text-align: center; }
.hero__intro h1 { margin-bottom: .3em; }
.hero__intro .phon { color: var(--muted); font-weight: 400; }
.hero__intro .lead { max-width: 720px; margin: 0 auto 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.page-hero { position: relative; color: #fff; background: var(--blue); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero .container { position: relative; padding-block: clamp(40px, 7vw, 80px); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .5em 0 0; opacity: .9; max-width: 680px; font-size: 1.15rem; }
.breadcrumb { font-size: .9rem; opacity: .85; margin-bottom: .6rem; }
.breadcrumb a { color: #fff; }

/* ---------- Ziele-Karten ---------- */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.goal {
  --c: var(--sky);
  background: #fff; border-radius: var(--radius); padding: 26px 24px 24px;
  border: 2px solid rgba(10,166,240,.35);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.goal::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.goal:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.goal__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 14px;
}
.goal__icon svg { width: 26px; height: 26px; }
.goal h3 { color: var(--c); font-size: 1.4rem; margin-bottom: .35em; }
.goal p { margin: 0; font-size: 1rem; }
.goal--chance { --c: var(--sky); }
.goal--effizienz { --c: var(--lime); }
.goal--versorgung { --c: var(--orange); }
.goal--digital { --c: var(--berry); }
@media (max-width: 1000px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; gap: 14px; } .goal { padding: 22px 20px; } }

/* ---------- Zwei-Spalten-Inhalt ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.card--blue { background: var(--blue); color: #fff; border: 0; box-shadow: var(--shadow); }
.card--blue h2, .card--blue h3 { color: #fff; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.benefits li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 1.08rem; line-height: 1.5; }
.benefits li::before {
  content: "»"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.15); font-weight: 700; font-size: 1.2rem; line-height: 1;
}

.note {
  border-left: 4px solid var(--blue); background: var(--cream-soft);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 14px;
  color: var(--blue); font-size: 1rem;
}
.note:last-child { margin-bottom: 0; }
.note a { color: var(--blue); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.stat { background: #fff; border-radius: var(--radius-sm); padding: 18px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-size: 2rem; line-height: 1.1; color: var(--blue); }
.stat span { font-size: .95rem; color: var(--muted); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } .stat { display: flex; align-items: baseline; gap: 12px; text-align: left; } .stat b { font-size: 1.6rem; } }

/* ---------- "Wir suchen" ---------- */
.seek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.seek__item { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.seek__num { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--sky); opacity: .9; margin-bottom: 10px; }
.seek__item:nth-child(2) .seek__num { color: var(--lime); }
.seek__item:nth-child(3) .seek__num { color: var(--orange); }
.seek__item:nth-child(4) .seek__num { color: var(--berry); }
.seek__item p { margin: 0; }
@media (max-width: 1000px) { .seek { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .seek { grid-template-columns: 1fr; } }

/* ---------- CTA-Banner ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: conic-gradient(var(--sky), var(--lime), var(--orange), var(--berry), var(--sky));
  opacity: .18;
}
.cta h2, .cta h3 { color: #fff; }
.cta h3 { font-weight: 500; opacity: .92; }
.cta ul { margin: 0 0 1em; }
.cta__box { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; position: relative; z-index: 1; }
.cta__box p:last-child { margin: 0; }
.badge { display: inline-block; background: var(--orange); color: #fff; font-weight: 600; font-size: .85rem; padding: .25em .8em; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 720px; margin: 0 auto; }
.contact a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .2s, transform .2s;
}
.contact a:hover { border-color: var(--sky); transform: translateY(-2px); color: var(--text); }
.contact svg { width: 28px; height: 28px; color: var(--blue); flex: none; }
.contact small { display: block; color: var(--muted); font-size: .85rem; }
.contact strong { font-size: 1.1rem; color: var(--blue); }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Grafiken (Konzeptseite) ---------- */
.figure { margin: 0 0 clamp(40px, 6vw, 72px); }
.figure h2 { margin-bottom: .8em; }
.figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
.figure img { width: 100%; transition: transform .3s; }
.figure a:hover img { transform: scale(1.01); }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }

/* ---------- Inhaltsseite mit Sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--cream-soft); border-radius: var(--radius); padding: 22px; border: 1px solid #ecebc6; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.toc h2 { font-size: 1.1rem; margin-bottom: .6em; color: var(--blue); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc > ol > li { margin-bottom: 10px; }
.toc > ol > li > a { font-weight: 600; color: var(--blue); text-decoration: none; }
.toc ol ol { margin: 4px 0 0; padding-left: 12px; border-left: 2px solid #e5e3b5; }
.toc ol ol a { font-size: .93rem; color: var(--text); text-decoration: none; display: block; padding: 2px 0 2px 8px; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--sky); }
.toc-mobile { display: none; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 28px; }
  .toc-mobile select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); }
}

.chapter { margin-bottom: clamp(40px, 6vw, 64px); }
.chapter__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.chapter__letter {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1.4rem; line-height: 1;
}
.chapter__head h2 { margin: 0; }

/* Akkordeon */
.acc { display: grid; gap: 10px; margin-top: 20px; }
.acc details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.acc details[open] { border-color: rgba(6,82,128,.35); box-shadow: var(--shadow-sm); }
.acc summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--blue); line-height: 1.35;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--gray) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065280' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .25s, background-color .2s;
}
.acc details[open] summary { background: var(--blue); color: #fff; }
.acc details[open] summary::after { transform: rotate(45deg); background-color: #fff; }
.acc summary:hover { background: var(--gray); }
.acc details[open] summary:hover { background: var(--blue-dark); }
.acc__body { padding: 18px 20px 6px; }
.acc__body h4 { color: var(--blue); font-size: 1.05rem; margin: 1em 0 .3em; }
.acc__body h4:first-child { margin-top: 0; }
.acc__body a { word-break: break-word; }

.acc-tools { display: flex; justify-content: flex-end; gap: 8px; margin-top: -6px; }
.acc-tools button { font: inherit; font-size: .9rem; background: none; border: 0; color: var(--blue); cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }

/* Liste mit Häkchen */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.links-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.links-row a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; color: var(--text); transition: border-color .2s, transform .2s; }
.links-row a:hover { border-color: var(--sky); transform: translateY(-2px); color: var(--text); }
.links-row strong { display: block; color: var(--blue); font-size: 1.15rem; }
@media (max-width: 560px) { .links-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1f2a33; color: rgba(255,255,255,.78); padding-block: 56px 28px; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8em; }
.site-footer address { font-style: normal; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-bottom nav { display: flex; gap: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .toc, .toc-mobile, .acc-tools, .nav-toggle { display: none !important; }
  .acc details > *:not(summary) { display: block !important; }
  .section { padding-block: 20px; }
}

/* Startbild: mobil eigener Ausschnitt ohne Schriftzug (Slogan steht als Text darunter) */
.hero picture, .figure picture { display: block; }
@media (max-width: 640px) { .hero__img { aspect-ratio: 800 / 620; } }

/* ---------- Herrenberg-Seite ---------- */
.page-hero .badge { margin-bottom: 14px; }
.countdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.countdown div { background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.countdown b { display: block; font-size: 2.4rem; line-height: 1; }
.countdown span { font-size: .9rem; opacity: .85; }

.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.timeline li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; border-radius: 0 0 4px 4px; background: var(--sky); }
.timeline li:nth-child(2)::before { background: var(--orange); }
.timeline li.is-goal { background: var(--blue); color: #fff; border-color: var(--blue); }
.timeline li.is-goal h3 { color: #fff; }
.timeline li.is-goal::before { background: var(--lime); }
.timeline__when { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.timeline li.is-goal .timeline__when { color: #fff; opacity: .9; }
.timeline p { margin: 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }

.teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: #fff; border: 2px solid rgba(6,82,128,.2); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.teaser__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.teaser__icon svg { width: 30px; height: 30px; }
.teaser h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .3em; }
.teaser p { margin: 0; }
@media (max-width: 760px) { .teaser { grid-template-columns: 1fr; } }

.criteria { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.criteria li { background: rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 10px 14px 10px 44px; position: relative; line-height: 1.4; }
.criteria li::before {
  content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065280' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.criteria b { display: block; font-weight: 600; }
.criteria span { font-size: .93rem; opacity: .88; }

/* ---------- Kontrolle & Controlling ---------- */
.control { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 22px; }
.facts div { background: var(--blue); color: #fff; border-radius: var(--radius-sm); padding: 16px 18px; }
.facts b { display: block; font-size: 1.9rem; line-height: 1.1; }
.facts span { font-size: .92rem; opacity: .9; line-height: 1.35; display: block; margin-top: 4px; }
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feat h3 { font-size: 1.1rem; margin: 10px 0 .3em; color: var(--blue); }
.feat p { margin: 0; font-size: .97rem; }
.feat__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(10,166,240,.12); color: var(--blue); }
.feat__icon svg { width: 22px; height: 22px; }
.feat:nth-child(4) { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.feat:nth-child(4) .feat__icon { background: var(--blue); color: #fff; }
@media (max-width: 980px) { .control { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feats, .facts { grid-template-columns: 1fr; } }

/* ---------- Risiko-Hinweis ---------- */
.risk { background: #fff7ef; border: 2px solid rgba(244,122,0,.35); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.risk__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.risk__head h2 { margin-bottom: .3em; }
.risk__head p { margin: 0; }
.risk__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.risk__icon svg { width: 28px; height: 28px; }
.risk__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.risk__list li { background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; border-top: 4px solid var(--orange); }
.risk__list b { display: block; color: var(--text); font-size: 1.08rem; margin-bottom: 4px; line-height: 1.25; }
.risk__list span { font-size: .95rem; line-height: 1.5; display: block; }
.risk__note { margin: 20px 0 0; font-weight: 500; }
@media (max-width: 1000px) { .risk__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .risk__list { grid-template-columns: 1fr; } .risk__head { flex-direction: column; } }

/* ---------- Kostenvergleich & Flexibilität ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.compare__col { background: var(--gray); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.compare__col--qi { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.compare__label { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; opacity: .85; }
.compare__value { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.05; margin: 8px 0 12px; color: var(--muted); }
.compare__col--qi .compare__value { color: #fff; }
.compare__col p { margin: 0; }
.compare__hint { text-align: center; font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.flex-box { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 1000px; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; background: var(--cream-soft); border: 1px solid #ecebc6; border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.flex-box h3 { color: var(--blue); }
.flex-box .checks { margin: 0; }
@media (max-width: 760px) { .compare, .flex-box { grid-template-columns: 1fr; } }

.market-note { max-width: 900px; margin: 22px auto 0; display: flex; gap: 18px; align-items: flex-start; background: #fff7ef; border: 2px solid rgba(244,122,0,.3); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.market-note__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; }
.market-note__icon svg { width: 24px; height: 24px; }
.market-note h3 { margin-bottom: .3em; }
.market-note p { margin: 0; }
@media (max-width: 560px) { .market-note { flex-direction: column; } }

/* ---------- Kontaktformular ---------- */
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(20px, 4vw, 40px); max-width: 1040px; margin: 0 auto; align-items: start; }
.person { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.person__avatar { width: 112px; height: 112px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue)); box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(6,82,128,.15); overflow: hidden; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.5rem; margin: 4px 0 0; }
.person__role { color: var(--muted); margin: 0 0 16px; }
.person__links { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.person__links a { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: var(--gray); }
.person__links a:hover { background: rgba(6,82,128,.1); color: var(--blue); }
.person__links svg { width: 20px; height: 20px; flex: none; }
.person__note { font-size: .88rem; color: var(--muted); margin: 0; }

.form { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 16px; position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: 11px 14px; border: 1px solid #cfd6dc; border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,166,240,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form__foot small { color: var(--muted); }
.form__noscript { background: #fff7ef; border-radius: 10px; padding: 10px 14px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; justify-content: center; } }

/* Ergebnisseite Formular */
.result { max-width: 640px; margin: 0 auto; text-align: center; }
.result__icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--blue); }
.result__icon--err { background: var(--orange); }
.result__icon svg { width: 36px; height: 36px; }

/* =========================================================
   Grafische Korrekturen (Korrekturwünsche)
   ========================================================= */

/* Wortmarke QIyou im Text: einfarbig, QI extra fett, Rest medium */
.qi, .qiyou { color: inherit; }
.qiyou { font-weight: 500; white-space: nowrap; }
.qiyou b { font-weight: 800; }

/* Headlines: Medium, etwas größer */
h1, h2 { font-weight: 500; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.2rem); }
.hero__intro .phon { color: inherit; font-weight: 500; }

/* Dachzeilen größer */
.eyebrow { font-size: 1rem; }

/* Bunte Zwischenlinie entfernen, Abstand zu den Inhalten verringern */
.section-title::after { display: none; }
.section-title { margin-bottom: clamp(18px, 3vw, 28px); }
.section-title h2 { margin-bottom: .3em; }

/* Abstand Hero-Text -> Ziele verringern */
.hero__intro { padding-block: clamp(32px, 5vw, 52px) clamp(20px, 3vw, 28px); }
#ziele { padding-top: clamp(24px, 4vw, 44px); }

/* Ziele-Kacheln: Streifen doppelt so hoch, Rahmen in Kachelfarbe, größere Schrift */
.goal { border: 2px solid var(--c); padding-top: 32px; }
.goal::before { height: 12px; }
.goal h3 { font-size: 1.6rem; }
.goal p { font-size: 1.1rem; line-height: 1.55; }

/* Header: großes Logo mittig über dem Menü, Menüpunkte als graue Kästen */
@media (min-width: 1021px) {
  :root { --header-h: 96px; }
  .site-header .container { flex-direction: column; justify-content: center; gap: 10px; padding-block: 14px 12px; min-height: 0; }
  .brand img { height: 84px; transition: height .25s; }
  .site-header.is-scrolled .brand img { height: 50px; }
  .site-header.is-scrolled .container { padding-block: 8px; gap: 6px; }
  .nav { gap: 8px; justify-content: center; flex-wrap: wrap; }
  .nav a { background: #e2e2e2; border-radius: 10px; padding: .5em 1.1em; color: #000; }
  .nav a:hover { background: #d4d4d4; color: var(--blue); }
  .nav a[aria-current="page"] { background: var(--blue); color: #fff; }
  .nav .btn { margin-left: 0; border-radius: 10px; }
}
@media (max-width: 1020px) {
  .site-header .container { justify-content: center; position: relative; }
  .brand img { height: 50px; }
  .nav-toggle { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
  .nav a { background: #e2e2e2; border-radius: 10px; color: #000; }
  .nav a[aria-current="page"] { background: var(--blue); color: #fff; }
}

/* Logo im Footer größer */
.footer-logo img { height: 68px; }

/* Foto Ansprechpartner (Fallback: Initialen) */
.person__avatar { position: relative; }
.person__avatar img { position: absolute; inset: 0; }

/* Nach-oben-Pfeil */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 24px; height: 24px; }

/* Lightbox für Grafiken */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,20,30,.88); display: none; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); font-size: 28px; line-height: 1; cursor: pointer; }
body.lb-open { overflow: hidden; }
.nav a.btn, .nav a.btn:hover { background: var(--blue); color: #fff; }
.nav a.btn:hover { background: var(--blue-dark); }
.nav a[aria-current="page"]:not(.btn) { background: #e2e2e2; color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); font-weight: 600; }

/* Ziele-Kacheln: Farbbalken als oberer Rahmen – gleiche Rundung wie die Kachel */
.goal { border-top-width: 12px; padding-top: 26px; overflow: visible; }
.goal::before { display: none; }

/* Ziele-Kacheln: Balken oben gerundet, Unterkante gerade */
.goal { border-top-width: 2px; padding-top: 34px; overflow: visible; }
.goal::before {
  display: block; content: ""; position: absolute;
  top: -2px; left: -2px; right: -2px; height: 12px;
  background: var(--c); border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- Open House ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--blue); border-right: 3px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.steps__num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; font-size: 1.15rem; }
.steps h3 { color: var(--blue); margin-bottom: .3em; }
.steps p { margin: 0; }
.oh-benefits { max-width: 1000px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.oh-benefits div { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; }
.oh-benefits b { display: block; color: var(--blue); }
.oh-benefits span { font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li:not(:last-child)::after { right: 50%; top: auto; bottom: -15px; transform: translateX(50%) rotate(135deg); } .oh-benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .oh-benefits { grid-template-columns: 1fr; } }
#open-house .compare__hint { max-width: 760px; margin-inline: auto; }
