@font-face { font-family: "Anton"; src: url("../schrift/Anton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../schrift/Manrope-VariableFont_wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* Alle Farben an einer Stelle. "Komplett hell" = --gross-* auf helle Werte setzen. */
:root {
  --grund: #FAF8F4;
  --karte: #F2EEE6;
  --schrift: #3A3F39;
  --text: #5A6156;
  --leise: #DDD8CE;
  --linie: #E4DFD5;
  --akzent: #8A5F35;
  --gross-grund: #141311;
  --gross-schrift: #F2EEE6;
  --rand: clamp(16px, 2.4vw, 36px);
  --kopf: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--grund);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.anton { font-family: "Anton", "Impact", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }

/* Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--kopf);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--rand);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--schrift);
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
}
.kopf .marke { font-family: "Anton", sans-serif; font-size: 20px; letter-spacing: .04em; margin-right: auto; }
.kopf nav { display: flex; gap: clamp(16px, 3vw, 44px); }
.kopf nav a { position: relative; padding: 4px 0; }
.kopf nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.kopf nav a:hover::after, .kopf nav a[aria-current="page"]::after { right: 0; }
.sprache { display: flex; gap: 6px; }
.sprache button { letter-spacing: .14em; opacity: .45; padding: 4px 2px; }
.sprache button[aria-pressed="true"] { opacity: 1; }
.menue-knopf { display: none; width: 32px; height: 32px; position: relative; }
.menue-knopf span, .menue-knopf::before, .menue-knopf::after { content: ""; position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.menue-knopf::before { top: 10px; } .menue-knopf span { top: 15px; } .menue-knopf::after { top: 20px; }
.menue-offen .menue-knopf::before { transform: translateY(5px) rotate(45deg); }
.menue-offen .menue-knopf span { opacity: 0; }
.menue-offen .menue-knopf::after { transform: translateY(-5px) rotate(-45deg); }

/* Startseite: Treppe */
.start { position: relative; }
.buehne-start { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.headline-block { position: absolute; left: var(--rand); top: calc(var(--kopf) + 8px); z-index: 2; pointer-events: none; }
.headline { font-size: clamp(64px, 13.5vw, 210px); line-height: .86; color: var(--schrift); }
.unterzeile { margin-top: 20px; font-size: clamp(14px, 1.25vw, 18px); font-weight: 300; color: var(--schrift); max-width: 32ch; }
.scroll-hinweis { position: absolute; right: var(--rand); top: calc(var(--kopf) + 12px); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); display: flex; align-items: center; gap: 10px; }
.scroll-hinweis i { display: block; width: 1px; height: 36px; background: var(--leise); position: relative; overflow: hidden; }
.scroll-hinweis i::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--schrift); animation: rinnen 1.8s ease-in-out infinite; }
@keyframes rinnen { from { transform: translateY(-12px); } to { transform: translateY(36px); } }

