/* port.css — Ergänzungen des statischen Ports.
   Ersetzt React-Zustände (Inline-Styles, onMouseEnter) durch Klassen. tokens.css und site.css bleiben unverändert. */

/* Hover (vorher onMouseEnter/onMouseLeave mit Inline-Styles) */
.hv-ds1:hover { background: var(--ds-1) !important; }
.hv-accent-bg:hover { background: var(--signal-active) !important; }
.hv-accent:hover { background: var(--signal-active) !important; color: var(--on-accent) !important; }
.hv-accent-solid:hover { background: var(--signal-active) !important; color: var(--on-accent) !important; opacity: 1 !important; }

/* FAQ */
.faq-plus { transition: transform .2s; }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }

/* Testimonial-Slider */
.testi-slide[hidden] { display: none; }
.testi-dots { display: flex; gap: 8px; margin-top: 32px; }
.testi-dots button { width: 12px; height: 6px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.2); transition: all .3s; }
.testi-dots button.is-active { width: 32px; background: var(--signal-active); }

/* NIS-2-Check */
.nis2-opt { padding: 18px 24px; border-radius: 12px; background: var(--chip-bg); border: 1.5px solid var(--hairline);
  color: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: all .15s; font-family: inherit; }
.nis2-opt:hover, .nis2-opt:focus-visible { border-color: var(--signal-active); background: rgba(144,255,75,.12); }
.nis2-form[hidden], .nis2-result[hidden] { display: none; }

/* Team-Fotos (vorher <image-slot>) */
.team-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.team-photo--empty { background: rgba(127,127,127,.08); }

/* Mobile Navigation (Prototyp hatte nur den Burger ohne Menü) */
@media (max-width: 1100px) {
  .nav-links.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 28px 20px; background: rgba(35,49,73,.97); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; }
  .nav-links.is-open a { padding: 12px 0; }
  html[data-theme="light"] .nav-links.is-open { background: rgba(255,255,255,.98); border-bottom-color: rgba(31,42,68,.07); }
}

/* Fließtext (Impressum/Datenschutz) — vorher <style> im Kopf der Seite */
.legal h2 { margin-top: 48px; }
.legal h3 { margin-top: 32px; opacity: .9; }
.legal p, .legal li { opacity: .82; line-height: 1.7; max-width: 70ch; }
.legal ul { padding-left: 20px; }
.legal a, .map-consent a { text-decoration: underline; }

/* Footer-Überschriften als h2 (Validator: keine übersprungenen Ebenen) */
.footer .footer-h { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin: 0 0 18px; }

