:root {
  --gips: #F1EEE8;
  --flaeche: #E6E1D8;
  --linie: #D6CFC3;
  --tinte: 31 28 27;
  --t1: rgb(var(--tinte) / .92);
  --t2: rgb(var(--tinte) / .68);
  --t3: rgb(var(--tinte) / .48);
  --wand: #920025;
  --rot: #E3001B;
  --hell: 241 238 232;

  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;

  --rand: 8px;
  --seite: 20px;
  --luft: 72px;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
}
@media (min-width: 900px) {
  :root { --rand: 12px; --seite: 40px; --luft: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gips);
  color: var(--t1);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
.mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
/* grössere Tippflächen für Links im Text */
.kopf__nav a, .kopf__mobil, .textlink, .liste__person a, .lehre__frage a,
.kontakt__daten a, .fuss a { display: inline-block; padding-block: 8px; }
.liste__bild--unten img { object-position: 50% 80%; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

/* der rote Rand links begleitet die ganze Seite */
.rand {
  position: fixed; inset: 0 auto 0 0; width: var(--rand);
  background: var(--wand); z-index: 60;
}
main, .kopf, .fuss { margin-left: var(--rand); }

.breite { max-width: 1200px; margin: 0 auto; padding: 0 var(--seite); }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--seite);
  background: rgb(var(--hell) / .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease-out;
}
.kopf.ist-gescrollt { border-bottom-color: var(--linie); }
.kopf__logo img { height: 34px; width: auto; }
.kopf__nav { display: none; gap: 24px; align-items: center; font-size: 16px; }
.kopf__nav a, .kopf__mobil { text-decoration: none; color: var(--t2); transition: color 150ms ease-out; }
.kopf__nav a:hover, .kopf__mobil:hover { color: var(--t1); }
.kopf__nav .kopf__tel { font-family: var(--mono); font-size: 14px; color: var(--t1); }
.kopf__mobil { font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linie); }
@media (min-width: 900px) {
  .kopf { height: 72px; }
  .kopf__logo img { height: 40px; }
  .kopf__nav { display: flex; }
  .kopf__mobil { display: none; }
}

