/* einspunktvier – Projektseiten: Kopf, Film, Foto, Web und Software, Social Content, Werbemittel, Grafik, Fuß */

/* ---------- Gemeinsam ---------- */
.baustein { background: var(--weiss); }
.baustein__innen {
  max-width: var(--inhalt-max); margin: 0 auto;
  padding: clamp(56px, 7vw, 110px) var(--rand) 0;
}
.baustein__kopf {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: clamp(18px, 2vw, 28px);
}
.baustein__titel { margin: 0; font-weight: 900; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.035em; }
.baustein__zusatz { font-weight: 300; font-size: 15px; color: rgba(12, 42, 61, .72); }
.baustein__fliesstext { margin: 0; font-weight: 300; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; text-wrap: pretty; }
.baustein__einleitung { max-width: 640px; margin-bottom: clamp(18px, 2vw, 28px); }

/* Fläche mit Bild, das sie ganz ausfüllt */
.foto__bild, .social__clip, .grafik__flaeche, .web__bild, .film__buehne, .pfuss__bild, .film__wahlbild {
  position: relative; overflow: hidden; margin: 0; background: var(--hellgrau);
}
.foto__bild > img, .social__clip > img, .web__bild > img, .grafik__anwendung > img,
.film__buehne img, .pfuss__bild > img, .film__wahlbild > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- Projekt-Kopf mit Videobanner (Version A vom 14.10.2026) ---------- */
.pkopf {
  position: relative; overflow: hidden;
  height: clamp(560px, 72vh, 760px);
  background: var(--dunkelblau); color: var(--weiss);
}
/* Fläche für Video bzw. Standbild: rechts, 64 % breit, volle Höhe */
.pkopf__flaeche { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; overflow: hidden; }
.pkopf__medium { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
/* Bildfolge: das neue Bild blendet über dem stehenden alten ein (kein dunkler Zwischenschritt),
   das alte zoomt weiter, bis es verdeckt ist. Zeiten setzt assets/js/projektkopf.js (--blende, --zoomzeit).
   Bei Pause und „Bewegung reduzieren“ steht sie. */
/* Bilder und Video beginnen 2 px nach der linken Kante: die Kante liegt bei 64 % Breite zwischen zwei Pixeln,
   dort schien sonst eine feine helle Linie durch den Verlauf (der deckt links ohnehin voll ab) */
.pkopf__flaeche > .pkopf__medium { left: 2px; width: calc(100% - 2px); }
.pkopf__folge { position: absolute; inset: 0 0 0 2px; isolation: isolate; --blende: 1.5s; --zoomzeit: 6s; } /* eigene Ebene, damit der Verlauf darüber bleibt */
.pkopf__folgebild { opacity: 0; z-index: 0; transition: opacity var(--blende) cubic-bezier(.45, 0, .55, 1); transform-origin: 50% 50%; will-change: opacity, transform; }
.pkopf__folgebild.ist-aktiv { opacity: 1; z-index: 2; animation: pkopf-zoom var(--zoomzeit) linear forwards; }
.pkopf__folgebild.geht { opacity: 1; z-index: 1; transition: none; animation: pkopf-zoom var(--zoomzeit) linear forwards; }
@keyframes pkopf-zoom { from { transform: scale(1); } to { transform: scale(1.045); } }
.pkopf--angehalten .pkopf__folgebild { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pkopf__folgebild { transition: none; } .pkopf__folgebild.ist-aktiv, .pkopf__folgebild.geht { animation: none; } }
.pkopf__verlauf {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #0c2a3d 0%, rgba(12, 42, 61, .82) 16%, rgba(12, 42, 61, .25) 40%, rgba(12, 42, 61, 0) 60%),
    linear-gradient(0deg, rgba(12, 42, 61, .55) 0%, rgba(12, 42, 61, 0) 30%);
}
/* Text links im Inhaltsraster, senkrecht mittig */
.pkopf__innen {
  position: relative; z-index: 1; height: 100%;
  max-width: var(--inhalt-max); margin: 0 auto; padding-inline: var(--rand);
  display: flex; align-items: center;
}
.pkopf__spalte { max-width: 560px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pkopf__datenzeile {
  margin: 0; font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.pkopf__name {
  margin: 0; font-weight: 900; font-size: clamp(46px, 6vw, 92px); line-height: .98; letter-spacing: -0.035em;
  text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.pkopf__name--lang { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.02; hyphens: manual; }
.pkopf__unterzeile {
  margin: 0; max-width: 440px;
  font-weight: 300; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: rgba(255, 255, 255, .84); text-wrap: pretty;
}
.pkopf__film { display: inline-flex; align-items: center; gap: 10px; padding: 16px 22px; }
.pkopf__film svg { display: block; flex: none; }
.pkopf__pause { position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 2; }
/* Der Film-Baustein ist Sprungziel von „Film ansehen“, Platz für den festen Header lassen */
#film { scroll-margin-top: clamp(74px, 7vw, 92px); }

/* Weißer Teil: Kurztext links, Logo und Fakten rechts */
.pinfo__innen {
  max-width: var(--inhalt-max); margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--rand);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 36%); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.pinfo__text { margin: 0; max-width: 720px; font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; text-wrap: pretty; }
.pinfo__seite { display: flex; flex-direction: column; gap: clamp(24px, 2.6vw, 36px); }
.pinfo__logo { height: 40px; display: flex; align-items: center; }
.pinfo__logo img { height: 40px; width: auto; max-width: 100%; display: block; object-fit: contain; }
.pinfo__fakten { margin: 0; border-top: 2px solid var(--dunkelblau); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pinfo__fakten div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; font-size: 15px; line-height: 1.4; }
.pinfo__fakten dt { font-weight: 500; color: rgba(12, 42, 61, .72); } /* mind. 4,5:1 */
.pinfo__fakten dd { margin: 0; font-weight: 500; }

/* Handy: Fläche oben im Format 4:3, Text rückt hinein, weißer Teil einspaltig */
@media (max-width: 859.98px) {
  .pkopf { height: auto; }
  .pkopf__flaeche { position: relative; width: 100%; aspect-ratio: 4 / 3; }
  .pkopf__verlauf { background: linear-gradient(0deg, #0c2a3d 0%, rgba(12, 42, 61, 0) 45%); }
  .pkopf__innen { height: auto; margin-top: -72px; padding-bottom: 44px; }
  .pinfo__innen { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Film ---------- */
.film { background: var(--dunkelblau); color: var(--weiss); }
.film__innen {
  max-width: var(--inhalt-max); margin: 0 auto;
  padding: clamp(28px, 3vw, 44px) var(--rand) clamp(48px, 6vw, 88px);
}
.film .baustein__zusatz { color: rgba(255, 255, 255, .72); }
.film__eintrag[hidden] { display: none; }
.film__buehne { aspect-ratio: var(--seiten, 16 / 9); width: min(100%, calc(82vh * var(--verhaeltnis, 1.78))); background: #071d2b; }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.film__start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; background: #071d2b; color: var(--weiss);
  text-align: left; cursor: pointer; display: block;
}
.film__verlauf { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 42, 61, 0) 42%, rgba(12, 42, 61, .78)); }
.film__beschriftung {
  position: absolute; left: clamp(18px, 3vw, 44px); right: clamp(18px, 3vw, 44px); bottom: clamp(18px, 3vw, 40px);
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
}
.film__play {
  flex: none; width: clamp(56px, 5.6vw, 80px); height: clamp(56px, 5.6vw, 80px);
  background: var(--gruen); display: grid; place-items: center;
  transition: transform .3s var(--kurve);
}
.film__start:hover .film__play { transform: scale(1.06); }
.film__starttext { display: flex; flex-direction: column; gap: 4px; }
.film__starttitel { font-weight: 700; font-size: clamp(18px, 1.7vw, 24px); }
.film__startmeta { font-weight: 300; font-size: 14px; color: rgba(255, 255, 255, .8); }
.film__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 16px; }
.film__titel { font-weight: 700; font-size: 18px; }
.film__meta { font-weight: 300; font-size: 14px; color: rgba(255, 255, 255, .75); }
.film__video { border: 0; }
/* Hinweis zur Datenübertragung neben dem Vorschaubild (YouTube) */
.film__hinweis { margin: 12px 0 0; max-width: 640px; font-weight: 300; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.film__hinweis a { color: var(--weiss); text-decoration: underline; text-underline-offset: 3px; }
.film__text { margin: 10px 0 0; max-width: 760px; font-weight: 300; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.film__auswahl {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px; margin-top: clamp(20px, 2.4vw, 32px);
}
.film__wahl {
  display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0;
  border: 0; background: none; color: var(--weiss); text-align: left; cursor: pointer;
  opacity: .72; transition: opacity .25s ease;
}
.film__wahl:hover, .film__wahl[aria-pressed="true"] { opacity: 1; }
.film__wahlbild { display: block; width: 100%; aspect-ratio: 16 / 9; background: #071d2b; border: 2px solid transparent; }
.film__wahl[aria-pressed="true"] .film__wahlbild { border-color: var(--gruen); }
.film__wahltext { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.film__wahltext span:first-child { font-weight: 700; }
.film__wahltext span:last-child { font-weight: 300; color: rgba(255, 255, 255, .75); }

/* ---------- Foto ---------- */
.freihe { --luecke: clamp(8px, 1vw, 16px); display: grid; gap: var(--luecke); }
.freihe + .freihe { margin-top: var(--luecke); }
/* Formen der Reihen (src/_data/fotoreihen.json). Nebeneinanderstehende Bilder sind gleich hoch. */
.freihe--gross-links, .freihe--gross-rechts { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.freihe--gross-links > :first-child, .freihe--gross-rechts > :first-child { grid-row: 1 / 3; aspect-ratio: 3 / 2; }
.freihe--gross-rechts { grid-template-columns: 1fr 2fr; }
.freihe--gross-rechts > :first-child { grid-column: 2; }
.freihe--drei-hoch { grid-template-columns: repeat(3, 1fr); }
.freihe--vier-hoch { grid-template-columns: repeat(4, 1fr); }
.freihe--drei-hoch > *, .freihe--vier-hoch > * { aspect-ratio: 4 / 5; }
.freihe--zwei-quer { grid-template-columns: 1fr 1fr; }
.freihe--zwei-quer > * { aspect-ratio: 3 / 2; }
.freihe--hoch-quer { grid-template-columns: 8fr 15fr; }
.freihe--quer-hoch { grid-template-columns: 15fr 8fr; }
.freihe--hoch-quer > :nth-child(1), .freihe--quer-hoch > :nth-child(2) { aspect-ratio: 4 / 5; }
.freihe--hoch-quer > :nth-child(2), .freihe--quer-hoch > :nth-child(1) { aspect-ratio: 3 / 2; }
.freihe--eins-breit > *, .foto__bild--breit { aspect-ratio: 16 / 9; }
/* Handy: Großes Bild über die ganze Breite, die übrigen paarweise bzw. untereinander */
@media (max-width: 639.98px) {
  .freihe--gross-links, .freihe--gross-rechts, .freihe--vier-hoch { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .freihe--gross-links > :first-child, .freihe--gross-rechts > :first-child { grid-column: 1 / 3; grid-row: auto; }
  .freihe--gross-links > *, .freihe--gross-rechts > * { aspect-ratio: 4 / 5; }
  .freihe--drei-hoch, .freihe--zwei-quer, .freihe--hoch-quer, .freihe--quer-hoch { grid-template-columns: 1fr; }
}

/* ---------- Web und Software ---------- */
.web { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(28px, 4vw, 64px); }
.web__text { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 18px; }
.web__umfang { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.web__umfang li { padding: 12px 0; border-bottom: 1px solid var(--linie); font-weight: 500; font-size: 15px; }
.web__fenster {
  flex: 1.6 1 560px; min-width: 0; margin: 0;
  border: 1px solid var(--linie); background: var(--weiss); box-shadow: 0 24px 60px rgba(12, 42, 61, .10);
}
.web__leiste {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--linie); background: #f7f7f6;
}
.web__punkte { display: flex; gap: 6px; }
.web__punkte span { display: block; width: 9px; height: 9px; background: #d9d9d6; }
.web__adresse {
  flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; padding: 0 12px;
  background: var(--weiss); border: 1px solid var(--linie);
  font-weight: 300; font-size: 12px; color: rgba(12, 42, 61, .72);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.web__bild { aspect-ratio: 16 / 10; }
.web__bild > img { object-position: top; }

/* ---------- Social Content ---------- */
.social { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(24px, 4vw, 64px); }
.social__text { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.social__text p { margin: 0; max-width: 300px; font-weight: 300; font-size: 16px; line-height: 1.6; color: rgba(12, 42, 61, .78); }
.social__clips {
  flex: 999 1 560px; min-width: 0;
  display: grid; grid-template-columns: repeat(var(--spalten, 3), minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px);
}
.social__clip { aspect-ratio: 9 / 16; background: var(--dunkelblau); }
/* Selbst gehosteter Clip: ganzes Vorschaubild ist der Startknopf, danach das Video an derselben Stelle */
.social__start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.social__start > img, .social__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.social__video { background: var(--dunkelblau); }
.social__start:focus-visible { outline: 3px solid var(--gruen); outline-offset: -3px; }
/* Beschriftung mittig über dem Vorschaubild, auf jedem Motiv lesbar */
.social__label {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
  font-weight: 700; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.2; color: var(--weiss);
  background: radial-gradient(closest-side, rgba(12, 42, 61, .55), rgba(12, 42, 61, 0));
  text-shadow: 0 1px 10px rgba(12, 42, 61, .6); pointer-events: none;
}
.social__dauer {
  position: absolute; left: 12px; top: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(12, 42, 61, .85); color: var(--weiss);
  font-weight: 500; font-size: 12px; padding: 6px 10px;
}

/* ---------- Werbemittel ---------- */
.werbemittel__unterschrift {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, .92); padding: 6px 10px; color: var(--dunkelblau);
  font-weight: 500; font-size: 14px; line-height: 1.3;
}

/* ---------- Grafik ---------- */
.grafik {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
  gap: clamp(8px, 1vw, 16px);
}
.grafik__flaeche { aspect-ratio: 3 / 2; }
.grafik__flaeche--dunkel { background: var(--dunkelblau); }
.grafik__logo { position: absolute; left: 27%; top: 30%; width: 46%; height: 40%; object-fit: contain; display: block; }
.grafik__logo--weiss { filter: brightness(0) invert(1); }
.grafik__logoplatz {
  border: 1px dashed rgba(12, 42, 61, .3); display: grid; place-items: center;
  font-family: ui-monospace, monospace; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(12, 42, 61, .6);
}
.grafik__flaeche--dunkel .grafik__logoplatz { border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .7); }
.grafik__unterschrift {
  position: absolute; left: 16px; bottom: 14px;
  font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 42, 61, .72);
}
.grafik__flaeche--dunkel .grafik__unterschrift { color: rgba(255, 255, 255, .72); }
.grafik__unterschrift--kasten { background: rgba(255, 255, 255, .92); padding: 6px 10px; color: var(--dunkelblau); }
.grafik__farben { background: var(--weiss); border: 1px solid var(--linie); display: flex; flex-direction: column; }
.grafik__farben ul {
  flex: 1; min-height: 0; list-style: none; margin: 0;
  display: flex; gap: 12px; padding: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px) 0;
}
.grafik__farben li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.grafik__feld { display: block; flex: 1; min-height: 40px; border: 1px solid rgba(12, 42, 61, .08); }
.grafik__farbname { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grafik__hex { font-family: ui-monospace, monospace; font-size: 12px; color: rgba(12, 42, 61, .72); }
.grafik__farben figcaption {
  padding: 14px 16px;
  font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 42, 61, .72);
}

/* ---------- Projekt-Fuß ---------- */
.pfuss { max-width: var(--inhalt-max); margin: 0 auto; }
.pfuss__zitat { padding: clamp(64px, 8vw, 120px) var(--rand) 0; }
.pfuss__zitat figure { margin: 0 auto; max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.pfuss__zitat blockquote { margin: 0; }
.pfuss__zitat blockquote p {
  margin: 0; font-weight: 300; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.22; letter-spacing: -0.02em; text-wrap: balance;
}
.pfuss__zitat figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pfuss__zitat figcaption span:first-child { font-weight: 700; }
.pfuss__zitat figcaption span:last-child { font-weight: 300; color: rgba(12, 42, 61, .72); }

.pfuss__nav {
  display: flex; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.pfuss__nav a { color: var(--dunkelblau); transition: background-color .25s ease, color .25s ease; }
.pfuss__nav a:hover { background: #f7f7f6; color: var(--gruen); }
.pfuss__alle {
  flex: 1 1 260px; display: flex; align-items: center; gap: 14px;
  padding: clamp(22px, 3vw, 36px) var(--rand);
  font-weight: 700; font-size: clamp(17px, 1.5vw, 21px);
}
.pfuss__naechstes {
  flex: 2 1 min(420px, 100%); min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2.4vw, 28px) var(--rand);
  border-left: 1px solid var(--linie);
}
.pfuss__nav svg { display: block; flex: none; }
.pfuss__vorschau { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); min-width: 0; }
.pfuss__bild { flex: none; width: clamp(88px, 9vw, 132px); aspect-ratio: 3 / 2; }
.pfuss__beschriftung { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pfuss__label { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(12, 42, 61, .66); }
.pfuss__name { font-weight: 900; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.03em; hyphens: auto; overflow-wrap: break-word; }

.pfuss__kontakt { padding: clamp(48px, 6vw, 88px) clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px); }
.pfuss__kontakt > div {
  background: var(--dunkelblau); color: var(--weiss);
  padding: clamp(32px, 5vw, 68px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
}
.pfuss__kontakt h2 {
  margin: 0; max-width: 600px;
  font-weight: 900; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance;
}
.knopf--senf { background: var(--senf); color: var(--dunkelblau); font-size: 15px; padding: 16px 32px; }
.knopf--senf:hover { color: var(--dunkelblau); box-shadow: 0 12px 26px rgba(240, 206, 85, .3); }
