/* Schriften liegen im Repo (fonts/), kein Abruf bei Google: Red Hat Display + Red Hat Text, variabel, SIL OFL 1.1 */
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/red-hat-display-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Display'; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(../fonts/red-hat-display-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: 'Red Hat Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/red-hat-text-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/red-hat-text-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; }

:root {
  --ground: #F1F3F6;
  --paper: #FFFFFF;
  --ink: #12161C;
  --muted: #5A6472;
  --line: #D8DDE4;
  --live: #17995A;
  --lab: #E08A1E;
  --night: #0E1A21;
  --night-2: #172730;
  --night-ink: #E8EEF1;
  --night-muted: #93A4AE;
  --disp: 'Red Hat Display', system-ui, sans-serif;
  --text: 'Red Hat Text', system-ui, sans-serif;
  --leiste: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--leiste); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.5 var(--text); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; } /* width/height im HTML nur fürs Seitenverhältnis beim Laden */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.labor :focus-visible, .teil.res :focus-visible, .top.nacht :focus-visible { outline-color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.weiter { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.weiter:focus { left: 8px; }

/* Leiste bleibt oben stehen und zeigt, in welchem Teil man ist; der Zeiger (js) gleitet zum aktiven Link */
.top { position: sticky; top: 0; z-index: 10; background: rgba(241, 243, 246, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s, color .3s; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: var(--leiste); font: 700 16px/1 var(--disp); }
.top .name { text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 4px; position: relative; }
.top nav a { position: relative; text-decoration: none; color: var(--muted); padding: 9px 14px; border-radius: 999px; transition: color .3s; }
.top nav a[aria-current] { color: #fff; }
.top .zeiger { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--ink); opacity: 0;
  transition: transform .4s cubic-bezier(.3, .8, .2, 1), width .4s cubic-bezier(.3, .8, .2, 1), opacity .25s, background .3s; }
.top .zeiger.an { opacity: 1; }
.top.nacht { background: rgba(14, 26, 33, .92); color: var(--night-ink); }
.top.nacht nav a { color: var(--night-muted); }
.top.nacht nav a[aria-current] { color: var(--ink); }
.top.nacht .zeiger { background: #fff; }

.vor { padding: 5vh 0 28px; font: 500 clamp(20px, 2.1vw, 27px)/1.35 var(--disp); max-width: 36ch; text-wrap: balance; }
.vor b { font-weight: 800; }

/* Oben: beide Teile nebeneinander, gleich groß */
.beide { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 9vh; }
.teil { border-radius: 28px; padding: 34px 34px 38px; background: var(--paper); display: flex; flex-direction: column; }
.teil.res { background: var(--night); color: var(--night-ink); }
.teil h2 { font: 900 clamp(34px, 4.6vw, 62px)/1 var(--disp); letter-spacing: -.03em; }
.teil h2 a { text-decoration: none; }
.teil > p { margin: 10px 0 30px; font-size: 18px; color: var(--muted); max-width: 30ch; }
.teil.res > p { color: var(--night-muted); }
.kacheln { display: grid; gap: 22px 14px; margin: auto 0 0; padding: 0; list-style: none; }
.teil.prod .kacheln { grid-template-columns: repeat(3, 1fr); }
.teil.res .kacheln { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.kacheln a { display: block; text-decoration: none; font: 600 14px/1.25 var(--text); }
.teil.prod .kacheln a { text-align: center; color: var(--muted); }
.teil.prod .ic { width: min(116px, 80%); margin: 0 auto 9px; transition: transform .15s; }
.teil.prod a:hover .ic { transform: translateY(-4px); }
.teil.res .kachel { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--night-2); margin-bottom: 8px; transition: transform .15s; }
.teil.res .kachel img { width: 100%; height: 100%; object-fit: cover; }
.teil.res a:hover .kachel { transform: translateY(-4px); }
.teil.res .kachel.leer { display: grid; place-items: center; font: 500 14px/1.2 var(--text); color: var(--night-muted); border: 1px dashed #35505C; }

.kopf { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-top: 2px solid currentColor; }
.kopf h2 { font: 800 30px/1 var(--disp); letter-spacing: -.01em; }
.kopf p { color: var(--muted); }

/* Eine Zeile je Projekt, in beiden Teilen gleich gebaut */
.zeile { scroll-margin-top: 16px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.zeile:first-of-type { border-top: 0; padding-top: 30px; }
.zeile .ic { width: 64px; margin-bottom: 18px; }
.zeile h3 { font: 800 clamp(30px, 3.4vw, 44px)/1.05 var(--disp); letter-spacing: -.02em; }
.zeile .amt { font-size: 14px; color: var(--muted); margin-top: 6px; }
.zeile .satz { font-size: 17px; line-height: 1.5; margin: 16px 0 22px; max-width: 44ch; }
.zeile .unten { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* App-Symbol, Telefon mit echtem Bildschirm, Zustand, Store-Knopf */
.ic { aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(18, 22, 28, .1); }
.ph { display: block; aspect-ratio: 506 / 1100; border-radius: 13% / 6%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 5px var(--ink), 0 24px 40px -18px rgba(18, 22, 28, .45); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.zu { display: inline-flex; align-items: baseline; gap: .5em; font-size: 15px; color: var(--muted); }
.zu::before { content: ''; width: .6em; height: .6em; border-radius: 50%; background: var(--live); flex: none; transform: translateY(-.05em); }
.zu.lab::before { background: var(--lab); }
.store { display: inline-block; font: 700 15px/1 var(--disp); padding: 13px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.store:hover { background: #2a323d; }

/* Bühne: drei Handys, oder bei Apps mit iPad-Fassung das iPad hinten und zwei Handys davor */
.buehne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 34px 34px 0; border-radius: 28px 28px 0 0; background: var(--paper); overflow: hidden; align-items: start; }
.buehne .ph { margin-bottom: -22%; }
.buehne .ph:nth-child(2) { margin-top: 9%; }
.buehne.mitpad { display: block; position: relative; aspect-ratio: 3 / 2; padding: 0; }
.pad { position: absolute; left: 5%; top: 8%; width: 56%; aspect-ratio: 3 / 4; border-radius: 4.2% / 3.2%; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #000, 0 18px 40px rgba(18, 22, 28, .18); }
.pad.klein { width: 50%; top: 3%; } /* Otriva: Erklärungskarte ganz sichtbar, kein Handy davor */
.pad.quer { width: 80%; top: 10%; aspect-ratio: 4 / 3; border-radius: 3.2% / 4.2%; }
.pad img { width: 100%; height: 100%; object-fit: cover; }
.buehne.mitpad .ph { position: absolute; width: 23.5%; margin: 0; box-shadow: 0 0 0 5px #000, 0 18px 40px rgba(18, 22, 28, .3); }
.buehne.mitpad .ph:nth-of-type(2) { right: 31%; top: 30%; }
.buehne.mitpad .ph:nth-of-type(3) { right: 5%; top: 18%; }

/* Research: dunkel */
.labor { background: var(--night); color: var(--night-ink); margin-top: 40px; padding: 70px 0 60px; }
.labor .kopf p, .labor .zu { color: var(--night-muted); }
.labor .zeile { border-color: #24363F; }
.labor .satz { color: #C9D3D9; }
.bild { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--night-2); display: grid; place-items: center; }
.bild > img { width: 100%; height: 100%; object-fit: cover; }
.bild.ui { aspect-ratio: auto; } /* Bildschirmaufnahme: eigenes Seitenverhältnis, nichts abschneiden */
.bild.ui > img { height: auto; }
.bild .ph { height: 92%; width: auto; align-self: end; box-shadow: 0 0 0 5px #000; border-radius: 13% 13% 0 0 / 6% 6% 0 0; }
.bild.zwei { display: flex; justify-content: center; align-items: flex-start; gap: 6%; padding-top: 6%; }
.bild.zwei .ph { align-self: flex-start; height: 125%; flex: none; box-shadow: 0 0 0 5px #000; border-radius: 13% / 6%; } /* Handys unten angeschnitten wie in der Produktion */

/* Selektives Hören: dieselbe Szene zweimal, der Schalter tauscht nur, welche man hört */
.bild.hoer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.hoer .los { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.hoer .los svg { width: 26px; height: 26px; }
.hoer .schalter { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 15px/1 var(--text); }
.hoer .schalter button { font: inherit; color: var(--night-ink); background: none; border: 0; padding: 11px 16px; border-radius: 999px; cursor: pointer; }
.hoer .schalter button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.hoer .szene { color: var(--night-ink); font-size: 16px; }
.hoer .szene span { display: block; color: var(--night-muted); font-size: 14px; margin-top: 4px; }
.hoer .quelle { font-size: 12px; color: var(--night-muted); opacity: .8; }

footer { padding: 70px 0 110px; }
footer h2 { font: 800 clamp(30px, 4vw, 52px)/1.05 var(--disp); letter-spacing: -.02em; }
footer p { margin-top: 14px; color: var(--muted); }
footer .mail { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--disp); color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
footer .klein { margin-top: 28px; font-size: 14px; }
footer .klein a { color: inherit; }

/* Impressum und Datenschutz */
.recht { max-width: 760px; padding-top: max(6vh, 48px); padding-bottom: 4vh; }
.recht h1 { font: 800 clamp(34px, 4.6vw, 56px)/1.05 var(--disp); letter-spacing: -.02em; margin-bottom: 10px; }
.recht .stand { color: var(--muted); font-size: 15px; }
.recht h2 { font: 800 21px/1.25 var(--disp); margin: 40px 0 10px; }
.recht p { margin-top: 10px; max-width: 64ch; }
.recht a { text-underline-offset: 3px; }
.nichtda { padding-top: 22vh; padding-bottom: 22vh; }
.nichtda h1 { font: 800 clamp(30px, 4vw, 52px)/1.05 var(--disp); letter-spacing: -.02em; margin-bottom: 28px; }
.top .kurz { display: none; }

@media (max-width: 820px) {
  /* Am Handy: schmaler, deckend, weicht beim Runterscrollen nach oben aus (js: .weg).
     Safari (ab iOS 26) färbt den Streifen hinter Uhrzeit und Dynamic Island in der Farbe einer oben klebenden Leiste.
     Deckend statt Milchglas, damit Safari die Farbe lesen kann (hell über Produktion, dunkel über Research) und das Scrollen leicht bleibt.
     Weg = visibility: hidden und kein <header>-Element, sonst behält Safari den Streifen (WebKit Page::updateFixedContainerEdges). */
  .top { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s, background-color .3s, color .3s; }
  .top.nacht { background: var(--night); }
  .top.weg { transform: translateY(-100%); visibility: hidden;
    transition: transform .26s cubic-bezier(.4, 0, .7, .2), visibility 0s linear .26s, background-color .3s, color .3s; }
  .top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 1px; background: var(--line); opacity: 0; transition: opacity .25s; }
  .top.nacht::after { background: #24363F; }
  .top.unter::after { opacity: 1; }
  .top .wrap { height: 48px; }
  html { scroll-padding-top: 56px; }
  .wrap { padding: 0 16px; }
  .top nav a { padding: 9px 10px; font-size: 15px; }
  .beide { grid-template-columns: 1fr; gap: 14px; }
  .teil { padding: 24px 22px 26px; border-radius: 22px; }
  .teil > p { margin-bottom: 22px; }
  .teil.prod .kacheln { gap: 16px 8px; } /* drei mal zwei mit Namen wie am Rechner */
  .teil.prod .kacheln a { font-size: 12.5px; }
  .teil.prod .ic { width: min(68px, 78%); margin: 0 auto 6px; }
  .teil.res .kacheln { gap: 12px 10px; } /* zwei mal zwei wie am Rechner: vier in einer Reihe sind zu schmal für die Namen */
  .teil.res .kacheln a { font-size: 13px; }
  .teil.res .kachel.leer { font-size: 12px; }
  .kopf { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Ein Projekt bleibt beisammen: Name, gleich darunter die Bilder, dann der Text, dann Knopf und Stand */
  .zeile { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 40px 0; }
  .zeile > div:first-child { display: contents; }
  .zeile .ic { order: 1; width: 56px; margin-bottom: 14px; }
  .zeile h3 { order: 2; }
  .zeile .amt { order: 3; }
  .zeile .buehne, .zeile .bild { order: 4; margin-top: 18px; }
  .zeile .satz { order: 5; margin: 20px 0 18px; }
  .zeile .unten, .zeile > div > .zu { order: 6; }

  /* Bildschirme als Reihe zum Wischen, in lesbarer Größe, ganz sichtbar; die nächste lugt rechts herein */
  .buehne, .buehne.mitpad, .bild.zwei {
    display: flex; align-items: center; gap: 14px; aspect-ratio: auto; position: static;
    margin-left: -16px; margin-right: -16px; padding: 22px 16px; border-radius: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .buehne::-webkit-scrollbar, .bild.zwei::-webkit-scrollbar { display: none; }
  .buehne::after, .bild.zwei::after { content: ''; flex: 0 0 2px; }
  .buehne .ph, .buehne.mitpad .ph, .bild.zwei .ph {
    position: static; flex: 0 0 min(54vw, 250px); width: auto; height: auto; margin: 0; align-self: center;
    border-radius: 13% / 6%; scroll-snap-align: start;
  }
  .buehne .ph:nth-child(2) { margin-top: 0; }
  .pad, .pad.klein { position: static; flex: 0 0 min(80vw, 400px); width: auto; scroll-snap-align: start; }
  .pad.quer { flex-basis: min(88vw, 540px); order: 2; } /* quer ist niedriger als die Handys: ans Ende, damit die Reihe mit vollen Handys beginnt */
  .bild.zwei { justify-content: flex-start; background: var(--night-2); }

  .bild.hoer { aspect-ratio: auto; padding: 32px 20px; } /* Inhalt bestimmt die Höhe, 16:10 war am Handy zu niedrig */
  .labor { padding-bottom: 24px; }
  footer { padding: 56px 0 72px; }
  footer .klein .rechtlich { display: block; margin-top: 6px; }
  footer .klein .trenner { display: none; }
}
@media (max-width: 560px) { /* voller Name passt neben drei Links erst ab hier in eine Zeile */
  .top .voll { display: none; }
  .top .kurz { display: inline; }
}
@media (max-width: 400px) {
  .top .wrap { font-size: 15px; }
  .top nav a { padding: 8px 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top, .top.weg, .top .zeiger, .top nav a, .teil.prod .ic, .teil.res .kachel { transition: none; }
}
