/* Thomas Binder – Regeln siehe ci/ci-richtlinie.md */

/* Schriften liegen auf dem eigenen Server (fonts/, Lizenz: SIL Open Font License), es geht keine Anfrage an Google. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/big-shoulders-display-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }

:root {
  --grund: #232e2d;
  --musiker: #4c6a62;
  --paedagoge: #765868;
  --unternehmer: #4e6478;
  --text: #e8ebe9;
  --linie: rgba(232, 235, 233, 0.35);
  --farbe: var(--musiker);
  --rand: clamp(20px, 4vw, 56px);
  --titel: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --fliess: "Barlow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--fliess);
  font-size: 19px;
  line-height: 1.5;
}

body.musiker { --farbe: var(--musiker); --grund: #232e2d; }
body.paedagoge { --farbe: var(--paedagoge); --grund: #21171d; }
body.unternehmer { --farbe: var(--unternehmer); --grund: #222d38; }
body.neutral { --farbe: #5c6065; --grund: #2a2c2e; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--titel);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

h1 { font-size: clamp(56px, 8vw, 116px); }
h2 { font-size: clamp(44px, 6vw, 80px); }
h3 { font-size: clamp(32px, 3.4vw, 44px); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kopfzeile */
.kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  padding: 20px var(--rand);
}

.kopf img { width: 220px; }

.kopf nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-weight: 500;
}