.treppe { position: absolute; inset: 0; }
.stufe {
  position: absolute; bottom: 0; left: 0;
  transform-origin: left bottom;
  will-change: transform, width, height;
  overflow: hidden;
  background: var(--karte);
}
.stufe img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.stufe:hover img { transform: scale(1.04); }
.stufe .etikett {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #FAF8F4;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.stufe:hover .etikett, .stufe:focus-visible .etikett { opacity: 1; transform: none; }

/* Liste unter der Treppe */
.liste-kurz { padding: 18vh var(--rand) 12vh; }
.liste-kurz h2 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); font-weight: 400; margin-bottom: 24px; }
.liste-kurz a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 10px 0; border-top: 1px solid var(--linie); }
.liste-kurz a:last-child { border-bottom: 1px solid var(--linie); }
.liste-kurz .t { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: clamp(32px, 5vw, 72px); line-height: 1; color: var(--leise); transition: color .3s; }
.liste-kurz a:hover .t { color: var(--schrift); }
.liste-kurz .m { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* Abenteuer-Liste */
.projekte { position: relative; padding: calc(var(--kopf) + 12vh) var(--rand) 40vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3vw; }
.titelspalte { position: relative; z-index: 2; }
.titel-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.titel-zeile a.t {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: clamp(48px, 8.6vw, 150px); line-height: .98;
  color: var(--leise);
  transition: color .45s ease;
  display: block;
}
.titel-zeile .kat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); transition: color .45s ease; white-space: nowrap; }
.titel-zeile.aktiv a.t { color: var(--schrift); }
.titel-zeile.aktiv .kat { color: var(--schrift); }
.titel-zeile.nah a.t { color: #A9A59C; }
.stapel-spalte { position: relative; }
.stapel { position: sticky; top: calc(var(--kopf) + 6vh); height: calc(100vh - var(--kopf) - 12vh); }
.stapel figure {
  position: absolute; overflow: hidden; background: var(--karte);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.stapel figure img { width: 100%; height: 100%; object-fit: cover; }
.stapel figure:nth-child(1) { right: 0; top: 0; width: 48%; height: 34%; }
.stapel figure:nth-child(2) { right: 14%; top: 26%; width: 56%; height: 40%; }
.stapel figure:nth-child(3) { right: 32%; top: 56%; width: 68%; height: 44%; }
.stapel.wechsel figure { opacity: 0; transform: translate(40px, -30px); }
.stapel.wechsel figure:nth-child(2) { transition-delay: .05s; }
.stapel.wechsel figure:nth-child(3) { transition-delay: .1s; }

/* Abenteuer-Seite */
.projekt-kopf { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.projekt-kopf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: rein 1.8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rein { to { transform: none; } }
.projekt-kopf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,0) 45%, rgba(20,19,17,.55) 100%); }
.projekt-kopf .titelbox { position: absolute; left: var(--rand); right: var(--rand); bottom: 4vh; z-index: 1; color: #FAF8F4; }
.projekt-kopf h1 { font-size: clamp(64px, 14vw, 230px); line-height: .85; }
.projekt-kopf .meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.projekt-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 6vw; padding: 14vh var(--rand) 10vh; }
.projekt-text .fakten { list-style: none; border-top: 1px solid var(--linie); }
.projekt-text .fakten li { padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--schrift); }
.projekt-text .story p { font-size: clamp(18px, 1.7vw, 25px); font-weight: 300; line-height: 1.5; color: var(--schrift); max-width: 34ch; }
.projekt-text .story p + p { margin-top: 1em; }
.platzhalter-marke { display: inline-block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--akzent); border: 1px solid currentColor; border-radius: 6px; padding: 3px 8px; margin-bottom: 16px; }

.galerie { padding: 0 var(--rand) 8vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); align-items: start; }
.galerie button { display: block; overflow: hidden; background: var(--karte); cursor: zoom-in; }
.galerie img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.galerie button:hover img { transform: scale(1.025); }
.galerie .g1 { grid-column: 1 / span 12; }
.galerie .g2 { grid-column: 1 / span 7; }
.galerie .g3 { grid-column: 8 / span 5; margin-top: 18vh; }
.galerie .g4 { grid-column: 3 / span 8; }
.galerie .g5 { grid-column: 1 / span 5; }
.galerie .g6 { grid-column: 7 / span 6; margin-top: 10vh; }
.reinkommen { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reinkommen.da { opacity: 1; transform: none; }

.naechstes { display: block; padding: 10vh var(--rand) 14vh; border-top: 1px solid var(--linie); }
.naechstes small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.naechstes .t { display: block; font-size: clamp(56px, 11vw, 180px); line-height: .9; color: var(--leise); transition: color .4s; margin-top: 8px; }
.naechstes:hover .t { color: var(--schrift); }

/* Großansicht */
.gross { position: fixed; inset: 0; z-index: 100; background: var(--gross-grund); color: var(--gross-schrift); display: none; align-items: center; justify-content: center; }
.gross.offen { display: flex; animation: aufblenden .35s ease; }
@keyframes aufblenden { from { opacity: 0; } }
.gross img { max-width: calc(100vw - 2 * var(--rand) - 96px); max-height: calc(100vh - 120px); object-fit: contain; }
.gross .zu { position: absolute; top: 18px; right: var(--rand); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 8px; }
.gross .vor, .gross .back { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 80px; font-size: 28px; opacity: .7; }
.gross .vor { right: var(--rand); } .gross .back { left: var(--rand); }
.gross .zaehler { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; }

/* Seiten mit Textkopf */
.seite { padding: calc(var(--kopf) + 10vh) var(--rand) 12vh; }
.seite-titel { font-size: clamp(64px, 12vw, 200px); line-height: .88; color: var(--schrift); }
.seite-intro { margin-top: 24px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 20px); font-weight: 300; color: var(--schrift); }

