:root {
  --papier: #fbfaf7;
  --tinte: #1c1b19;
  --grau: #77736c;
  --linie: #e4e0d8;
  --rahmen: #ffffff;
  --akzent: #1c1b19;
  --ok: #4f7a55;
  --res: #b07a2a;
  --sold: #a3412f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 300 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.kopf.gescrollt { border-color: var(--linie); }
.marke { display: inline-flex; align-items: center; gap: 12px; font: 500 20px/1 var(--serif); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.marke-logo { width: 99px; height: auto; flex: none; }
.nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.nav a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--grau); white-space: nowrap;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.aktiv { color: var(--tinte); border-color: var(--tinte); }

main { padding: 0 clamp(16px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }

/* Intro */
.intro { padding: clamp(64px, 12vw, 60px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.intro h1 { font: 400 clamp(44px, 8vw, 44px)/1 var(--serif); margin: 0 0 20px; letter-spacing: -.01em; }
.techniken { margin: 0; color: var(--grau); font-size: 42px; letter-spacing: .2em; text-transform: uppercase; }

/* Filter */
.filter { display: flex; justify-content: flex-end; padding-bottom: 8px; border-bottom: 1px solid var(--linie); }
.schalter { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grau); cursor: pointer; user-select: none; }
.schalter input { position: absolute; opacity: 0; }
.regler { width: 30px; height: 16px; border-radius: 8px; background: var(--linie); position: relative; transition: background .2s; }
.regler::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.schalter input:checked + .regler { background: var(--tinte); }
.schalter input:checked + .regler::after { transform: translateX(14px); }
.schalter input:focus-visible + .regler { outline: 2px solid var(--tinte); outline-offset: 2px; }

/* Serien */
.serie { padding: clamp(56px, 8vw, 96px) 0 0; }
.serie-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.serie-kopf h2 { font: 400 clamp(32px, 5vw, 48px)/1.1 var(--serif); margin: 0; }
.serie-kopf p { margin: 0; color: var(--grau); font: italic 400 19px/1.4 var(--serif); }
.serie-zahl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); }

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
}
.werk { cursor: pointer; }
.werk[hidden] { display: none; }
.werk-rahmen {
  aspect-ratio: 4 / 3.4;
  background: var(--rahmen);
  border: 1px solid var(--linie);
  padding: 7%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: box-shadow .35s, transform .35s;
}
.werk-rahmen img { max-height: 100%; width: auto; object-fit: contain; transition: transform .6s; }
.werk:hover .werk-rahmen, .werk:focus-visible .werk-rahmen { box-shadow: 0 18px 40px -22px rgba(28,27,25,.35); transform: translateY(-2px); }
.werk:hover img { transform: scale(1.02); }
.werk:focus-visible { outline: none; }
.werk.ist-weg .werk-rahmen img { opacity: .55; filter: grayscale(.4); }

.platzhalter {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #f3f1ec 0 10px, #efede7 10px 20px);
  color: var(--grau); font: italic 400 16px/1.3 var(--serif);
}

.werk-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.werk-titel { font: 400 22px/1.2 var(--serif); margin: 0; }
.werk-meta { margin: 2px 0 0; font-size: 12px; color: var(--grau); }
.preis { font-size: 13px; white-space: nowrap; font-weight: 400; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--grau); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); }
.status.res { color: var(--res); }
.status.sold { color: var(--sold); }
.status.na { color: var(--grau); }

.leer { color: var(--grau); font-style: italic; font-family: var(--serif); font-size: 19px; }

/* Kontakt */
.kontakt { margin: clamp(80px, 12vw, 140px) auto 0; max-width: 680px; text-align: center; padding-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--linie); }
.kontakt h2 { font: 400 clamp(36px, 6vw, 52px)/1 var(--serif); margin: 0 0 20px; }
.ueber { color: var(--grau); margin: 0 auto 28px; max-width: 520px; }
.kontakt-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 44px; }
.kontakt-wege a { text-decoration: none; border-bottom: 1px solid var(--linie); padding-bottom: 2px; transition: border-color .2s; }
.kontakt-wege a:hover { border-color: var(--tinte); }

.formular { text-align: left; display: grid; gap: 18px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formular label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); }
.formular input, .formular select, .formular textarea {
  font: 300 15px/1.5 var(--sans); color: var(--tinte);
  background: #fff; border: 1px solid var(--linie); border-radius: 0;
  padding: 11px 12px; width: 100%; text-transform: none; letter-spacing: 0;
  transition: border-color .2s;
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: none; border-color: var(--tinte); }
.formular .fehler { border-color: var(--sold); }
.knopf {
  justify-self: start;
  font: 400 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--tinte); border: 1px solid var(--tinte);
  padding: 15px 26px; cursor: pointer; transition: background .2s, color .2s;
  text-decoration: none; display: inline-block;
}
.knopf:hover { background: transparent; color: var(--tinte); }
.klein { font-size: 12px; color: var(--grau); margin: -8px 0 0; }

.fuss { text-align: center; color: #b9b4ab; background: var(--tinte); font-size: 12px; padding: 56px 16px 40px; margin-top: 96px; }
.fuss p { margin: 4px 0; }
.fuss-logo { width: 99px; height: auto; margin: 0 auto 24px; filter: invert(1); opacity: .92; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: var(--papier); color: var(--tinte);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: auf .25s ease; }
.lightbox::backdrop { background: var(--papier); }
@keyframes auf { from { opacity: 0; } }
.lb-inhalt { margin: 0; height: 100%; display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; padding: 48px 0; min-width: 0; }
.lb-bild { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-bild img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 0 0 1px var(--linie); }
.lb-bild .platzhalter { aspect-ratio: 4/3; height: auto; max-height: 100%; }
.lb-info h3 { font: 400 40px/1.1 var(--serif); margin: 6px 0 12px; }
.lb-serie { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }
.lb-info dl { margin: 0 0 28px; font-size: 14px; }
.lb-info dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); margin-top: 14px; }
.lb-info dd { margin: 2px 0 0; }
.lb-preis { font: 400 26px/1 var(--serif); }
.lb-zu, .lb-pfeil {
  background: none; border: 0; color: var(--tinte); cursor: pointer;
  font: 300 40px/1 var(--sans); opacity: .55; transition: opacity .2s;
}
.lb-zu:hover, .lb-pfeil:hover { opacity: 1; }
.lb-zu { position: absolute; top: 14px; right: 22px; font-size: 34px; z-index: 2; }
.lb-pfeil { height: 100%; }
.lb-pfeil[disabled] { visibility: hidden; }

@media (max-width: 860px) {
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-inhalt { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; padding: 56px 0 24px; overflow-y: auto; }
  .lb-bild { min-height: 40vh; }
  .lb-info h3 { font-size: 30px; }
  .lb-pfeil { font-size: 32px; }
}
@media (max-width: 560px) {
  .kopf { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .nav { gap: 20px; width: 100%; }
  .feld-reihe { grid-template-columns: 1fr; }
  .knopf { justify-self: stretch; text-align: center; }
  .filter { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