.kopf nav a {
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.kopf nav a:hover, .kopf nav a[aria-current="page"] { border-bottom-color: currentColor; }

.leitsatz { margin: 0; font-size: 20px; font-weight: 500; }

/* Mitlaufende Navigation der Unterseiten: Nach dem Seitenkopf bleibt rechts oben ein Knopf in der Saeulenfarbe
   mit drei Streifen (die drei Spuren). Klick klappt die Navigation darunter auf. Aufbau in main.js. */
.navi-knopf { position: fixed; top: 16px; right: 16px; z-index: 60; width: 52px; height: 52px; padding: 0; border: 0; background: var(--farbe); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.navi-knopf i { --ty: 0px; display: block; width: 6px; height: 22px; background: var(--text); transform: translateY(var(--ty)) scaleY(1); transition: transform .35s ease; }
.navi-knopf i:nth-child(1) { --ty: 3px; }
.navi-knopf i:nth-child(3) { --ty: -3px; }
.gescrollt .navi-knopf { opacity: 1; pointer-events: auto; }
.navi-knopf[aria-expanded="true"] i { --ty: 0px; }
.navi-auf { position: fixed; top: 76px; right: 16px; z-index: 60; display: grid; min-width: 220px; background: var(--grund); border-top: 4px solid var(--farbe);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.navi-auf.offen { opacity: 1; transform: none; pointer-events: auto; }
.navi-auf a { padding: 12px 20px; font-weight: 500; text-decoration: none; }
.navi-auf a:hover, .navi-auf a[aria-current="page"] { background: var(--farbe); color: var(--text); }
.navi-auf .navi-start { padding: 16px 20px 14px; border-bottom: 1px solid var(--linie); }
.navi-auf .navi-start img { width: 150px; opacity: .85; transition: opacity .25s ease; }
.navi-auf .navi-start:hover { background: none; }
.navi-auf .navi-start:hover img { opacity: 1; }

/* Uebergang Kopf -> Knopf: Der Kopf (ohne eigenen Hintergrund) bleibt oben stehen. Beim Runterscrollen gleiten die
   Navigationspunkte nacheinander klein in den Knopf (Ziel --dx/--dy aus main.js), der Schriftzug blendet aus und der Knopf
   baut sich gleichzeitig auf. Beim Hochscrollen bis ganz oben laeuft es rueckwaerts. */
body:not(:has(.start)) .kopf { position: sticky; top: 0; z-index: 55; }
@media (prefers-reduced-motion: no-preference) {
  body:not(:has(.start)) .kopf > a { transition: opacity .45s ease; }
  body:not(:has(.start)) .kopf nav a { transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .5s ease; transition-delay: calc(var(--n, 0) * 45ms); }
  /* Der Knopf baut sich auf, waehrend die Punkte hineingleiten: Flaeche blendet ein, die drei Streifen wachsen nacheinander. */
  .navi-knopf { transition: opacity .5s ease .1s; }
  .navi-knopf i { transform: translateY(var(--ty)) scaleY(0); transition: transform .45s cubic-bezier(.2, .8, .3, 1); }
  .gescrollt .navi-knopf { transition-delay: .1s; }
  .gescrollt .navi-knopf i { transform: translateY(var(--ty)) scaleY(1); }
  .gescrollt .navi-knopf i:nth-child(1) { transition-delay: .25s; }
  .gescrollt .navi-knopf i:nth-child(2) { transition-delay: .4s; }
  .gescrollt .navi-knopf i:nth-child(3) { transition-delay: .55s; }
  /* Zurueck: die Streifen schrumpfen in umgekehrter Reihenfolge, waehrend die Punkte wieder herausgleiten. */
  html:not(.gescrollt) .navi-knopf i:nth-child(3) { transition-delay: 0s; }
  html:not(.gescrollt) .navi-knopf i:nth-child(2) { transition-delay: .1s; }
  html:not(.gescrollt) .navi-knopf i:nth-child(1) { transition-delay: .2s; }
  html:not(.gescrollt) .navi-knopf { transition-delay: .3s; }
  /* Beim Aufklappen des Menues reagieren die Streifen sofort */
  .gescrollt .navi-knopf:hover i, .gescrollt .navi-knopf[aria-expanded="true"] i { transition-delay: 0s; }
}
.gescrollt body:not(:has(.start)) .kopf { pointer-events: none; }
.gescrollt body:not(:has(.start)) .kopf > a { opacity: 0; }
.gescrollt body:not(:has(.start)) .kopf nav a { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.25); }
/* Handy: keine Navigationsleiste, nur der Knopf mit den drei Streifen, immer sichtbar (auf Hoehe des Schriftzugs) */
@media (max-width: 760px) {
  body:not(:has(.start)) .kopf nav { display: none; }
  .navi-knopf, html .gescrollt .navi-knopf { top: 27px; right: 16px; opacity: 1; pointer-events: auto; transition: none; }
  html .navi-knopf i { transform: translateY(var(--ty)) scaleY(1); transition: transform .35s ease; transition-delay: 0s; }
  .navi-auf { top: 87px; }
}
/* Im Ruhezustand kehren die Punkte in umgekehrter Reihenfolge zurueck, gleichzeitig mit dem Abbau des Knopfs */
html:not(.gescrollt) body:not(:has(.start)) .kopf nav a { transition-delay: calc(.05s + (4 - var(--n, 0)) * 45ms); }

/* Startseite */
.start {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.spuren { display: flex; flex-grow: 1; min-height: 560px; }

.spur {
  flex: 1 1 0;
  min-width: min-content;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: flex-grow 0.35s ease;
}

.spur:hover, .spur:focus-visible { flex-grow: 1.55; }

.spur-bild { flex-grow: 1; position: relative; overflow: hidden; }

.spur-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Beim Darueberfahren blendet die farbige Version des Fotos ein */
.spur-bild img.farbe { opacity: 0; transition: opacity 0.35s ease; }
.spur:hover .farbe, .spur:focus-visible .farbe { opacity: 1; }
/* Geraete ohne Maus (Handy): Statt Hover wird die Spur farbig, die gerade in der Bildmitte liegt (Klasse .aktiv aus index.html) */
@media (hover: none) {
  .spur:hover { flex-grow: 1; }
  .spur:hover .farbe { opacity: 0; }
  .spur.aktiv .farbe { opacity: 1; transition-duration: .8s; }
}

.spur-text { display: block; padding: 20px 28px 24px; background: var(--farbe); }

.spur-text strong {
  display: block;
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  text-transform: uppercase;
}

.spur-text span { display: block; font-size: 20px; line-height: 1.4; }

.spur.musiker { --farbe: var(--musiker); }
.spur.paedagoge { --farbe: var(--paedagoge); }
.spur.unternehmer { --farbe: var(--unternehmer); }

/* Fuss */
.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 32px;
  padding: clamp(40px, 6vw, 88px) var(--rand) 14px;
  color: rgba(232, 235, 233, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text); text-decoration: underline; }

/* Startseite: Die Zeile liegt durchsichtig auf den Farbflaechen, die bis ganz nach unten laufen */
.start { position: relative; }
.start .spur-text { padding-bottom: 56px; }
/* Tablet (z. B. iPad hochkant): Die Unterzeilen brechen unterschiedlich um, deshalb immer zwei Zeilen Platz, damit alle drei Bloecke gleich hoch sind */
@media (min-width: 761px) and (max-width: 1100px) { .start .spur-text > span { min-height: 2.8em; } }

.start .fuss {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-top: 0;
  pointer-events: none;
}

.start .fuss a { pointer-events: auto; }

/* Startseite, Kopf: Die Fotos laufen bis ganz oben. Der Schriftzug liegt mittig im oberen Drittel und brennt sich in die Fotos ein
   (zwei deckungsgleiche Ueberblendungen: das Bild selbst und ::before). Beim Darueberfahren blendet ::after eine weisse Kopie ein,
   dann ist er deutlicher zu sehen. Ueber mich und Kontakt stehen rechts oben, ohne Kasten. */
.start { --sz-b: min(50vw, 760px); --sz-t: clamp(110px, 16vh, 180px); }
.start .kopf { position: absolute; top: 0; left: 0; right: 0; padding: 0; display: block; pointer-events: none; }
.start .kopf > .kopf-logo { position: absolute; z-index: 3; top: var(--sz-t); left: 50%; transform: translateX(-50%); pointer-events: auto; mix-blend-mode: overlay; }
.start .kopf img { width: var(--sz-b); max-width: none; }
.start .kopf::before, .start .kopf::after { content: ""; position: absolute; z-index: 3; top: var(--sz-t); left: 50%; transform: translateX(-50%); width: var(--sz-b); aspect-ratio: 800 / 245;
  background: url(../bilder/schriftzug.png) center / contain no-repeat; pointer-events: none; }
.start .kopf::before { mix-blend-mode: overlay; }
.start .kopf::after { opacity: 0; transition: opacity .6s ease; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)) drop-shadow(0 4px 22px rgba(0, 0, 0, .55)); }
.start .kopf:has(> .kopf-logo:hover)::after { opacity: 1; }
.start .kopf nav { position: absolute; z-index: 4; top: 18px; right: calc(var(--rand) - 18px); pointer-events: auto;
  display: flex; gap: 0; padding: 0; width: max-content; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.start .kopf nav a { padding: 8px 18px; text-shadow: 0 0 14px rgba(0, 0, 0, .7), 0 0 3px rgba(0, 0, 0, .45); }
.start .kopf nav a + a { border-left: 1px solid rgba(232, 235, 233, .7) !important; }
@media (max-width: 760px) {
  /* Handy: Schriftzug dezenter (nur eine Ueberblendung, ohne Hover), bleibt in der Bildmitte und wandert leicht mit (--drift aus index.html) */
  .start { --sz-b: 74vw; }
  /* top in svh: bleibt stehen, wenn die Adressleiste des Browsers ein- oder ausfaehrt; Transform setzt index.html */
  .start .kopf > .kopf-logo { position: fixed; top: 50%; top: 50svh; transform: translate3d(-50%, -50%, 0); will-change: transform; backface-visibility: hidden; opacity: .85; }
  .start .kopf::before, .start .kopf::after { display: none; }
  .start .kopf nav { top: 10px; font-size: 13px; }
}

/* Seitenkopf der Unterseiten */
.seitenkopf { display: flex; flex-wrap: wrap; background: var(--farbe); }

.seitenkopf-text {
  flex: 1 1 480px;
  min-width: 0;
  padding: clamp(40px, 6vw, 88px) var(--rand);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.seitenkopf-text p { max-width: 34em; font-size: 21px; }

.seitenkopf-bild { flex: 1 1 420px; min-width: 0; min-height: 380px; position: relative; }

.seitenkopf-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Seitenkopf mit Foto in drei versetzten Streifen (die drei Spuren) */
.seitenkopf.streifen {
  flex-wrap: nowrap;
  align-items: stretch;
  position: relative;
  margin-bottom: clamp(100px, 11vw, 180px);
  background: none;
}

.streifen .seitenkopf-text { flex: 0 0 50%; min-height: clamp(380px, 38vw, 560px); background: var(--farbe); }
.streifen .seitenkopf-bild { flex: 1; display: flex; gap: 10px; min-height: 0; padding-left: 10px; }
.spalte { flex: 1; position: relative; overflow: hidden; }
.spalte:nth-child(1) { transform: translateY(26px); }
.spalte:nth-child(2) { transform: translateY(-22px); }
.spalte:nth-child(3) { transform: translateY(54px); }

.streifen .spalte img {
  inset: 0 auto auto 0;
  width: calc(300% + 20px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.streifen .spalte:nth-child(2) img { left: calc(-100% - 10px); }
.streifen .spalte:nth-child(3) img { left: calc(-200% - 20px); }

/* Unternehmer: wie Musiker, nur leicht anders versetzt (Startwerte wie in main.js) */
body.unternehmer .spalte:nth-child(1) { transform: translateY(48px); }
body.unternehmer .spalte:nth-child(2) { transform: translateY(-10px); }
body.unternehmer .spalte:nth-child(3) { transform: translateY(24px); }

/* Paedagoge: gespiegelt, Bild links, Text rechts; die Streifen liegen als Welle */
.seitenkopf.streifen.gespiegelt { flex-direction: row-reverse; }
.gespiegelt .seitenkopf-bild { padding: 0 10px 0 0; }
body.paedagoge .spalte:nth-child(1) { transform: translateY(-18px); }
body.paedagoge .spalte:nth-child(2) { transform: translateY(50px); }
body.paedagoge .spalte:nth-child(3) { transform: translateY(8px); }
body.paedagoge .streifen .spalte img { object-position: 62% 50%; }
/* Ueber mich: neutral (Graphit), Streifen als Treppe nach oben (Startwerte wie in main.js) */
body.ueber .spalte:nth-child(1) { transform: translateY(40px); }
body.ueber .spalte:nth-child(2) { transform: translateY(4px); }
body.ueber .spalte:nth-child(3) { transform: translateY(-20px); }
body.ueber .streifen .spalte img { object-position: 50% 30%; }

@media (max-width: 760px) {
  .seitenkopf.streifen.gespiegelt { flex-direction: row; }
  .gespiegelt .seitenkopf-bild { padding: 0; }
  .seitenkopf.streifen { flex-wrap: wrap; }
  .streifen .seitenkopf-text { flex: 0 0 100%; min-height: 0; }
  .streifen .seitenkopf-bild { flex: 0 0 100%; min-height: 340px; }
}

/* Inhaltsbloecke */
.block { padding: clamp(56px, 7vw, 104px) var(--rand); }
.block-inhalt { max-width: 1240px; margin: 0 auto; }
.block > .block-inhalt > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.block.farbig { background: var(--farbe); }
.schmal { max-width: 40em; }

/* Aktuelle Projekte: Video und grosser Titel ueberlappen sich, das zweite Projekt ist gespiegelt */
.block:has(.projekt) { overflow-x: clip; }
.projekt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.block:has(.projekt) > .block-inhalt > h2 { margin-bottom: clamp(40px, 5.5vw, 84px); }
.projekt + .projekt { margin-top: clamp(120px, 15vw, 240px); }
.projekt > div:first-child { grid-column: 1 / span 8; grid-row: 1 / span 3; }
.projekt > div:last-child { display: contents; }
/* Gruene Flaeche laeuft vom Video bis zum Rand der Textspalte, das Logo sitzt mit Abstand darin */
.projekt h3 {
  grid-column: 7 / -1;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  margin: clamp(20px, 3vw, 44px) 0 clamp(14px, 1.6vw, 24px);
  padding: clamp(20px, 2.6vw, 40px) clamp(24px, 3vw, 46px);
  background: var(--farbe);
}
.projekt h3 img { display: block; width: auto; max-width: 100%; height: clamp(44px, 6.4vw, 92px); }
.projekt p { grid-column: 9 / -1; grid-row: 2; padding-left: clamp(20px, 2.4vw, 36px); }
.projekt .knopf { grid-column: 9 / -1; grid-row: 3; justify-self: start; margin: 16px 0 0 clamp(20px, 2.4vw, 36px); }
.projekt:nth-of-type(even) > div:first-child { grid-column: 5 / -1; }
.projekt:nth-of-type(even) h3 { grid-column: 1 / span 6; justify-content: flex-end; }
.projekt:nth-of-type(even) h3 img { height: clamp(84px, 10.6vw, 152px); }

/* Beim Abspielen zieht sich die Logo-Flaeche durchgehend zurueck und ragt nur noch leicht ins Video */
.projekt h3 { transition: margin 1.5s cubic-bezier(.45, 0, .2, 1); }
.projekt h3 img { transition: height 1.5s cubic-bezier(.45, 0, .2, 1); }
.projekt:has(.video-platz.spielt) h3 { transition-duration: .9s; }
.projekt:has(.video-platz.spielt) h3 img { transition-duration: .9s; }

@media (min-width: 761px) {
  .projekt:nth-of-type(even) h3 { margin-right: 22%; }
  .projekt:has(.video-platz.spielt) h3 { margin-left: calc(33.334% - clamp(20px, 2.8vw, 40px)); }
  .projekt:has(.video-platz.spielt) h3 img { height: clamp(30px, 4.9vw, 70px); }
  .projekt:nth-of-type(even):has(.video-platz.spielt) h3 { margin-left: 0; margin-right: calc(33.334% - clamp(20px, 2.8vw, 40px)); }
  .projekt:nth-of-type(even):has(.video-platz.spielt) h3 img { height: clamp(66px, 9.8vw, 140px); }
}
.projekt:nth-of-type(even) p { grid-column: 1 / span 4; padding: 0 clamp(20px, 2.4vw, 36px) 0 0; }
.projekt:nth-of-type(even) .knopf { grid-column: 1 / span 4; margin-left: 0; }

/* Vorschaubild in drei Streifen, die sich beim Scrollen schliessen */
.projekt button.video:has(.entf) { overflow: visible; background: none; }
.projekt button.video:has(.entf) > img { visibility: hidden; }
.entf { position: absolute; inset: 0; z-index: 0; display: flex; pointer-events: none; }
.entf i { position: relative; display: block; flex: 1 0 33.34%; overflow: hidden; }
.video .entf img { position: absolute; inset: 0 auto auto 0; top: 0; width: 300%; max-width: none; height: 100%; object-fit: cover; }
.video .entf i:nth-child(2) img { left: -100%; }
.video .entf i:nth-child(3) img { left: -200%; }
.knopf {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--text);
  color: var(--grund);
  font-weight: 500;
  text-decoration: none;
}

.knopf:hover { background: #fff; color: var(--grund); }

/* Video erst nach Klick laden */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--farbe);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}

.video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--grund);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

/* Grosser, pulsierender Play-Button */
button.video {
  --play: clamp(68px, 7vw, 96px);
  --play-x: 50%;
  --play-y: 50%;
}

/* Bei Kacheln mit Titel ohne Bild sitzt der Button in der Ecke, damit er die Schrift frei laesst */
button.video:has(.video-titel):not(:has(img)) {
  --play-x: calc(100% - var(--play) / 2 - 16px);
  --play-y: calc(100% - var(--play) / 2 - 16px);
}

button.video::before {
  content: "";
  position: absolute;
  left: var(--play-x);
  top: var(--play-y);
  z-index: 1;
  width: var(--play);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: puls 2.2s ease-out infinite;
}

button.video::after {
  content: "";
  position: absolute;
  left: var(--play-x);
  top: var(--play-y);
  z-index: 2;
  border-style: solid;
  border-width: clamp(13px, 1.3vw, 18px) 0 clamp(13px, 1.3vw, 18px) clamp(21px, 2.1vw, 30px);
  border-color: transparent transparent transparent var(--grund);
  transform: translate(-38%, -50%);
}

button.video:hover::before,
button.video:focus-visible::before {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.14);
  animation: none;
}