/* Kunden */
.kunden { margin-top: 10vh; display: grid; gap: 12vh; }
.kunde { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4vw; align-items: start; }
.kunde h2 { font-size: clamp(40px, 5vw, 80px); line-height: .95; color: var(--schrift); }
.kunde .art { margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.kunde-bilder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.kunde-bilder button { overflow: hidden; background: var(--karte); aspect-ratio: 4 / 5; cursor: zoom-in; }
.kunde-bilder button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.kunde-bilder img { width: 100%; height: 100%; object-fit: cover; }
.kunde-bilder.breit { grid-template-columns: 1fr; }
.kunde-bilder.breit button, .kunde-bilder.breit button:first-child { grid-column: auto; grid-row: auto; aspect-ratio: auto; }
.kunde-bilder.breit img { height: auto; }
.leer-feld { aspect-ratio: 16 / 7; background: var(--karte); display: grid; place-items: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-radius: 6px; }

/* Prints */
.prints { margin-top: 10vh; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px) clamp(16px, 2vw, 32px); }
.print .wand { aspect-ratio: 4 / 5; background: #E9E3D8; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 6px; }
.print .wand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #DCD4C6; }
.print .rahmen { position: relative; z-index: 1; width: 62%; background: #2E2B27; padding: 2.2%; margin-top: -10%; box-shadow: 0 18px 30px -18px rgba(40,30,20,.55); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.print .rahmen .passe { background: #FBF8F2; padding: 9%; }
.print .rahmen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print:hover .rahmen { transform: translateY(-6px); }
/* Print im Querformat (Feld gf_format = quer am Print): ganzes Bild, breiter Rahmen */
.print.quer .rahmen { width: 86%; margin-top: -14%; }
.print.quer .rahmen .passe { padding: 6%; }
.print.quer .rahmen img { aspect-ratio: auto; height: auto; }
.print .unten { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.print h3 { font-size: 14px; font-weight: 600; color: var(--schrift); }
.knopf { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--schrift); border-radius: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--schrift); transition: background .25s, color .25s; }
.knopf:hover { background: var(--schrift); color: var(--grund); }

/* Über mich */
.ueber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6vw; align-items: end; }
.ueber img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.ueber p { font-size: clamp(18px, 1.7vw, 24px); font-weight: 300; color: var(--schrift); max-width: 34ch; }
.ueber p + p { margin-top: 1em; }
.ueber .links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Formular */
.formular { margin-top: 8vh; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.formular label { display: grid; gap: 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.formular .voll { grid-column: 1 / -1; }
.formular input, .formular select, .formular textarea {
  font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--schrift);
  background: transparent; border: 0; border-bottom: 1px solid var(--schrift); border-radius: 0;
  padding: 10px 0; outline: none;
}
.formular textarea { min-height: 140px; resize: vertical; }
.formular input:focus, .formular select:focus, .formular textarea:focus { border-bottom-color: var(--akzent); }
.formular .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .meldung { grid-column: 1 / -1; font-size: 14px; color: var(--akzent); min-height: 1.4em; }
.formular button[type="submit"] { justify-self: start; }

/* Print-Anfrage als Dialog */
.dialog { position: fixed; inset: 0; z-index: 90; background: rgba(20,19,17,.5); display: none; align-items: center; justify-content: center; padding: var(--rand); }
.dialog.offen { display: flex; animation: aufblenden .3s ease; }
.dialog .innen { background: var(--grund); border-radius: 10px; padding: clamp(20px, 3vw, 40px); width: min(720px, 100%); max-height: calc(100vh - 2 * var(--rand)); overflow: auto; position: relative; }
.dialog .zu { position: absolute; top: 14px; right: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.dialog h2 { font-size: clamp(36px, 4vw, 56px); line-height: .95; color: var(--schrift); }
.dialog .formular { margin-top: 24px; }
.danke { margin-top: 24px; padding: 24px; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); display: grid; gap: 10px; justify-items: start; }
.danke .danke-titel { font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--akzent); }
.danke p { font-size: 16px; color: var(--schrift); }
.danke .knopf { margin-top: 8px; }
.start { overflow-anchor: none; }

