/* stil.css koritsch.com
   Mobile first: alles ausserhalb von @media gilt fuer das Handy, ab 48rem
   (768px) kommt die Rechnerfassung dazu. Dieselbe Grenze steht in
   eleventy.config.js (SCHMAL) und video.js.
   Farben, Schrift, Masse und Bewegung nach
   _material-alpine-games/vorlage/GESTALTUNG.md.

   Der Hero folgt Main.dc.html und Mobil.dc.html und hat eine eigene
   Grenze bei 64rem. */

/* --- Schriften, selbst gehostet ----------------------------------------- */
/* Fontsource 5.1.0, OFL (Lizenzen in src/schriften/). Keine Abrufe bei Google. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schriften/inter-latin-600-normal.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: 600; font-display: swap;
  src: url("schriften/inter-latin-ext-600-normal.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;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/dm-sans-latin-400-normal.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: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/dm-sans-latin-ext-400-normal.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;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schriften/dm-sans-latin-500-normal.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: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schriften/dm-sans-latin-ext-500-normal.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;
}

/* --- Werte -------------------------------------------------------------- */
:root {
  --ton-text: #17171F;
  --ton-text-matt: #4A4A57;
  --ton-grau: #83838F;
  --ton-grau-hell: #B0B0BC;
  --ton-linie: #6A6A78;
  --ton-flaeche: #EFF0F6;
  --ton-flaeche-2: #D4D5E4;
  --ton-dunkel: #17171F;
  --ton-dunkel-2: #262630;
  --ton-violett: #8B4DEF;
  --ton-violett-hell: #EDE4FD;
  /* Subline auf der gruenen Flaeche im Hero: 7,1:1 auf den Kacheln. Nicht
     aufhellen, #8B4DEF kommt dort nur auf 3,8:1 (Mindestwert 4,5:1). */
  --ton-violett-dunkel: #5B2BA8;
  --ton-gruen: #B9FA3C;
  --ton-gruen-raster: #B6EF52;
  --ton-gruen-fuell: #8FCF38;
  --ton-weiss: #FFFFFF;

  --schrift-kopf: "Inter", system-ui, sans-serif;
  --schrift-text: "DM Sans", system-ui, sans-serif;

  --rand: 20px;
  --rundung: 14px;
  --knopf-hoehe: 48px;
  --breite: 1360px;
  --abstand: 72px;
}
@media (min-width: 48rem) {
  :root {
    --rand: 40px;
    --rundung: 18px;
    --knopf-hoehe: 42px;
    --abstand: 120px;
  }
}

/* --- Grundlage ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ton-text);
  background: var(--ton-weiss);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
strong { font-weight: 500; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
/* Link-Hover nach Vorgabe gruen. Gruene Schrift auf hellem Grund waere nicht
   lesbar (Kontrast 1,2:1), daher als Flaeche hinter dunkler Schrift. */
a:hover { background-color: var(--ton-gruen); text-decoration-color: transparent; }

/* Sichtbarer Fokusrahmen, auf jedem Grund erkennbar. */
:focus-visible {
  outline: 3px solid var(--ton-violett);
  outline-offset: 3px;
  border-radius: 4px;
}

.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: var(--rand); top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--ton-dunkel); color: var(--ton-weiss);
  border-radius: 999px; text-decoration: none;
}
.sprung:focus { top: 12px; }

/* Seitenrand und Hoechstbreite fuer alle Bloecke. */
.kopf, .cases, .about, .kontakt, .fuss, .rechtstext {
  width: 100%;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* --- Knopf -------------------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--knopf-hoehe);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 31, 0.35);
  background: transparent;
  color: var(--ton-text);
  font: 500 1rem/1 var(--schrift-text);
  cursor: pointer;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.knopf-dunkel { background: var(--ton-dunkel); border-color: var(--ton-dunkel); color: var(--ton-weiss); }
@media (hover: hover) {
  .knopf:hover { background: var(--ton-gruen); border-color: var(--ton-gruen); color: var(--ton-text); }
}

/* --- Kopf --------------------------------------------------------------- */
/* Nach den Vorlagen: 60px hoch, Marke 15px am Handy; 72px und 17px ab
   64rem. Auf der Startseite liegt der Kopf ueber dem Hero. Dieselbe Marke
   steht in der Fusszeile. */
