/* ==========================================================================
   TKNZD Ventures — Design-System

   Haltung: Ruhe und Weissraum. Angelehnt an die Bildsprache klassischer
   Privatbanken - grosse Bildflaechen, elegante Titelschrift, sehr wenige
   Zierelemente. Zwei Farben (Tiefblau und Weiss) plus eine helle Tonflaeche.

   Bewusst NICHT verwendet, weil es nach Baukasten aussieht: Versal-Label
   ueber jeder Ueberschrift, durchnummerierte Abschnitte, dreispaltige
   Nummernraster, Monospace fuer Adressen, Status-Punkte, Rahmen um alles.
   Struktur entsteht hier durch Abstand, nicht durch Linien.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nur eine Schriftfamilie. Die Wortmarke des Logos ist eine Grotesk -
   eine Serife in den Ueberschriften wuerde dagegen arbeiten. Vorher standen
   hier nacheinander Source Serif, Bodoni Moda und Libre Caslon; alle drei
   sind mit dem neuen Logo hinfaellig. */

:root {
  /* Hausfarbe direkt aus der Logodatei ausgelesen: #052E7C (APLAI-Logo,
     minimal dunkler/gesaettigter als das vorherige #032A6F). */
  --blau:        #052E7C;
  --blau-hell:   #24539F;
  --blau-schrift:#052E7C;

  --paper:  #FFFFFF;
  --tint:   #F3F5FA;
  --rule:   #E2E7F0;
  --rule-2: #C3CCDD;

  --ink:    #052E7C;
  --ink-2:  #465269;
  --ink-3:  #616B7E;   /* traegt auf Papier UND Tonflaeche ueber 4,5:1 */
  --hell:   #FFFFFF;
  --hell-2: #B9C6E0;

  --wrap:    1240px;
  --wrap-eng: 780px;
  --gutter:  32px;

  --step:   clamp(80px, 10vw, 152px);
  --step-s: clamp(52px, 6vw, 88px);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--blau); color: #FFF; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
/* Enge Laufweite und halbfett - so ist auch die Wortmarke gesetzt. */
.display {
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.014em; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blau-schrift); text-decoration: none; }
a:hover { color: var(--blau-hell); }

strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--blau-hell); outline-offset: 3px; }
[id] { scroll-margin-top: 100px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eng  { max-width: var(--wrap-eng); }

.section { padding-block: var(--step); }
.section--s { padding-block: var(--step-s); }
.section--tint { background: var(--tint); }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

.muted { color: var(--ink-3); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blau); color: #FFF; padding: 12px 18px; font-size: .9rem;
}
.skip-link:focus { left: 16px; top: 16px; color: #FFF; }

/* Nur fuer Screenreader/SEO: die Katalogseite hat keine sichtbare
   Ueberschrift mehr (bewusst - "Unsere Apps." plus Vorspann waren zu viel
   Text vor den Kacheln), aber ein H1 sollte trotzdem jede Seite tragen. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Kopfzeile ---------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 88px;
}

.brand { display: inline-flex; align-items: center; }
/* Das Logo enthaelt Bild- und Wortmarke; es braucht mehr Hoehe als eine
   reine Wortmarke, sonst wird der Schriftzug zu klein. */
.brand img { height: 34px; width: auto; }
@media (max-width: 560px) { .brand img { height: 28px; } }
.colophon .brand img { height: 32px; }

.mainnav { display: flex; align-items: center; gap: 34px; }
.mainnav a {
  font-size: .9375rem;
  font-weight: 400;
  color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blau); }

/* Nur auf der Startseite: die Kopfzeile geht nahtlos in die dunkle
   Katalogflaeche darunter über, statt als weisser Balken davorzustehen. */
