/* modul21 Website – gemeinsamer Stil aller Seiten (Entwurf 2: weiß, schwarz, wenig Schrift, leichte Bewegung) */
@font-face { font-family: Jost; src: url(schrift/jost-latin.woff2) format("woff2"); font-weight: 300 500; font-display: swap; }
:root { --w: #fff; --s: #000; --g: #8a8a8a; --l: #e6e6e6; --r: clamp(16px, 3.2vw, 48px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--w); color: var(--s); font: 300 16px/1.55 Jost, "Futura", "Century Gothic", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.r { padding-left: var(--r); padding-right: var(--r); }
.klein { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.grau { color: var(--g); }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }

/* Kopf */
header { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgba(255,255,255,.96); }
.kopf { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.kopf .logo img { height: 20px; width: auto; }
nav { display: flex; gap: clamp(14px, 2.4vw, 36px); align-items: center; }
nav a, .strich { position: relative; }
nav a::after, .strich::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px; background: var(--s); transition: right .35s ease; }
nav a:hover::after, nav a.hier::after, .strich:hover::after { right: 0; }
nav .sprache { color: var(--g); }
nav .ziel { border: 1px solid var(--s); padding: 7px 14px; border-radius: 6px; }
nav .ziel::after { display: none; }
nav .ziel:hover { background: var(--s); color: var(--w); }
/* Ausklapp-Menü: nur bis 860 px sichtbar (siehe unten) */
.menue, .klappe { display: none; }

/* Einstieg Startseite */
.einstieg { padding-top: 64px; }
.gross { margin: 0; font-weight: 300; font-size: clamp(44px, 9.2vw, 168px); line-height: .92; letter-spacing: -.035em; }
.einstieg h1 { padding-top: clamp(40px, 7vw, 110px); padding-bottom: clamp(28px, 4vw, 56px); }
.gross .zeile { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.gross .zeile span { display: inline-block; }
.einstieg .unter { padding-bottom: 18px; }
.einstieg .unter p { grid-column: 1 / span 5; margin: 0; font-size: 18px; max-width: 40ch; }
.einstieg .unter .rechts { grid-column: 9 / -1; align-self: end; text-align: right; }
.buehne { overflow: hidden; height: min(78vh, 56vw); }
.buehne img { width: 100%; height: 100%; object-fit: cover; }
.bildzeile { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; }

/* Kopf der Unterseiten */
.seitenkopf { padding-top: calc(64px + clamp(40px, 7vw, 110px)); padding-bottom: clamp(28px, 4vw, 56px); }
.seitenkopf .gross { font-size: clamp(40px, 7.4vw, 132px); }
.seitenkopf p { margin: clamp(20px, 3vw, 40px) 0 0; font-size: 18px; max-width: 44ch; }

/* Vier Fakten */
.fakten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--s); margin-top: clamp(64px, 9vw, 140px); }
.fakten div { padding: 18px 16px 0 0; }
.fakten b { display: block; font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; margin-top: 28px; }

/* Abschnitte */
section { padding-top: clamp(96px, 13vw, 200px); }
.titel { margin-bottom: clamp(32px, 4vw, 56px); }
.titel .klein { grid-column: 1 / span 3; padding-top: 12px; }
.titel h2 { grid-column: 4 / -1; margin: 0; font-weight: 300; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.025em; }
.weiter { display: inline-block; margin-top: 28px; }
.weiter::before { content: "→"; margin-right: 10px; display: inline-block; transition: transform .3s; }
.weiter:hover::before { transform: translateX(5px); }

