/*
  Tool: prototypenbau-nrw.de, Stylesheet
  Version: 0.1
  Erstellt: 15.11.2026
  Zweck: Design-Tokens und Bausteine nach wp-optimierung/docs/design-basis.md (v6)
  Bedienung: Wird von build.ps1 nach public/assets/css/ kopiert. Farben nur über Tokens.
  Änderungen: 15.11.2026 angelegt (Hero, Kennzahlen, Bento, dunkle Sektion, CTA, FAQ, Footer)
*/

/* Schrift: Schibsted Grotesk lokal. AUSKOMMENTIERT, solange die Datei fehlt (sonst fragt der Browser bei jedem Aufruf vergeblich nach ihr, 404).
   Zum Einschalten: Datei als assets/fonts/SchibstedGrotesk-Variable.woff2 ablegen und diesen Block wieder aktivieren.
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/SchibstedGrotesk-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
*/

:root {
  --blue: #0071BB;
  --blue-dark: #004F85;
  --blue-surface: #EEF5FB;
  --navy: #1B2A38;
  --text: #536270;
  --text-muted: #5E6B77;
  --grey-surface: #F4F6F8;
  --line: #D9DFE4;
  --border-ui: #7A8794;
  --border-ui-dark: #7A8D9F;
  --text-on-dark: #C9D3DC;
  --red: #D1232A;
  --white: #fff;

  --r-btn: 8px;
  --r-card: 16px;
  --content: 720px;
  --wide: 1240px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--s2); }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s2); }
.lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); max-width: 40rem; }
.kicker { color: var(--blue); font-weight: 600; font-size: .9375rem; letter-spacing: .02em; margin-bottom: var(--s2); }
.on-dark .kicker { color: #8CC4EC; }

/* roter Strich über Überschriften */
.redline::before { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-bottom: var(--s2); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: var(--s1) var(--s2); z-index: 20; }
.skip:focus { left: var(--s2); top: var(--s2); }

.wrap { width: min(100% - 2 * var(--s3), var(--wide)); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.brand { display: flex; align-items: center; gap: var(--s2); }
.brand img { height: 56px; width: auto; }
.brand-text span { color: var(--blue); }
.nav { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s1); font: inherit; font-weight: 600;
  padding: 14px 24px; border-radius: var(--r-btn); text-decoration: none; border: 2px solid var(--blue);
  background: var(--blue); color: var(--white); transition: background .2s, color .2s, border-color .2s;
}
.btn .arr { transition: transform .2s; }
.btn:hover { background: var(--white); color: var(--blue); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border-ui); }
.btn--ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--small { padding: 9px 18px; font-size: .9375rem; }
.on-dark .btn { background: var(--white); color: var(--blue); border-color: var(--white); }
.on-dark .btn:hover { background: var(--blue); color: var(--white); border-color: var(--white); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow .arr { display: inline-block; transition: transform .2s; }
.link-arrow:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* Hero: linksbündig, Kugel als Wasserzeichen, ohne Bewegung */
.hero { position: relative; overflow: hidden; padding: var(--s6) 0 var(--s5); }
.hero::before {
  content: ""; position: absolute; left: -220px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%);
  background: url("../img/allgemein/kugel-800.webp") center / contain no-repeat; opacity: .14; pointer-events: none;
}
.hero .wrap { position: relative; max-width: 960px; margin-left: max(var(--s3), calc((100% - var(--wide)) / 2)); padding-left: clamp(0px, 4vw, 80px); }
.hero h1 { max-width: 16ch; }

/* Schichtlinien */
.layers { height: 40px; margin: 0; background:
  linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 6px / 100% 1px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 14px / 100% 1px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 24px / 100% 1px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 36px / 100% 1px no-repeat; }

