/* Rivercon Media. Ruhige Grotesk, viel Bild, klare Abschnitte. */

@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --tinte: #10181c;
  --grau: #5b666b;
  --linie: #d9dddc;
  --papier: #ffffff;
  --nebel: #f2f4f2;
  --petrol: #1e5456;
  --tief: #0f2a2d;
  --schaum: #a9dcc8;
  --rand: clamp(20px, 3.2vw, 56px);
  --spalte: clamp(14px, 1.7vw, 28px);
  --abstand: clamp(72px, 10vw, 168px);
  --kopf: 76px;
  --radius: 10px;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--papier); color: var(--tinte); font-family: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: clamp(16px, .32vw + 14.6px, 19px); line-height: 1.5; font-weight: 400; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
picture { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.dunkel :focus-visible { outline-color: var(--schaum); }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: fixed; left: var(--rand); top: 8px; z-index: 100; padding: 10px 14px; background: var(--tinte); color: #fff; transform: translateY(-160%); }
.sprung:focus { transform: none; }

/* Schrift */
.h1, h1 { font-size: clamp(38px, 4.5vw, 76px); line-height: 1.04; letter-spacing: -.026em; font-weight: 450; }
.h2, h2 { font-size: clamp(30px, 3.2vw, 54px); line-height: 1.08; letter-spacing: -.022em; font-weight: 450; }
.h3, h3 { font-size: clamp(21px, 1.75vw, 28px); line-height: 1.2; letter-spacing: -.012em; font-weight: 500; }
.lead { font-size: clamp(19px, 1.45vw, 25px); line-height: 1.32; letter-spacing: -.008em; }
.klein { font-size: clamp(13.5px, .2vw + 12.8px, 15px); line-height: 1.42; color: var(--grau); }
.dunkel .klein { color: #a9b8b9; }
.etikett { font-size: clamp(13.5px, .2vw + 12.8px, 15px); color: var(--grau); }
.dunkel .etikett { color: #a9b8b9; }

/* Raster und Abschnitte */
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalte); padding-inline: var(--rand); }
.abschnitt { padding-block: var(--abstand); }
.abschnitt.eng-oben { padding-top: 0; }
.dunkel { background: var(--tief); color: #f3f6f4; }
.hell { background: var(--nebel); }
.titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-inline: var(--rand); margin-bottom: clamp(28px, 3.6vw, 60px); }
.titelzeile > div { max-width: 40em; }
.titelzeile p { margin-top: .7em; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.35em; border-radius: 999px; background: var(--tinte); color: #fff; font-weight: 500; line-height: 1.1; text-decoration: none; border: 1px solid var(--tinte); transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap; }
.knopf:hover { background: var(--petrol); border-color: var(--petrol); }
.knopf.zart { background: transparent; color: inherit; border-color: currentColor; }
.knopf.zart:hover { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.dunkel .knopf { background: var(--schaum); color: var(--tinte); border-color: var(--schaum); }
.dunkel .knopf:hover { background: #fff; border-color: #fff; }
.dunkel .knopf.zart { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.dunkel .knopf.zart:hover { background: #fff; color: var(--tinte); border-color: #fff; }
.klein-knopf { padding: .68em 1.1em; font-size: 15px; }
.knopf:disabled { opacity: .55; cursor: wait; }
.pfeil { width: .78em; height: .78em; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; transition: transform .25s var(--weich); }
a:hover > .pfeil, button:hover > .pfeil { transform: translate(2px, -2px); }
.textlink { display: inline-flex; align-items: center; gap: .45em; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 50; height: var(--kopf); padding-inline: var(--rand); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; background: var(--papier); transition: transform .3s var(--weich), box-shadow .2s; }
.kopf.weg { transform: translateY(-100%); }
.kopf.fest { box-shadow: 0 1px 0 var(--linie); }
.kopf a { text-decoration: none; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.marke svg { width: 30px; height: 24px; fill: currentColor; }
.hauptnav { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: 16px; }
.hauptnav a { position: relative; padding: 8px 0; }
.hauptnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--weich); }
.hauptnav a:hover::after, .hauptnav a[aria-current="page"]::after { transform: scaleX(1); }
.kopf-rechts { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.menue-knopf { display: none; font-size: 16px; font-weight: 500; padding: 8px 0; }

.menue { position: fixed; inset: 0; z-index: 60; background: var(--tief); color: #f3f6f4; padding: 84px var(--rand) 32px; display: none; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menue.offen { display: flex; }
.menue ul a { display: block; font-size: clamp(32px, 9vw, 46px); line-height: 1.2; letter-spacing: -.02em; text-decoration: none; }
.menue-zu { position: absolute; right: var(--rand); top: 22px; font-weight: 500; font-size: 16px; padding: 6px 0; }
.menue-kontakt { display: grid; gap: 8px; justify-items: start; margin-top: 28px; }
.menue-kontakt .knopf { background: var(--schaum); color: var(--tinte); border-color: var(--schaum); margin-bottom: 8px; white-space: normal; text-align: center; }

@media (max-width: 960px) {
  :root { --kopf: 64px; }
  .kopf { grid-template-columns: 1fr auto; }
  .hauptnav { display: none; }
  .menue-knopf { display: block; }
}
@media (max-width: 420px) { .kopf .klein-knopf { display: none; } }

/* Bilder */
.foto { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--nebel); }
.foto picture { height: 100%; }
.foto img, .foto video { width: 100%; height: 100%; object-fit: cover; }
/* Die Lage trägt Foto und Video gemeinsam, damit beide jede Bewegung zusammen machen. */
.lage { position: absolute; inset: -5% 0; transition: scale 1.2s var(--weich); }
.lage > picture { height: 100%; }
.schirm { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; opacity: 0; transition: opacity .5s linear; pointer-events: none; background: #000; }
.schirm.an { opacity: .97; }
.schirm video { object-position: top; }

/* Bewegung: dezent und nur beim ersten Erscheinen */
.js [data-rein] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--weich), transform .9s var(--weich); transition-delay: var(--spaeter, 0s); }
.js [data-rein].da { opacity: 1; transform: none; }
/* Bis die Animation startet, bleibt der erste Bildschirm verdeckt. So springt nichts. */
.js:not(.los) h1, .js:not(.los) .held-text > *, .js:not(.los) .seitenkopf > *, .js:not(.los) .fall-text > *, .js:not(.los) .held-bild, .js:not(.los) .fall-bild { visibility: hidden; }
.wort { display: inline-block; overflow: clip; overflow-clip-margin: .02em; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wort > span { display: inline-block; }
[data-lesetext] span { opacity: .22; transition: opacity .35s linear; }
[data-lesetext] span.an { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rein] { opacity: 1; transform: none; transition: none; }
  .js:not(.los) h1, .js:not(.los) .held-text > *, .js:not(.los) .seitenkopf > *, .js:not(.los) .fall-text > *, .js:not(.los) .held-bild, .js:not(.los) .fall-bild { visibility: visible; }
  .lage { transition: none; }
}

/* Projektkarten */
.arbeit { display: block; text-decoration: none; }
.arbeit:hover .lage, .arbeit:focus-visible .lage { scale: 1.07; }
.arbeit-zeile h3 { transition: transform .5s var(--weich); }
.arbeit:hover .arbeit-zeile h3 { transform: translateX(6px); }
.arbeit-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.arbeit-zeile h3 { font-size: clamp(18px, 1.4vw, 23px); font-weight: 500; letter-spacing: -.01em; }
.arbeit p { color: var(--grau); margin-top: 3px; max-width: 36em; }
.dunkel .arbeit p { color: #a9b8b9; }
.arbeit-marken { flex: none; font-size: clamp(13px, .2vw + 12.4px, 15px); color: var(--grau); white-space: nowrap; }
.dunkel .arbeit-marken { color: #a9b8b9; }

/* Aufklapper */
.klappen { border-top: 1px solid var(--linie); }
.dunkel .klappen { border-color: rgba(255,255,255,.22); }
.klappen details { border-bottom: 1px solid var(--linie); }
.dunkel .klappen details { border-color: rgba(255,255,255,.22); }
.klappen summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: clamp(14px, 1.4vw, 22px) 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 25px); letter-spacing: -.012em; }
.klappen summary::-webkit-details-marker { display: none; }
.klappen summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .3s var(--weich); }
.klappen details[open] summary::after { transform: rotate(45deg); }
.klappen .inhalt { padding-bottom: clamp(16px, 1.6vw, 26px); max-width: 44em; color: var(--grau); }
.dunkel .klappen .inhalt { color: #c6d1d1; }
.klappen .inhalt ul { margin-top: .6em; }
.klappen .inhalt li { padding-left: 1em; text-indent: -1em; }
.klappen .inhalt li::before { content: "– "; }

/* Formular */
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--spalte); }
.breit { grid-column: 1 / -1; }
.feld { display: grid; gap: 4px; align-content: start; }
.feld label { font-size: 15px; }
.feld label span { opacity: .65; }
.feld input, .feld textarea, .feld select { width: 100%; padding: 8px 0 9px; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; font-size: 17px; }
.feld textarea { resize: vertical; min-height: 96px; }
.feld input:focus, .feld textarea:focus { outline: 0; border-bottom-width: 2px; padding-bottom: 8px; }
.feld-fehler { color: #a32c06; font-size: 14px; font-weight: 500; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 8px; }
.formular-fuss .klein { flex: 1 1 18em; color: inherit; opacity: .78; }
.dank { padding: 20px 22px; border-radius: var(--radius); background: var(--tinte); color: #fff; font-size: 1.1em; }

/* Kontaktbereich */
.kontakt { background: var(--schaum); color: var(--tinte); padding-block: clamp(64px, 8vw, 130px); }
.kontakt-links { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.kontakt-rechts { grid-column: 7 / -1; }
.kontakt-lead { max-width: 26em; }
.kontakt-person { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-top: 26px; }
.kontakt-person img { width: 92px; height: 112px; object-fit: cover; border-radius: var(--radius); }
.kontakt-person a { text-decoration: none; }
.kontakt-person a:hover { text-decoration: underline; }
.kontakt .knopf:hover { background: var(--petrol); }
@media (max-width: 860px) {
  .kontakt-links, .kontakt-rechts { grid-column: 1 / -1; }
  .kontakt-rechts { margin-top: 36px; }
}
@media (max-width: 560px) { .formular { grid-template-columns: minmax(0, 1fr); } }

/* Fußzeile */
.fuss { background: var(--tief); color: #f3f6f4; padding-block: clamp(48px, 5.4vw, 88px) 24px; font-size: 16px; }
.fuss .raster > div { grid-column: span 2; }
.fuss .raster > .fuss-marke { grid-column: span 5; }
.fuss .raster > div:last-child { grid-column: span 3; }
.fuss-marke p { margin-top: 14px; max-width: 24em; color: #c6d1d1; }
.fuss h2 { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #a9b8b9; margin-bottom: 10px; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss address { margin-bottom: 8px; }
.fuss-unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: clamp(36px, 4vw, 64px) var(--rand) 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.22); font-size: 14px; color: #a9b8b9; }
.fuss-unten a + a { margin-left: 18px; }
@media (max-width: 860px) {
  .fuss .raster > .fuss-marke { grid-column: 1 / -1; margin-bottom: 32px; }
  .fuss .raster > div:not(.fuss-marke) { grid-column: span 6; margin-bottom: 26px; }
  .fuss .raster > div:last-child { grid-column: 1 / -1; }
}

/* Großer Schriftzug am Ende */
.wortmarke { margin-top: clamp(36px, 5vw, 80px); padding-inline: var(--rand); overflow: hidden; font-size: calc((100vw - 2 * var(--rand)) / 6.52); line-height: 1; letter-spacing: -.04em; font-weight: 500; color: #1d4144; white-space: nowrap; }
.wortmarke span { display: block; }

/* Blase, die der Maus folgt */
.zeiger { position: fixed; left: 0; top: 0; z-index: 40; padding: .62em 1.05em; border-radius: 999px; background: var(--schaum); color: var(--tinte); font-size: 15px; font-weight: 500; pointer-events: none; visibility: hidden; }

/* Seitenwechsel: Die neue Seite schiebt sich von unten über die alte, das Foto einer Arbeit fliegt an seinen Platz. */
@view-transition { navigation: auto; }
.kopf { view-transition-name: kopf; }
::view-transition-old(root) { animation: seite-weg .55s var(--weich) both; }
::view-transition-new(root) { animation: seite-rein .55s var(--weich) both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--weich); }
@keyframes seite-weg { to { transform: translateY(-5%); } }
@keyframes seite-rein { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
