/* infra-struktur – Verschlüsselte Nachricht (password.infra-struktur.info)
   Corporate Design 2026 wie neu.infra-struktur.de (Primär #004994, Akzent #26a69a, Verlauf, Hintergrund #f5f6fb),
   gleicher Aufbau wie der Dokumenten-Download (landingpages/docs-download/).
   Ersetzt /css/password.css; Bootstrap und Font Awesome werden nicht mehr gebraucht. Die Klasse d-none, die
   /js/password.js schaltet, ist hier definiert.
   Schrift: Lato (SIL OFL 1.1), lokal in /fonts/. Icons: Font Awesome Free 6 (CC BY 4.0), Sprite in der HTML-Datei. */

@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Corporate Design */
  --primary: #004994;
  --primary-700: #003c7a;
  --accent: #26a69a;
  --accent-700: #15706a; /* dunkles Türkis für Schrift: ≥ 4,5:1 auf Weiß und auf --accent-50 (WCAG AA) */
  --accent-50: #e6f5f3;
  --bg: #f5f6fb;
  --tile: #ffffff;
  --tile-2: #dfe8f7;
  --ink: #000000;
  --lavender: #8e9aca;
  --gradient: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);

  /* Ableitungen */
  --text: #1a1f2b;
  --muted: #4b5568;
  --line: #e3e8f2;
  --field-line: #aebbd4;
  --field-line-hover: #7c8aa6;
  --error: #c62828;
  --error-ink: #8e1c1c;
  --error-bg: #fdecea;
  --white: #fff;

  --radius: 16px;
  --shadow-s: 0 1px 2px rgba(0, 38, 80, .06), 0 4px 14px -6px rgba(0, 38, 80, .14);
  --shadow: 0 2px 6px rgba(0, 38, 80, .05), 0 22px 44px -22px rgba(0, 38, 80, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad: clamp(1.25rem, 3.4vw, 2.25rem); /* Innenabstand von Kopfleiste und Kachel: Kanten bündig */
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Zustand aus /js/password.js (vorher Bootstrap) */
.d-none { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--text);
  /* Hintergrund wie der Seitenkopf von neu.infra-struktur.de (.hero__bg), wie beim Dokumenten-Download */
  background:
    radial-gradient(50% 60% at 90% 25%, rgba(38, 166, 154, .16), transparent 70%),
    radial-gradient(45% 55% at 0% 0%, rgba(0, 73, 148, .10), transparent 70%),
    linear-gradient(180deg, #e9eef9 0%, var(--bg) 85%) var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.nb { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fokusring in Primärblau, auf dem Verlauf weiß */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
:is(.site-header__bar, .site-footer) :focus-visible { outline-color: var(--white); }

/* Subheadline laut CD: fett, Versalien, gesperrt, Primärfarbe */
.eyebrow {
  color: var(--primary);
  font-size: .8125rem; font-weight: 900; letter-spacing: .12em; line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.4em;
  border: 1.5px solid transparent; border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
/* „infra-struktur“ in span.nb fließt im Flex-Button als Text mit (kein eigener Abstand) */
.btn .nb { display: contents; }
.btn--lg { min-height: 54px; padding: 0 1.6em; font-size: 1.0625rem; }

/* Hauptaktion: Primärblau */
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 12px 24px -14px rgba(0, 73, 148, .9); }
.btn--primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: 0 16px 28px -14px rgba(0, 73, 148, .95); }

/* Zweitaktion auf hellem Grund */
.btn--ghost { border-color: var(--primary); background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--tile-2); }
.btn--ghost:hover .icon { transform: translateX(3px); }