/* Bild mit Liste (Manufaktur) */
.manu { align-items: end; }
.manu figure { grid-column: 4 / -1; margin: 0; overflow: hidden; }
.manu figure img { width: 100%; }
.manu .seite { grid-column: 1 / span 3; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { border-top: 1px solid var(--l); padding: 12px 0; }
.liste li:last-child { border-bottom: 1px solid var(--l); }

/* Orte */
.orte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ort .rahmen { overflow: hidden; aspect-ratio: 3 / 4; }
.ort img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ort:hover img { transform: scale(1.05); }
.ort p { margin: 12px 0 0; }

/* Zahl */
.zahl { font-size: clamp(56px, 13vw, 240px); font-weight: 300; line-height: .9; letter-spacing: -.045em; white-space: nowrap; }
.zahltext { margin: clamp(16px, 2vw, 28px) 0 0; max-width: 36ch; }
.band { margin: clamp(32px, 5vw, 80px) 0 0; }
.band img { width: 100%; }

/* Projektliste */
.archiv { border-top: 1px solid var(--s); }
.projekt { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--l); font-size: clamp(17px, 1.5vw, 22px); transition: padding .35s ease, color .35s; }
.projekt span:not(:first-child) { color: var(--g); }
.archiv:hover .projekt { color: #b5b5b5; }
.archiv:hover .projekt:hover { color: var(--s); padding-left: 16px; }
.vorschau { position: fixed; z-index: 40; width: 340px; aspect-ratio: 3 / 2; pointer-events: none; opacity: 0; transition: opacity .25s; overflow: hidden; }
.vorschau img { width: 100%; height: 100%; object-fit: cover; }
.projekt img.mobil { display: none; }

/* Projekte als große Bilder (Übersicht) */
.werk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: end; padding-top: clamp(64px, 9vw, 140px); }
.werk figure { margin: 0; overflow: hidden; grid-column: 1 / span 8; }
.werk:nth-child(even) figure { grid-column: 5 / -1; order: 2; }
.werk figure img { width: 100%; max-height: 82vh; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a.werk:hover figure img { transform: scale(1.03); }
.werk .daten { grid-column: span 4; }
.werk h2 { margin: 0 0 14px; font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
dl.daten2 { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 0; }
dl.daten2 dt, dl.daten2 dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--l); }
dl.daten2 dt { color: var(--g); }

/* Projektseite */
.vollbild { overflow: hidden; }
.vollbild img { width: 100%; max-height: 86vh; object-fit: cover; }
.steck { padding-top: clamp(40px, 5vw, 72px); }
.steck .text { grid-column: 1 / span 5; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; margin: 0; }
.steck dl { grid-column: 8 / -1; }
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding-top: clamp(64px, 8vw, 120px); align-items: start; }
.galerie figure { margin: 0; overflow: hidden; }
.galerie img { width: 100%; }
.galerie .a { grid-column: 1 / span 7; } .galerie .b { grid-column: 9 / -1; margin-top: 18%; }
.galerie .c { grid-column: 1 / span 4; } .galerie .d { grid-column: 5 / span 4; } .galerie .e { grid-column: 9 / -1; }
.galerie .f { grid-column: 3 / span 8; }
.blaettern { display: flex; justify-content: space-between; border-top: 1px solid var(--s); margin-top: clamp(96px, 13vw, 200px); padding-top: 18px; font-size: clamp(20px, 2.4vw, 36px); }

