/* ═══════════════════════════════════════════════════════════
   CFJ KÖNIG — Designsystem „STUDIO"
   Nach dem Vorbild Hasselblad: tiefes Schwarz, das Werk als
   Bühne, feine Grotesk (Inter), maximales Understatement.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0B0B0B;
  --panel: #141414;
  --line: #242424;
  --txt: #F5F4F2;
  --dim: #A3A19D;      /* WCAG: > 6:1 auf --bg */
  --scrim: rgba(11, 11, 11, .85);

  --font: 'Inter', 'Helvetica Neue', sans-serif;

  --w-max: 1280px;
  --pad-x: clamp(1.4rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--txt);
  font: 300 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--txt);
  outline-offset: 3px;
}

/* ── Typo-Bausteine ─────────────────────────────── */

h1, h2, h3 { font-weight: 300; line-height: 1.1; }

.micro {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
}

.lede { color: var(--dim); max-width: 36em; margin-top: 1.2rem; }

/* ── Buttons ────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid #5A5A5A;
  padding: 1em 2.6em;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: background-color .3s, color .3s, border-color .3s;
  cursor: pointer;
}
.btn:hover { background: var(--txt); color: var(--bg); border-color: var(--txt); }

.btn-solid { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.btn-solid:hover { background: transparent; color: var(--txt); }

/* ── Header ─────────────────────────────────────── */

.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem var(--pad-x);
  mix-blend-mode: difference;
}

.brand {
  font-weight: 600;
  letter-spacing: .3em;
  font-size: .85rem;
}

.site-nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); flex-wrap: wrap; }

.site-nav a {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #CFCECC;
  transition: color .2s;
  /* Tap-Ziel vergrößern (Touch: min. ~44px inkl. Padding) */
  display: inline-block;
  padding: .8em .2em;
  margin: -.8em -.2em;
}
.site-nav a:hover { color: #fff; }

/* ── Hero: das Werk als Bühne ───────────────────── */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transform: translateY(var(--py, 0px)) scale(1.15);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,.3) 0%, rgba(11,11,11,0) 40%, var(--scrim) 100%);
}

.hero-cap {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(2rem, 6vh, 3.5rem);
  z-index: 2;
}

.hero-cap h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: .18em;
  margin: .9rem 0;
}

.hero-work {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(2rem, 6vh, 3.5rem);
  z-index: 2;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-cap > * { animation: rise .9s ease both; }
  .hero-cap > :nth-child(2) { animation-delay: .12s; }
  .hero-cap > :nth-child(3) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ── Scroll-Reveal ──────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .series-grid a { transition-delay: calc(var(--i, 0) * 70ms); }
}

/* ── Sektionen ──────────────────────────────────── */

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }

section { padding: clamp(4.5rem, 11vh, 7.5rem) 0; }

.sec-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ── Werkserien ─────────────────────────────────── */

.series-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.series-grid a { position: relative; display: block; background: var(--panel); }

.series-grid figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.series-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s, transform .6s;
}
.series-grid a:hover img { opacity: .72; transform: scale(1.03); }

.series-meta { padding: 1.1rem .2rem 0; }

.series-meta h3 {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .35rem;
}

.series-meta .micro { font-size: .64rem; }

/* ── Statement ──────────────────────────────────── */

.statement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.statement blockquote p {
  max-width: 40em;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  color: #DEDCD8;
}

.statement cite {
  display: block;
  margin-top: 2rem;
  font-style: normal;
}

/* ── Ausstellungen ──────────────────────────────── */

.exh-list {
  list-style: none;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.exh-list li {
  display: grid;
  grid-template-columns: 5em 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.exh-year { font-size: .72rem; letter-spacing: .2em; color: var(--dim); }
.exh-name { font-weight: 300; font-size: 1.02rem; letter-spacing: .02em; }
.exh-place { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); text-align: right; }

/* ── Kunstbuch ──────────────────────────────────── */

.book {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.book-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  transform: translateY(var(--py, 0px)) scale(1.2);
  will-change: transform;
}

.book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,11,11,.25), rgba(11,11,11,.85));
}

.book-inner { position: relative; z-index: 2; padding: clamp(2rem, 6vh, 4rem) var(--pad-x); }

.book h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 1.2rem 0 .9rem;
}