@keyframes puls {
  0% { box-shadow: 0 0 0 0 rgba(232, 235, 233, 0.6); }
  75%, 100% { box-shadow: 0 0 0 26px rgba(232, 235, 233, 0); }
}

.video-titel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

/* Titel auf einem Vorschaubild steht auf einer Farbflaeche */
.video:has(img) .video-titel {
  left: 0;
  right: auto;
  top: 0;
  max-width: 100%;
  padding: 6px 14px 8px;
  background: var(--farbe);
  font-size: clamp(26px, 2.4vw, 34px);
}

.video:hover .video-play { background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Vorschaubild und Player liegen uebereinander: Pause fuehrt zurueck zum Bild, der Player bleibt geladen */
.video-platz { position: relative; display: block; height: 100%; }
.video-player { position: absolute; inset: 0; z-index: 1; height: 100%; aspect-ratio: auto; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.5s ease; }
.video-platz.bereit .video-player { opacity: 1; pointer-events: auto; transition-duration: .45s; }
.video-platz button.video { transition: opacity 1.5s ease, transform 1.5s cubic-bezier(.7, 0, .2, 1); }
.video-platz.bereit button.video { opacity: 0; transform: scale(1.04); pointer-events: none; transition-duration: .45s, .6s; }
.hinweis { margin-top: 12px; font-size: 16px; }

/* Session-Musiker: Drei Baender, die beim Scrollen unterschiedlich schnell laufen */
.rollen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); padding: 0; list-style: none; }

