/*
Theme Name: Modunavo
Description: Webseite von Modunavo (On-Premise). Ausgerollt von der Rolle securenetics_wordpress (rbawx, files/site-themes/modunavo) – Aenderungen im Repository, nicht hier.
Author: Bruns Group
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: modunavo
*/

/* Farben, Schrift und Masse folgen dem Design-System von Modunavo
   (docs/00-fundament/design-tokens.css, Darstellung "Praezise") und der
   Marke (docs/00-fundament/07-marke.md). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --petrol: #0F766E;
  --petrol-dark: #115E59;
  --teal: #14B8A6;
  --mint: #2DD4BF;
  --graphite: #15181D;
  --graphite-2: #0D0F13;
  --ink: #0D1117;

  --bg: #FFFFFF;
  --bg-alt: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #F0F1F4;
  --border: #DCDFE4;
  --border-strong: #C5CAD2;
  --text: #0D1117;
  --text-muted: #555E6C;
  --text-subtle: #6B7381;
  --primary: #0F766E;
  --primary-hover: #115E59;
  --on-primary: #FFFFFF;
  --primary-text: #0F766E;
  --primary-soft: #E2F3F1;
  --info: #0B67A0;      --info-soft: #E5F2FA;
  --progress: #5B30C0;  --progress-soft: #F1ECFC;
  --warning: #A85407;   --warning-soft: #FDF1E0;
  --success: #127A3A;   --success-soft: #E6F5EC;
  --neutral: #475467;   --neutral-soft: #EEF0F3;
  --danger: #C0262D;    --danger-soft: #FCEBEC;
  --focus: #0F766E;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .08);

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0C0F;
    --bg-alt: #0D0F13;
    --surface: #111419;
    --surface-2: #161A20;
    --border: #242931;
    --border-strong: #323843;
    --text: #E2E5E9;
    --text-muted: #9AA2AF;
    --text-subtle: #8891A0;
    --primary: #14B8A6;
    --primary-hover: #2DD4BF;
    --on-primary: #03201C;
    --primary-text: #5EEAD4;
    --primary-soft: rgba(20, 184, 166, .15);
    --info: #5CC2F2;      --info-soft: rgba(40, 160, 220, .16);
    --progress: #B79CFF;  --progress-soft: rgba(140, 100, 255, .18);
    --warning: #F5B451;   --warning-soft: rgba(245, 166, 35, .15);
    --success: #5AD48A;   --success-soft: rgba(46, 180, 100, .16);
    --neutral: #B4BCC8;   --neutral-soft: #232831;
    --danger: #FF7A7F;    --danger-soft: rgba(240, 68, 75, .16);
    --focus: #2DD4BF;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--on-primary); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* --- Kopf ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.home-link { display: inline-flex; flex: none; }
.home-link img { display: block; height: 34px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links .current-menu-item > a, .nav-links a[aria-current="page"] { color: var(--primary-text); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; vertical-align: middle; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 12px; font-size: 1rem; }
}

/* --- Schaltflaechen ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .12s; }
.btn:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.on-dark .btn { background: var(--teal); color: #03201C; }
.on-dark .btn:hover { background: var(--mint); color: #03201C; }
.on-dark .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: #FFFFFF; }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Bausteine ------------------------------------------------------------ */
.eyebrow { margin-bottom: 14px; color: var(--primary-text); font: 500 .78rem/1.3 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.on-dark .eyebrow { color: var(--mint); }
.lead { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 + p { margin-top: 16px; }
.on-dark { background: var(--graphite); color: #E2E5E9; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #FFFFFF; }
.on-dark .lead, .on-dark p { color: #B4BCC8; }
.on-dark a:not(.btn) { color: #5EEAD4; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; background: var(--neutral-soft); color: var(--neutral); font: 500 .74rem/1.4 var(--font-sans); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live { background: var(--success-soft); color: var(--success); }
.chip.build { background: var(--progress-soft); color: var(--progress); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.warn { background: var(--warning-soft); color: var(--warning); }
.chip.plain::before { display: none; }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-text); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card p { color: var(--text-muted); font-size: .97rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
a.card { color: inherit; text-decoration: none; transition: border-color .12s, transform .12s; }
a.card:hover { border-color: var(--primary); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.card .more { margin-top: auto; padding-top: 6px; color: var(--primary-text); font-size: .92rem; font-weight: 600; }
.on-dark .card { background: #1A1E25; border-color: #2A3039; }
.on-dark .card p { color: #AEB6C2; }
.on-dark .icon-box { background: rgba(20, 184, 166, .16); color: var(--mint); }

.checks { display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9.3 2.6 2.6L13 6.4'/%3E%3C/svg%3E") center / 18px no-repeat; }
.on-dark .checks li { color: #B4BCC8; }
.on-dark .checks li strong { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .checks li::before { filter: brightness(1.9); } }
.on-dark .checks li::before { filter: brightness(1.9); }

/* --- Einstieg ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 82% -10%, rgba(20, 184, 166, .22), transparent 62%), linear-gradient(180deg, var(--graphite) 0%, var(--graphite-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { margin: 22px 0 30px; max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: #8E96A3; font: 400 .8rem/1.5 var(--font-mono); }
.hero-facts span::before { content: "▪"; margin-right: 8px; color: var(--teal); }
@media (max-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1fr); } }
.page-hero .hero-in { grid-template-columns: minmax(0, 1fr); padding: clamp(48px, 6vw, 84px) 0; }
.page-hero h1 { max-width: 18em; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { margin-bottom: 0; max-width: 44em; }

/* --- Hinweis unter Bildern ----------------------------------------------- */
.fig-note { margin-top: 12px; color: #6F7885; font: 400 .74rem/1.4 var(--font-mono); text-align: right; }
.section .fig-note { color: var(--text-subtle); }

/* --- Zweispaltige Abschnitte ---------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 + .lead, .split h2 + p { margin-top: 16px; }
.split .checks { margin-top: 26px; }
.split .btn-row { margin-top: 30px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }

/* --- Anbindungen ---------------------------------------------------------- */
.strip { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--text-muted); font-size: .92rem; }
.strip-in strong { margin-right: 6px; color: var(--text); font-weight: 600; }
.tag { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 500 .8rem/1.3 var(--font-mono); }

/* --- Module im Einzelnen (Seite Funktionen) ------------------------------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; }
.toc a:hover { border-color: var(--primary); color: var(--primary-text); }
.module { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module-nr { color: var(--text-subtle); font: 500 .8rem/1 var(--font-mono); letter-spacing: .08em; }
.module h2 { margin: 12px 0 14px; font-size: 1.7rem; }
.module-side p { color: var(--text-muted); font-size: 1rem; }
.module-side .chip { margin-top: 18px; }
.module .feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.feat h3 { margin-bottom: 6px; font-size: 1.02rem; }
.feat p { color: var(--text-muted); font-size: .95rem; }
@media (max-width: 900px) { .module { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .module .feat { grid-template-columns: minmax(0, 1fr); } }

/* --- Tabelle, Schritte ---------------------------------------------------- */
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: .96rem; }
.spec th, .spec td { padding: 14px 18px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 30%; color: var(--text); font-weight: 600; }
.spec td { color: var(--text-muted); }
.spec code, .prose code { padding: 1px 5px; border-radius: 3px; background: var(--surface-2); color: var(--text); font: 400 .88em var(--font-mono); }
@media (max-width: 640px) { .spec th, .spec td { display: block; width: 100%; } .spec td { border-top: 0; padding-top: 0; } }
.steps { counter-reset: step; }
.steps .card { counter-increment: step; }
.steps .card::before { content: "0" counter(step); color: var(--primary-text); font: 500 .85rem/1 var(--font-mono); letter-spacing: .08em; }

/* --- Aufruf --------------------------------------------------------------- */
.cta { background: radial-gradient(900px 380px at 15% 120%, rgba(20, 184, 166, .22), transparent 60%), var(--graphite); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(48px, 6vw, 80px) 0; }
.cta h2 { max-width: 18em; }
.cta p { margin-top: 12px; max-width: 38em; }

/* --- Formular ------------------------------------------------------------- */
.form-panel { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-panel form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-panel label { display: grid; gap: 6px; color: var(--text); font-size: .92rem; font-weight: 500; }
.form-panel input:not([type="checkbox"]), .form-panel select, .form-panel textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font-sans); }
.form-panel textarea { min-height: 130px; resize: vertical; }
.form-panel input:focus-visible, .form-panel select:focus-visible, .form-panel textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.form-panel .consent { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text-muted); font-weight: 400; }
.form-panel .consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--text-subtle); font-size: .85rem; }
.form-message { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.form-message.success { background: var(--success-soft); color: var(--success); }
.form-message.error { background: var(--danger-soft); color: var(--danger); }

/* --- Textseiten ----------------------------------------------------------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }

/* --- Fuss ----------------------------------------------------------------- */
.site-footer { background: var(--graphite-2); color: #9AA2AF; font-size: .93rem; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding: 56px 0 40px; }
.footer-in img { display: block; height: 32px; width: auto; margin-bottom: 16px; }
.footer-in p { max-width: 30em; }
.footer-in h2 { margin-bottom: 14px; color: #FFFFFF; font: 500 .76rem/1.3 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.footer-in li + li { margin-top: 8px; }
.site-footer a { color: #C5CAD3; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid #1C2027; font-size: .85rem; }
@media (max-width: 760px) { .footer-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* --- Bildschirmfotos der Anwendung (echte Oberflaeche, erfundene Daten) ---- */
.shot { position: relative; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #FFFFFF; box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #E9EBEF; border-bottom: 1px solid #DCDFE4; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C5CAD2; }
.shot-bar span { margin-left: 8px; color: #555E6C; font: 500 10.5px/1 var(--font-mono); letter-spacing: .02em; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #F3F4F6; }
.shot a { display: block; cursor: zoom-in; }
.shot a:focus-visible { outline-offset: -3px; }
.on-dark .shot { border-color: #2A3039; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.on-dark .shot-bar { background: #0D0F13; border-bottom-color: #1C2027; }
.on-dark .shot-bar i { background: #323843; }
.on-dark .shot-bar span { color: #8E96A3; }
@media (prefers-color-scheme: dark) { .shot { border-color: var(--border-strong); } }
.shot-caption { margin-top: 12px; color: var(--text-subtle); font-size: .86rem; }
.shot-caption strong { color: var(--text); font-weight: 600; }
.on-dark .shot-caption, .hero .fig-note { color: #8E96A3; }
.on-dark .shot-caption strong { color: #E2E5E9; }

/* Schraeg gestaffelte Bilder im Einstieg: Hauptbild mit Portal davor */
.hero-shots { position: relative; padding-bottom: 46px; }
.hero-shots .shot-front { position: absolute; right: -18px; bottom: 0; width: 46%; }
@media (max-width: 980px) { .hero-shots .shot-front { right: 0; } }
@media (max-width: 560px) { .hero-shots { padding-bottom: 0; } .hero-shots .shot-front { display: none; } }

/* Zahlen in einer Zeile */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stats div { padding: 22px 24px; background: var(--surface); }
.stats strong { display: block; color: var(--text); font: 600 1.55rem/1.15 var(--font-sans); letter-spacing: -.02em; }
.stats span { display: block; margin-top: 6px; color: var(--text-muted); font-size: .92rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Reiter ohne Skript: Bildwechsel ueber Anker (Startseite, Abschnitt Einblicke) */
.tour { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tour-list { display: grid; gap: 4px; }
.tour-list a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.tour-list a small { color: var(--text-muted); font-size: .86rem; }
.tour-list a:hover { background: var(--surface); border-color: var(--border); }
.tour-list a[aria-current="true"] { background: var(--surface); border-color: var(--border); box-shadow: inset 3px 0 0 var(--primary); }
.tour-list a strong { font-weight: 600; }
.tour-stage > figure { display: none; margin: 0; scroll-margin-top: 96px; }
.tour-stage > figure:first-child { display: block; }
.tour-stage:has(> figure:target) > figure:first-child:not(:target) { display: none; }
.tour-stage > figure:target { display: block; }
.tour-stage.is-ready > figure { display: none; }
.tour-stage.is-ready > figure.is-active { display: block; }
@media (max-width: 900px) { .tour { grid-template-columns: minmax(0, 1fr); } .tour-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tour-list { grid-template-columns: minmax(0, 1fr); } }

/* Galerie (Seite Einblicke) */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.gallery > figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery figcaption { margin-top: 14px; }
.gallery figcaption h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 1.05rem; }
.gallery figcaption p { margin-top: 6px; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Bild eines Moduls auf der Seite Funktionen */
.module-shot { grid-column: 1 / -1; margin-top: 8px; }
.module-shot .shot { max-width: 980px; }

/* Hinweis zum Stand eines Teils */
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--progress); border-radius: var(--radius-sm); background: var(--progress-soft); color: var(--text); font-size: .92rem; }
.card .note { margin-top: 4px; padding: 8px 10px; font-size: .85rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* Vergroesserung (dialog, site.js); ohne Skript oeffnet der Link das Bild */
.lightbox { width: fit-content; max-width: 96vw; max-height: 96vh; margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 10, 13, .86); }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 86vh; margin: 0 auto; border-radius: var(--radius); background: #FFFFFF; }
.lightbox p { width: 0; min-width: 100%; margin-top: 10px; color: #C5CAD3; font-size: .92rem; text-align: center; }
.lightbox button { position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #323843; border-radius: 50%; background: #15181D; color: #FFFFFF; cursor: pointer; }
.lightbox button svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .lightbox button { top: 6px; right: 6px; } }