/* Einstieg */
.einstieg {
  display: flex; flex-direction: column;
  min-height: calc(100svh - 64px);
}
.einstieg__text { padding-top: 24px; padding-bottom: 40px; }
.einstieg__lead { font-size: 17px; }
.einstieg__ort { color: var(--t2); margin-bottom: 16px; }
.titel {
  font-weight: 500;
  font-size: clamp(50px, 13.4vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--t1);
  margin-bottom: 24px;
}
.zeile { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.zeile > span { display: block; }
.einstieg__lead { color: var(--t2); max-width: 34em; margin-bottom: 24px; }
.einstieg__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 16px; }
.einstieg__beleg { font-size: 15px; color: var(--t3); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--rot); color: #FFF7F5;
  font: 500 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.knopf:hover { background: #C70018; }
.knopf:active { transform: scale(.98); }
.textlink { color: var(--t1); text-underline-offset: 5px; text-decoration-color: var(--rot); text-decoration-thickness: 2px; }

/* Das Mannschaftsband: alle Porträts stehen vor derselben roten Wand */
.band {
  position: relative; flex: 1 1 auto;
  display: flex; flex-direction: column;
  min-height: 300px;
  background: var(--wand); overflow: hidden;
}
.band__spur { display: flex; flex: 1 1 auto; height: 220px; min-height: 0; will-change: transform; }
.band__spur img {
  height: 100%; width: auto; aspect-ratio: 0.56; flex: 0 0 auto;
  object-fit: cover; object-position: 50% 0;
  margin-right: -1px;
}
.band__text {
  padding: 16px var(--seite);
  color: rgb(var(--hell) / .86); font-size: 15px; line-height: 1.4;
  border-top: 1px solid rgb(var(--hell) / .22);
}
/* gleiche linke Kante wie die Inhaltsbreite */
.kopf, .einstieg__text, .band__text {
  padding-left: max(var(--seite), calc((100% - 1200px) / 2 + var(--seite)));
  padding-right: max(var(--seite), calc((100% - 1200px) / 2 + var(--seite)));
}
@media (min-width: 900px) {
  .einstieg__text { padding-top: 64px; padding-bottom: 64px; }
  .titel .zeile { display: inline-block; }
  .band { min-height: 0; flex: none; }
  .band__spur { flex: none; height: max(320px, calc(100svh - 600px)); }
}

/* Abschnitte */
.abschnitt { padding: var(--luft) 0; position: relative; }
.abschnitt--flaeche { background: var(--flaeche); }
.h2 {
  font-weight: 500; font-size: clamp(40px, 8vw, 72px);
  line-height: 1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.h3 { font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.abschnitt__lead { color: var(--t2); max-width: 38em; margin-bottom: 40px; }
@media (min-width: 900px) { .abschnitt__lead { margin-bottom: 64px; font-size: 19px; } }

/* Leistungen: ruhige Liste, Bild folgt am Computer */
.liste { border-top: 1px solid var(--linie); }
.liste__zeile { display: grid; gap: 16px; padding: 24px 0 40px; border-bottom: 1px solid var(--linie); }
.liste__name { font-weight: 500; font-size: 32px; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 8px; }
.liste__was { color: var(--t2); max-width: 32em; }
.liste__person { font-size: 15px; color: var(--t3); }
.liste__person a { color: var(--t1); text-decoration: none; font-size: 15px; }
.liste__bild { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.liste__bild img { width: 100%; height: 100%; object-fit: cover; }
.folgebild { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .liste__zeile { grid-template-columns: 1fr 280px; align-items: baseline; padding: 40px 0; }
  .liste__name { font-size: 48px; transition: transform 300ms var(--expo), color 150ms ease-out; }
  .liste__zeile:hover .liste__name { transform: translateX(16px); }
  .liste__bild { display: none; }
  .folgebild {
    display: block; position: fixed; left: 0; top: 0; z-index: 40;
    width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px;
    pointer-events: none; opacity: 0;
    transition: opacity 150ms ease-out;
  }
  .folgebild.ist-an { opacity: 1; }
}

/* Referenzen */
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.raster figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.raster img { width: 100%; height: 100%; object-fit: cover; }
.raster figcaption {
  position: absolute; left: 8px; bottom: 8px;
  padding: 4px 8px; border-radius: 4px;
  background: rgb(var(--hell) / .9); color: var(--t1);
  font-size: 13px; line-height: 1.3;
}
@media (min-width: 900px) {
  .raster { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.stimmen { display: grid; gap: 24px; margin-top: 64px; }
.stimmen p { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 8px; }
.stimmen span { color: var(--t3); }
@media (min-width: 900px) { .stimmen { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Team: Aufstellung wie auf einem Matchblatt */
.aufstellung { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-top: 24px; border-top: 2px solid var(--wand); }
.gruppe__name { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--wand); margin-bottom: 8px; }
.gruppe ul + .gruppe__name { margin-top: 24px; }
.gruppe li { font-size: 17px; line-height: 1.5; }
.gruppe li span { display: block; font-size: 14px; color: var(--t3); line-height: 1.3; margin-bottom: 4px; }
@media (min-width: 900px) { .aufstellung { grid-template-columns: repeat(4, 1fr); } }

.lehre { display: grid; gap: 40px; margin-top: var(--luft); }
.lehre__bild { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.lehre__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lehre__bild figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 4px; background: rgb(var(--hell) / .9); font-size: 13px; }
.lehre__text > p { color: var(--t2); max-width: 32em; }
.erfolge { width: 100%; border-collapse: collapse; margin: 24px 0; }
.erfolge td { padding: 16px 0; border-top: 1px solid var(--linie); vertical-align: top; }
.erfolge tr:last-child td { border-bottom: 1px solid var(--linie); }
.erfolge td:first-child { width: 72px; color: var(--rot); font-size: 15px; padding-top: 19px; }
.erfolge td span { display: block; color: var(--t3); font-size: 15px; }
.lehre__frage a { color: var(--t1); white-space: nowrap; }
@media (min-width: 900px) {
  .lehre { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .lehre__bild { aspect-ratio: 4 / 5; }
}

/* Kontakt: die rote Wand */
.kontakt { background: var(--wand); color: rgb(var(--hell) / .94); padding: var(--luft) 0; }
.kontakt__innen { display: grid; gap: 64px; }
.kontakt .h2 { color: rgb(var(--hell)); }
.kontakt__tel {
  display: inline-block; margin: 8px 0 40px;
  font-weight: 500; font-size: clamp(44px, 11.5vw, 104px); line-height: 1; letter-spacing: -0.035em;
  text-decoration: none; color: rgb(var(--hell));
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 300ms var(--expo);
}
.kontakt__tel:hover { background-size: 100% 2px; }
.kontakt__daten { display: grid; gap: 16px; }
.kontakt__daten div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.kontakt__daten dt { color: rgb(var(--hell) / .6); font-size: 15px; padding-top: 2px; }
.kontakt__daten a { color: rgb(var(--hell)); }
@media (min-width: 900px) { .kontakt__innen { grid-template-columns: 7fr 5fr; align-items: start; } }

.anfrage { background: rgb(0 0 0 / .14); border-radius: 8px; padding: 24px; }
.anfrage .h3 { color: rgb(var(--hell)); }
.anfrage__wahl { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.anfrage__wahl legend { font-size: 15px; color: rgb(var(--hell) / .7); margin-bottom: 8px; padding: 0; }
.anfrage__wahl input { position: absolute; opacity: 0; pointer-events: none; }
.anfrage__wahl span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--hell) / .4); font-size: 16px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.anfrage__wahl input:checked + span { background: rgb(var(--hell)); color: var(--wand); border-color: rgb(var(--hell)); }
.anfrage__wahl input:focus-visible + span { outline: 2px solid rgb(var(--hell)); outline-offset: 2px; }
.feld { display: block; margin-bottom: 16px; }
.feld span { display: block; font-size: 15px; color: rgb(var(--hell) / .7); margin-bottom: 8px; }
.feld input, .feld textarea {
  width: 100%; padding: 12px 16px; border-radius: 4px;
  border: 1px solid rgb(var(--hell) / .3); background: rgb(var(--hell) / .08);
  color: rgb(var(--hell)); font: 400 17px/1.4 var(--sans);
  transition: border-color 150ms ease-out;
}
.feld input::placeholder, .feld textarea::placeholder { color: rgb(var(--hell) / .45); }
.feld input:focus, .feld textarea:focus { outline: none; border-color: rgb(var(--hell)); }
.knopf--hell { background: rgb(var(--hell)); color: var(--wand); width: 100%; }
.knopf--hell:hover { background: #FFFFFA; }
.anfrage__hinweis { font-size: 14px; color: rgb(var(--hell) / .6); margin-top: 8px; }

/* Fuss */
.fuss { padding: 40px 0; font-size: 15px; color: var(--t2); }
.fuss__innen { display: grid; gap: 8px; }
.fuss__entwurf a { color: var(--t1); }
@media (min-width: 900px) { .fuss__innen { grid-template-columns: 1fr auto; } }

/* Bewegung */
.js .zeile > span { transform: translateY(105%); }
.js.ist-geladen .zeile > span { transform: none; transition: transform 1000ms var(--expo); }
.js.ist-geladen .zeile:nth-child(2) > span { transition-delay: 90ms; }
.js .band__spur { transform: translateX(24%); }
.js.ist-geladen .band__spur { transform: translateX(0); transition: transform 1400ms var(--expo) 150ms; }

.js .aufdecken { clip-path: inset(100% 0 0 0); }
.js .aufdecken img { transform: scale(1.15); }
.js .aufdecken.ist-da { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--expo); }
.js .aufdecken.ist-da img { transform: scale(1); transition: transform 1200ms var(--expo); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .zeile > span, .js .band__spur { transform: none !important; transition: none !important; }
  .js .aufdecken { clip-path: none !important; transition: none !important; }
  .js .aufdecken img { transform: none !important; transition: none !important; }
  .liste__name, .kontakt__tel { transition: none; }
}