.kopf { display: flex; align-items: center; min-height: 60px; }
.marke {
  display: inline-block;
  padding-block: 12px;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.seite-start .kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 3; max-width: none; }
@media (min-width: 64rem) {
  .kopf { min-height: 72px; }
  .marke { font-size: 17px; }
  .seite-start .kopf .marke { color: var(--ton-weiss); }
  .seite-start .kopf .marke:focus-visible { outline-color: var(--ton-gruen); }
}

/* --- Hero --------------------------------------------------------------- */
/* Handy (Mobil.dc.html, 390 breit): helle Flaeche, Text oben, Bild 420px
   hoch. Keine Rasterinszenierung, keine Einblendung. Abweichung: das Bild
   beginnt bei 284px statt 200px. Das Handybild der Vorlage lag nicht bei;
   aus unseren Ebenen zusammengesetzt laege sonst der Kopf der Figur unter
   der Subline.
   Rechner ab 64rem (Main.dc.html, 1440 x 860): alle Masse der Vorlage in
   Vorlagen-Pixeln mal --px, so skaliert die ganze Buehne gleichmaessig mit
   der Breite und Bilder, Kacheln und Raster bleiben deckungsgleich. --px
   waechst hoechstens bis 1px: ab 1440px Breite bleiben Hoehe, Kacheln,
   Raster und Text bei Groesse und Lage der Vorlage, links angeschlagen wie
   dort, nur Wand und Figur laufen nach rechts weiter.
   Eigene Grenze 64rem statt 48rem: darunter wuerde die Subline der
   Rasterfassung unter 15px fallen. */
.hero { position: relative; overflow: hidden; background: var(--ton-flaeche); container-type: inline-size; }
.hero-buehne {
  --bildhoehe: clamp(420px, 107.7cqw, 640px);
  --versatz: calc(var(--bildhoehe) * 0.1);   /* 86px auf 860px Hoehe */
  --bildoben: 284px;
  position: relative;
  height: calc(var(--bildoben) + var(--bildhoehe));
}
.hero-bild {
  position: absolute; left: 0; right: 0; top: var(--bildoben);
  height: var(--bildhoehe);
  overflow: hidden;
}
.hero-bild img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero-schatten { transform: translateX(var(--versatz)); mix-blend-mode: multiply; }
.hero-figur { transform: translateX(var(--versatz)); }
/* Handy: die dunkle Wand laeuft nach links und oben in die helle Flaeche aus. */
.hero-verlauf {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ton-flaeche) 0%, rgba(239, 240, 246, 0) 22%),
    linear-gradient(90deg, var(--ton-flaeche) 0%, rgba(239, 240, 246, 0.85) 22%, rgba(239, 240, 246, 0) 58%);
}
.hero-kacheln, .hero-raster, .pfeilzeilen { display: none; }