/* Formulare aus dem Contao-Formulargenerator im Design des Prototyps */
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ds-form .widget { margin-bottom: 16px; }
.ds-form .form-row .widget, .ds-form .form-inline .widget { margin-bottom: 0; }
.ds-form .widget.mb18 { margin-bottom: 18px; }
.ds-form .widget-submit, .ds-form .widget-checkbox { margin-bottom: 0; }
.ds-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; opacity: .8; margin-bottom: 22px; line-height: 1.5; }
.ds-consent input { margin-top: 4px; flex: 0 0 auto; }
.ds-consent a, .ds-contact-card a { text-decoration: underline; }
.ds-contact-card p { margin: 0; opacity: .85; line-height: 1.7; }
.ds-form .error { margin: 0 0 8px; font-size: 13px; color: var(--campaign-red, #DD0D0D); font-weight: 600; }
.ds-form .help { margin: 6px 0 0; font-size: 13px; opacity: .65; }
.ds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-confirmation { padding: 32px; border-radius: 14px; background: rgba(144,255,75,.08); border: 1.5px solid var(--signal-active); }
.form-confirmation p { margin: 8px 0 0; opacity: .85; }
.form-confirmation p:first-child { margin: 0; font-size: 18px; font-weight: 700; color: var(--signal-active); opacity: 1; }
html[data-theme="light"] .form-confirmation p:first-child { color: var(--ink); }
/* Whitepaper: Feld und Button in einer Zeile, schmale Spalte, kleinere Einwilligung */
.form-whitepaper .formbody { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.form-whitepaper .form-inline { display: flex; gap: 10px; }
.form-whitepaper .form-inline .widget-text { flex: 1 1 0%; }
.form-whitepaper .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-whitepaper .ds-consent { font-size: 13px; margin-bottom: 0; }
.form-whitepaper .ds-consent input { margin-top: 3px; }

/* Barrierefreiheit (Phase 5): Kontraste im hellen Theme nach dem Prinzip des Design-Systems (dunkle Schrift statt grüner Schrift) */
.ds-goal { color: rgba(144,255,75,.55); }
html[data-theme="light"] .ds-goal:not(.hero-band .ds-goal):not(.footer .ds-goal) { color: var(--ink); opacity: .55; }
html[data-theme="light"] .ds-goal:not(.hero-band .ds-goal):not(.footer .ds-goal)::after { display: none; }
.ds-flag { color: rgb(224,90,90); }
html[data-theme="light"] .ds-flag { color: rgb(176,36,36); }
/* Slider-Punkte: Klickfläche 24 px hoch, sichtbarer Balken bleibt 6 px */
.testi-dots { gap: 12px; }
.testi-dots button { position: relative; height: 24px; background: transparent !important; }
.testi-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); transition: all .3s; }
html[data-theme="light"] .testi-dots button::before { background: rgba(31,42,68,.2); }
.testi-dots button.is-active::before { background: var(--signal-active); }
.testi-dots button:focus-visible { outline: 2px solid var(--signal-active); outline-offset: 2px; }

/* Navigation im hellen Theme: aktiver und überfahrener Menüpunkt dunkel mit grüner Unterstreichung (Kontrast) */
html[data-theme="light"] .nav-bar nav a.active,
html[data-theme="light"] .nav-bar nav a:hover {
  color: var(--ink);
  background: linear-gradient(to top, var(--signal-active) 0.32em, transparent 0.32em);
}

/* <picture> (WebP + Rückfall) soll das Layout nicht verändern: das Bild verhält sich wie ein direktes Kind */
picture { display: contents; }

/* ── AI-Seite (29.09.2026): Themenzeilen, Kästen, Projekt, Pakete-Tabelle ─────────────────── */
.ds-kicker { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: #2F7A12; margin-bottom: 6px; }
.hero-band .ds-kicker, .footer .ds-kicker { color: var(--signal-active); }
.ds-eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ds-eyebrow-row .eyebrow { margin-bottom: 0; }
.ds-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .8; }
.ds-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds-checks li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.ds-checks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-active); }
.ds-rows { display: grid; gap: 72px; }
.ds-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ds-row--flip .ds-row-text { order: 2; }
.ds-row--solo { grid-template-columns: minmax(0, 760px); }
.ds-row-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
.ds-row-lead { margin: 0 0 20px; font-size: 16px; line-height: 1.6; opacity: .82; }
.ds-panel { padding: 20px; }
.ds-phases, .ds-sources, .ds-stages { list-style: none; margin: 0; padding: 0; display: grid; }
.ds-phases li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.ds-phases li:last-child { border-bottom: 0; }
.ds-phase-num { width: 28px; height: 28px; border-radius: 50%; background: #243149; color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.ds-phases strong, .ds-sources strong, .ds-stages strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ds-phases p, .ds-stages p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; opacity: .75; }
.ds-sources { gap: 10px; }
.ds-sources li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; }
.ds-sources span { font-size: 13px; opacity: .75; }
.ds-status { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--hairline); opacity: 1 !important; }
.ds-status--ok { background: rgba(144,255,75,.28); border-color: transparent; }
.ds-status--limited { background: var(--chip-bg); border-color: transparent; }
.ds-stages { gap: 10px; }
.ds-stages li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--hairline); border-radius: 10px; }
.ds-stages .ds-kicker { margin: 6px 0 0; }
.ds-stage-letter { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--on-accent); background: var(--signal-active); }
.ds-stage-letter--2 { background: rgba(144,255,75,.45); }
.ds-stage-letter--3 { background: transparent; border: 2px solid var(--signal-active); color: inherit; }
.ds-hub { position: relative; min-height: 240px; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 8px; align-items: center; justify-items: center; }
.ds-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-hub-lines line { stroke: var(--hairline); stroke-width: .6; vector-effect: non-scaling-stroke; }
.ds-hub-node { position: relative; background: var(--ds-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 8px 12px; text-align: center; font-size: 12px; line-height: 1.35; }
.ds-hub-node strong { display: block; font-family: var(--font-display); font-size: 13px; }
.ds-hub-node span { opacity: .7; }
.ds-hub-node--1 { grid-area: 1 / 1; } .ds-hub-node--2 { grid-area: 1 / 3; } .ds-hub-node--3 { grid-area: 3 / 1; } .ds-hub-node--4 { grid-area: 3 / 3; }
.ds-hub-center { position: relative; grid-area: 2 / 2; width: 104px; height: 104px; border-radius: 50%; background: #243149; color: #fff; display: grid; place-content: center; text-align: center; padding: 8px; font-size: 11px; line-height: 1.3; }
.ds-hub-center strong { color: var(--signal-active); font-family: var(--font-display); font-size: 14px; }
.ds-hub-label { position: relative; font-family: var(--font-mono); font-size: 10.5px; color: #2F7A12; }
.ds-hub-label--1 { grid-area: 1 / 2; } .ds-hub-label--2 { grid-area: 3 / 2; }
.ds-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.ds-step { background: var(--ds-2); padding: 24px; }
html[data-theme="light"] .ds-step, html[data-theme="light"] .ds-hub-node { background: #fff; }
.ds-step--hi { background: #EAF7E0 !important; }
.ds-step-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 4px 0 4px; }
.ds-step-tag { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 10px; }
.ds-step-text { margin: 0; font-size: 14px; line-height: 1.55; opacity: .75; }
.ds-level-track { list-style: none; margin: 0 0 20px; padding: 0 12%; display: flex; justify-content: space-between; position: relative; }
.ds-level-track::before { content: ''; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--hairline); }
.ds-level-track span { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--signal-active); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; box-shadow: 0 0 0 6px var(--signal-glow); }
.ds-level-card { height: 100%; padding: 28px; display: flex; flex-direction: column; }
.ds-level-card--hi { border: 1.5px solid var(--ink); }
.ds-level-foot { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; opacity: .8; }
.ds-level-card .ds-checks { margin-bottom: 20px; }
.ds-table-wrap { margin-top: 32px; overflow-x: auto; }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ds-table th, .ds-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.ds-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.ds-table tbody th { font-weight: 600; white-space: nowrap; }
.ds-pkg { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--chip-bg); }
@media (max-width: 880px) {
  .ds-row, .ds-row--solo { grid-template-columns: 1fr; gap: 28px; }
  .ds-row--flip .ds-row-text { order: 0; }
  .ds-steps { grid-template-columns: 1fr !important; }
  .ds-level-track { display: none; }
}
/* „Was es bringt“: Zeilen ohne Aufzählungspunkte (29.09.2026) */
.ds-rows .ds-checks li { padding-left: 0; }
.ds-rows .ds-checks li::before { content: none; }
/* Hervorgehobener Hinweis (AI-Projekt) */
.ds-callout { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--signal-active); border-radius: 0 12px 12px 0; background: rgba(170, 255, 106, .10); font-size: 16px; line-height: 1.6; }
.ds-callout strong { color: var(--signal-active); }
html[data-theme="light"] .ds-callout { background: #EAF7E0; }
html[data-theme="light"] .ds-callout strong { color: #2F7A12; }
