/* Nur auf der Startseite. Vorlage: Framer-Template „Scandiwest“ (godly.design), auf Profil übertragen. Keine Bewegung. */

@view-transition { navigation: none; }
.startseite *, .startseite *::before, .startseite *::after { animation: none !important; transition: none !important; }

/* Kopfleiste auf der Startseite weiß, von Anfang an und ohne Skript (Mikas Wunsch); Logo und Grundlinie rot, Navigation dunkel */
.startseite .menue-tafel { background: var(--weiss); }
.startseite h1.kopf-slogan { font-weight: 400; }

/* Einstieg (Markus Bode, 07.11.2026): das Projektfoto direkt unter der Leiste, ohne Text darauf; die Headline steht in der
   Kopfleiste. Unten links die Legende. Keine Bewegung. */
.start-held { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--graphit); color: var(--weiss); }
.start-bild { position: relative; min-height: min(70svh, 34rem); overflow: hidden; } /* overflow: das Foto setzt sich nach dem Startfilm von 103 auf 100 % */
/* Brand Space TM: Regalwand links, Ausschnitt mittig */
.start-foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Hochformat (Handy): Ausschnitt nach rechts, damit die Thermomix-Wand im Bild bleibt (Startfoto seit 12.11.2026) */
@media (max-width: 47.99rem) { .start-foto { object-position: 72% 50%; } }
/* Klassenname .start-video, nicht .start-film: so heißt schon der Abschnitt mit dem Produktionsfilm (am 16.11.2026 kurz doppelt vergeben, der Abschnitt war dadurch unsichtbar).
   Startfilm (Mika, 16.11.2026): liegt über dem Foto, läuft einmal und blendet dann zum Foto aus; er erscheint erst, wenn er wirklich läuft (startfilm.js setzt .laeuft);
   bis dahin, ohne Skript und bei reduzierter Bewegung bleibt das Foto sichtbar. Ausschnitt mittig: der Ring steht in der Bildmitte. */
.start-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; visibility: hidden; }
.start-video.laeuft { visibility: visible; }
/* Knöpfe des Startfilms: Ton (seit 16.11.2026, WCAG 1.4.2) und Anhalten (WCAG 2.2.2) */
.start-video-steuerung {
  position: absolute; right: max(var(--rand), calc((100% - var(--max)) / 2 + var(--rand))); bottom: 1rem; z-index: 1;
  display: flex; gap: .5rem;
}
.start-video-knopf, .start-video-ton {
  min-height: 2.75rem; padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(20, 20, 18, .6); color: var(--weiss);
  font: 500 .875rem/1 var(--text); cursor: pointer;
}
.start-video-knopf:hover, .start-video-ton:hover { background: rgba(20, 20, 18, .85); }
.start-video-knopf:focus-visible, .start-video-ton:focus-visible { outline: 2px solid var(--weiss); outline-offset: 3px; }
.start-video-knopf[hidden], .start-video-ton[hidden] { display: none; }
/* Verlauf unten nur für die Legende; der Rest des Fotos bleibt unangetastet */
.start-bild::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%);
}
.start-legende:focus-visible { outline: 2px solid var(--weiss); outline-offset: 4px; }

/* Unten: Legende zum Foto (Projekt, Ort, Fläche, Link), klein */
.start-unten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem 1.5rem; background: var(--graphit); }
.start-legende { display: grid; gap: .15rem; width: max-content; max-width: 100%; min-width: 0; color: var(--weiss); text-decoration: none; font-size: .875rem; line-height: 1.45; }
.start-legende-kopf { font-size: 1rem; font-weight: 500; }
.start-legende-meta { color: rgba(255, 255, 255, .82); }
/* Offene Projektangaben in der Legende: der Entwurfshinweis ohne den hellen Kasten, nur als Zeile im dunklen Feld */
.start-legende .hinweis-entwurf { display: block; margin: 0; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .82); font-size: inherit; line-height: inherit; }
.start-legende-link { margin-top: .35rem; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.start-legende:hover .start-legende-link { text-decoration-color: var(--weiss); }

@media (min-width: 48rem) {
  /* Ab Tablet füllt das Foto den Rest des ersten Bildschirms unter Kopfleiste und Headline; die Legende liegt unten auf dem Foto */
  .start-bild { grid-area: 1 / 1; min-height: clamp(26rem, calc(100svh - var(--kopf-h) - 3rem), 46rem); }
  .start-unten { grid-area: 1 / 1; align-self: end; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); background: none; }
  .start-legende { padding: .8rem 1rem; background: rgba(20, 20, 18, .68); border: 1px solid rgba(255, 255, 255, .2); }
}

/* Die drei Schwerpunkte als Tafeln auf der Linie (seit 04.11.2026 das zentrale Element unter dem Foto): Nummer und Name als Kopfzeile,
   darunter das Bild, das auf einer roten Linie über die ganze Breite steht, wie die Buchstaben im Logo; Satz und Sprung zur Leistungsseite */
.drei-raeume { padding-block: var(--abstand); }
.raeume {
  --spalte: calc((100cqw - 2 * var(--spalt)) / 3);
  --kopfzeile: 3rem;
  --tafel: calc(var(--kopfzeile) + var(--spalte) * 5 / 4);
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem var(--spalt);
  margin: 0;
  list-style: none;
}
.raeume a { display: block; color: inherit; text-decoration: none; }
.raeume figure { margin: 0; overflow: hidden; background: var(--stein-hell); border-bottom: 2px solid var(--rot); }
.raeume img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.raum-name { display: flex; align-items: flex-end; box-sizing: border-box; height: var(--kopfzeile); padding-bottom: .75rem; font: 400 var(--titel-m)/1.05 var(--titel); letter-spacing: -.01em; }
.raum-satz { display: block; max-width: 24rem; margin-top: 1rem; font-size: 1rem; line-height: 1.55; color: var(--text-leise); }
.raum-nr { display: inline-block; margin-right: .6rem; font: 500 .75rem/1 var(--text); letter-spacing: .12em; color: var(--rot); font-variant-numeric: tabular-nums; vertical-align: .4em; }
.raum-link { display: block; margin-top: .85rem; font-size: .9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--stein); text-underline-offset: .22em; }
.raeume a:hover .raum-name { color: var(--bordeaux); }
.raeume a:hover .raum-link { text-decoration-color: var(--rot); }
@media (min-width: 48rem) {
  .raeume { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raeume figure { border-bottom: 0; }
  /* Die Linie läuft durch die Lücken und über den Rand hinaus */
  .raeume::before {
    content: "";
    position: absolute;
    left: calc(50% - 50vw);
    width: 100vw;
    top: var(--tafel);
    height: 2px;
    background: var(--rot);
  }
}