/* Fuß */
.fuss { padding: 6vh var(--rand) 5vh; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 24px; }
.entwurf-marke { position: fixed; left: 12px; bottom: 12px; z-index: 60; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; background: var(--akzent); color: #FAF8F4; padding: 6px 10px; border-radius: 6px; }

@media (max-width: 860px) {
  :root { --kopf: 56px; }
  .kopf nav, .kopf .sprache { display: none; }
  .menue-knopf { display: block; }
  .menue-offen .kopf { height: 100vh; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding-top: 18px; gap: 0; background: var(--grund); backdrop-filter: none; }
  .menue-offen .kopf .marke { margin: 0 0 9vh; }
  .menue-offen .kopf .menue-knopf { position: absolute; right: var(--rand); top: 12px; }
  .menue-offen .kopf nav { display: flex; flex-direction: column; gap: 6px; }
  .menue-offen .kopf nav a { font-family: "Anton", sans-serif; font-size: 52px; letter-spacing: 0; line-height: 1.05; }
  .menue-offen .kopf nav a::after { display: none; }
  .menue-offen .kopf .sprache { display: flex; margin-top: 6vh; }
  .scroll-hinweis { display: none; }
  .projekte { grid-template-columns: 1fr; padding-bottom: 20vh; }
  .stapel-spalte { position: fixed; right: var(--rand); bottom: 16px; width: 44vw; height: 30vh; z-index: 1; pointer-events: none; }
  .stapel { position: relative; top: 0; height: 100%; }
  .titel-zeile { grid-template-columns: 1fr; gap: 0; }
  .titel-zeile .kat { display: none; }
  .projekt-text { grid-template-columns: 1fr; gap: 6vh; padding-top: 8vh; }
  /* Galerie auf dem Handy: Raster mit zwei Spalten, jedes sechste Bild breit */
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 6vh; }
  .galerie .g1, .galerie .g2, .galerie .g3, .galerie .g4, .galerie .g5, .galerie .g6 { grid-column: auto; margin-top: 0; aspect-ratio: 4 / 5; }
  .galerie button:nth-child(5n) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .galerie button:last-child:nth-child(5n+1), .galerie button:last-child:nth-child(5n+3) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .galerie img { height: 100%; object-fit: cover; }
  .liste-kurz { padding-top: 8vh; }
  .liste-kurz a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .liste-kurz .m { white-space: normal; }
  .kunde { grid-template-columns: 1fr; }
  .prints { grid-template-columns: 1fr; }
  .ueber { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr; }
  /* Dialog auf dem Handy: kompakt, Schließen immer sichtbar und gut zu treffen */
  .dialog { padding: 12px; }
  .dialog .innen { padding: 14px 16px 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .dialog .zu { position: sticky; top: 0; z-index: 2; margin: 0 -6px -40px auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--karte); border: 1px solid var(--linie); font-size: 16px; letter-spacing: 0; }
  .dialog h2 { font-size: 30px; padding-right: 52px; padding-top: 6px; }
  .dialog .formular { margin-top: 16px; gap: 12px; }
  .dialog .formular textarea { min-height: 90px; }
  .gross img { max-width: 100vw; }
  .gross .vor, .gross .back { top: auto; bottom: 8px; transform: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reinkommen { opacity: 1; transform: none; }
}

/* Bildausschnitt je Bild (Feld gf_fokus) */
img[style*="--pos"] { object-position: var(--pos); }
@media (max-width: 699px) { img[style*="--pos"] { object-position: var(--pos-m); } }