.book p { color: #D6D4D0; max-width: 34em; margin: 0 auto 2.2rem; }

/* ── News ───────────────────────────────────────── */

.news-item {
  margin-top: 2.6rem;
  padding-left: 1.8rem;
  border-left: 1px solid #4A4A4A;
  max-width: 46em;
}

.news-item h3 {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: .06em;
  margin: .5rem 0 .6rem;
}

.news-item p:last-child { color: var(--dim); }

.news-note { margin-top: 2.6rem; color: var(--dim); font-size: .92rem; max-width: 44em; }

/* ── Footer ─────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 3rem var(--pad-x) 2.2rem; }

.foot-grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.foot-brand { font-weight: 600; letter-spacing: .3em; font-size: .85rem; margin-bottom: .8rem; }

.foot-grid p { font-size: .8rem; color: var(--dim); line-height: 1.9; }
.foot-grid .micro { display: block; margin-bottom: .6rem; color: #7C7A76; }

address { font-style: normal; }

.site-foot a { border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.site-foot a:hover { color: #fff; border-color: #fff; }

.foot-legal {
  max-width: var(--w-max);
  margin: 2.6rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7C7A76;
}
.foot-legal a { color: inherit; }
.foot-legal a:hover { color: #fff; }

/* ── Admin-Login ────────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem var(--pad-x) 3rem;
}

.login-card {
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 5vw, 2.8rem);
}

.login-card h1 {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.login-sub { color: var(--dim); font-size: .88rem; margin-bottom: 2rem; }

.login-field { margin-bottom: 1.3rem; }

.login-field label {
  display: block;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .5rem;
}

.login-field input {
  width: 100%;
  font: 300 1rem/1.4 var(--font);
  color: var(--txt);
  background: #0F0F0F;
  border: 1px solid #2E2E2E;
  padding: .75em .9em;
}
.login-field input:focus-visible {
  outline: 2px solid var(--txt);
  outline-offset: 0;
  border-color: var(--txt);
}

.login-card .btn { width: 100%; text-align: center; }

.login-modules {
  list-style: none;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.login-modules li {
  font-size: .88rem;
  color: var(--dim);
  padding: .3rem 0 .3rem 1.3rem;
  position: relative;
}
.login-modules li::before {
  content: "";
  position: absolute;
  left: 0; top: .82em;
  width: .45em; height: .45em;
  background: var(--txt);
}

.login-note { margin-top: 1.6rem; font-size: .8rem; color: var(--dim); }

.login-back {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
}
.login-back:hover { color: var(--txt); }

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 900px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-work { display: none; }
}

@media (max-width: 560px) {
  .site-head { padding: 1rem 1.2rem; }
  .site-nav { gap: .9rem; }
  .exh-list li { grid-template-columns: 4em 1fr; }
  .exh-place { grid-column: 2; text-align: left; }
}

/* ── Werke: Galerie-Seiten ──────────────────────── */

.page-head { padding: clamp(8rem, 16vh, 11rem) 0 0; }
.page-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.masonry {
  columns: 3;
  column-gap: 2px;
  margin-top: 3rem;
}

.tile {
  display: block;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  background: var(--panel);
  cursor: pointer;
  break-inside: avoid;
}

.tile img {
  width: 100%;
  transition: opacity .35s;
}
.tile:hover img { opacity: .72; }

/* Serien-Übersicht */
.series-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.series-index a { position: relative; display: block; overflow: hidden; background: var(--panel); }
.series-index figure { aspect-ratio: 16 / 10; overflow: hidden; }
.series-index img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s, transform .6s;
}
.series-index a:hover img { opacity: .68; transform: scale(1.03); }

.series-index .idx-meta {
  position: absolute;
  left: 1.6rem; bottom: 1.4rem;
  z-index: 2;
}
.series-index .idx-meta h2 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: .4rem;
}
.series-index a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0) 55%, rgba(11,11,11,.78) 100%);
}
.series-index .idx-meta { z-index: 2; }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, .94);
  padding: 3.5rem 4.5rem;
}
.lb.open { display: flex; }

.lb figure {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lb img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  min-height: 0;
  flex: 0 1 auto;
  width: auto;
  margin: 0 auto;
}
.lb figcaption { margin-top: 1.1rem; flex: none; }

/* Werk-Beschreibung in der Großansicht */
.lb-text {
  flex: none;
  margin: .8rem auto 0;
  max-width: 56ch;
  font-size: .88rem;
  line-height: 1.6;
  color: #C9C7C3;
  max-height: 22vh;
  overflow-y: auto;
  padding: 0 .5rem;
}

