/* mo-tools – Gestaltung nach Entwurf B (design/entwuerfe/B-Code.dc.html).
   Scroll-Animationen: assets/js/main.js setzt an jedem [data-scroll]-Element
   --in (0→1 beim Hereinkommen), --out (0→1 beim Herausscrollen), --p (Fortschritt in hohen Abschnitten), --pass.
   Ohne JS gelten die Standardwerte (--in: 1, --out: 0), alles ist sichtbar. */

:root {
  --bg: #0B0D10;
  --flaeche: #12161B;
  --linie: #1F262E;
  --linie-stark: #2C3540;
  --rand: #3A4450;
  --text: #E6E8EB;
  --leise: #A9B1BB;
  --leiser: #8A93A0;
  --lime: #C6F432;
  --lime-hell: #DBFF6B;
  --akzent: var(--lime);
  --schrift: 'Sora', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --breite: 1280px;
  --rand-seite: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); }
a:hover { color: var(--akzent-hell, var(--lime-hell)); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
button { font: inherit; }
[hidden] { display: none !important; }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--lime); color: var(--bg); padding: 10px 14px; border-radius: 8px; }

.breit { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand-seite); padding-right: var(--rand-seite); }
.mono { font-family: var(--mono); font-size: 13px; }
.leise { color: var(--leiser); }
.hell { color: var(--text); }
.akzent { color: var(--lime); }
.kicker { margin: 0; font-family: var(--mono); font-size: 14px; color: var(--akzent); }
.h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.h2.gross { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; }
.text-leise { color: var(--leise); font-size: 17px; line-height: 1.6; }
.text-leise p { margin: 0 0 14px; }