/* Kennzahlen */
.facts { padding: var(--s5) 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); }
.fact b { display: block; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.fact i { display: block; height: 7px; margin: 12px 0 10px; border: 1.5px solid var(--border-ui); border-top: 0; }
.fact span { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }

/* Sektionen */
.section { padding: var(--s6) 0; }
.section--tight { padding: var(--s5) 0; }
.section-head { max-width: 46rem; margin-bottom: var(--s4); }

/* Bento: 6 Spalten, unterschiedlich große Kacheln */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); }
.tile { background: var(--grey-surface); border-radius: var(--r-card); padding: var(--s4) var(--s3); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(27,42,56,.1); }
.tile--l { grid-column: span 4; grid-row: span 2; background: var(--blue-surface); }
.tile--m { grid-column: span 3; }
.tile--s { grid-column: span 2; }
.tile p { margin-bottom: var(--s2); flex: 1; }
.tile img { border-radius: 12px; width: 100%; min-height: 180px; margin-bottom: var(--s3); flex: 1; object-fit: cover; }

/* Zählpixel (Matomo, cookiefrei) */
.pixel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Hinweis unter Hero-Buttons */
.hint { margin-top: var(--s2); font-size: .9375rem; color: var(--text-muted); max-width: 40rem; }

/* HOW: zwei Säulen */
.pillars { display: grid; gap: var(--s2); }
.pillars .tile--l { grid-column: auto; grid-row: auto; }

/* Nutzen: vier Hebel */
.value { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.value li { border-top: 3px solid var(--blue); background: var(--grey-surface); border-radius: 0 0 var(--r-card) var(--r-card); padding: var(--s3); }
.value p { margin: 0; }

/* CTA-Band */
.band { background: var(--blue); color: var(--white); padding: var(--s5) 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.band h2 { color: var(--white); margin-bottom: var(--s1); }
.band p { margin: 0; max-width: 40rem; color: var(--white); }
.band .btn { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.band .btn:hover { background: var(--blue-dark); color: var(--white); border-color: var(--white); }

/* Ja-Schritte */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--r-card); padding: var(--s3) var(--s3) var(--s3) 72px; position: relative; box-shadow: 0 10px 28px rgba(27,42,56,.08); }
.steps li::before { content: counter(step); position: absolute; left: var(--s3); top: var(--s3); width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin-bottom: var(--s2); }

/* Ganze Kachel anklickbar: Die Linkfläche des Textlinks wird über die Kachel gelegt */
.tile { position: relative; }
.tile p { flex: none; }
.tile .link-arrow { margin-top: auto; }
.tile .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.tile:has(.link-arrow) { cursor: pointer; }
.tile:hover .link-arrow .arr { transform: translateX(4px); }
.tile:has(.link-arrow:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.tile .link-arrow:focus-visible { outline: none; }
/* Galerie */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grey-surface); }
.gallery figcaption { font-size: .875rem; color: var(--text-muted); margin-top: var(--s1); }

/* Zitat */
.quote { display: grid; grid-template-columns: 160px 1fr; gap: var(--s4); align-items: center; max-width: 900px; }
.quote img { border-radius: 50%; width: 160px; height: 160px; object-fit: cover; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); line-height: 1.35; color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }
.quote footer { font-size: .9375rem; color: var(--text-muted); }
.quote footer strong { color: var(--navy); }