.rollen li {
  padding: 2px 14px 4px;
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
}

.rollen li:nth-child(3n + 1) { background: var(--musiker); }
.rollen li:nth-child(3n + 2) { background: var(--paedagoge); }
.rollen li:nth-child(3n) { background: var(--unternehmer); }

.block:has(.baender) { overflow-x: clip; }
.baender { display: grid; gap: 10px; margin-inline: calc(50% - 50vw); overflow-x: auto; }
.baender.bewegt { overflow-x: visible; }
/* Ohne Maus: jede Zeile wischt man einzeln seitlich (main.js) */
.baender.wischen { overflow: visible; }
.baender.wischen .band { width: auto; max-width: 100vw; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.baender.wischen .band::-webkit-scrollbar { display: none; }
.baender.wischen .band > .kachel { flex: none; }
.band { --f: 1; display: flex; gap: 10px; width: max-content; }
.band:nth-child(2) { --f: 1.15; }
.band:nth-child(4) { --f: .86; }
.band:nth-child(4) .w-t { width: 40vw; }

.kachel { position: relative; flex: none; height: clamp(240px, 25vw, 380px); margin: 0; overflow: hidden; }
.w-t { width: calc(34vw * var(--f)); }
.w-h { width: calc(22vw * var(--f)); }
.w-v { width: calc(40vw * var(--f)); }
.w-q { width: calc(32vw * var(--f)); }
.kachel > img { width: 100%; height: 100%; object-fit: cover; }

.kachel figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 3px 10px;
  background: var(--grund);
  font-size: 16px;
  line-height: 1.3;
}

.kachel .video { height: 100%; aspect-ratio: auto; }

