/* Studiothotti — „G pur“: das Foto ist die Seite. */

@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ink: #0d0d0d;
  --load: #161616;
  --rand: clamp(20px, 3.5vw, 52px);
  --linie: rgba(255, 255, 255, .25);
  --label: rgba(255, 255, 255, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); color: #fff; font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; background: none; border: none; cursor: pointer; padding: 0; }
::selection { background: #fff; color: var(--ink); }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

.app { position: fixed; inset: 0; overflow: hidden; display: flex; flex-direction: column; }
.spacer { flex: 1; }

/* ---- Seitenwechsel: Topbar und Kategorienleiste bleiben stehen ---- */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
.lineup { view-transition-name: lineup; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---- Topbar ---- */
.top {
  position: relative; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--rand);
}
.top .logo { justify-self: center; }
.top .logo img { height: clamp(20px, 2.2vw, 28px); width: auto; }
.top nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.top nav.r { justify-self: end; }
.top nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); padding: 4px 0; border-bottom: 1px solid transparent; transition: .2s;
}
.top nav a:hover { color: #fff; }
.top nav a.on { color: #fff; border-bottom-color: #fff; }

/* ---- Foto-Bühne ---- */
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage-bg { position: absolute; inset: 0; background: var(--load); }
.stage .frame { position: absolute; inset: 0; display: none; }
.stage .frame.on { display: block; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: imgIn .7s ease both; }
.stage .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, transparent 30%, transparent 55%, rgba(0,0,0,.55) 100%); }
@keyframes imgIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }

.fade-up { animation: fadeUp .6s ease both .1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Start: Identitätsblock ---- */
.gwho { position: absolute; left: var(--rand); bottom: clamp(78px, 10vh, 104px); z-index: 20; }
.gwho h1 { margin: 0 0 5px; font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: .01em; }
.gwho p { margin: 0; font-size: clamp(13px, 1.1vw, 15px); color: rgba(255, 255, 255, .85); }

.counter {
  position: absolute; right: clamp(16px, 2.5vw, 40px); top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); writing-mode: vertical-rl; z-index: 20;
}

/* ---- Rechtliche Links (Impressum/Datenschutz) ---- */
.legal { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); display: flex; gap: 8px; }
.legal a { transition: color .2s; }
.legal a:hover { color: #fff; }
.ecke, .werk-ecke { position: absolute; top: 96px; right: var(--rand); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ecke .legal, .werk-ecke .legal { color: rgba(255, 255, 255, .6); text-shadow: 0 0 8px rgba(0,0,0,.35); }

/* ---- Kategorienleiste ---- */
.lineup { position: relative; z-index: 30; display: flex; border-top: 1px solid var(--linie); padding-bottom: env(safe-area-inset-bottom); }
.lineup a {
  flex: 1; text-align: center; padding: 17px 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75); transition: color .2s, box-shadow .2s;
}
.lineup a:hover { color: #fff; }
.lineup a.on { color: #fff; box-shadow: inset 0 2px 0 #fff; }

/* ---- Werk ---- */
.werk-text { position: static; }
.werk-title {
  position: absolute; left: var(--rand); bottom: clamp(96px, 13vh, 132px); z-index: 20; margin: 0;
  font-weight: 500; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; max-width: 16ch;
}
.werk-sub { position: absolute; left: var(--rand); bottom: clamp(70px, 9.5vh, 96px); z-index: 20; margin: 0; font-size: 14px; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
.werk-nav { position: absolute; right: var(--rand); bottom: clamp(60px, 9vh, 96px); z-index: 25; display: flex; gap: 10px; }
.werk-nav button {
  width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; transition: .2s; background: rgba(0, 0, 0, .18); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.werk-nav button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.werk-count { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .9); }
.seite-werk .stage { touch-action: pan-y; }

/* ---- Innenseiten (Über / Kontakt / Rechtliches) ---- */
.page {
  position: relative; z-index: 10; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 4vh, 56px) var(--rand) calc(clamp(24px, 4vh, 56px) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 72px); align-items: start;
}
.page h1 { font-weight: 600; font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 30px; }
.page .body { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: rgba(255, 255, 255, .8); max-width: 54ch; }
.page .body p { margin: 0 0 14px; }
.page .body b, .page .body strong { color: #fff; font-weight: 600; }
.page .body a { text-decoration: underline; text-underline-offset: 4px; }
.page .body a:hover { color: rgba(255, 255, 255, .7); }
.page > div > .legal { margin-top: 40px; }

.page.text { grid-template-columns: minmax(0, 1fr); }
.page.text .body { max-width: 66ch; }
.page.text .body h2 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--linie); }

.meta-rows { margin: 34px 0 0; border-top: 1px solid var(--linie); }
.meta-rows .row { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.meta-rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--label); min-width: 120px; }
.meta-rows dd { margin: 0; font-size: 16px; }
.meta-rows dd a { text-decoration: underline; text-underline-offset: 4px; }
.meta-rows dd a:hover { color: rgba(255, 255, 255, .7); }

.weiter { margin: 28px 0 0; }
.weiter a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid #fff; padding-bottom: 4px; }

.page .side { position: relative; min-height: 0; align-self: stretch; }
.page .side img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; }