/* Dunkle Sektion */
.dark { background: var(--navy); color: var(--text-on-dark); position: relative; overflow: hidden; }
.dark::after { content: ""; position: absolute; right: -240px; top: 50%; width: 600px; height: 600px; transform: translateY(-50%); background: url("../img/allgemein/kugel-800.webp") center / contain no-repeat; opacity: .1; pointer-events: none; }
.dark h2 { color: var(--white); }
.dark .wrap { position: relative; z-index: 1; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.dark a:not(.btn) { color: #8CC4EC; }

/* CTA-Sektion */
.cta { background: var(--blue-surface); }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: center; }
.cta-card { background: var(--white); border-radius: var(--r-card); padding: var(--s4); box-shadow: 0 10px 28px rgba(27,42,56,.08); }
.cta-card h3 { margin-bottom: var(--s1); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s5); }
.faq details { border-top: 1px solid var(--line); padding: var(--s2) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s2); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--border-ui); border-radius: 50%; display: grid; place-items: center; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq details p { margin: var(--s2) 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--text-on-dark); padding: var(--s5) 0 var(--s4); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); }
.site-footer a { color: var(--white); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer strong { color: var(--white); }

/* Unterseite */
.hero--sub { padding: var(--s5) 0 var(--s4); }
.hero--sub .wrap { max-width: 960px; }
.hero--sub h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.cols:has(.prose) { grid-template-columns: 1.7fr 1fr; gap: var(--s5); }
.cols aside img { border-radius: var(--r-card); width: 100%; height: auto; margin-bottom: var(--s3); }
.aside-card { background: var(--blue-surface); box-shadow: none; position: sticky; top: 96px; }
.dark .faq summary { color: var(--white); }
.dark .faq details, .dark .faq details:last-child { border-color: #3a4b5b; }
.dark .faq summary::after { border-color: var(--border-ui-dark); }

/* Tabelle (Design-Basis: Kopf auf grey-surface, Versalien, Rahmen 14 px) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th { background: var(--grey-surface); text-align: left; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: 14px var(--s3); }
tbody th, tbody td { text-align: left; padding: 16px var(--s3); border-top: 1px solid var(--line); vertical-align: top; }
tbody th { color: var(--navy); font-weight: 600; }
tbody tr:hover { background: var(--grey-surface); }
.note { margin-top: var(--s3); font-size: .9375rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* Icons (Inline-SVG-Sprite, Strich in currentColor) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 36px; flex: none; }
.ico--sm { width: 44px; height: 44px; font-size: 24px; }

/* Farbflächen für Kontrast zwischen den Sektionen */
.section--tint { background: var(--blue-surface); }
.section--grey { background: var(--grey-surface); }

/* Zeitleiste: fünf Schritte nebeneinander, Icon-Kreise auf gestrichelter Linie */
.flow { list-style: none; counter-reset: flow; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 36px; border-top: 3px dashed var(--blue); opacity: .5; }
.flow li { counter-increment: flow; position: relative; text-align: center; }
.flow .ico { margin: 0 auto var(--s2); position: relative; width: 84px; height: 84px; font-size: 42px; box-shadow: 0 0 0 10px var(--blue-surface); }
.flow .ico::after { content: counter(flow); position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .875rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--blue-surface); }
.flow h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.flow p { font-size: .9375rem; margin: 0; }

/* Tabelle mit starkem Kopf, Zebra und Icons */
.table-wrap--strong { border: 2px solid var(--navy); background: var(--white); box-shadow: 0 14px 34px rgba(27,42,56,.12); }
.table-wrap--strong thead th { background: var(--navy); color: var(--white); padding: 18px var(--s3); }
.table-wrap--strong tbody tr:nth-child(even) { background: var(--grey-surface); }
.table-wrap--strong tbody tr:hover { background: var(--blue-surface); }
.rowhead { display: flex; align-items: center; gap: var(--s2); }
.table-wrap--strong .ico--sm { background: var(--blue-surface); color: var(--blue); }

/* Bento-Karten (Ratgeber) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s2); }
.cards li { grid-column: span 4; background: var(--white); border-radius: var(--r-card); padding: var(--s4) var(--s3) var(--s3); box-shadow: 0 10px 28px rgba(27,42,56,.1); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.cards li:nth-child(n+4) { grid-column: span 6; }
.cards li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27,42,56,.16); }
.cards .num { position: absolute; right: var(--s3); top: var(--s1); font-size: 6rem; font-weight: 700; line-height: 1; color: var(--blue); opacity: .1; pointer-events: none; }
.cards .ico { margin-bottom: var(--s2); }
.cards h3 { font-size: 1.1875rem; }
.cards p { margin: 0; }

.cards--2 li, .cards--2 li:nth-child(n+4) { grid-column: span 6; }
.cards--2 li:last-child:nth-child(odd) { grid-column: span 12; }
.cards ~ .callout { margin-top: var(--s4); }
.media { border-radius: var(--r-card); width: 100%; height: auto; display: block; }
.cols--media { align-items: center; }
.cols--media .aside-card { position: static; }

/* Dunkle Hinweisfläche */
.callout { background: var(--navy); color: var(--text-on-dark); border-radius: var(--r-card); padding: var(--s5) var(--s4); display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; }
.callout h2 { color: var(--white); margin-bottom: var(--s1); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.callout p { margin: 0 0 var(--s1); }
.callout a { color: #8CC4EC; }
.callout .ico { background: var(--white); color: var(--blue); width: 88px; height: 88px; font-size: 44px; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: var(--s4); margin-top: var(--s3); }
  .flow::before { left: 41px; right: auto; top: 42px; bottom: 42px; border-top: 0; border-left: 3px dashed var(--blue); }
  .flow li { display: grid; grid-template-columns: 84px 1fr; column-gap: var(--s3); text-align: left; align-items: start; }
  .flow .ico { margin: 0; grid-row: span 2; }
  .flow h3 { align-self: end; }
  .cards li, .cards li:nth-child(n+4) { grid-column: span 6; }
  .cards li:last-child { grid-column: span 12; }
  .callout { grid-template-columns: 1fr; padding: var(--s4) var(--s3); }
}
@media (max-width: 560px) {
  .cards li, .cards li:nth-child(n+4), .cards li:last-child { grid-column: span 12; }
}

/* Menü (mobil): details/summary, ohne JavaScript nutzbar */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--border-ui); border-radius: var(--r-btn); color: var(--navy); background: var(--white); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: var(--blue); color: var(--blue); }
.menu .menu-close { display: none; }
.menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(27,42,56,.16); padding: var(--s1) var(--s3) var(--s3); max-height: calc(100vh - 64px); overflow-y: auto; }
.nav .menu-panel a { display: block; padding: 15px 4px; font-size: 1.0625rem; font-weight: 600; border-top: 1px solid var(--line); }
.nav .menu-panel a:first-child { border-top: 0; }
@media (max-width: 900px) { .menu { display: block; } }