/* Drehansicht */
.dreh { position: relative; margin: 0; aspect-ratio: 3 / 2; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dreh img, .dreh canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dreh figcaption { position: absolute; left: 0; bottom: 0; opacity: 0; transition: opacity .6s; }
.dreh.bereit figcaption { opacity: 1; }
.dreh .pfeile { display: inline-flex; gap: 6px; margin-right: 9px; vertical-align: middle; position: relative; top: -1px; }
.dreh .pfeile i { width: 0; height: 0; border: 4px solid transparent; }
.dreh .pfeile i:first-child { border-left-width: 0; border-right: 5px solid currentColor; }
.dreh .pfeile i:last-child { border-right-width: 0; border-left: 5px solid currentColor; }
.dreh .finger { display: none; }
@media (hover: none) { .dreh .maus { display: none; } .dreh .finger { display: inline; } }

/* Konfigurator-Abschnitt */
.konfig { align-items: center; }
.konfig .dreh { grid-column: 1 / span 8; }
.konfig .seite { grid-column: 9 / -1; }
.konfig h2, .h2 { margin: 0 0 24px; font-weight: 300; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.knopf { display: inline-block; background: var(--s); color: var(--w); padding: 14px 24px; border-radius: 6px; margin-top: 28px; margin-right: 8px; transition: transform .25s; }
.knopf:hover { transform: translateX(6px); }
.knopf.hell { background: none; color: var(--s); border: 1px solid var(--s); }
ol.schritte { margin: 0; padding: 0; list-style: none; counter-reset: k; }
ol.schritte li { counter-increment: k; padding: 10px 0; border-top: 1px solid var(--l); }
ol.schritte li::before { content: "0" counter(k); color: var(--g); margin-right: 18px; font-size: 13px; }

/* Zwei Spalten Text (Manufaktur-Seite) */
.paar { align-items: start; }
.paar figure { margin: 0; overflow: hidden; grid-column: 1 / span 6; }
.paar .wort { grid-column: 8 / -1; }
.paar.um figure { grid-column: 7 / -1; order: 2; }
.paar.um .wort { grid-column: 1 / span 5; }
.paar h2 { margin: 0 0 18px; font-weight: 300; font-size: clamp(28px, 3vw, 48px); line-height: 1.06; letter-spacing: -.02em; }
.paar p { margin: 0; max-width: 40ch; font-size: 18px; }
.zitat { margin: 0; font-size: clamp(28px, 4vw, 64px); line-height: 1.12; letter-spacing: -.02em; font-weight: 300; grid-column: 4 / -1; }
.zitat footer { font-size: 14px; letter-spacing: 0; color: var(--g); margin-top: 24px; }

/* Kontakt */
.riesig { display: block; font-size: clamp(30px, 6.4vw, 116px); line-height: 1.05; letter-spacing: -.03em; font-weight: 300; }
.kontaktzeilen { border-top: 1px solid var(--s); margin-top: clamp(64px, 9vw, 140px); }
.kontaktzeilen div { display: grid; grid-template-columns: 3fr 9fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--l); font-size: clamp(17px, 1.5vw, 22px); }
.kontaktzeilen span:first-child { color: var(--g); }

/* Textseiten (Impressum, Datenschutz) */
.textseite { grid-column: 4 / span 6; font-size: 17px; }
.textseite h2 { font-weight: 400; font-size: 17px; margin: 40px 0 6px; }
.textseite p { margin: 0 0 12px; }
.hinweis { border-left: 2px solid var(--s); padding: 4px 0 4px 16px; color: var(--g); }

/* Fuß */
footer { margin-top: clamp(120px, 16vw, 240px); padding-bottom: 24px; }
.fusslogo img { width: 100%; height: auto; }
.fusszeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--s); font-size: 14px; }
.fusszeile span { display: flex; gap: 24px; flex-wrap: wrap; }