/* ---- Formular ---- */
.form { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.form input, .form select, .form textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
  color: #fff; font-family: var(--body); font-size: 17px; padding: 9px 0; outline: none; transition: border-color .2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .4); }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%), linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; }
.form select:invalid { color: rgba(255, 255, 255, .4); }
.form select option { color: #111; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #fff; }
.form textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .hinweis { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--label); }
.form .hinweis a { text-decoration: underline; text-underline-offset: 3px; }
.submit {
  margin-top: 18px; align-self: flex-start;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  background: #fff; color: var(--ink); padding: 15px 30px; transition: .2s;
}
.submit:hover { background: rgba(255, 255, 255, .8); }
.submit[disabled] { opacity: .6; cursor: default; }
.form .status { margin: 0; min-height: 1.5em; font-size: 15px; color: rgba(255, 255, 255, .85); }
.form .status.fehler { color: #ff9a8a; }

/* ---- Mobil ---- */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; }
  .page .side { display: none; }
  .lineup a { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 600px) {
  .top { padding-top: 20px; padding-bottom: 20px; }
  .top .nur-breit { display: none; }
  .form .grid2 { grid-template-columns: 1fr; }
  .ecke, .werk-ecke { top: 78px; }
}
@media (max-width: 480px) {
  .lineup a { font-size: 9px; letter-spacing: .04em; padding: 15px 2px; }
  .counter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-img, .fade-up { animation: none; }
  @view-transition { navigation: none; }
}

/* ================================================================
   Kundengalerien (normale Seite mit Scrollen, ohne Vollbild-Bühne)
   ================================================================ */
.seite-galerie, .seite-login { min-height: 100vh; }
.seite-galerie .top { position: sticky; top: 0; background: rgba(13, 13, 13, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.galerie { padding: clamp(24px, 5vh, 64px) var(--rand) 48px; }
.g-label { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.g-kopf h1 { margin: 0; font-weight: 600; font-size: clamp(34px, 4.2vw, 58px); letter-spacing: -.02em; line-height: 1.05; max-width: 20ch; }
.g-kunde { margin: 14px 0 0; font-size: clamp(15px, 1.2vw, 17px); color: rgba(255, 255, 255, .8); }

.g-abschnitt { margin-top: clamp(48px, 8vh, 96px); scroll-margin-top: 90px; }
.g-abschnitt h2 {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--linie);
  font-weight: 500; font-size: clamp(20px, 1.8vw, 26px);
}
.g-nr, .g-anzahl { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.g-anzahl { margin-left: auto; }

/* Bilder in Reihen, Seitenverhältnis bleibt erhalten (--r = Breite/Höhe) */
.g-raster { display: flex; flex-wrap: wrap; gap: 8px; }
.g-raster::after { content: ""; flex: 999 1 0; }
.g-bild { --r: 1.5; position: relative; flex: var(--r) 1 calc(var(--r) * clamp(150px, 18vw, 260px)); aspect-ratio: var(--r); background: var(--load); overflow: hidden; }
.g-bild-link { display: block; width: 100%; height: 100%; }
.g-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.g-bild:hover img { transform: scale(1.02); opacity: .9; }

.g-downloads { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.g-downloads li { display: flex; gap: 24px; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--linie); font-size: 17px; }
.g-downloads a { text-decoration: underline; text-underline-offset: 4px; }
.g-downloads a:hover { color: rgba(255, 255, 255, .7); }
.g-dl-info { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); white-space: nowrap; }
.g-dl-ab { color: var(--label); }
.g-dl-ab small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.g-anfrage { margin: 0; }
.g-anfrage button {
  padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .4); font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; transition: .2s;
}
.g-anfrage button:hover { background: #fff; color: var(--ink); border-color: #fff; }
.g-meldung { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--linie); font-size: 15px; }
.g-meldung.fehler { color: #ff9a8a; }
.g-meldung a { text-decoration: underline; text-underline-offset: 3px; }
.g-dl-hinweis { margin: 14px 0 0; font-size: 14px; color: var(--label); }

/* Favoriten */
.g-fav-hinweis { margin: 18px 0 0; max-width: 60ch; font-size: 15px; color: rgba(255, 255, 255, .8); }
.g-fav {
  position: absolute; right: 6px; bottom: 6px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .2s, transform .15s;
}
.g-fav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.g-fav[aria-pressed="true"] svg { fill: currentColor; }
.g-bild:hover .g-fav, .g-fav:focus-visible, .g-fav[aria-pressed="true"] { opacity: 1; }
.g-fav:active { transform: scale(.88); }
@media (hover: none) { .g-fav { opacity: 1; } }
.nur-favoriten .g-bild:not(.ist-favorit), .nur-favoriten .g-abschnitt.ohne-favoriten { display: none; }
.hat-favoriten { padding-bottom: 64px; }
.g-favleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 13, 13, .94);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--linie);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.g-favleiste[hidden] { display: none; }
.fl-zahl b { font-weight: 500; }
.fl-filter, .fl-senden { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .4); text-transform: inherit; letter-spacing: inherit; transition: .2s; }
.fl-filter[aria-pressed="true"], .fl-filter:hover { background: rgba(255, 255, 255, .12); }
.fl-status { margin-left: auto; color: var(--label); }
.fl-senden { background: #fff; color: var(--ink); border-color: #fff; font-weight: 500; }
.fl-senden:disabled { background: transparent; color: var(--label); border-color: var(--linie); cursor: default; }

.g-fuss { margin-top: clamp(64px, 10vh, 120px); padding-top: 18px; border-top: 1px solid var(--linie); font-size: 14px; color: var(--label); }
.g-fuss p { margin: 0 0 8px; }
.g-fuss a { text-decoration: underline; text-underline-offset: 3px; }
.g-fuss .legal { margin-top: 18px; }
.g-fuss .legal a { text-decoration: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: #000; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; animation: imgIn .4s ease both; }
.lb-leiste { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 22px var(--rand); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lb-zaehler { margin-right: auto; color: rgba(255, 255, 255, .85); }
.lb-download, .lb-zu, .lb-fav { color: rgba(255, 255, 255, .85); transition: color .2s; text-transform: inherit; letter-spacing: inherit; }
.lb-download:hover, .lb-zu:hover, .lb-fav:hover { color: #fff; }
.lb-download[hidden], .lb-fav[hidden] { display: none; }
.lb-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .3); font-size: 18px; transition: .2s;
}
.lb-pfeil:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-zurueck { left: var(--rand); }
.lb-weiter { right: var(--rand); }

/* Login */
.login { max-width: 460px; margin: 0 auto; padding: clamp(48px, 14vh, 160px) var(--rand) 64px; }
.login h1 { margin: 0 0 36px; font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.05; }
.login-hilfe { margin-top: 36px; font-size: 14px; color: var(--label); }
.login-hilfe a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .g-raster { gap: 4px; }
  .g-bild { flex-basis: calc(var(--r) * 120px); }
  .lb-pfeil { top: auto; bottom: 20px; transform: none; }
  .g-downloads li { flex-direction: column; gap: 8px; }
  .fl-status { order: 5; flex-basis: 100%; margin-left: 0; }
  .hat-favoriten { padding-bottom: 130px; }
  .seite-galerie .top nav:first-child a[href="#bilder"] { display: none; }
  .g-favleiste { gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox img { animation: none; }
}