/* Text-Seiten (Unterseiten) */
.prose { max-width: var(--content); }
.prose h2 { margin-top: var(--s5); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s1); }
.breadcrumb { font-size: .875rem; color: var(--text-muted); margin-bottom: var(--s2); }
.breadcrumb a { color: var(--text-muted); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile--l, .tile--m, .tile--s { grid-column: auto; grid-row: auto; }
  .cols, .cta .wrap, .faq { grid-template-columns: 1fr; gap: var(--s4); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .value { grid-template-columns: 1fr 1fr; }
  .cols:has(.prose) { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .quote { grid-template-columns: 1fr; gap: var(--s3); }
  .quote img { width: 120px; height: 120px; }
  .hero { padding: var(--s5) 0 var(--s4); }
  .hero::before { width: 360px; height: 360px; left: -200px; }
  .section { padding: var(--s5) 0; }
  .nav .nav-text { display: none; }
}
@media (max-width: 640px) {
  .site-header .wrap { min-height: 64px; gap: var(--s2); }
  .brand { white-space: nowrap; font-size: 1.0625rem; }
  .brand-text { display: none; }
  .brand img { height: 40px; }
  .btn--small { white-space: nowrap; padding: 8px 14px; font-size: .875rem; }
  .btn--small .arr { display: none; }
  .nav { flex-wrap: nowrap; gap: var(--s2); }
  .facts ul { grid-template-columns: 1fr 1fr; gap: var(--s3); }
}
@media (max-width: 560px) {
  .value { grid-template-columns: 1fr; }
  .steps li { padding-left: var(--s3); padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .cta, .dark::after, .hero::before { display: none; } }