/* Leichte Bewegung: nur mit JavaScript und wenn der Besucher Bewegung zulässt */
@media (prefers-reduced-motion: no-preference) {
  .js .gross .zeile span { transform: translateY(140%); animation: hoch 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .gross .zeile:nth-child(2) span { animation-delay: .12s; }
  .js .buehne img, .js .vollbild img { transform: scale(1.12); animation: ruhe 2.4s cubic-bezier(.2,.7,.2,1) .1s forwards; }
  .js .zeigen { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.2,.7,.2,1); }
  .js .zeigen.da { clip-path: inset(0 0 0 0); }
  .js .linie { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .js .linie.da { transform: scaleX(1); }
}
@keyframes hoch { to { transform: translateY(0); } }
@keyframes ruhe { to { transform: scale(1); } }

@media (max-width: 860px) {
  nav a:not(.ziel):not(.sprache) { display: none; }
  .menue { display: block; position: relative; width: 40px; height: 40px; margin: 0 -8px 0 -6px; padding: 0; border: 0; background: none; cursor: pointer; }
  .menue span { position: absolute; left: 8px; right: 8px; top: 16px; height: 1px; background: var(--s); transition: transform .3s ease, top .3s ease; }
  .menue span + span { top: 24px; }
  header.offen .menue span { top: 20px; transform: rotate(45deg); }
  header.offen .menue span + span { transform: rotate(-45deg); }
  .klappe { display: block; position: fixed; inset: 64px 0 0 0; background: var(--w); padding-top: 12px; overflow: auto; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  header.offen .klappe { opacity: 1; visibility: visible; }
  .klappe a { display: block; padding: 18px 0; border-bottom: 1px solid var(--l); font-size: 32px; font-weight: 300; line-height: 1.1; }
  .klappe a[aria-current] { font-weight: 400; }
  .raster > *, .werk > *, .galerie > * { grid-column: 1 / -1 !important; order: 0 !important; margin-top: 0 !important; }
  .einstieg .unter .rechts { text-align: left; }
  .buehne { height: 62vh; }
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten div { padding-bottom: 24px; }
  .orte { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projekt { grid-template-columns: 1fr; gap: 2px; }
  .projekt img.mobil { display: block; margin-top: 12px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
  .vorschau { display: none; }
  .bildzeile { flex-direction: column; gap: 2px; }
  .kontaktzeilen div { grid-template-columns: 1fr; gap: 2px; }
  .knopf { margin-right: 8px; }
  .knopf.hell { margin-left: 0; }
}

/* Film aus Einzelbildern */
.film { position: relative; margin: 0; aspect-ratio: 3 / 2; max-height: 88vh; margin-inline: auto; }
.film img, .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film canvas { opacity: 0; }
.film.bereit canvas { opacity: 1; }
.filmtext { padding-top: clamp(16px, 2vw, 32px); }
.filmtext .klein { grid-column: 1 / span 3; padding-top: 10px; }
.filmtext h2 { grid-column: 4 / span 5; margin: 0; font-weight: 300; font-size: clamp(28px, 3vw, 48px); line-height: 1.06; letter-spacing: -.02em; }
.filmtext p { grid-column: 10 / -1; margin: 0; align-self: end; }

/* Explosionsansicht, durch Scrollen gesteuert */
.rolle { height: 250vh; position: relative; }
/* feine Linie unten zeigt, wie weit man durch die Ansicht gescrollt hat */
.rolle-fest::after { content: ""; position: absolute; left: 0; bottom: 14px; height: 1px; width: 100%; background: var(--s); transform-origin: left; transform: scaleX(var(--weg, 0)); }
.rolle-fest { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; place-items: center; overflow: hidden; }
.rolle-bild { position: relative; margin: 0; aspect-ratio: 3 / 2; width: min(100%, calc((100vh - 64px) * 1.5)); }
.rolle-bild img, .rolle-bild canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rolle-bild canvas { opacity: 0; }
.rolle.bereit canvas { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .js .rolle[data-intro] .rolle-bild img { opacity: 0; } }
.rolle-kopf { position: absolute; left: 0; top: clamp(12px, 3vh, 40px); z-index: 2; }
.marken { list-style: none; margin: 0; padding: 0; }
.marken li { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; opacity: 0; transition: opacity .45s; transform: translateY(-50%); }
.marken li::before { content: ""; width: clamp(28px, 7vw, 120px); height: 1px; background: var(--s); flex: none; }
.marken li.li { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.rolle.offen .marken li { opacity: 1; }
.marken li:nth-child(2) { transition-delay: .06s; } .marken li:nth-child(3) { transition-delay: .12s; }
.marken li:nth-child(4) { transition-delay: .18s; } .marken li:nth-child(5) { transition-delay: .24s; } .marken li:nth-child(6) { transition-delay: .3s; }
.film[data-einmal].zu-ende { cursor: pointer; }
.zahlreihe { align-items: end; }
.zahlreihe .links { grid-column: 1 / span 5; }
.zahlreihe .film { grid-column: 6 / -1; width: 100%; }
@media (max-width: 860px) {
  .rolle { height: 220vh; }
  .marken li { font-size: 10px; letter-spacing: .06em; gap: 5px; }
  .marken li::before { width: 14px; }
  /* Handy: Beschriftungen brechen um und bleiben im Bild; Sitzmodule steht über, Systemträger unter seiner Linie */
  .marken li { white-space: normal; line-height: 1.25; max-width: calc(100% - var(--x)); }
  .marken li.li { max-width: var(--x); text-align: right; }
  .marken li:nth-child(4) { transform: translateY(-100%); align-items: flex-end; }
  .marken li:nth-child(4)::before { margin-bottom: 5px; }
  .marken li:nth-child(5) { transform: none; align-items: flex-start; }
  .marken li:nth-child(5)::before { margin-top: 5px; }
}