/* „Erfahre mehr über infra-struktur“ auf dem Verlauf im Footer: weiß mit Primärblau */
.btn--white { background: var(--white); color: var(--primary); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.btn--white:hover { background: #eef3fb; transform: translateY(-1px); }
.btn--white:hover .icon { transform: translateX(3px); }

.btn:active { transform: none; }

/* ---------- Kopfleiste: Verlauf, so breit wie der Inhalt ---------- */

.site-header { padding-top: 10px; }
.site-header__bar {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1rem var(--pad) 1.05rem;
  border-radius: 14px;
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 30px -18px rgba(0, 38, 80, .8);
}
/* Logo-Link: Tippfläche unsichtbar auf mind. 44 px Höhe vergrößert */
.brand { position: relative; display: inline-flex; flex: none; border-radius: 6px; }
.brand::after { content: ""; position: absolute; inset: -10px -6px; }
.logo { display: block; width: auto; height: 24px; --logo-a: var(--primary); --logo-b: var(--lavender); }
.logo--white { --logo-a: #fff; --logo-b: rgba(255, 255, 255, .55); }
.site-header__title { color: var(--white); font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.625rem); font-weight: 900; line-height: 1.2; }
.site-header__sub { margin-top: .15rem; color: rgba(255, 255, 255, .9); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 640px) {
  .site-header__bar { flex-direction: row; align-items: center; gap: 1.5rem; padding-block: 1.05rem 1.1rem; }
  /* Logo | Titel: feine Trennlinie zwischen Marke und Seitentitel */
  .site-header__text { padding-left: 1.5rem; border-left: 1px solid rgba(255, 255, 255, .35); }
  .logo { height: 26px; }
}

/* ---------- Hauptbereich ---------- */

.main {
  position: relative; isolation: isolate;
  flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.75rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}
/* Netzwerk-Grafik wie im Seitenkopf von neu (.hero__deco): vollständig, unten rechts, höchstens 900 px breit,
   Deckkraft .28, läuft nach links transparent aus */
.main::before {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(900px, 100%); aspect-ratio: 1625 / 500;
  background: url("/images/deco-netz.webp") center / contain no-repeat;
  opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  pointer-events: none;
}
/* Unter 1024 px steht „So funktioniert's“ unten über der Grafik: dort zurückhaltender, damit der Text gut lesbar bleibt */
@media (max-width: 1023.98px) {
  .main::before { opacity: .14; }
}

.main__grid { display: grid; gap: clamp(2.25rem, 6vw, 3.5rem); }

/* ---------- Kachel ---------- */

.vn-card {
  display: flex; flex-direction: column;
  min-width: 0;
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: var(--shadow);
}
.vn-card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 12px;
  background: var(--tile-2); color: var(--primary);
}
.vn-card__icon .icon { width: 22px; height: 22px; }
.vn-card__title { margin-top: .3rem; font-size: clamp(1.3125rem, 1.15rem + .6vw, 1.5rem); font-weight: 900; line-height: 1.3; }

.vn-form { display: grid; margin-top: 1.5rem; }
.vn-label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .9375rem; font-weight: 700; }