.lb button {
  position: absolute;
  background: none;
  border: 0;
  color: #CFCECC;
  font: 300 2rem/1 var(--font);
  cursor: pointer;
  padding: .8rem 1.1rem;
  transition: color .2s;
}
.lb button:hover { color: #fff; }
.lb-close { top: 1rem; right: 1.2rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .masonry { columns: 2; }
  .series-index { grid-template-columns: 1fr; }
  .lb { padding: 3rem .5rem; }
}

/* ── Textseiten (Über, Impressum, Datenschutz) ──── */

.prose { max-width: 44em; }
.prose p { margin-bottom: 1.4rem; color: #D6D4D0; }
.prose h2 {
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 2.6rem 0 .9rem;
}
.prose a { border-bottom: 1px solid #4A4A4A; transition: color .2s, border-color .2s; }
.prose a:hover { color: #fff; border-color: #fff; }
.prose-cite { margin-top: 2.6rem; }

.contact-grid p { font-size: 1.02rem; color: #D6D4D0; line-height: 1.9; }
.contact-grid a { border-bottom: 1px solid #4A4A4A; }
.contact-grid a:hover { color: #fff; border-color: #fff; }

/* ── Admin-Bereich ──────────────────────────────── */

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.admin-head .site-nav a.aktiv { color: #fff; border-bottom: 1px solid #fff; }

.admin-main { padding-bottom: 5rem; }
.admin-page-head { padding: 2.6rem 0 0; }
.admin-page-head h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.admin-flash {
  border: 1px solid #3E5C3E;
  background: #142014;
  color: #BFDCBF;
  padding: .8rem 1.1rem;
  margin-bottom: 1.6rem;
  font-size: .9rem;
}
.admin-fehler {
  border: 1px solid #6B3030;
  background: #201212;
  color: #E8B9B9;
  padding: .8rem 1.1rem;
  margin-bottom: 1.6rem;
  font-size: .9rem;
}

.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 1.6rem; }
.admin-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem 1.6rem;
  transition: border-color .2s;
}
.admin-card:hover { border-color: #4A4A4A; }
.admin-card strong { display: block; font-size: 2.2rem; font-weight: 300; margin: .5rem 0 .2rem; }
.admin-card span:last-child { font-size: .82rem; color: var(--dim); }
.admin-card-alert { border-color: #6B5A30; }

.admin-tabelle { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.admin-tabelle th {
  text-align: left;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--line);
}
.admin-tabelle td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-tabelle a { border-bottom: 1px solid #4A4A4A; }
.admin-tabelle a:hover { color: #fff; border-color: #fff; }
.zeile-neu td { background: #14130D; }

.admin-aktionen { display: flex; gap: 1rem; align-items: baseline; white-space: nowrap; }
.admin-aktionen form { display: inline; }

.link-btn {
  background: none;
  border: 0;
  color: var(--dim);
  font: 400 .8rem/1.4 var(--font);
  letter-spacing: .06em;
  cursor: pointer;
  border-bottom: 1px solid #4A4A4A;
  padding: 0;
}
.link-btn:hover { color: #fff; border-color: #fff; }

.admin-form { max-width: 46em; }
.admin-form-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1.4rem; }
.admin-form textarea, .admin-form select, .bestell-form textarea {
  width: 100%;
  font: 300 1rem/1.5 var(--font);
  color: var(--txt);
  background: #0F0F0F;
  border: 1px solid #2E2E2E;
  padding: .75em .9em;
}
.admin-form select { appearance: none; }
.admin-h2 {
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 2.8rem 0 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.admin-vorschau { max-width: 220px; margin-bottom: .8rem; border: 1px solid var(--line); }
.btn-ghost { border-color: transparent; color: var(--dim); }

.admin-werke { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; }
.admin-werk { border: 1px solid var(--line); background: var(--panel); padding: .7rem; }
.admin-werk img { aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: .6rem; }
.admin-werk p { font-size: .82rem; }

/* ── Bestellformular (öffentlich) ───────────────── */

.bestell-form { max-width: 40em; margin-top: 2.5rem; }
.hp-feld { position: absolute; left: -9999px; }
.feld-fehler { display: block; margin-top: .4rem; font-size: .8rem; color: #E8B9B9; }
.bestell-erfolg h2 { font-size: 1.6rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.bestell-erfolg p.lede { margin-bottom: 2rem; }
.blog-bild { max-width: 100%; margin: 1.2rem 0; }
.blog-item h2 { font-size: 1.3rem; font-weight: 300; letter-spacing: .06em; margin: .4rem 0 .6rem; }

@media (max-width: 900px) {
  .admin-cards { grid-template-columns: 1fr; }
}

/* Bestellformular: schmale PLZ-Spalte neben dem Ort */
.reihe-plz-ort { grid-template-columns: minmax(90px, 1fr) 3fr; }
@media (max-width: 560px) { .reihe-plz-ort { grid-template-columns: 1fr; } }

/* Sprachschalter im Header */
.lang-switch {
  border: 1px solid #5A5A5A;
  padding: .45em .8em !important;
  margin: -.45em 0 !important;
}
.lang-switch:hover { border-color: #fff; }

/* Aufklappbare Admin-Bereiche (englische Fassung) */
.admin-details summary { cursor: pointer; list-style: none; }
.admin-details summary::before { content: "▸ "; color: var(--dim); }
.admin-details[open] summary::before { content: "▾ "; }

/* ── Kunstbuch-Kampagne ─────────────────────────── */

/* Ankündigungs-Leiste (alle Unterseiten): invertiert, fixiert */
.buch-leiste {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  display: block;
  background: var(--txt);
  color: var(--bg);
  text-align: center;
  padding: .55em 1rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.buch-leiste strong { font-weight: 600; }
.buch-leiste:hover strong { text-decoration: underline; }

body.hat-leiste .site-head { top: 2.1rem; }
body.hat-leiste .page-head { padding-top: clamp(9rem, 17vh, 12rem); }

/* Buch-Hero auf der Startseite */
.hero-buch { display: flex; align-items: center; }

.hero-buch-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .22;
}

.hero-buch::after {
  background: radial-gradient(ellipse at 30% 60%, rgba(11,11,11,0) 0%, rgba(11,11,11,.75) 100%);
}

.hero-buch-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: 3rem;
}

.hero-buch-text h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 1rem 0 1.3rem;
}

.hero-buch-text .h1-vorzeile {
  display: block;
  font-size: .5em;
  margin-bottom: .15em;
}

.hero-buch-lede {
  color: #D6D4D0;
  max-width: 32em;
  margin-bottom: 2.2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-buch-text > * { animation: rise .9s ease both; }
  .hero-buch-text > :nth-child(2) { animation-delay: .1s; }
  .hero-buch-text > :nth-child(3) { animation-delay: .2s; }
  .hero-buch-text > :nth-child(4) { animation-delay: .3s; }
  .buch-mock { animation: rise 1s ease both .35s; }
}

/* Buch-Mockup (gerendertes Produktbild mit Transparenz) */
.buch-mock {
  display: flex;
  justify-content: center;
}
.buch-mock img {
  width: min(620px, 104%);
  max-width: none;
  margin-inline: -2%;
  height: auto;
  filter: drop-shadow(-20px 34px 44px rgba(0, 0, 0, .55));
}

.buch-cover {
  position: relative;
  width: min(300px, 60vw);
  aspect-ratio: 5 / 7;
  background-size: cover;
  background-position: center;
  transform: rotateY(-16deg) rotateZ(.5deg);
  transform-style: preserve-3d;
  box-shadow: -30px 40px 70px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem 1.4rem;
}

/* Buchrücken links + Seitenschnitt rechts */
.buch-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.buch-cover::after {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; right: -7px;
  width: 7px;
  background: repeating-linear-gradient(180deg, #E8E4DC 0 2px, #C9C4BA 2px 3px);
  transform: rotateY(60deg);
  transform-origin: left;
}

.buch-cover-name,
.buch-cover-sub {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.buch-cover-name {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .26em;
}
.buch-cover-sub {
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #E4E1DC;
  margin-top: .4rem;
}

@media (max-width: 900px) {
  .hero-buch { min-height: 100dvh; height: auto; padding: 7rem 0 4rem; }
  .hero-buch-grid { grid-template-columns: 1fr; }
  .buch-mock { order: -1; }
  .buch-mock img { width: min(494px, 92vw); margin-inline: 0; }
  .hero-buch .hero-work { display: none; }
}

/* DSGVO-Checkbox im Bestellformular */
.check-feld {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  margin-top: 1.6rem;
}
.check-feld input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .25rem;
  accent-color: var(--txt);
  cursor: pointer;
}
.check-feld label {
  font-size: .92rem;
  color: #D6D4D0;
  cursor: pointer;
}
.check-feld a { border-bottom: 1px solid #4A4A4A; }
.check-feld a:hover { color: #fff; border-color: #fff; }

/* Export-Buttons in der Bestellliste */
.admin-export { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.admin-export .btn-ghost { border: 1px solid var(--line); }

/* Newsletter-Teaser auf der News-Seite */
.nl-teaser {
  margin-top: 4rem;
  padding: 2.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nl-teaser .lede { margin: 0; }

/* Werk-Einzelseite */
.werk-einzel { max-width: 900px; }
.werk-einzel img { width: 100%; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.werk-einzel figcaption { margin-top: 1.2rem; }
.werk-einzel figcaption a { border-bottom: 1px solid #4A4A4A; }
.werk-einzel figcaption a:hover { color: #fff; border-color: #fff; }

/* Über-Seite: Porträt links neben dem Text */
.ueber-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.ueber-bild { position: sticky; top: 6rem; }
.ueber-bild img { width: 100%; height: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.ueber-bild figcaption { margin-top: 1rem; }
@media (max-width: 900px) {
  .ueber-grid { grid-template-columns: 1fr; }
  .ueber-bild { position: static; max-width: 420px; }
}

/* Werk-Kacheln: Titel + Status beim Überfahren */
.tile { position: relative; }

.tile-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem .9rem .85rem;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0), rgba(11, 11, 11, .88));
  text-align: left;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.tile:hover .tile-info,
.tile:focus-visible .tile-info { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tile-info { transition: none; }
}

.t-titel {
  display: block;
  font-size: .82rem;
  letter-spacing: .05em;
  color: #fff;
}

.t-status {
  display: inline-block;
  margin-top: .3rem;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.st-verfuegbar { color: #9CC5A0; }
.st-reserviert { color: #D8A44A; }
.st-nicht_verfuegbar { color: #D98E7E; }

/* Lightbox: Detailzeile + Anfrage-Link */
.lb-details { flex: none; margin-top: .7rem; letter-spacing: .12em; }
.lb-anfrage {
  flex: none;
  display: inline-block;
  margin-top: 1rem;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9CC5A0;
  border-bottom: 1px solid #4A5C4C;
  padding-bottom: .3em;
  transition: color .2s, border-color .2s;
}
.lb-anfrage:hover { color: #fff; border-color: #fff; }
/* Wichtig: [hidden] muss gegen das display der Klasse gewinnen —
   sonst erscheint der Anfrage-Link auch dort, wo es nichts anzufragen gibt */
.lb-anfrage[hidden] { display: none; }

/* Werk-Anfrage: Werk links, Formular rechts */
.anfrage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.anfrage-werk img { width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.anfrage-werk figcaption { margin-top: 1rem; line-height: 1.8; }
@media (max-width: 900px) {
  .anfrage-grid { grid-template-columns: 1fr; }
  .anfrage-werk { max-width: 380px; }
}

/* Verbindliche Bestellung: Preisbox, Gesamtzeile, Widerruf */
.preis-box { margin-top: 2rem; }
.preis-box .preis { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; letter-spacing: .04em; }
.gesamt-zeile {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  font-weight: 400;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.widerruf-details { margin-top: 1.8rem; }
.widerruf-details summary {
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}
.widerruf-details summary:hover { color: var(--txt); }

/* Lieferoptionen: deutlich anwählbare Karten */
.liefer-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.3rem;
  min-width: 0;
}
.liefer-fieldset legend {
  display: block;
  padding: 0;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .5rem;
}
.liefer-option {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 0 0 .7rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.liefer-option:hover { border-color: #6A6A6A; background: #101010; }
.liefer-option:has(input:checked) {
  border-color: var(--txt);
  background: var(--panel);
}
.liefer-option:has(input:focus-visible) { outline: 2px solid var(--txt); outline-offset: 2px; }
.liefer-option input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  accent-color: var(--txt);
  cursor: pointer;
}
.liefer-option label { cursor: pointer; }
.liefer-option:has(input:checked) label { color: #fff; }

/* Hinweis-Karte: Buchpräsentation ohne Bestellung */
.praes-hinweis {
  display: block;
  margin-top: 3rem;
  max-width: 40em;
  border: 1px solid var(--line);
  padding: 1.3rem 1.4rem;
  transition: border-color .2s, background-color .2s;
}
.praes-hinweis:hover { border-color: var(--txt); background: var(--panel); }
.praes-hinweis .micro { display: block; margin-bottom: .5rem; }
.praes-hinweis strong {
  display: block;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: .35rem;
  color: #fff;
}
.praes-hinweis span:last-child { font-size: .92rem; color: var(--dim); }
.praes-hinweis:hover span:last-child { color: var(--txt); }