.kachel.text {
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kachel.text h3 { margin-bottom: 8px; }
.kachel.text h3.zahl { font-size: clamp(64px, 8vw, 104px); }
.band-link { margin-top: clamp(40px, 5vw, 72px); }

/* Unternehmer: viele Kuenstlerfotos, darum schmalere Kacheln und ruhigere Baender */
/* Heartbeat Collective: Logo-Flaeche in der offiziellen Kombination, Bloecke leicht gedeckt */
body.unternehmer .projekt h3 { background: #1a2d5b; }
/* Medley gross: Video ueber die volle Breite, Logo-Flaeche ragt links unten ueber das Video hinaus und rutscht beim Abspielen nach unten */
@media (min-width: 761px) {
  body.unternehmer .projekt { --raus: clamp(20px, 3vw, 44px); }
  body.unternehmer .projekt > div:first-child { grid-column: 1 / -1; grid-row: 1; }
  body.unternehmer .projekt .video-play { left: auto; right: 16px; }
  body.unternehmer .projekt h3 { grid-column: 1 / span 5; grid-row: 2; align-self: start; margin: calc(-1 * clamp(70px, 8vw, 120px)) 0 0 calc(-1 * var(--raus)); }
  body.unternehmer .projekt:has(.video-platz.spielt) h3 { margin: clamp(14px, 1.6vw, 24px) 0 0 calc(-1 * var(--raus)); }
  body.unternehmer .projekt:has(.video-platz.spielt) h3 img { height: clamp(44px, 6.4vw, 92px); }
  body.unternehmer .projekt p { grid-column: 7 / -1; grid-row: 2; padding: clamp(24px, 3vw, 44px) 0 0; }
  body.unternehmer .projekt .knopf { grid-column: 7 / -1; grid-row: 3; margin-left: 0; }
}
body.unternehmer .kachel.hbc-orange { background: #e9a67a; color: #1a2d5b; }
body.unternehmer .kachel.hbc-beige { background: #e6dccd; color: #1a2d5b; }
body.unternehmer .kachel.hbc-blau { background: #27406b; }
/* Hochformat-Videos: kleinerer Titel und Play-Button, Text nur fuer Screenreader */
body.unternehmer .band .w-h button.video { --play: clamp(52px, 4.6vw, 68px); }
body.unternehmer .band .w-h .video-titel { padding: 4px 10px 5px; font-size: clamp(18px, 1.7vw, 24px); }
body.unternehmer .band .w-h .video-play { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
body.unternehmer .band .w-h .video-player video { object-fit: cover; }
body.unternehmer .band .video:has(img) .video-titel { background: #27406b; }
body.unternehmer .band { --f: .8; }
body.unternehmer .band .w-t { width: max(30vw, 320px); }
@media (max-width: 760px) {
  body.unternehmer .band .w-h { width: 40vw; }
  body.unternehmer .band .w-q { width: 56vw; }
  body.unternehmer .band .w-v { width: 72vw; }
  body.unternehmer .band .w-t { width: 78vw; }
}
/* Paedagoge: Brombeere. Hell und Dunkel sind die beiden Toene der Foto-Toenung (CI), Akzent als Gegenfarbe. */
/* Gegenfarben wie auf der Musiker-Seite: die beiden anderen Saeulenfarben */
body.paedagoge { --hell: #e5d5dc; --dunkel: #2b1f26; --akzent: var(--musiker); --akzent2: var(--unternehmer); }
.akzent { background: var(--akzent); color: var(--text); }
.einleitung { max-width: 34em; margin: calc(-1 * clamp(12px, 2vw, 24px)) 0 clamp(32px, 4vw, 56px); font-size: 21px; }

.block:has(.erscheint) { overflow-x: clip; }
.hell { background: var(--hell); color: var(--dunkel); }
.saeule { background: var(--farbe); color: var(--text); }

/* Unterricht: grosser versetzter Kamm. Bass- und Gitarrenfoto greifen mit drei tiefen, rechteckigen Zaehnen ineinander.
   Das Bass-Foto ragt oben, das Gitarren-Foto unten um --v hinaus (wie die versetzten Streifen im Seitenkopf). Darunter die Textflaechen. */
.kamm-bilder { --z: clamp(70px, 10vw, 150px); --v: clamp(24px, 3vw, 44px); position: relative; height: clamp(360px, 46vw, 640px); margin: var(--v) 0 calc(10px + var(--v)); }
.kamm-bilder img { position: absolute; width: calc(50% + var(--z) / 2 - 5px); max-width: none; height: calc(100% + var(--v)); object-fit: cover; }
.kamm-bilder .l { left: 0; top: calc(-1 * var(--v)); object-position: 50% 30%;
  clip-path: polygon(0 0, 100% 0,
    100% calc(var(--v) + (100% - var(--v)) / 3), calc(100% - var(--z)) calc(var(--v) + (100% - var(--v)) / 3),
    calc(100% - var(--z)) calc(var(--v) + 2 * (100% - var(--v)) / 3), 100% calc(var(--v) + 2 * (100% - var(--v)) / 3),
    100% 100%, 0 100%); }
.kamm-bilder .r { right: 0; top: 0; object-position: 50% 30%;
  clip-path: polygon(var(--z) 0, 100% 0, 100% 100%, var(--z) 100%,
    var(--z) calc(2 * (100% - var(--v)) / 3), 0 calc(2 * (100% - var(--v)) / 3),
    0 calc((100% - var(--v)) / 3), var(--z) calc((100% - var(--v)) / 3)); }
.kamm-texte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kamm-texte article { padding: clamp(22px, 2.6vw, 40px); }
.kamm-texte h3 { margin-bottom: 14px; font-size: clamp(48px, 6.4vw, 96px); }
.kamm-texte p { max-width: 30em; }

/* Ablauf als kompakte Farbkacheln. Reihenfolge so gewaehlt, dass nie zwei gleiche Farben neben- oder untereinander liegen (3 Spalten und 1 Spalte). */
.ablauf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; list-style: none; counter-reset: schritt; }
.ablauf li { position: relative; counter-increment: schritt; padding: 22px 24px 24px; background: var(--akzent); }
.ablauf li:nth-child(2), .ablauf li:nth-child(4) { background: var(--farbe); }
.ablauf li:nth-child(3), .ablauf li:nth-child(5) { background: var(--akzent2); }
.ablauf li::before { content: counter(schritt, decimal-leading-zero); position: absolute; top: 16px; right: 20px; color: var(--text); opacity: .35; font-family: var(--titel); font-weight: 800; font-size: 40px; line-height: 1; }
.ablauf h3 { margin: 0 56px 8px 0; font-size: clamp(22px, 2vw, 28px); }
.ablauf p { font-size: 17px; line-height: 1.45; }

.block.schnupper { background: var(--farbe); color: var(--text); }
/* Keine freien Plaetze: Hinweis liegt ueber einem ausgegrauten Anmeldeformular (nur Optik, nicht bedienbar) */
.schnupper .block-inhalt { position: relative; }
.attrappe { max-width: 760px; margin: 0 auto; opacity: .3; filter: grayscale(1); user-select: none; pointer-events: none; }
.attrappe .attrappe-titel { margin-bottom: 16px; font-family: var(--titel); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.attrappe-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.attrappe-felder span { padding: 14px 16px; border: 2px solid var(--text); }
.attrappe-felder span:last-child { grid-column: 1 / -1; height: 110px; }
.attrappe .knopf { margin-top: 16px; }
.belegt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--rand); text-align: center; }
.belegt > div { padding: clamp(24px, 3vw, 44px) clamp(24px, 4vw, 56px); background: var(--dunkel); }
.schnupper h2 { margin: 0 0 12px !important; }
.schnupper p { margin: 0; font-size: 21px; }
@media (max-width: 760px) { .attrappe-felder { grid-template-columns: minmax(0, 1fr); } .belegt { padding: 0; } }

.formate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.format { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(24px, 3vw, 48px); }
.format h3 { margin-bottom: 6px; font-size: clamp(36px, 4vw, 58px); }
.format .marke { margin-bottom: 18px; font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.format .unterzeile { font-family: var(--titel); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; text-transform: uppercase; }
.format .klein { margin-top: auto; font-size: 16px; }
.format .knopf { margin-top: 24px; }
.format.saeule .knopf { --farbe: var(--dunkel); }
.rollen.themen { margin: 8px 0 24px; gap: 8px; }
.rollen.themen li { padding: 2px 12px 4px; font-size: clamp(22px, 2vw, 28px); background: var(--farbe); color: var(--text); }
.saeule .rollen.themen li { background: var(--hell); color: var(--dunkel); }

/* Newsletter-Anmeldung in der Workshop-Karte */
.newsletter { width: 100%; margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--dunkel); }
.newsletter-titel { margin-bottom: 12px; font-family: var(--titel); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; text-transform: uppercase; }
.newsletter-felder { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-felder input { flex: 1 1 160px; min-width: 0; padding: 12px 14px; background: rgba(255, 255, 255, .55); border: 2px solid var(--dunkel); color: var(--dunkel); font: inherit; }
.newsletter-felder input::placeholder { color: rgba(36, 28, 46, .65); }
.newsletter .knopf { margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 500; background: var(--dunkel); color: var(--hell); }
.newsletter .knopf:hover { color: #fff; }
.newsletter .zustimmung { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.newsletter .zustimmung input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--dunkel); }
.newsletter a { color: inherit; }
#workshops .meldung { background: var(--akzent); color: var(--text); }
.themen li:nth-child(3n + 2) { background: var(--akzent) !important; color: var(--text) !important; }
.themen li:nth-child(3n) { background: var(--akzent2) !important; color: var(--text) !important; }

/* Reaktion beim Hineinscrollen: Kacheln kommen abwechselnd von der Seite, Schritte von unten */
@media (prefers-reduced-motion: no-preference) {
  .anim .erscheint > * { opacity: 0; transform: translateX(-8vw); }
  .anim .erscheint > :nth-child(even) { transform: translateX(8vw); }
  .anim .ablauf.erscheint > * { transform: translateY(40px); }
  .erscheint > * { transition: transform 1.6s cubic-bezier(.16, 1, .3, 1), opacity 1.1s ease; transition-delay: calc(var(--i, 0) * 110ms); }
  .anim .erscheint.sichtbar > * { opacity: 1; transform: none; }
  .anim .schnupper .erscheint > * { transform: translateY(30px); }
}

@media (max-width: 760px) {
  .kamm-bilder { --z: 22px; height: 300px; }
  .kamm-bilder .l { object-position: 30% 30%; }
  .kamm-texte { grid-template-columns: minmax(0, 1fr); }
  .ablauf { grid-template-columns: minmax(0, 1fr); }
  .formate { grid-template-columns: minmax(0, 1fr); }
}
/* Ueber mich: Kopf mit ganzem Portraet. Das Foto steht links ueber die volle Hoehe und bleibt beim Scrollen stehen
   (sein Schwarz ist auf den Seitengrund getoent), rechts laufen Titel und Biografie vorbei. */
.ub-kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); margin-bottom: clamp(40px, 6vw, 96px); }
.ub-bild { position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: start; }
.ub-bild { overflow: hidden; }
/* Eintrittsanimation der Biografie-Absaetze darf nicht seitlich ueberstehen (clip statt hidden, damit das Portraet weiter stehen bleibt) */
.ub-kopf { overflow-x: clip; }
/* Das Portraet liegt in drei nahtlosen Streifen (wie die Spuren der Startseite), damit beim Seitenwechsel die Balken hineinwandern koennen */
.ub-bild .vt-s img { position: absolute; top: 0; left: 0; width: 300%; max-width: none; height: 100%; object-fit: cover; object-position: 55% 20%; }
.ub-bild .vt-s2 img { left: -100%; }
.ub-bild .vt-s3 img { left: -200%; }
.ub-text { padding: clamp(110px, 16vh, 180px) var(--rand) clamp(40px, 6vw, 80px) clamp(24px, 4vw, 64px); }
.ub-kopf h1 { margin-bottom: clamp(32px, 4vw, 56px); font-size: clamp(64px, 9vw, 150px); }

/* Biografie als Laufbahn: vier Abschnitte an einer durchgehenden Linie, jeder mit Nummer und einer Marke in eigener Farbe
   (Graphit, dann die drei Saeulenfarben), nah beieinander, damit sie als Entwicklung zusammengehoeren. */
.laufbahn { --einzug: clamp(28px, 3vw, 44px); display: grid; gap: clamp(36px, 4vw, 56px); max-width: 40em; margin: 0; padding: 0 0 0 var(--einzug); border-left: 2px solid var(--linie); list-style: none; counter-reset: lauf; }
.laufbahn li { --st: #5c6065; position: relative; counter-increment: lauf; }
.laufbahn li:nth-child(2) { --st: var(--musiker); }
.laufbahn li:nth-child(3) { --st: var(--paedagoge); }
.laufbahn li:nth-child(4) { --st: var(--unternehmer); }
.laufbahn li::before { content: counter(lauf, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--titel); font-weight: 800; font-size: 34px; line-height: 1; }
.laufbahn li::after { content: ""; position: absolute; top: 2px; left: calc(-1 * var(--einzug) - 8px); width: 14px; height: 32px; background: var(--st); }
.laufbahn p { margin: 0 0 .8em; }
.laufbahn p:last-child { margin-bottom: 0; }
.laufbahn li:first-child p { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.5; }
@media (max-width: 760px) {
  .ub-kopf { grid-template-columns: minmax(0, 1fr); }
  .ub-bild { position: relative; height: 80vh; }
  .ub-text { padding: 32px var(--rand); }
}

/* Ueber mich: Rueckblick als Filmstreifen zum Durchblaettern. Darueber eine Zeitleiste mit den Jahren (springt zum Jahr,
   zeigt das aktuelle Jahr), seitlich zwei Pfeile. Wischen, Trackpad und Pfeiltasten gehen ebenfalls. Aufbau in main.js. */
.film { position: relative; padding: 0 0 clamp(40px, 5vw, 72px); }
.film-zeit { position: relative; display: flex; gap: 0; margin: 0 var(--rand) 18px; padding-top: 14px; overflow-x: auto; scrollbar-width: none; }
.film-zeit::-webkit-scrollbar { display: none; }
/* Die Linie liegt an den Jahres-Knoepfen selbst, damit sie auch beim seitlichen Mitlaufen (Handy, Tablet) durchgeht */
.film-zeit button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--linie); }
.film-zeit button { position: relative; flex: 1 0 auto; padding: 14px 10px 4px; border: 0; background: none; color: var(--text); opacity: .45; cursor: pointer;
  font-family: var(--titel); font-weight: 800; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; transition: opacity .3s ease; }
.film-zeit button::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: currentColor; }
.film-zeit button:hover, .film-zeit button.aktiv { opacity: 1; }
.film-zeit button.aktiv::before { top: -7px; width: 14px; height: 14px; margin-left: -7px; }
.film-fenster { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.film-fenster::-webkit-scrollbar { display: none; }
.film-fenster:focus-visible { outline-offset: -3px; }
.film-streifen figure { scroll-snap-align: center; }
.film-pfeil { position: absolute; top: calc(50% + 10px); z-index: 2; width: 52px; height: 52px; margin-top: -26px; border: 0; background: var(--grund); color: var(--text); cursor: pointer; opacity: .9; transition: opacity .3s ease; }
.film-pfeil::before { content: ""; display: block; width: 14px; height: 14px; margin: auto; border: solid currentColor; border-width: 0 0 3px 3px; transform: translateX(3px) rotate(45deg); }
.film-pfeil.weiter::before { transform: translateX(-3px) rotate(-135deg); }
.film-pfeil.zurueck { left: 0; } .film-pfeil.weiter { right: 0; }
.film-pfeil:hover { opacity: 1; }
.film-pfeil[disabled] { opacity: 0; pointer-events: none; }
.film-streifen { --loch: 14px; display: flex; gap: 14px; width: max-content; padding: 30px 66px;
  background-color: #1c1d1f;
  background-image: repeating-linear-gradient(90deg, #4a4d51 0 var(--loch), transparent var(--loch) calc(var(--loch) * 2.2)), repeating-linear-gradient(90deg, #4a4d51 0 var(--loch), transparent var(--loch) calc(var(--loch) * 2.2));
  background-size: 100% 10px, 100% 10px; background-position: 0 9px, 0 calc(100% - 9px); background-repeat: repeat-x; }
.film-streifen figure { flex: none; margin: 0; }
.film-streifen img { height: clamp(220px, 26vw, 340px); width: auto; filter: grayscale(1) contrast(1.05); transition: filter .6s ease; }
.film-streifen figure:hover img { filter: none; }
/* Handy und Tablet: kein Farbe-per-Tippen, farbig ist immer das Foto in der Mitte (Marken fuers Einrasten setzt main.js) */
.film.beruehrung .film-streifen { position: relative; }
.film.beruehrung .film-streifen figure { scroll-snap-align: none; }
.film.beruehrung .film-streifen figure:hover img { filter: grayscale(1) contrast(1.05); }
.film.beruehrung .film-streifen figure.mitte img { filter: none; }
/* Computer: Im Randbereich wird der Mauszeiger zum Pfeil in Fahrtrichtung (helles Quadrat mit Winkel wie die Film-Pfeile) */
.film.zeiger-rechts, .film.zeiger-rechts * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect x='.5' y='.5' width='43' height='43' fill='%23e8ebe9' stroke='%231c1d1f'/%3E%3Cpath d='M18 13l9 9-9 9' fill='none' stroke='%231c1d1f' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") 22 22, e-resize;
}
.film.zeiger-links, .film.zeiger-links * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect x='.5' y='.5' width='43' height='43' fill='%23e8ebe9' stroke='%231c1d1f'/%3E%3Cpath d='M26 13l-9 9 9 9' fill='none' stroke='%231c1d1f' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E") 22 22, w-resize;
}
.film-marke { position: absolute; top: 0; width: 1px; height: 1px; scroll-snap-align: center; pointer-events: none; }
/* Corona Break: ein leeres Bild im Film, nur ein Pause-Zeichen */
.film-pause > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; width: clamp(200px, 20vw, 280px); height: clamp(220px, 26vw, 340px); background: #121314; color: var(--text); }
.pause-zeichen { width: 44px; height: 54px; border-left: 15px solid currentColor; border-right: 15px solid currentColor; opacity: .85; }
.pause-text { font-family: var(--titel); font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: .95; text-align: center; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .pause-zeichen { animation: pause-blinken 2.4s steps(1) infinite; }
  @keyframes pause-blinken { 50% { opacity: .2; } }
}
.film-streifen figcaption { max-width: 30ch; margin-top: 8px; font-size: 14px; opacity: .8; }
.block.heute { padding-top: 0; }
.heute h2 { margin-bottom: clamp(24px, 3vw, 36px); font-size: clamp(40px, 4.4vw, 64px); }

/* Ueber mich: zum Schluss die drei Spuren als Wege zu den Saeulen-Seiten */
.drei-spuren { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spur-link { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(200px, 20vw, 280px); padding: clamp(20px, 2.4vw, 32px); color: var(--text); text-decoration: none; transition: transform .5s var(--gleiten, ease); }
.spur-link.m { background: var(--musiker); }
.spur-link.p { background: var(--paedagoge); }
.spur-link.u { background: var(--unternehmer); }
.spur-link strong { font-family: var(--titel); font-weight: 800; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; text-transform: uppercase; }
.spur-link span { margin-top: 8px; font-size: 19px; }
.spur-link:hover { color: var(--text); transform: translateY(-6px); }
@media (prefers-reduced-motion: no-preference) {
  .anim .drei-spuren.erscheint > * { transform: translateY(40px); }
  .anim .drei-spuren.erscheint.sichtbar > * { transform: none; }
  .anim .drei-spuren.erscheint.sichtbar > .spur-link:hover { transform: translateY(-6px); transition-delay: 0s; transition-duration: .5s; }
}
@media (max-width: 760px) {
  .film-streifen img { height: 220px; }
  .film-streifen { padding-inline: 14px; }
  .film-pfeil { display: none; }
  .drei-spuren { grid-template-columns: minmax(0, 1fr); }
  .spur-link { min-height: 150px; }
}
.kachel.m { background: var(--musiker); }
.kachel.p { background: var(--paedagoge); }
.kachel.u { background: var(--unternehmer); }

@media (max-width: 760px) {
  .band:nth-child(2), .band:nth-child(4) { --f: 1; }
  .kachel { height: 230px; }
  .w-t { width: 92vw; }
  .w-h { width: 46vw; }
  .w-v { width: 82vw; }
  .w-q { width: 64vw; }
  .band:nth-child(4) .w-v { width: 56vw; }
  .band:nth-child(4) .w-q { width: 42vw; }
  .band:nth-child(4) .w-t { width: 92vw; }
}

/* Karten und Merkmale */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.karte { padding: 28px; background: var(--farbe); }
.karte h3 { margin-bottom: 12px; }

.merkmale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 48px;
}

.merkmale h3 { font-size: 32px; margin-bottom: 8px; }

.zahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 0;
}

.zahlen dd { margin: 0; }

.zahlen dt {
  font-family: var(--titel);
  font-weight: 800;
  font-size: clamp(64px, 8vw, 104px);
  line-height: 1;
}

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.galerie img { width: 100%; height: 340px; object-fit: cover; }

/* Formular */
.formular { display: grid; gap: 20px; max-width: 640px; }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 500; }

.feld input, .feld textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--linie);
  color: var(--text);
  font: inherit;
}