/* ---------- Knöpfe, Chips, Badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-voll { background: var(--akzent); color: var(--bg); }
.btn-voll:hover { background: var(--akzent-hell, var(--akzent)); color: var(--bg); }
.btn-rand { background: transparent; color: var(--text); border-color: var(--rand); font-weight: 600; }
.btn-rand:hover { border-color: var(--akzent); color: var(--akzent); }
.btn-klein { min-height: 44px; padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.btn-gross { min-height: 54px; font-size: 17px; padding: 15px 22px; border-radius: 12px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.ico-strich { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-leise { stroke: var(--leiser); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--flaeche); color: #C9CED4; border: 1px solid var(--linie-stark); border-radius: 999px; padding: 9px 14px; min-height: 40px; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--lime); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 700; }
.chip-zahl { font-family: var(--mono); font-size: 12px; opacity: .7; }
.chips-klein { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; }
.chip-klein { border: 1px solid var(--rand); border-radius: 999px; padding: 4px 10px; color: var(--text); }
.badge { flex: 0 0 auto; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; font-family: var(--schrift); white-space: nowrap; }
.badge-kunden { background: var(--akzent); color: var(--bg); }
.badge-kostenlos { border: 1px solid var(--lime); color: var(--lime); }
.badge-projekt { border: 1px solid var(--rand); color: var(--leise); font-weight: 600; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 16, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 12px var(--rand-seite); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo-prompt { color: var(--lime); }
.nav { flex: 1 1 auto; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.nav-liste a { color: #C9CED4; text-decoration: none; display: inline-block; padding: 8px 0; }
.nav-liste a:hover { color: var(--lime); }

/* ---------- Einstieg ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--linie); }
.hero-regen { position: absolute; inset: 0; display: flex; justify-content: space-between; gap: 40px; padding: 0 24px; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--lime); white-space: pre; pointer-events: none;
  opacity: calc(.1 * (1 - var(--out, 0))); transform: translateY(calc(var(--out, 0) * 120px)); }
.regen-a { animation: regen 46s linear infinite; }
.regen-b { animation: regen 60s linear infinite; }
@keyframes regen { to { transform: translateY(-50%); } }
.hero-inhalt { position: relative; padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
  opacity: calc(1 - var(--out, 0) * 1.4); transform: translateY(calc(var(--out, 0) * -60px)); }
.hero-titel { margin: 0; font-size: clamp(44px, 7vw, 100px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.hero-wort { margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; min-height: 1.3em; overflow: hidden; }
.hero-wort span { display: inline-block; }
.hero-wort .neu { animation: wort .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes wort { from { opacity: 0; transform: translateY(40%); } }
.hero-text { margin: 0; font-size: 18px; line-height: 1.6; max-width: 620px; color: var(--leise); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-top: 96px; padding-bottom: 24px; }
.abschnitt-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.abschnitt-voll { border-top: 1px solid var(--linie); padding: 100px 0; }
.zwei-spalten { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.zwei-spalten > * { flex: 1 1 400px; min-width: 0; }
.spalte-text { display: flex; flex-direction: column; gap: 18px; }

/* Karten erscheinen gestaffelt: --i = Position, --in kommt vom Abschnitt */
.karte { --k: clamp(0, calc(var(--in, 1) * 1.6 - var(--i, 0) * .08), 1);
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 36px));
  transition: border-color .15s, opacity .25s linear, transform .25s cubic-bezier(.2, .7, .2, 1);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.karte:hover { border-color: #3F4B57; color: var(--text); }
.karte:hover .mehr, .karte:hover .karte-name { color: var(--lime); }

/* Fokus */
.fokus-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.fokus-karte { border-radius: 20px; min-height: 500px; }
.fokus-text { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.fokus-name { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.fokus-kurz { font-size: 16px; line-height: 1.55; color: var(--leise); }
.mehr { font-weight: 700; font-size: 15px; }
.fokus-bild { margin-top: auto; padding: 24px 28px 0; }
.fokus-bild img { border-radius: 10px 10px 0 0; border: 1px solid var(--linie-stark); border-bottom: none; width: 100%; }
.bahn { width: 100%; height: auto; max-height: 300px; display: block; margin-bottom: 20px; }
.blk-top { fill: #1C2229; stroke: var(--lime); stroke-width: 1.2; }
.blk-l { fill: #141920; stroke: var(--lime); stroke-width: 1.2; }
.blk-r { fill: #0F1318; stroke: var(--lime); stroke-width: 1.2; }
.bahn-geist { fill: none; stroke: var(--linie-stark); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bahn-live { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: bahn 6s ease-in-out infinite; }
@keyframes bahn { 0% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: 0; } }

/* Galerie */
.galerie { padding-top: 80px; }
.filterleiste { position: sticky; top: 68px; z-index: 5; background: rgba(11, 13, 16, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-bottom: 1px solid var(--linie); }
.suche { flex: 1 1 260px; min-width: 0; position: relative; }
.suche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.suche input { width: 100%; min-height: 46px; padding: 12px 14px 12px 42px; border-radius: 10px; background: var(--flaeche); color: var(--text); border: 1px solid var(--linie-stark); font: inherit; font-size: 15px; }
.suche input::placeholder { color: #7D8794; }
.suche input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--lime); }
.filterleiste .chips { flex: 2 1 520px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; margin-top: 24px; }
.karte-bild { height: 170px; background: #0F1318; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--linie); }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.karte-mono { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--akzent); opacity: .8; }
.karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.karte-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; transition: color .15s; }
.karte-kurz { margin: 0; font-size: 14px; line-height: 1.5; color: var(--leise); }
.karte-plattform { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--leiser); }
.leer { padding: 48px 0; text-align: center; color: var(--leise); }
.leer .chip { margin-left: 8px; }
.mehr-laden { display: flex; justify-content: center; margin-top: 28px; }

/* Laufband */
.laufband { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); overflow: hidden; padding: 24px 0; margin-top: 80px; }
.laufband-innen { display: flex; gap: 44px; white-space: nowrap; width: max-content; font-size: clamp(26px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.02em; color: var(--linie-stark);
  transform: translateX(calc(var(--pass, .3) * -36vw + 8vw)); transition: transform .2s linear; }

/* Kundenbereich-Vorschau */
.portal-vorschau { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 16px; overflow: hidden;
  opacity: var(--in, 1); transform: scale(calc(.94 + .06 * var(--in, 1))); transition: opacity .25s, transform .25s; }
.portal-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--linie); font-size: 14px; }
.portal-tabs span { padding: 9px 14px; border-radius: 8px; color: #C9CED4; }
.portal-tabs .aktiv { background: var(--lime); color: var(--bg); font-weight: 600; }
.portal-zeile { margin: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--linie); border-radius: 12px; padding: 16px; }
.portal-zeile > div { display: flex; flex-direction: column; gap: 4px; }
.portal-zeile .mono { font-size: 12px; }
.portal-hinweis { margin: 0 20px 16px; font-size: 12px; text-align: right; }

/* Produktseite */
.produkt-kopf { padding-top: 28px; padding-bottom: 80px; }
.krumen { display: flex; flex-wrap: wrap; gap: 8px; color: var(--leiser); margin-bottom: 40px; }
.krumen a { color: var(--leise); }
.produkt-bild img { border-radius: 14px; border: 1px solid var(--linie-stark); box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  transform: perspective(1600px) rotateY(calc((1 - var(--in, 1)) * -14deg)) translateY(calc(var(--out, 0) * -40px)); transition: transform .25s; }
.download-kasten { background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 560px; }
.download-kasten p { margin: 0; }
.kasten-titel { font-weight: 700; font-size: 17px; }
.status-ok { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--akzent); font-weight: 600; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-warn { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #F2B04C; font-weight: 600; }

/* ---------- MTM-Seite (single-programm-mtm.php) ---------- */
.produkt-marke { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.produkt-icon { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; object-position: 12% 42%; border: 1px solid var(--linie-stark); }
.akzent-text { color: var(--akzent); }
.klebt { position: sticky; top: 72px; padding-top: 48px; padding-bottom: 48px; }
.lochwand { background-color: #111418; background-image: radial-gradient(#262C33 2.4px, transparent 2.6px); background-size: 28px 28px; }

/* Alles an seinem Platz: --p (0→1) treibt Überschrift und Kacheln; ohne JS steht --p auf 1 (sortiert) */
.sortieren { height: 2400px; position: relative; border-top: 1px solid var(--linie);
  --d0: clamp(0, calc((var(--p, 1) - .3) / .35), 1);
  --d: calc(var(--d0) * var(--d0) * (3 - 2 * var(--d0))); }
.js .sortieren, .js .ablauf { --p: 0; } /* mit JS: Startzustand bis zur ersten Messung (sonst blitzt der Endzustand auf) */
.sortieren-innen { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.sortieren-innen > .spalte-text { flex: 1 1 400px; min-width: 0; }
.tausch { position: relative; min-height: clamp(140px, 13vw, 200px); }
.tausch h2 { position: absolute; top: 0; left: 0; margin: 0; font-size: clamp(48px, 6vw, 88px); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.tausch-a { opacity: calc(1 - var(--d)); transform: translateY(calc(var(--d) * -30px)); transition: opacity .2s, transform .2s; }
.tausch-b { color: var(--akzent); opacity: var(--d); transform: translateY(calc((1 - var(--d)) * 30px)); transition: opacity .2s, transform .2s; }
.tausch-hinweis { position: relative; margin: 0; min-height: 1.5em; }
.tausch-hinweis .tausch-b { position: absolute; left: 0; top: 0; color: var(--leiser); }
.brett { flex: 1 1 460px; min-width: 0; position: relative; aspect-ratio: 6 / 4.4; border-radius: 18px; border: 2px dashed rgba(246, 201, 14, .3); }
.platz { position: absolute; width: 15%; aspect-ratio: 1 / 1.25; border-radius: 12px; border: 2px dashed var(--rand); opacity: clamp(0, calc(var(--p, 1) * 3), 1); }
.kachel { --k0: clamp(0, calc((var(--p, 1) - .05 - var(--i) * .025) / .5), 1);
  --k: calc(var(--k0) * var(--k0) * (3 - 2 * var(--k0)));
  position: absolute; width: 15%; aspect-ratio: 1 / 1.25; border-radius: 12px; background: var(--akzent);
  display: flex; align-items: center; justify-content: center;
  left: calc((var(--sx) + (var(--gx) - var(--sx)) * var(--k)) * 1%);
  top: calc((var(--sy) + (var(--gy) - var(--sy)) * var(--k)) * 1%);
  transform: rotate(calc(var(--sr) * (1 - var(--k)) * 1deg));
  box-shadow: 0 calc((1 - var(--k)) * 10px) calc((1 - var(--k)) * 24px) rgba(0, 0, 0, .5);
  transition: left .25s cubic-bezier(.2, .7, .2, 1), top .25s cubic-bezier(.2, .7, .2, 1), transform .25s cubic-bezier(.2, .7, .2, 1); }
.kachel svg { width: 56%; height: 56%; fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kachel-nr { position: absolute; bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--bg); }

/* Vom Lager bis zur Maschine: Schritte, Zahlen und Protokoll setzt main.js ([data-ablauf]) */
.ablauf { height: 2600px; position: relative; border-top: 1px solid var(--linie); }
.ablauf-innen { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.ablauf-text { flex: 1 1 360px; min-width: 0; gap: 10px; }
.ablauf-text .h2 { margin-bottom: 14px; }
.schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.schritt { display: flex; gap: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; transition: background .2s, border-color .2s, opacity .2s; }
.schritt div { display: flex; flex-direction: column; gap: 4px; }
.schritt strong { font-size: 19px; }
.schritt div span { font-size: 15px; color: var(--leise); line-height: 1.5; }
.schritt.vorbei { opacity: .6; }
.schritt.spaeter { opacity: .35; }
.schritt.jetzt { background: var(--flaeche); border-color: var(--rand); }
.fenster { flex: 1.2 1 460px; min-width: 0; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: 16px; overflow: hidden; }
.fenster-leiste { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--linie); font-size: 12px; color: var(--leiser); }
.fenster-leiste .rechts { margin-left: auto; }
.ampel { width: 10px; height: 10px; border-radius: 50%; background: var(--rand); box-shadow: 16px 0 0 var(--rand), 32px 0 0 var(--rand); margin-right: 40px; }
.fenster-inhalt { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.feld-titel { margin: 0 0 10px; font-size: 12px; color: var(--leiser); }
.teile { display: flex; flex-wrap: wrap; gap: 8px; }
.teil { --t: clamp(0, calc((var(--p, 1) - var(--i) * .06) / .1), 1);
  font-family: var(--mono); font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--akzent);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 16px)); transition: opacity .2s, transform .2s; }
.lagerplatz { background: var(--bg); border: 1px solid var(--linie); border-radius: 12px; padding: 14px; transition: border-color .2s, opacity .2s;
  opacity: calc(.25 + .75 * clamp(0, calc((var(--p, 1) - .25) / .12), 1)); }
.lagerplatz .feld-titel { margin-bottom: 6px; }
.lagerplatz strong { font-size: 18px; }
.lagerplatz.fertig { border-color: var(--akzent); }
.messwerte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.messwerte > div { background: var(--bg); border: 1px solid var(--linie); border-radius: 12px; padding: 14px; }
.messwerte .feld-titel { margin-bottom: 4px; }
.messwert { font-family: var(--mono); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.senden-kopf { display: flex; justify-content: space-between; gap: 8px; }
.balken { height: 10px; background: var(--bg); border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; }
.balken span { display: block; height: 100%; border-radius: 999px; background: var(--akzent);
  width: calc(clamp(0, calc((var(--p, 1) - .7) / .22), 1) * 100%); transition: width .2s linear; }
.protokoll { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; line-height: 1.8; color: var(--leise); min-height: 72px; }
.protokoll li { transition: opacity .2s; }
.protokoll li.aus { opacity: .15; }
.protokoll li.ok:not(.aus) { color: var(--akzent); }

/* Funktionen, MTMios, Voraussetzungen */
.funktionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.funktion { --k: clamp(0, calc(var(--in, 1) * 1.6 - var(--i, 0) * .08), 1);
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px;
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 30px)); transition: opacity .25s, transform .25s; }
.funktion strong { font-size: 18px; }
.funktion span { font-size: 15px; color: var(--leise); line-height: 1.55; }
/* So sieht MTM aus: erstes Bild breit, die anderen darunter nebeneinander */
.ansichten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ansicht { --k: clamp(0, calc(var(--in, 1) * 1.6 - var(--i, 0) * .12), 1);
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 30px)); transition: opacity .25s, transform .25s; }
.ansicht:first-child { grid-column: 1 / -1; }
.ansicht img { width: 100%; border-radius: 14px; border: 1px solid var(--linie-stark); background: #202020; }
.ansicht figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ansicht figcaption strong { font-size: 17px; }
.ansicht figcaption span { font-size: 15px; color: var(--leise); }
@media (max-width: 760px) { .ansichten { grid-template-columns: 1fr; } }
.mtmios-bild { flex: 0 1 240px !important; }
.mtmios-bild img { border-radius: 32px; border: 6px solid var(--linie-stark); width: 230px; }
/* ---------- MTMios-Seite (single-programm-mtmios.php, Entwurf C) ---------- */
.ios-kopf { padding-bottom: 0; }
.ios-titel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ios-titel p { margin: 0; }
.ios-titel .hero-text { max-width: 640px; }
.ios-icon { width: 84px; height: 84px; border-radius: 20px; border: 1px solid var(--linie-stark); }
.ios-h1 { margin: 0; font-size: clamp(56px, 8vw, 88px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.ios-knoepfe { justify-content: center; align-items: center; }
.ios-bald { cursor: default; color: var(--leise); }
.ios-bald:hover { border-color: var(--rand); color: var(--leise); }
.ios-geraete { max-width: 900px; margin: 56px auto 0; display: flex; justify-content: center; align-items: flex-end;
  transform: translateY(calc((1 - var(--in, 1)) * 40px)); transition: transform .3s; }
.ios-ipad { width: 72%; border-radius: 30px; border: 9px solid var(--linie-stark); box-shadow: 0 40px 100px rgba(255, 122, 26, .14); }
.ios-iphone { width: 26%; margin-left: -12%; margin-bottom: -24px; border-radius: 34px; border: 6px solid var(--rand); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.seite-mtmios > .abschnitt-voll:first-of-type { margin-top: 120px; }
.ios-schmal { max-width: 1120px; margin: 0 auto; padding-left: var(--rand-seite); padding-right: var(--rand-seite); }
.ios-abschnitte { display: flex; flex-direction: column; gap: 96px; }
.ios-zeile { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center;
  opacity: var(--in, 1); transform: translateY(calc((1 - var(--in, 1)) * 40px)); transition: opacity .25s, transform .25s; }
.ios-zeile-rechts { flex-direction: row-reverse; }
.ios-zeile .spalte-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ios-zeile .spalte-text p, .ios-zeile .h2 { margin: 0; }
.ios-bild { flex: 0 1 280px; display: flex; justify-content: center; margin: 0 auto; }
.ios-bild img { width: 260px; border-radius: 40px; border: 6px solid var(--linie-stark); }
.ios-bild img.ios-rahmen-akzent { border-color: var(--akzent); }
.ios-neu { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--akzent); color: var(--bg); font-size: 12px; font-weight: 600; }
@media (max-width: 760px) {
  .ios-zeile, .ios-zeile-rechts { flex-direction: column; align-items: stretch; }
  .ios-bild img { width: 220px; }
  .ios-iphone { margin-bottom: -12px; border-radius: 22px; border-width: 4px; }
  .ios-ipad { border-radius: 18px; border-width: 5px; }
  .seite-mtmios > .abschnitt-voll:first-of-type { margin-top: 64px; }
}
.liste-dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; font-size: 16px; }
.liste-dl dt, .liste-dl dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--linie); }
.liste-dl dt { color: var(--leiser); }

/* Inhaltsseiten */
.inhalt-seite { padding-top: 64px; padding-bottom: 96px; }
.fliesstext { max-width: 760px; font-size: 17px; line-height: 1.7; color: #C9CED4; }
.fliesstext h2, .fliesstext h3 { color: var(--text); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); }
.fuss-innen { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.fuss-mail { font-family: var(--mono); font-size: 16px; }
.fuss-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.fuss-liste a { color: #C9CED4; }
.fuss-hinweis { flex: 1 1 100%; margin: 0; font-size: 12px; color: var(--leiser); line-height: 1.6; }

.menue-knopf { display: none; }

@media (max-width: 760px) {
  .kopf-innen { gap: 10px 12px; }
  .logo { margin-right: auto; }
  .menue-knopf { display: inline-flex; }
  .kopf .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav { display: none; order: 3; flex: 1 1 100%; }
  .kopf.offen .nav { display: block; }
  .nav-liste { flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav-liste a { display: block; padding: 12px 0; font-size: 16px; border-top: 1px solid var(--linie); }
}

@media (max-width: 640px) {
  :root { --rand-seite: 16px; }
  .fokus-karte { min-height: 0; }
  .hero-regen { opacity: calc(.06 * (1 - var(--out, 0))); }
  .regen-b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .regen-a, .regen-b, .bahn-live, .hero-wort .neu { animation: none; }
  .karte, .portal-vorschau, .laufband-innen, .produkt-bild img, .kachel, .tausch-a, .tausch-b, .teil, .balken span, .funktion, .ansicht, .ios-geraete, .ios-zeile { transition: none; }
}