.hero-text { position: absolute; left: var(--rand); right: var(--rand); top: 86px; z-index: 2; }
.hero h1 {
  font-size: 52px;
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.hero h1 .zeile { display: block; }
.subline {
  max-width: 300px;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.31;
  color: var(--ton-violett);
}

@media (min-width: 64rem) {
  .hero { background: #1B2530; }
  .hero-buehne {
    --px: min(calc(100cqw / 1440), 1px);
    --versatz: calc(86 * var(--px));
    height: calc(860 * var(--px));
  }
  .hero-bild { top: 0; height: 100%; }
  .hero-verlauf {
    background: linear-gradient(90deg, rgba(139, 77, 239, 0.05) 0%, rgba(139, 77, 239, 0.028) 26%, rgba(139, 77, 239, 0) 50%);
  }
  .hero-kacheln, .hero-raster {
    display: block;
    position: absolute; left: 0; top: 0;
    width: calc(1440 * var(--px)); height: 100%;
  }
  .hero-kacheln .kachel { opacity: 0; animation: einfaerben 520ms ease-out var(--v) forwards; }
  /* Unterste Stufe links unten bleibt Steinwand: zehn Kacheln, in der
     Reihenfolge im Quelltext nullbasiert 20, 21, 22, 31, 32, 41, 42, 51, 59,
     60 (nth-child zaehlt ab 1). Hoehere Spezifitaet, damit es auch bei
     reduzierter Bewegung gilt. */
  .hero-kacheln .kachel:is(:nth-child(21), :nth-child(22), :nth-child(23),
    :nth-child(32), :nth-child(33), :nth-child(42), :nth-child(43),
    :nth-child(52), :nth-child(60), :nth-child(61)) { animation: none; opacity: 0; }

  .hero-text { position: absolute; inset: 0; }
  .hero h1 {
    position: absolute;
    left: calc(49 * var(--px));
    top: calc(92 * var(--px));
    font-size: calc(154 * var(--px));
    transform: scale(1.0385, 0.8555);
    transform-origin: left bottom;
    color: var(--ton-weiss);
  }
  .subline {
    position: absolute;
    left: calc(62 * var(--px));
    top: calc(400 * var(--px));
    width: calc(520 * var(--px));
    max-width: none;
    margin: 0;
    font-size: max(15px, calc(18.68 * var(--px)));
    color: var(--ton-violett-dunkel);
  }
  /* Pfeilzeilen, alle vier gleichwertig weiss. Weiss auf Gruen kommt nur
     auf 1,25:1, das ist bewusst so entschieden (08.11.2026). Gruener
     Hover-Grund waere auf den Kacheln unsichtbar, daher Unterstreichung. */
  .pfeilzeilen {
    display: flex; flex-direction: column; gap: calc(12 * var(--px));
    position: absolute;
    left: calc(62 * var(--px));
    top: calc(481 * var(--px));
    margin: 0; padding: 0;
    list-style: none;
    font-size: max(14px, calc(19.36 * var(--px)));
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ton-weiss);
  }
  .pfeilzeilen a { text-decoration: none; }
  .pfeilzeilen a:hover { background: none; text-decoration: underline; text-decoration-color: currentColor; }
  .hero h1, .subline, .pfeilzeilen { opacity: 0; animation: texteinblenden 700ms ease-out 2.9s forwards; }
}
/* Breiter als die Vorlage: das Raster endet bei 1440px, dort laeuft es aus,
   statt an der letzten Linie abzubrechen. */
@media (min-width: 90.0625rem) {
  .hero-raster { mask-image: linear-gradient(90deg, #000 75%, transparent); }
}
/* Ohne Bewegung gleich der Endzustand, nicht erst nach einer verkuerzten
   Animation: so bleibt nichts unsichtbar, falls sie nicht ablaeuft. */
@media (prefers-reduced-motion: reduce) {
  .hero-kacheln .kachel { animation: none; opacity: 0.92; }
  .hero h1, .subline { animation: none; opacity: 1; }
  .pfeilzeilen { animation: none; opacity: 1; }
}
@keyframes einfaerben { from { opacity: 0; } to { opacity: 0.92; } }
@keyframes texteinblenden { from { opacity: 0; } to { opacity: 1; } }

/* --- Cases -------------------------------------------------------------- */
/* Unter 64rem die bisherige Handyfolge: Medium, Titel, Text, Rolle, Zusatz,
   Linkzeile. Kopf, Koerper und Textspalte loesen sich dafuer auf
   (display: contents), "order" stellt die Folge her. Die Kategorie bleibt
   fuer Vorleseprogramme erhalten, die Linie entfaellt.
   Ab 64rem der neue Aufbau: Kopfzeile, Linie, Koerper. */
.cases { margin-top: var(--abstand); }
.case { display: flex; flex-direction: column; scroll-margin-top: 32px; }
.case + .case { margin-top: var(--abstand); }
.case-kopf, .case-koerper, .case-text { display: contents; }
.case-kopf h2 {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.case-linie { display: none; }
.case .medium { order: 1; }
.case-titel { order: 2; margin-top: 24px; font-size: 28px; }
.case-text p { margin: 14px 0 0; color: var(--ton-text-matt); max-width: 44rem; }
.case-text p:not(.zusatz):not(.linkzeile) { order: 3; }
/* overflow-wrap: Die Rolle von Light Ride haelt drei Begriffe mit
   geschuetzten Leerzeichen zusammen. Unter etwa 380px waere das breiter
   als der Schirm; dann bricht sie notfalls im Wort statt seitlich
   ueberzustehen. Am Rechner greift das nie. */
.case .rolle { order: 4; margin: 14px 0 0; color: var(--ton-text-matt); max-width: 44rem; overflow-wrap: break-word; }
.case .zusatz {
  order: 5;
  font-size: 0.8125rem;
  color: var(--ton-grau);
}
/* NOA im Text: Farbe wie der Text, nur unterstrichen. */
.noa { color: inherit; text-decoration: underline; }
/* Ohne Abstand nach unten, damit ein Case ohne Linkzeile (LGT) genauso
   endet wie die anderen. */
.case-text .linkzeile { order: 6; margin: 20px 0 0; }
.linkzeile a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding-block: 10px;
  border-bottom: 1px solid var(--ton-text);
  color: var(--ton-text);
  font-weight: 500;
  text-decoration: none;
}
.pfeil { flex: none; transition: transform 200ms; }
.linkzeile a:hover .pfeil { transform: translate(2px, -2px); }

@media (min-width: 48rem) {
  .case { scroll-margin-top: 48px; }
  .case-titel { margin-top: 32px; font-size: 40px; letter-spacing: -0.03em; }
}
@media (min-width: 64rem) {
  .cases { margin-top: 60px; }
  .case { display: block; }
  /* Die Handyfolge gilt hier nicht: Medium links, Text rechts. */
  .case .medium, .case-titel, .case-text p, .case .rolle, .case .zusatz,
  .case-text .linkzeile { order: 0; }
  .case + .case { margin-top: 96px; }
  .case-kopf {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: last baseline;
  }
  .case-kopf h2 {
    position: static; width: auto; height: auto; margin: 0;
    overflow: visible; clip-path: none; white-space: normal;
    font-size: 40px; letter-spacing: -0.03em;
  }
  .case-kopf .rolle {
    margin: 0;
    max-width: none;
    text-align: left;
    color: var(--ton-violett-dunkel);   /* #5B2BA8 */
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .case-linie {
    display: block;
    border: 0;
    border-top: 1px solid var(--ton-gruen-fuell);   /* #8FCF38 */
    margin: 0.5rem 0 1rem;
  }
  .case-koerper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  .case-text { display: block; }
  .case-titel {
    margin: 0 0 0.6rem;
    font-family: var(--schrift-kopf);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
}

/* Medium: am Handy alles untereinander im eigenen Seitenverhaeltnis. */
.medium { display: grid; gap: 10px; }
.medium-bild, .video-rahmen, .platzhalter {
  border-radius: var(--rundung);
  overflow: hidden;
  background: var(--ton-flaeche-2);
}
.medium-bild img { width: 100%; }
.platzhalter {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  color: var(--ton-linie);
  font-size: 0.875rem;
}

/* Ab 48rem: drei Bilder oder Platzhalter gleich hoch nebeneinander, alle
   im selben Zuschnitt 4:5, oder zwei quer in 4:3. Die Bilder werden dafuer
   beschnitten. */
@media (min-width: 48rem) {
  .medium-bilder, .medium-platzhalter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .medium-bilder .medium-bild, .medium-platzhalter .platzhalter { position: relative; aspect-ratio: 4 / 5; }
  .medium-bilder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* Querformat (Orama): zwei nebeneinander im Zuschnitt 4:3. */
  .medium-bilder.medium-quer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .medium-quer .medium-bild { aspect-ratio: 4 / 3; }
}

/* --- Video, Zwei-Klick -------------------------------------------------- */
.video-rahmen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ton-dunkel);
}
.video-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-rahmen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 47.99rem) {
  .video-hat-hoch .video-rahmen { aspect-ratio: 9 / 16; }
}
/* Nach dem Klick zaehlt die Fassung, die geladen wurde. */
.video[data-fassung="quer"] .video-rahmen { aspect-ratio: 16 / 9; }
.video[data-fassung="hoch"] .video-rahmen { aspect-ratio: 9 / 16; }

.video-start {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ton-dunkel);
  border-color: var(--ton-dunkel);
  color: var(--ton-weiss);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.video-start[hidden] { display: none; }
.video-start:focus-visible { outline-color: var(--ton-gruen); }
/* Knopf so breit wie sein Text, am Handy darf er umbrechen. */
.video-start { width: max-content; max-width: calc(100% - 32px); padding-block: 8px; }
.video-start svg { flex: none; }
.video-start > span { line-height: 1.3; }
.video-quelle { font-size: 0.8125rem; font-weight: 400; color: var(--ton-grau-hell); }

/* --- Über mich ---------------------------------------------------------- */
/* Oben das Foto quer ueber die volle Breite, ungeschnitten. Darunter
   Ueberschrift und Text, ab 64rem in zwei Spalten. */
.about { margin-top: var(--abstand); }
.about-bild {
  border-radius: var(--rundung);
  overflow: hidden;
  background: var(--ton-flaeche-2);
}
.about-bild img { width: 100%; }
.about h2 { margin-top: 32px; font-size: 36px; letter-spacing: -0.03em; }
.about-text p { margin: 16px 0 0; color: var(--ton-text-matt); }
@media (min-width: 48rem) {
  .about h2 { margin-top: 48px; font-size: 56px; }
}
@media (min-width: 64rem) {
  .about-text { columns: 2; column-gap: 56px; margin-top: 8px; }
  .about-text p { break-inside: avoid; }
  .about-text p:first-child { margin-top: 0; }
}

/* --- Kontakt ------------------------------------------------------------ */
/* Nur die Mailadresse, gross gesetzt. Ohne JavaScript steht dieselbe
   Schreibweise als Text da (span), sonst als Link (a), siehe video.js. */
.kontakt { margin-top: var(--abstand); padding-bottom: var(--abstand); }
.kontakt h2 { font-size: 36px; letter-spacing: -0.03em; }
.kontakt-adresse { margin: 1.2rem 0 0; }
.kontakt-mail {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ton-gruen-fuell);   /* #8FCF38 */
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: clamp(14px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ton-text);                            /* #17171F */
  text-decoration: none;
  transition: color 200ms, border-color 200ms;
}
a.kontakt-mail:hover {
  background: none;
  color: var(--ton-violett-dunkel);                  /* #5B2BA8 */
  border-bottom-color: var(--ton-violett-dunkel);
}
@media (min-width: 48rem) {
  .kontakt h2 { font-size: 56px; }
}

/* --- Fusszeile ---------------------------------------------------------- */
.fuss {
  max-width: none;
  padding-block: 32px;
  background: var(--ton-flaeche);
  color: var(--ton-linie);
  font-size: 0.875rem;
}
.fuss > * { max-width: var(--breite); margin-inline: auto; }
.fuss p { margin: 0; }
.fuss .marke { padding-block: 0; margin-bottom: 8px; color: var(--ton-text); }
.fuss ul { list-style: none; padding: 0; margin: 12px auto 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss a { display: inline-block; padding-block: 6px; }

/* --- Rechtsseiten ------------------------------------------------------- */
.rechtstext { max-width: calc(44rem + 2 * var(--rand)); padding-block: 24px var(--abstand); }
.rechtstext h1 { font-size: 40px; letter-spacing: -0.03em; }
.rechtstext h2 { font-size: 20px; margin-top: 40px; letter-spacing: -0.015em; }
.rechtstext p, .rechtstext li { color: var(--ton-text-matt); overflow-wrap: anywhere; }
.rechtstext ul { padding-left: 1.2em; }
@media (min-width: 48rem) {
  .rechtstext h1 { font-size: 56px; }
}

/* --- Bewegung ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------
   Handy-Hero: eigene Hochformat-Komposition aus denselben Teilen wie
   der Desktop. Entwurfsbreite 375, alle Werte in Entwurfseinheiten
   mal --mpx, damit Bilder, Kacheln und Raster deckungsgleich bleiben.
   Gilt nur unterhalb von 48rem, die Desktopfassung bleibt unberuehrt.
   ------------------------------------------------------------------ */
@media (max-width: 47.99rem) {
  :root { --mpx: min(calc(100vw / 375), 1.25px); }
  .hero-buehne {
    --mpx: min(calc(100cqw / 375), 1.25px);
    position: relative;
    height: max(100svh, calc(671.7 * var(--mpx)));
    overflow: visible;
    background: none;
  }
  .hero-bild { position: absolute; left: 0; right: 0; top: 0; bottom: auto;
    height: calc(433.8 * var(--mpx)); overflow: hidden; background: #1B2530; }

  /* Steinwand liegt eins zu eins auf dem Kachelraster */
  .hero-bild .hero-wand {
    position: absolute;
    left: calc(-130 * var(--mpx)); top: 0; right: auto; bottom: auto;
    width: calc(814 * var(--mpx)); height: calc(486 * var(--mpx));
    max-width: none;
    object-fit: cover; object-position: 100% 50%;
  }

  .hero-verlauf { position: absolute; inset: 0; }

  .hero-kacheln, .hero-raster {
    display: block;
    position: absolute;
    left: calc(-130 * var(--mpx)); top: 0;
    width: calc(814 * var(--mpx)); height: calc(486 * var(--mpx));
  }

  /* Schatten liegt eins zu eins hinter der Figur */
  .hero-bild .hero-schatten, .hero-bild .hero-figur {
    position: absolute;
    left: auto; top: auto;
    right: calc(-230 * var(--mpx)); bottom: calc(-52.2 * var(--mpx));
    width: auto; height: calc(490 * var(--mpx));
    max-width: none;
    object-fit: contain; object-position: right bottom;
    transform: none;
  }
  .hero-bild .hero-schatten { z-index: 1; }
  .hero-bild .hero-figur { z-index: 2; }

  .hero-text { position: absolute; left: 0; right: 0; top: 0; bottom: auto;
    height: calc(433.8 * var(--mpx)); z-index: 4; }

  .hero h1 {
    position: absolute;
    left: calc(16.8 * var(--mpx));
    top: calc(44.4 * var(--mpx));
    font-size: calc(56 * var(--mpx));
    line-height: 0.92;
    letter-spacing: -0.015em;
    color: var(--ton-weiss);
    transform: scale(1.0385, 0.8555);
    transform-origin: left bottom;
  }

  .subline {
    position: absolute;
    left: calc(20 * var(--mpx));
    top: calc(162.2 * var(--mpx));
    width: calc(230 * var(--mpx));
    max-width: none;
    margin: 0;
    font-size: calc(13.3 * var(--mpx));
    line-height: 1.35;
    color: #5B2BA8;
  }

  .pfeilzeilen {
    display: flex; flex-direction: column; gap: calc(8 * var(--mpx));
    position: absolute;
    left: calc(20 * var(--mpx));
    top: calc(457.8 * var(--mpx));
    margin: 0; padding: 0;
    list-style: none;
    font-family: Inter, system-ui, sans-serif;
    font-size: calc(15.4 * var(--mpx));
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5B2BA8;
  }
  .pfeilzeilen a { text-decoration: none; color: inherit; }
  .pfeilzeilen .pfeil { position: relative; top: -0.216em; }

  .kopf .marke { color: #5B2BA8; font-size: calc(15.4 * var(--mpx)); font-weight: 700;
    position: relative; top: calc(-3 * var(--mpx)); }

  /* Am Handy grau bleibende Kacheln (nullbasiert 49, 50, 51, 57, 58, 59, 60, 65, 66, 67) */
  .hero-kacheln .kachel:is(:nth-child(50), :nth-child(51), :nth-child(52),
    :nth-child(58), :nth-child(59), :nth-child(60), :nth-child(61),
    :nth-child(66), :nth-child(67), :nth-child(68)) { animation: none; opacity: 0; }

  /* Aufbau diagonal von links oben nach rechts unten, danach gleich der Text */
  .hero-kacheln .kachel { opacity: 0; animation: einfaerben 520ms ease-out var(--vd, var(--v)) forwards; }
  .hero h1, .subline { opacity: 0; animation: texteinblenden 500ms ease-out 1.4s forwards; }
  .pfeilzeilen { opacity: 1; animation: none; }
  .pfeilzeilen li { opacity: 0; animation: einfliegen 420ms ease-out forwards; }
  .pfeilzeilen li:nth-child(1) { animation-delay: 2.00s; }
  .pfeilzeilen li:nth-child(2) { animation-delay: 2.15s; }
  .pfeilzeilen li:nth-child(3) { animation-delay: 2.30s; }
  .pfeilzeilen li:nth-child(4) { animation-delay: 2.45s; }

  /* Hinweis zum Weiterblaettern */
  .hero-buehne::after {
    content: "";
    position: absolute; left: 50%; bottom: calc(62.5 * var(--mpx));
    width: calc(20 * var(--mpx)); height: calc(20 * var(--mpx));
    margin-left: calc(-10 * var(--mpx));
    border-left: calc(2 * var(--mpx)) solid #5B2BA8;
    border-bottom: calc(2 * var(--mpx)) solid #5B2BA8;
    transform: rotate(-45deg);
    animation: scrollhinweis 1.8s ease-in-out 2.9s infinite;
  }
}
@keyframes einfliegen {
  from { opacity: 0; transform: translateX(calc(-26 * var(--mpx))); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scrollhinweis {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50%      { transform: rotate(-45deg) translate(calc(-5 * var(--mpx)), calc(5 * var(--mpx))); }
}
@media (max-width: 47.99rem) and (prefers-reduced-motion: reduce) {
  .hero-kacheln .kachel, .hero h1, .subline, .pfeilzeilen, .pfeilzeilen li { animation: none; opacity: 1; }
  .hero-buehne::after { animation: none; }
}

/* Umbrueche, die nur am Handy gelten */
@media (min-width: 48rem) { br.nur-handy { display: none; } }

/* Am Handy zeigt der Startknopf nur das Dreieck, die Beschriftung bleibt
   fuer Vorleseprogramme erhalten. */
@media (max-width: 47.99rem) {
  .video-start {
    width: calc(56 * var(--mpx)); height: calc(56 * var(--mpx));
    max-width: none; padding: 0;
    border-radius: 50%;
    display: grid; place-items: center;
  }
  .video-start > span {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .video-start svg { width: calc(24 * var(--mpx)); height: calc(24 * var(--mpx)); }
}

/* ------------------------------------------------------------------
   Cases am Handy: Kopfzeile wie am Rechner, nur kleiner. Kategorie und
   Titel stehen in einer Ueberschrift, darunter die Linie. Die Rolle
   rueckt unter den Text, abgetrennt durch eine zweite Linie, und steht
   vor der Linkzeile. Was hinter <span class="mehr-rest"> steht, zeigt
   erst der Knopf "mehr" (seite-mehr in video.js).
   ------------------------------------------------------------------ */
@media (min-width: 48rem) { .kopf-titel { display: none; } }

@media (max-width: 47.99rem) {
  .cases { margin-top: 36px; }
  .case-kopf { display: contents; }
  .case-kopf h2 {
    position: static; width: auto; height: auto; margin: 0; padding: 0;
    overflow: visible; clip-path: none; white-space: normal; border: 0;
    font-size: 23px; line-height: 1.1; letter-spacing: -0.03em;
  }
  /* Der Strich bleibt in der ersten Zeile, der Name steht darunter. */
  .case-kopf h2 .kopf-name { display: block; }
  .case-linie {
    display: block; border: 0;
    border-top: 1px solid var(--ton-gruen-fuell);
    margin: 8px 0 14px;
  }
  /* Der Titel steht jetzt oben in der Ueberschrift, die h3 bleibt fuer
     aria-labelledby erhalten, aber unsichtbar. */
  .case-titel {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .case .rolle {
    order: 4;
    margin: 22px 0 0; padding-top: 14px;
    border-top: 1px solid var(--ton-gruen-fuell);
    color: var(--ton-violett-dunkel);
    font-size: 12px; line-height: 1.4; max-width: none;
  }

  /* Aufklappen */
  .case.hat-mehr:not(.offen) .mehr-rest { display: none; }
  .case.hat-mehr:not(.offen) .rolle,
  .case.hat-mehr:not(.offen) .linkzeile { display: none; }
  .mehr-knopf {
    order: 4; align-self: start;
    margin-top: 16.1px; padding: 0;
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ton-violett-dunkel);
  }
  .mehr-knopf svg { width: 12px; height: 12px; transition: transform 200ms ease; }
  .case.offen .mehr-knopf { order: 7; }   /* aufgeklappt steht der Link darueber */
  .case.offen .mehr-knopf svg { transform: rotate(180deg); }
}

/* Am Handy ist das Vorschaubild quadratisch; laeuft das Video, nimmt der
   Rahmen das Format der gewaehlten Fassung an. */
@media (max-width: 47.99rem) {
  /* Vor dem Klick immer quadratisch, auch bei Cases mit Hochfassung.
     Hoehere Spezifitaet als .video-hat-hoch .video-rahmen weiter oben. */
  .video .video-rahmen,
  .video.video-hat-hoch .video-rahmen { aspect-ratio: 1 / 1; }
  /* Das Video laeuft im Vollbild, die Kachel bleibt quadratisch stehen. */
  .video-rahmen img,
  .video-rahmen video { object-fit: cover; }
}

/* ------------------------------------------------------------------
   Karussell am Handy: die Bilder eines Case stehen nicht untereinander,
   sondern quadratisch nebeneinander und werden gewischt. Die Punkte und
   das Weiterdrehen macht video.js; ohne JavaScript bleibt es ein
   wischbarer Streifen, der weiterhin alle Bilder zeigt.
   ------------------------------------------------------------------ */
@media (max-width: 47.99rem) {
  .medium-bilder {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .medium-bilder::-webkit-scrollbar { display: none; }
  .medium-bilder .medium-bild {
    flex: 0 0 100%;
    scroll-snap-align: center;
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
  }
  .medium-bilder .medium-bild img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  /* Punkte unter dem Karussell */
  .karussell-punkte {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 12px;
    padding: 0; list-style: none;
  }
  .karussell-punkte li {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ton-linie);
    transition: background 200ms ease, transform 200ms ease;
  }
  .karussell-punkte li[aria-current="true"] {
    background: var(--ton-violett-dunkel);
    transform: scale(1.3);
  }
}

/* Textfassungen je Breite (bisher nur Ibiza Square). Das br.nur-handy
   in der Subline bleibt davon unberuehrt. */
@media (min-width: 48rem) { p.nur-handy { display: none; } }
@media (max-width: 47.99rem) { p.nur-rechner { display: none; } }

/* Am Handy steht das Foto zu "Über mich" wie die Cases in einer
   quadratischen Kachel, formatfuellend beschnitten. */
@media (max-width: 47.99rem) {
  .about-bild { position: relative; aspect-ratio: 1 / 1; }
  .about-bild img,
  .about-bild picture {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 28% center;
  }
}

/* --- Kontaktwege: lila Knopf mit weissem Zeichen, daneben die Beschriftung
   mit gruener Unterstreichung. Knopf und Text liegen im selben Link. --- */
.kontaktwege {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.kontaktweg {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ton-text);
}
.kontaktweg-zeichen {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--ton-violett-dunkel);   /* #5B2BA8 */
  color: var(--ton-weiss);
  transition: background 200ms ease;
}
.kontaktweg-text {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ton-gruen-fuell);   /* #8FCF38 */
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.kontaktweg:hover { background: none; }
@media (hover: hover) {
  .kontaktweg:hover .kontaktweg-zeichen { background: var(--ton-violett); }
  .kontaktweg:hover .kontaktweg-text {
    color: var(--ton-violett-dunkel);
    border-bottom-color: var(--ton-violett-dunkel);
  }
}
.kontaktweg:focus-visible { outline: 2px solid var(--ton-violett-dunkel); outline-offset: 4px; }
@media (min-width: 48rem) {
  .kontaktwege { gap: 22px; }
  .kontaktweg-zeichen { width: 56px; height: 56px; }
}

/* Einzelne Bilder stehen nur am Handy im Karussell, nicht am Rechner. */
@media (min-width: 48rem) { .bild-nur-handy { display: none; } }

/* Am Rechner stehen die beiden Kontaktwege nebeneinander und etwas kleiner. */
@media (min-width: 48rem) {
  .kontaktwege { grid-auto-flow: column; justify-content: start; gap: 40px; }
  .kontaktweg-zeichen { width: 45px; height: 45px; border-radius: 8px; }
  .kontaktweg-zeichen svg { width: 18px; height: 18px; }
  .kontaktweg-text { font-size: clamp(16px, 1.6vw, 22px); }
}

/* Startknopf der Videos: ueberall nur das Dreieck im runden Knopf, wie am
   Handy. Die Beschriftung bleibt fuer Vorleseprogramme erhalten. */
.video-start {
  width: 64px; height: 64px;
  min-height: 0; max-width: none; padding: 0;
  border-radius: 50%;
  display: grid; place-items: center;
}
.video-start > span {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.video-start svg { width: 26px; height: 26px; }