.masthead--auf-dunkel {
  background: rgba(5, 46, 124, .92);
  border-bottom-color: rgba(255, 255, 255, .14);
}
.masthead--auf-dunkel .mainnav a { color: rgba(255, 255, 255, .7); }
.masthead--auf-dunkel .mainnav a:hover { color: #FFF; border-bottom-color: rgba(255,255,255,.4); }
.masthead--auf-dunkel .mainnav a[aria-current="page"] { color: #FFF; border-bottom-color: #FFF; }
.masthead--auf-dunkel .navtoggle { border-color: rgba(255,255,255,.35); color: #FFF; }
@media (max-width: 900px) {
  .masthead--auf-dunkel .mainnav { background: var(--blau); border-bottom-color: rgba(255,255,255,.14); }
  .masthead--auf-dunkel .mainnav a { border-bottom-color: rgba(255,255,255,.14); }
}

.navtoggle {
  display: none;
  padding: 10px 16px;
  background: none; border: 1px solid var(--rule-2); border-radius: 0;
  color: var(--ink); font: inherit; font-size: .875rem; cursor: pointer;
}

@media (max-width: 900px) {
  .navtoggle { display: inline-block; }
  .mainnav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 15px 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Bildflaechen ----------
   Bis echte Fotografie vorliegt, stehen hier ruhige Farbfelder in der
   Hausfarbe. Sie belegen exakt die Flaeche, die ein Bild spaeter einnimmt -
   Seitenverhaeltnisse siehe PLATZHALTER.md. */

.bild {
  --lichtx: 18%; --lichty: 8%; --winkel: 158deg;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at var(--lichtx) var(--lichty), rgba(255,255,255,.17) 0%, transparent 55%),
    radial-gradient(90% 90% at 88% 92%, rgba(255,255,255,.09) 0%, transparent 60%),
    linear-gradient(var(--winkel), #14295A 0%, var(--blau) 52%, #07152F 100%);
  background-color: var(--blau);
}
/* Die Felder unterscheiden sich leicht im Lichteinfall, damit mehrere
   nebeneinander nicht wie ein Darstellungsfehler wirken. */
.bild--b { --lichtx: 76%; --lichty: 14%; --winkel: 196deg; }
.bild--c { --lichtx: 34%; --lichty: 84%; --winkel: 124deg; }
.bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Leitbild (Titelband) ---------- */

.leitbild { position: relative; background: var(--blau); }
.leitbild .bild { position: absolute; inset: 0; overflow: hidden; }
/* Sehr langsames Heranzoomen, wie ein ruhig gehaltener Kamerastandpunkt -
   macht die Titelbaender lebendig, ohne dass es beim Betrachten auffaellt. */
@media (prefers-reduced-motion: no-preference) {
  .leitbild .bild img { animation: leitbild-zoom 26s ease-in-out infinite alternate; }
}
@keyframes leitbild-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.leitbild-inhalt {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: min(74vh, 660px);
  padding-block: 88px 72px;
}
@media (max-width: 720px) {
  .leitbild-inhalt { min-height: min(58vh, 460px); padding-block: 64px 52px; }
}
.leitbild .display { color: #FFF; max-width: 17ch; margin-bottom: 24px; }
.leitbild .lead { color: var(--hell-2); max-width: 44ch; }
.leitbild-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,14,32,.72) 0%, rgba(5,14,32,.28) 45%, transparent 78%);
}

/* ---------- Aussagenblock ---------- */

.aussage {
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.24;
  letter-spacing: -0.026em;
  font-weight: 550;
  color: var(--ink);
  max-width: 20ch;
  margin: 0;
}
.aussage--hell { color: #FFF; }

.band { background: var(--blau); color: var(--hell-2); padding-block: var(--step); }
.band h2, .band .aussage { color: #FFF; }
.band .lead { color: var(--hell-2); }
.band a { color: #FFF; border-bottom: 1px solid rgba(255,255,255,.4); }
.band a:hover { color: #FFF; border-bottom-color: #FFF; }

/* ---------- Zweispaltiger Textsatz ---------- */

.satz { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .satz { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 88px; align-items: start; }
}
.satz-text > p + p { margin-top: 1.2em; }

/* ---------- Sektor-Kennzeichnung (Projektseite) ---------- */

.teaser-sektor {
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin: 0 0 8px;
}

/* ---------- Schaltflaechen ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--blau);
  background: var(--blau);
  color: #FFF;
  font-size: .875rem;
  letter-spacing: .04em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
/* Sehr dezentes Klick-Feedback, von site.js beim Klick erzeugt - bewusst
   klein und kurz gehalten (kein Material-Design-"Pop"), damit es als
   ruhige Bestaetigung wirkt statt als Spielerei. "currentColor" passt sich
   automatisch an jede Btn-Variante (hell/dunkel/Linie) an. */
.btn .ripple {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: currentColor; opacity: .22;
  transform: scale(0); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn .ripple { animation: btn-ripple .45s ease-out forwards; }
}
@keyframes btn-ripple {
  to { transform: scale(11); opacity: 0; }
}
.btn:hover { background: var(--blau-hell); border-color: var(--blau-hell); color: #FFF; }
.btn--line { background: none; color: var(--ink); }
.btn--line:hover { background: var(--blau); border-color: var(--blau); color: #FFF; }
.btn--hell { background: none; border-color: rgba(255,255,255,.55); color: #FFF; }
.btn--hell:hover { background: #FFF; border-color: #FFF; color: var(--blau); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 560px) { .btn-row { flex-direction: column; } .btn { text-align: center; } }

/* ---------- Angaben (frueher Kennzahlen/Merkmale) ---------- */

.angaben { margin: 0; }
.angaben > div {
  display: grid; gap: 4px 40px;
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}
.angaben > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 620px) { .angaben > div { grid-template-columns: 210px minmax(0, 1fr); } }
.angaben dt { color: var(--ink-3); font-size: .9375rem; }
.angaben dd { margin: 0; color: var(--ink); }

.zahlen { display: grid; gap: 40px; }
@media (min-width: 720px) { .zahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; } }
.zahlen dt { font-size: .8125rem; color: var(--ink-3); margin-bottom: 10px; }
.zahlen dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
}
.zahlen dd small { display: block; font-family: var(--sans); font-size: .875rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- Kontakt ---------- */

.kontakt-block + .kontakt-block { margin-top: 40px; }
.kontakt-block dt { font-size: .8125rem; color: var(--ink-3); margin-bottom: 6px; }
.kontakt-block dd { margin: 0 0 18px; font-size: 1.0625rem; color: var(--ink); }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 68ch; }
.legal h2 { margin-top: 52px; font-size: 1.375rem; }
.legal h3 { margin-top: 32px; font-size: 1.0625rem; }
.legal ul { padding-left: 20px; margin: 0 0 1.2em; }
.legal li { margin-bottom: 8px; }

.platzhalter { color: var(--blau-hell); border-bottom: 1px dotted var(--rule-2); white-space: nowrap; }

.hinweis {
  padding: 26px 30px;
  background: var(--tint);
  border-left: 2px solid var(--blau);
  margin-bottom: 44px;
  font-size: .9688rem;
}

/* ---------- Fusszeile ---------- */

.colophon { background: var(--blau); color: var(--hell-2); padding-block: 72px 44px; font-size: .9375rem; }
.colophon-grid {
  display: grid; gap: 44px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 56px;
}
@media (min-width: 900px) { .colophon-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; } }
.colophon h4 {
  font-family: var(--sans);
  margin: 0 0 18px;
  font-size: .8125rem; font-weight: 400;
  color: #FFF;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li + li { margin-top: 12px; }
.colophon a { color: var(--hell-2); }
.colophon a:hover { color: #FFF; }
.colophon-base {
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16);
  color: var(--hell-2); font-size: .875rem;
}

/* ---------- Katalog ----------
   Projekte sind nach Sektor geordnet (Bildung, Finanzen) und jede App tritt
   als eigene Kachel auf: Bild, Status, ein Satz, ein Weg zum sofortigen
   Start. Angelehnt an das Prinzip von Portalen, die mehrere Anwendungen unter
   einem Dach zeigen (Sub­domain-Modell) - hier zurückhaltend statt bunt, in
   der bestehenden Bildsprache aus Navy und den Netzflächen. */

/* Filterleiste auf der Startseite: ein Katalog statt getrennter
   Abschnitte, Sektor per Klick ein-/ausblenden - dem Vorbild "Kite" folgend.
   Bewusster Bruch mit border-radius:0 im Rest der Seite: hier klar als
   Bedienelement erkennbar, wie die runden Status-Punkte in .kachel-status. */
.filter-pillen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
/* Auf dunklem Grund: helle Umrandung, gefuellt-weiss im aktiven Zustand -
   die Pille bleibt so das hellste Element der Zeile. */
.filter-pille {
  padding: 11px 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: none; color: #FFF; font-size: .9375rem; font-weight: 500;
  cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.filter-pille:hover { border-color: #FFF; }
.filter-pille[aria-pressed="true"] { background: #FFF; border-color: #FFF; color: var(--blau); }
.filter-pille:active { transform: scale(.94); }
/* Zaehler je Pille - echte, von Hand gepflegte Werte (wie die Meta-Zeile
   "2 Apps ..." oben auch), kein berechneter Platzhalter. Steam/Kite-Vorbild:
   Filter-Tags zeigen, wie viele Treffer dahinterstehen. */
.filter-pille-count {
  display: inline-block; margin-left: 3px; padding: 1px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.18);
}
.filter-pille[aria-pressed="true"] .filter-pille-count { background: rgba(5,46,124,.12); }
/* Ein kleiner Pop, sobald eine Pille aktiv wird - triggert von selbst neu,
   weil [aria-pressed="true"] fuer das jeweilige Element frisch zu greifen
   beginnt, sobald site.js das Attribut umschaltet. Reine CSS-Retrigger,
   kein zusaetzliches JS noetig. */
@media (prefers-reduced-motion: no-preference) {
  .filter-pille[aria-pressed="true"] { animation: pille-pop .35s var(--ease); }
}
@keyframes pille-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* .js versteckt erst nach dem Laden - ohne JavaScript bleiben alle Kacheln
   sichtbar (keine Filterung moeglich, aber kein Inhalt verloren). */
.js .kachel[hidden] { display: none; }

/* ---------- Katalogseite (Startseite) ----------
   Ein einziger dunkler Bildschirm statt mehrerer Abschnitte: Kopf, Ueber-
   schrift, Filter, Kacheln - keine getrennte Erzaehlung mehr darunter. Die
   Begruendung ("warum ein Hub") steht weiterhin auf unternehmen.html. */
.katalogseite {
  position: relative;
  background: var(--blau); color: var(--hell-2);
  /* Unten deutlich knapper als oben: darunter folgt der ebenfalls navyfarbene
     Footer ohne Trennlinie - addieren sich hier zwei grosse Innenabstaende,
     wirkt das wie eine leere Flaeche statt wie Luft. Oben ebenfalls knapper
     gehalten als frueher - auf breiten Bildschirmen war das sonst allein
     schon zusammen mit dem Header ein sehr grosser leerer Block vor der
     ersten Zeile Text. */
  padding-block: clamp(32px, 4vw, 56px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.katalogseite > .wrap { position: relative; z-index: 1; }

/* Atmendes Sternbild im Hintergrund - dieselbe Streu-/Verbindungslogik wie
   die Netzflaechen (tools/muster.py, svg_konstellation), hier als Inline-SVG,
   damit einzelne Knoten animiert werden koennen. Rein dekorativ (aria-hidden),
   niedrige Deckkraft, damit Text darueber sicher lesbar bleibt.

   ⚠️ Bewusst auf ein Band oben begrenzt (nicht die ganze, mit dem Katalog
   wachsende Sektion) - ueber volle Hoehe gestreckt liefen die Knoten hinter
   die Kacheln und kollidierten dort mit deren eigenem Netzmuster-Bild. */
.sternbild {
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(460px, 62vw, 620px);
  width: 100%;
  opacity: .4;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
/* Leichter Parallax-Versatz, von site.js per --px/--py aus der Mausposition
   berechnet (nur bei Maus mit Hover, siehe JS-Guard). Ohne JS oder auf
   Touch bleiben die Variablen auf 0 - das Sternbild steht dann still wie
   zuvor. */
@media (prefers-reduced-motion: no-preference) {
  .sternbild { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .25s ease-out; }
}
.sb-kante { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.sb-knoten { fill: rgba(255,255,255,.4); }
.sb-knoten--gross { fill: rgba(255,255,255,.62); }
@media (prefers-reduced-motion: no-preference) {
  .sb-knoten { animation: sb-puls ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes sb-puls {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

.katalog { display: grid; gap: 32px; }
@media (min-width: 720px) { .katalog { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }

.kachel {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  overflow: hidden;
  --mx: 50%; --my: 50%;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.kachel:hover {
  box-shadow: 0 22px 50px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.32);
}
/* Sehr dezenter Lichtschein, der der Maus folgt (--mx/--my aus site.js) -
   nur mit Maus/Trackpad (siehe JS-Guard "hover: hover" und "pointer: fine"),
   sonst bleibt die Karte ohne Glanzeffekt. Bewusst zurueckhaltend gehalten
   (kein 3D-Kippen mehr) - Klarheit vor Effekt. */
.kachel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(255,255,255,.08), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.kachel:hover::before { opacity: 1; }
.kachel-bildlink, .kachel-info { position: relative; z-index: 1; }

.kachel-bildlink { display: block; color: inherit; }
.kachel-bild { position: relative; aspect-ratio: 4 / 3; border-radius: 20px 20px 0 0; overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; transition: transform .5s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .kachel:hover .kachel-bild img { transform: scale(1.06); }
}

/* Abdunkeln beim Hover/Fokus - wie ein Spiele-Regal, das sein Cover verdunkelt,
   sobald ein Startsymbol darueber erscheint. Liegt ueber dem Bild (z-index 1),
   aber unter Status/Symbol (z-index 2). */
.kachel-bild::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(5,46,124,0);
  transition: background .25s var(--ease);
}
.kachel:hover .kachel-bild::after,
.kachel-bildlink:focus-visible .kachel-bild::after { background: rgba(5,46,124,.38); }

.kachel-status {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.kachel-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.kachel-status--live { color: #0B5B32; }
.kachel-status--live::before { background: #1E9E5A; }
.kachel-status--bau::before { background: #B98A1B; }

/* Ein Punkt, der lebt - nur beim tatsaechlich Startbaren. Reine Ping-Animation,
   keine Behauptung ueber Fortschritt. */
@media (prefers-reduced-motion: no-preference) {
  .kachel-status--live::before { animation: status-puls 1.8s ease-in-out infinite; }
}
@keyframes status-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,158,90,.55); }
  50%      { box-shadow: 0 0 0 5px rgba(30,158,90,0); }
}

/* Start-/Schloss-Symbol, das beim Hover ueber dem Bild erscheint - wie ein
   Spiele-Regal, in dem ein Play-Knopf zeigt, was ein Klick tut. Ehrlich
   unterschieden: Play nur, wo tatsaechlich etwas startet; sonst ein Schloss. */
.kachel-hover-symbol {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--blau);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  pointer-events: none;
}
.kachel-hover-symbol svg { width: 22px; height: 22px; }
.kachel-hover-symbol--play svg { margin-left: 2px; } /* optische Mitte des Dreiecks */
.kachel-hover-symbol--schloss { background: rgba(255,255,255,.9); color: var(--ink-3); }
.kachel:hover .kachel-hover-symbol,
.kachel-bildlink:focus-visible .kachel-hover-symbol {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* Ehrlicher Lade-Schimmer statt einer erfundenen Prozentzahl: zeigt "es tut
   sich was", ohne einen konkreten Fortschritt zu behaupten. */
.kachel-fortschritt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 3px; overflow: hidden;
  background: rgba(255,255,255,.18);
}
.kachel-fortschritt::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%;
  background: rgba(255,255,255,.8); border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .kachel-fortschritt::after { animation: fortschritt-schieben 1.9s ease-in-out infinite; }
}
@keyframes fortschritt-schieben {
  0%   { left: -30%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kachel-fortschritt::after { left: 0; width: 45%; }
}
.kachel-status--bau { color: #8A6413; }

.kachel-info { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kachel-kopfzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kachel-info h4 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.014em; }
.kachel-info h4 a { color: #FFF; }
.kachel-info h4 a:hover { color: var(--hell-2); }
.kachel-info p { margin: 0; color: var(--hell-2); font-size: .9375rem; line-height: 1.55; flex: 1; }
/* Sektor-Kennzeichnung neben dem Titel, wie "TEXT"/"KREATIV" im Vorbild -
   Versalien statt eigener Zeile darueber. */
.kachel-kopfzeile .teaser-sektor {
  font-size: .6875rem; font-weight: 600; color: rgba(255,255,255,.45);
  letter-spacing: .08em; text-transform: uppercase; margin: 0; flex: none;
  white-space: nowrap;
}

.kachel-cta { margin-top: 18px; }
/* Auf der dunklen Kachel muss die primaere Schaltflaeche hell sein, sonst
   verschwindet sie fast im Kartenhintergrund - deshalb hier umgekehrt
   (weiss/navy) statt das globale .btn (navy/weiss) zu erben. */
.kachel-cta .btn {
  width: 100%; text-align: center; box-sizing: border-box;
  border-radius: 12px;
  background: #FFF; border-color: #FFF; color: var(--blau);
}
.kachel-cta .btn:hover { background: var(--hell-2); border-color: var(--hell-2); color: var(--blau); }

/* .btn--warten steht sowohl in einer Kachel als auch oben auf der
   Detailseite (.produkt-start) - deshalb eigenstaendig, nicht verschachtelt. */
.btn--warten {
  display: inline-block;
  padding: 15px 30px; border: 1px dashed var(--rule-2);
  color: var(--ink-3); font-size: .875rem; letter-spacing: .03em;
}
.kachel-cta .btn--warten {
  display: block; width: 100%; text-align: center; box-sizing: border-box;
  border-radius: 12px;
  border-color: rgba(255,255,255,.32); color: rgba(255,255,255,.6);
}

/* Sprungnavigation zu den Rubriken, oben auf der Projektseite */
.rubrik-nav-band { border-bottom: 1px solid var(--rule); }
.rubrik-nav-band .wrap { padding-block: 18px; }
.rubrik-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.rubrik-nav a {
  padding: 9px 18px; border: 1px solid var(--rule-2);
  color: var(--ink); font-size: .875rem; font-weight: 500;
}
.rubrik-nav a:hover { border-color: var(--blau); color: var(--blau); background: var(--tint); }

/* Prominenter Start-Bereich oben auf der Produktdetailseite: Status + ein
   Klick zum Start, bevor der lange Beschreibungstext beginnt. */
.produkt-start {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: -8px 0 40px;
}
.produkt-start .kachel-status { position: static; background: none; padding: 0; font-size: .8125rem; }

/* ---------- Sanftes Einblenden beim Scrollen ----------
   Nur mit .js (site.js setzt die Klasse) UND wenn JS/IO verfuegbar sind wird
   ueberhaupt etwas versteckt - siehe reveal-Logik in site.js, die genau das
   sicherstellt, bevor sie .reveal ueberhaupt vergibt. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.reveal--sichtbar { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .colophon, .band, .skip-link, .btn-row { display: none; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 0; }
}

/* ---------- Schematische Depot-Auswertung ----------
   Reine Struktur in der Hausfarbe, keine echten Daten. */

.schema { display: grid; gap: 40px; margin: 0 0 48px; }
@media (min-width: 820px) { .schema { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

.schema-bar { display: flex; height: 40px; overflow: hidden; margin-bottom: 24px; }
.schema-bar span { display: block; height: 100%; }
.schema-bar span:nth-child(1) { background: var(--blau); }
.schema-bar span:nth-child(2) { background: #2B4680; }
.schema-bar span:nth-child(3) { background: #6E82AC; }
.schema-bar span:nth-child(4) { background: var(--rule-2); }

.schema-legende { list-style: none; margin: 0; padding: 0; }
.schema-legende li {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
}
.schema-legende li:last-child { border-bottom: 0; }
.schema-legende i { width: 10px; height: 10px; flex: 0 0 auto; }
.schema-legende li:nth-child(1) i { background: var(--blau); }
.schema-legende li:nth-child(2) i { background: #2B4680; }
.schema-legende li:nth-child(3) i { background: #6E82AC; }
.schema-legende li:nth-child(4) i { background: var(--rule-2); }
.schema-legende b { margin-left: auto; font-weight: 500; color: var(--ink); }
.schema-fuss { margin-top: 20px; font-size: .875rem; color: var(--ink-3); }

/* Bildfläche im Projektabschnitt */
.projekt-bild { aspect-ratio: 16 / 7; margin-bottom: 48px; }

/* Echtes Produktbild statt erzeugtem Netzmuster: die Illustration hat einen
   durchsichtigen Rand und darf nicht wie die abstrakten Flächen zugeschnitten
   werden - object-fit: contain statt cover, Rand bleibt Markenblau. Eigenes
   Seitenverhältnis auf der Projektseite, weil 16:7 die Figuren zu klein macht. */
.bild--kunst img { object-fit: contain; }
.projekt-bild--kunst { aspect-ratio: 4 / 3; max-width: 640px; }

/* ---------- Siegel ----------
   Kleines gestochenes Medaillon als Schlusspunkt der Seite - der Praegestempel
   unten auf einem Zertifikat. Reine Zier, deshalb aus dem Vorlesefluss genommen. */

.siegel {
  display: block;
  width: 116px; height: 116px;
  margin: 0 auto 44px;
  opacity: .78;
}

/* ---------- Doppelte Haarlinie ----------
   Zwei feine Linien statt einer: die Einfassung eines Wertpapiers. */

.section--linie { border-top: 1px solid var(--rule); position: relative; }
.section--linie::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 3px;
  height: 1px; background: var(--rule);
}
