/* Projekt als „Design Board“ wie auf der alten Website (Moritz 23.11.2026, T115): Bilder in der Reihenfolge der
   Projektdaten, je Bild eine Anordnung (groß, halb links, halb rechts, Paar, Reihe), Absätze dazwischen,
   Mitwirkende am Ende. Ein Klick auf ein Bild öffnet die Lichtbühne als Ebene über der Seite (buehne.js).
   Darunter „Ähnliche Projekte“ (T116) als eigene Fläche und der Fuß (T145). */
.board { --luft: clamp(14px, 2vw, 28px); padding: 0 var(--rand) clamp(40px, 5vw, 72px); }
.board__innen { max-width: var(--breite); margin: 0 auto; display: flex; flex-direction: column; gap: var(--luft); }
.board__gruppe { display: flex; flex-wrap: wrap; gap: var(--luft); }
.board__bild { margin: 0; min-width: 0; }
.board__bild img { display: block; width: 100%; height: auto; }
.board__knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.board__knopf img { transition: transform 1.4s var(--schnell); }
.board__knopf:hover img { transform: scale(1.012); }
.board__knopf:focus-visible { outline: 2px solid var(--schwarz); outline-offset: 3px; }

.board__gruppe--gross .board__bild { flex: 1 1 100%; }
.board__gruppe--halb .board__bild { flex: 0 0 calc((100% - var(--luft)) / 2); }
.board__gruppe--halb.ist-einzeln { justify-content: center; }
.board__gruppe--reihe { --s: min(var(--n), 5); }
.board__gruppe--reihe .board__bild { flex: 0 0 calc((100% - (var(--s) - 1) * var(--luft)) / var(--s)); }
.board__gruppe--reihe img { aspect-ratio: 1; object-fit: cover; }
.board__gruppe--reihe .ist-plan img { object-fit: contain; background: #fff; }

/* Bildtext bei Groß, Paar und Reihe: klein unter dem Bild */
.board__text { margin-top: .7rem; font-size: .86rem; line-height: 1.5; color: var(--grau-text); }

/* Halb links / Halb rechts (Moritz 26.11.2026, T146, wie die alte Seite): das Bild über die halbe Breite auf der gewählten
   Seite, im weißen Feld daneben der kurze Bildtext zum Bild hin, mit einem Strich darunter. Ohne Bildtext bleibt das Feld
   weiß. Die Spalten haben denselben Abstand wie ein Paar, damit halbe Bilder untereinander bündig stehen.
   text_rechts und text_links sind die alten Namen (bis 26.11. nach der Seite des Textes benannt) und gelten weiter. */
.board__gruppe--halb_links .board__bild, .board__gruppe--halb_rechts .board__bild,
.board__gruppe--text_rechts .board__bild, .board__gruppe--text_links .board__bild { flex: 1 1 100%; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "bild text"; column-gap: var(--luft); align-items: center; }
.board__gruppe--halb_rechts .board__bild, .board__gruppe--text_links .board__bild { grid-template-areas: "text bild"; }
.board__bild > .board__knopf, .board__bild > img { grid-area: bild; }
.board__gruppe--halb_links .board__text, .board__gruppe--halb_rechts .board__text,
.board__gruppe--text_rechts .board__text, .board__gruppe--text_links .board__text { grid-area: text; margin: 0; padding-inline: clamp(6px, 1.4vw, 22px);
  max-width: 30ch; font-size: .98rem; color: #2A2B2E; }
.board__gruppe--halb_links .board__text::after, .board__gruppe--halb_rechts .board__text::after,
.board__gruppe--text_rechts .board__text::after, .board__gruppe--text_links .board__text::after { content: ""; display: block; width: 44px; height: 1px;
  background: currentColor; margin-top: .9rem; }
.board__gruppe--halb_rechts .board__text, .board__gruppe--text_links .board__text { justify-self: end; text-align: right; }
.board__gruppe--halb_rechts .board__text::after, .board__gruppe--text_links .board__text::after { margin-left: auto; }

.board__absatz { max-width: 46em; padding: clamp(12px, 2.4vw, 36px) 0; color: #2A2B2E; font-size: 1.04rem; line-height: 1.75; }
.board__mitwirkende { margin-top: clamp(16px, 2.4vw, 40px); max-width: 60em; color: #2A2B2E; font-size: .92rem; line-height: 1.65; }
.board__kicker { font-size: .78rem; letter-spacing: .14em; color: var(--grau-text); margin-bottom: .5rem; }

@media (max-width: 699px) {
  .board__gruppe--halb .board__bild { flex-basis: 100%; }
  .board__gruppe--reihe { --s: min(var(--n), 3); }
  /* Halb links und rechts am Handy über die ganze Breite, der Bildtext darunter */
  .board__gruppe--halb_links .board__bild, .board__gruppe--halb_rechts .board__bild,
  .board__gruppe--text_rechts .board__bild, .board__gruppe--text_links .board__bild { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "text"; row-gap: .8rem; }
  .board__gruppe--halb_links .board__text, .board__gruppe--halb_rechts .board__text,
  .board__gruppe--text_rechts .board__text, .board__gruppe--text_links .board__text { justify-self: start; text-align: left; padding-inline: 0; font-size: .92rem; }
  .board__gruppe--halb_links .board__text::after, .board__gruppe--halb_rechts .board__text::after,
  .board__gruppe--text_rechts .board__text::after, .board__gruppe--text_links .board__text::after { width: 32px; margin: .6rem 0 0; }
}

/* Ähnliche Projekte: eigener Abschnitt mit getönter Fläche über die ganze Breite (Moritz 26.11.2026, T145: die feine Linie
   davor war „very, very shy“). Gewählt ist dunkel (Tim 26.11.2026), ähnliche Projekte und Fuß in zwei Farben (Tim
   abends): Anthrazit über dem Graphit des Fußes, --aehnliche-grund. Zweite Fassung: Klasse aehnliche--hell in
   projekt_aehnliche.html, dann hell getönt zwischen weißem Projekt und dunklem Fuß. */
.aehnliche { padding: clamp(64px, 8vw, 120px) var(--rand) clamp(72px, 9vw, 128px); }
main > section.aehnliche { padding-bottom: clamp(72px, 9vw, 128px); }   /* der Fuß darunter hält Abstand zur Leiste */
.aehnliche--hell { background: var(--hellblau); border-top: 1px solid #E3EEF5; }
.aehnliche__innen { max-width: var(--breite); margin: 0 auto; }
.aehnliche__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .8rem 2rem; margin-bottom: clamp(28px, 3.4vw, 48px); }
.aehnliche__titel { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.08; }
.aehnliche__alle { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-size: .98rem; padding-bottom: 3px;
  border-bottom: 1px solid currentColor; }
.aehnliche__alle span { transition: transform .35s var(--schnell); }
.aehnliche__alle:hover span { transform: translateX(3px); }
.aehnliche__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.aehnlich { display: block; color: inherit; text-decoration: none; }
.aehnlich__bild { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blaugrau); }
.aehnlich__bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--schnell); }
.aehnlich:hover .aehnlich__bild img { transform: scale(1.04); }
.aehnlich__name { display: block; margin-top: .9rem; font-size: 1.05rem; line-height: 1.3; }
.aehnlich__ort { display: block; margin-top: .2rem; font-size: .85rem; color: var(--grau-text); }
.aehnlich:focus-visible, .aehnliche__alle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.aehnliche--dunkel { --aehnliche-grund: #3B3D42; background: var(--aehnliche-grund); color: var(--weiss); padding-bottom: 0; }
main > section.aehnliche--dunkel { padding-bottom: 0; }
.aehnliche--dunkel .aehnliche__innen { padding-bottom: clamp(64px, 8vw, 112px); }
.aehnliche--dunkel .aehnlich__bild { background: rgba(0,0,0,.22); }
.aehnliche--dunkel .aehnlich__ort { color: rgba(255,255,255,.6); }
.aehnliche--dunkel .aehnliche__alle { color: rgba(255,255,255,.88); }

@media (max-width: 899px) { .aehnliche__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .board__knopf img, .aehnlich__bild img, .aehnliche__alle span { transition: none; } }

/* Pläne und Zeichnungen stehen seit 25.11.2026 gesammelt nach den Fotos (Tim: „ein bisschen durcheinander“, T115).
   Vor dem ersten Plan etwas mehr Luft und eine feine Linie, damit der Wechsel gewollt aussieht. */
/* Erster Plan beginnt eine neue Gruppe, oder er steht in derselben Gruppe „Groß“ direkt nach dem letzten Foto */
.board__innen > :not(:has(.ist-plan)) + .board__gruppe:has(> .board__bild.ist-plan:first-child),
.board__bild:not(.ist-plan) + .board__bild.ist-plan { margin-top: clamp(16px, 3vw, 48px); padding-top: clamp(32px, 5vw, 80px); border-top: 1px solid var(--linie); }

/* Etwas kleiner (Tim 25.11.2026: „die sehen schon sehr groß aus“): Text, Board und ähnliche Projekte auf 1120 px statt
   1280 px. Die alte Website hatte 1200 px (gemessen bei 1440 px Fensterbreite). Der Fuß steht bündig dazu. */
.projekt__raster, .board__innen, .aehnliche__innen { max-width: min(var(--breite), 1120px); }
.fuss .rahmen { max-width: calc(min(var(--breite), 1120px) + 2 * var(--rand)); }
/* Weniger Luft im dunklen Block (Moritz 29.11.2026, Casa Club Altavista: „oben und unten jeweils etwas vom grauen
   Hintergrund abschneiden, damit es kompakter erscheint“): rund 40 % weniger Abstand oben und unten. */
.aehnliche, main > section.aehnliche { padding-top: clamp(40px, 4.6vw, 72px); padding-bottom: clamp(44px, 5vw, 80px); }
.aehnliche--dunkel, main > section.aehnliche--dunkel { padding-bottom: 0; }
.aehnliche--dunkel .aehnliche__innen { padding-bottom: clamp(44px, 5vw, 80px); }