.feld textarea { min-height: 180px; resize: vertical; }

.zustimmung { display: flex; gap: 12px; align-items: flex-start; }
.zustimmung input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; }

.honig { position: absolute; left: -9999px; }

.formular button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 500; margin: 0; }

.meldung { padding: 16px 20px; margin-bottom: 24px; background: var(--farbe); max-width: 640px; }
.meldung[hidden] { display: none; }

/* Einmaliger Hinweis zu Videos (js/hinweis.js): schmaler Balken unten, blockiert nichts */
.hinweis-videos { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 18px 28px; max-width: 980px; margin: 0 auto;
  padding: 22px 22px 18px; background: var(--grund) linear-gradient(90deg, var(--musiker) 0 33.3%, var(--paedagoge) 33.3% 66.6%, var(--unternehmer) 66.6%) top / 100% 4px no-repeat;
  font-size: 16px; line-height: 1.5; transition: opacity .35s ease, transform .35s ease; }
.hinweis-videos p { margin: 0; }
.hinweis-videos a { color: var(--text); }
.hinweis-videos .knopf { flex: none; margin: 0; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.hinweis-videos.weg { opacity: 0; transform: translateY(16px); }
/* Beim ersten Klick auf ein Video: Hinweis als Fenster in der Mitte, dahinter ein dunkler Schleier */
.hinweis-schleier { position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .6); transition: opacity .35s ease; }
.hinweis-schleier.weg { opacity: 0; }
.hinweis-videos.als-fenster { top: 50%; bottom: auto; left: 50%; right: auto; width: min(620px, calc(100vw - 32px)); flex-direction: column; align-items: flex-start;
  padding: 30px 28px 26px; font-size: 17px; transform: translate(-50%, -50%); animation: none; }