/* Textfeld mit „Löschen“ oben rechts */
.vn-field { position: relative; }
.vn-field__input {
  display: block; width: 100%; min-height: 9.5rem; padding: .85rem 3.4rem .85rem 1rem;
  border: 1.5px solid var(--field-line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.55;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.vn-field__input::placeholder { color: #6b7488; opacity: 1; }
.vn-field__input:hover { border-color: var(--field-line-hover); }
.vn-field__input:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 73, 148, .14); }
/* Ergebnis (nur lesen): weiß, Rahmen in Akzentfarbe */
.vn-field__input[readonly] { padding-right: 1rem; border-color: var(--accent); background: var(--white); }
.vn-field__input[readonly]:focus { box-shadow: 0 0 0 4px rgba(38, 166, 154, .18); }

.vn-field__clear {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.vn-field__clear:hover { background: var(--tile-2); color: var(--primary); }
.vn-field__clear:focus-visible { outline-offset: -3px; }
.vn-field__clear .icon { width: 18px; height: 18px; }

.vn-hint { display: flex; align-items: flex-start; gap: .5rem; margin-top: .6rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.vn-hint .icon { width: 1rem; height: 1rem; margin-top: .15rem; color: var(--accent-700); }

.vn-actions { margin-top: 1.5rem; }
/* Button in der Kachel volle Breite, in sehr breiten Kacheln begrenzt */
.vn-actions .btn { width: 100%; max-width: 32rem; }

/* Hinweis „Nur einmal anzeigen“ vor dem Öffnen */
.vn-info {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  border-radius: 10px; background: var(--accent-50); color: var(--text);
  font-size: .9375rem; line-height: 1.55;
}
.vn-info .icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--accent-700); }
.vn-info strong { color: var(--ink); }

/* Fehler */
.vn-alert {
  display: flex; align-items: flex-start; gap: .85rem;
  margin-top: 1.25rem; padding: 1rem 1.15rem;
  border-radius: 10px; background: var(--error-bg); color: var(--error-ink);
}
.vn-alert__icon { width: 1.35rem; height: 1.35rem; margin-top: .15rem; color: var(--error); }
.vn-alert__title { color: var(--error-ink); font-size: 1.0625rem; font-weight: 900; line-height: 1.4; }
.vn-alert__text { margin-top: .2rem; font-size: .9375rem; line-height: 1.5; }

/* Hinweis unten in der Kachel, führt zum Footer */
.vn-note {
  display: flex; align-items: center; gap: .55rem;
  margin-top: auto; padding-top: 1.75rem;
  color: var(--muted); font-size: .875rem; line-height: 1.45;
}
.vn-note .icon { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.vn-note a { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(0, 73, 148, .35); text-underline-offset: 3px; }
.vn-note a:hover { text-decoration-color: currentColor; }

.vn-noscript { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: var(--error-bg); color: var(--error-ink); font-size: .9375rem; font-weight: 700; line-height: 1.5; }

/* ---------- Rechte Spalte: So funktioniert's ---------- */

.vn-aside { display: grid; align-content: start; gap: 1.25rem; min-width: 0; }
.vn-aside__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.4375rem); font-weight: 900; line-height: 1.3; }
.vn-aside__text { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.vn-steps { display: grid; gap: 1rem; counter-reset: schritt; }
.vn-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: start;
  counter-increment: schritt;
}
.vn-steps li::before {
  content: counter(schritt);
  grid-row: span 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); color: var(--white);
  font-weight: 900; font-size: 1rem; line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(0, 73, 148, .8);
}
.vn-steps strong { color: var(--ink); font-weight: 900; line-height: 1.35; padding-top: .45rem; }
.vn-steps span { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.vn-aside .btn { justify-self: start; }

/* ---------- Footer: Verlauf, schlank ---------- */

.site-footer {
  position: relative; isolation: isolate; overflow: hidden;
  flex-shrink: 0;
  padding: clamp(2rem, 5vw, 2.75rem) 0 1.5rem;
  background: var(--gradient);
  color: rgba(255, 255, 255, .88); font-size: .9375rem; line-height: 1.6;
}
/* Netzwerk-Grafik weiß, vollständig, unten rechts */
.site-footer::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0;
  width: min(820px, 100%); height: 100%;
  background: url("/images/deco-netz-weiss.webp") right bottom / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.site-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; }
.site-footer__about { display: grid; justify-items: start; gap: .85rem; max-width: 34rem; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; color: var(--white); font-size: 1.0625rem; font-weight: 700; }
.site-footer__brand .logo { height: 28px; }
.site-footer__text { color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.site-footer__about .btn { margin-top: .35rem; }

/* Social Media wie im Footer von neu: runde Icon-Knöpfe, 44 px Tippfläche */
.site-footer__social { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer__social-link {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--white);
  transition: background-color .3s, border-color .3s, transform .2s var(--ease);
}
.site-footer__social-link:hover, .site-footer__social-link:focus-visible { border-color: var(--white); background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.site-footer__social-link .icon { width: 18px; height: 18px; }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.site-footer__copy { color: rgba(255, 255, 255, .8); font-size: .875rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; margin-inline: -.75rem; }

/* Links auf dem Verlauf (wiki/design.md): Text #dfe8f7 → weiß, dahinter blendet eine helle Fläche ein */
.on-gradient-link {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: .45rem .75rem; border-radius: 7px;
  color: var(--tile-2); font-size: .875rem; font-weight: 700; text-decoration: none;
  transition: color .4s;
}
.on-gradient-link::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: rgba(255, 255, 255, .24);
  opacity: 0; transition: opacity .4s;
}
.on-gradient-link:hover, .on-gradient-link:focus-visible { color: var(--white); }
.on-gradient-link:hover::before, .on-gradient-link:focus-visible::before { opacity: 1; }

/* ---------- Breiten ---------- */

@media (min-width: 1024px) {
  /* Kachel links, rechts „So funktioniert's“; oben bündig, die Kachel wächst je nach Zustand nur nach unten */
  .main__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(3rem, 5vw, 5rem); }
  .vn-aside { padding-top: var(--pad); }
}

/* ---------- Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .icon, .site-footer__social-link { transition: none; }
  .btn:hover, .btn:hover .icon, .site-footer__social-link:hover { transform: none; }
}