.hinweis-videos.als-fenster.weg { opacity: 0; transform: translate(-50%, -46%); }
@media (prefers-reduced-motion: no-preference) {
  .hinweis-videos { animation: hinweis-rein .6s cubic-bezier(.2, .8, .3, 1) .6s backwards; }
  @keyframes hinweis-rein { from { opacity: 0; transform: translateY(24px); } }
}
@media (max-width: 760px) { .hinweis-videos { flex-direction: column; align-items: flex-start; left: 10px; right: 10px; bottom: 10px; font-size: 15px; } }

/* Impressum und Datenschutz: ruhige Textseiten. Grosser Titel mit Strich in den drei Saeulenfarben,
   Abschnitte in zwei Spalten (Ueberschrift links, Text rechts), getrennt durch feine Linien. */
.recht-block { padding-top: clamp(40px, 6vw, 88px); }
.recht-wege { padding-top: 0; }
.recht { max-width: 1080px; }
.recht h1 { font-size: clamp(64px, 9vw, 140px); }
.recht h1::after { content: ""; display: block; width: clamp(150px, 18vw, 240px); height: 6px; margin: clamp(20px, 2.4vw, 32px) 0 clamp(32px, 4vw, 56px);
  background: linear-gradient(90deg, var(--musiker) 0 33.3%, var(--paedagoge) 33.3% 66.6%, var(--unternehmer) 66.6%); }
.recht-einleitung { max-width: 40em; font-size: clamp(19px, 1.6vw, 22px); }
.recht h2 { grid-column: 1; margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.recht { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.recht > h1, .recht > .recht-einleitung, .recht > h1 + p { grid-column: 1 / -1; }
.recht > h2 { padding-top: 22px; border-top: 1px solid var(--linie); margin-top: 28px; }
.recht > h2 + p { grid-column: 2; padding-top: 22px; border-top: 1px solid var(--linie); margin: 28px 0 0; }
.recht > p + p:not(.recht-einleitung) { grid-column: 1 / -1; }
.recht a { text-underline-offset: 3px; }
@media (max-width: 760px) {
  .recht { grid-template-columns: minmax(0, 1fr); }
  .recht > h2 + p { grid-column: 1; padding-top: 10px; border-top: 0; margin-top: 0; }
}

/* Tablet: Saeulennamen muessen nebeneinander Platz haben */
@media (min-width: 761px) and (max-width: 1000px) {
  .spur-text strong { font-size: 5.2vw; }
}

/* Handy */
@media (max-width: 760px) {
  .spuren { flex-direction: column; }
  .spur { min-height: 420px; }
  .spur:hover, .spur:focus-visible { flex-grow: 1; }
  .projekt { grid-template-columns: minmax(0, 1fr); }
  .projekt > div:first-child, .projekt:nth-of-type(even) > div:first-child { grid-column: 1; grid-row: auto; }
  .projekt h3, .projekt:nth-of-type(even) h3 { grid-column: 1; grid-row: auto; justify-content: flex-start; margin: 0 0 14px; }
  .projekt p, .projekt:nth-of-type(even) p { grid-column: 1; grid-row: auto; padding: 0; }
  .projekt .knopf, .projekt:nth-of-type(even) .knopf { grid-column: 1; grid-row: auto; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Kontakt: Der Kopf zeigt statt eines Fotos die drei Saeulenfarben als versetzte Balken (wie die drei Spuren der Startseite).
   Formular in zwei Spalten, Feldlinien statt Rahmen. */
/* Der gruene Balken ist zugleich das Textfeld: er traegt Titel, Telefon, E-Mail und Instagram und ist versetzt wie die Streifen.
   Daneben die beiden anderen Saeulenfarben als Streifen. */
body.kontakt .streifen .seitenkopf-text { flex: 0 0 64%; background: var(--musiker); transform: translateY(54px); }
body.kontakt .seitenkopf.streifen { margin-bottom: clamp(84px, 8vw, 120px); }
body.kontakt .seitenkopf + .block { padding-top: 0; }
/* Telefonnummer nur am Handy zum Antippen; am Computer ist sie normaler Text (dort oeffnet ein Klick sonst Skype o. Ae.) */
@media (hover: hover) and (pointer: fine) { .kontakt-wege a[href^="tel:"] { pointer-events: none; cursor: text; } }
body.kontakt .spalte.p { background: var(--paedagoge); }
body.kontakt .spalte.u { background: var(--unternehmer); }
body.kontakt .spalte:nth-child(1) { transform: translateY(-14px); }
body.kontakt .spalte:nth-child(2) { transform: translateY(26px); }
body.kontakt .seitenkopf-text h1 { font-size: clamp(64px, 9vw, 140px); }
.kontakt-wege { display: grid; gap: 6px; margin: 18px 0 0 !important; }
.kontakt-wege a { width: fit-content; font-family: var(--titel); font-weight: 800; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; text-decoration: none; text-transform: uppercase; }
.kontakt-wege a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }

body.kontakt .formular { --akz: var(--text); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; max-width: 900px; }
body.kontakt .formular .breit { grid-column: 1 / -1; }
body.kontakt .feld input, body.kontakt .feld textarea { border: 0; border-bottom: 2px solid var(--linie); background: rgba(0, 0, 0, .18); transition: border-color .3s ease; }
body.kontakt .feld input:focus, body.kontakt .feld textarea:focus { outline: none; border-bottom-color: var(--akz); }
body.kontakt .zustimmung input { accent-color: var(--akz); }
body.kontakt .formular .knopf { --farbe: var(--akz); }
@media (max-width: 760px) {
  body.kontakt .formular { grid-template-columns: minmax(0, 1fr); }
  body.kontakt .streifen .seitenkopf-text { flex-basis: 100%; transform: none; }
  body.kontakt .streifen .seitenkopf-bild { min-height: 160px; }
}