/* ============================================================
   BELL-FIRE · Epoxidharz-Kunst
   Design-System: Dark-Luxury-Galerie mit Glut-Akzent
   Dials: VARIANCE 8 · MOTION 6 · DENSITY 3
   Regeln: Tokens only (keine Hex außerhalb :root) · ein Akzent
   pro Fläche (dunkel = Bernstein, Papier = Kupfer) · Radius-
   System: Buttons Pill / Karten+Bilder 14px / Inputs 10px
   ============================================================ */

:root {
  /* --- Farbwelt --- */
  --schwarz:        #0B0908;   /* Seiten-Grund, warm-tiefes Schwarz */
  --schwarz-tief:   #070504;   /* Footer, Lightbox */
  --kohle:          #14100D;   /* Sektions-Layer */
  --anthrazit:      #1D1815;   /* Flächen, Cards, Quickbar */
  --anthrazit-hell: #292019;   /* Hover-Flächen */

  --hell:           #F2EAE0;   /* Haupttext auf dunkel */
  --hell-sekundaer: #BCAF9F;   /* Sekundärtext auf dunkel (4.6:1 auf Kohle) */
  --hell-gedimmt:   #8F8578;   /* Placeholder/Hints auf dunkel */

  --papier:         #F5F1EA;   /* Off-White Color-Block (Über-Sektion) */
  --papier-tief:    #ECE5DA;   /* Flächen auf Papier */
  --ink:            #191411;   /* Text auf Papier */
  --ink-sekundaer:  #5C5347;   /* Sekundärtext auf Papier */

  --bernstein:      #E39A3B;   /* Primär-Akzent dunkle Flächen */
  --bernstein-tief: #C97F2A;   /* Hover */
  --kupfer:         #A85D36;   /* Akzent Papier-Fläche */
  --kupfer-tief:    #8A4A2A;
  --glut:           #E2571E;   /* Glut-Rotorange: nur ambient (Verläufe, Logo) */

  --ok:             #8FCB84;
  --fehler:         #E0563C;

  --linie:          rgba(242, 234, 224, 0.13);  /* Hairlines dunkel */
  --linie-stark:    rgba(242, 234, 224, 0.26);
  --linie-papier:   rgba(25, 20, 17, 0.14);

  /* --- Typografie --- */
  --font-display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --fs-display: clamp(2.5rem, 6.5vw, 5.25rem);      /* H1 Hero, Deckel 84px */
  --fs-h2: clamp(1.9rem, 3.6vw, 2.85rem);           /* Sektions-Headlines */
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-klein: 0.875rem;

  /* --- Raum --- */
  --w-content: 1160px;
  --pad-inline: clamp(20px, 5vw, 48px);
  --raum-sektion: clamp(96px, 13vh, 160px);
  --raum-1: 8px; --raum-2: 16px; --raum-3: 24px;
  --raum-4: 40px; --raum-5: 64px; --raum-6: 96px;

  /* --- Form --- */
  --radius-bild: 14px;
  --radius-input: 10px;
  --radius-pill: 999px;

  /* --- Schatten (EIN dezentes System, warm getönt) --- */
  --schatten-1: 0 6px 24px rgba(5, 3, 2, 0.35);
  --schatten-2: 0 16px 48px rgba(5, 3, 2, 0.5);
  --schatten-akzent: 0 10px 32px rgba(227, 154, 59, 0.22);

  /* --- Motion --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-schnell: 0.25s;
  --t-mittel: 0.55s;
  --t-langsam: 1.4s;

  /* --- Z-Ebenen --- */
  --z-nav: 100;
  --z-quickbar: 90;
  --z-admin: 80;
  --z-lightbox: 200;
  --z-loader: 300;

  /* --- Layout-Konstanten --- */
  --nav-hoehe: 72px;
  --quickbar-mobil-hoehe: 62px;
}

/* ============ Reset & Basis ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--hell);
  background: var(--schwarz);
  overflow-x: hidden;
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--bernstein); color: var(--schwarz); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--bernstein);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.sektion { padding-block: var(--raum-sektion); position: relative; }

/* Anker-Offset für Sticky-Nav */
[id] { scroll-margin-top: calc(var(--nav-hoehe) + 24px); }

/* Ambiente: sehr feiner Glut-Schein + Korn (fixed, pointer-events-none) */
.ambiente {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(1100px 700px at 85% -8%, rgba(226, 87, 30, 0.07), transparent 60%),
    radial-gradient(900px 640px at -10% 110%, rgba(168, 93, 54, 0.06), transparent 60%);
}
.ambiente::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
main, .site-footer, .site-nav { position: relative; z-index: 2; }

/* Icons */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ============ Loader (nur mit JS aktiv, kurz, nicht gatend) ============ */
.loader { display: none; }
html.js .loader {
  display: grid;
  place-items: center;
  position: fixed; inset: 0;
  z-index: var(--z-loader);
  background: var(--schwarz);
  transition: opacity var(--t-mittel) var(--ease), visibility var(--t-mittel);
}
html.js .loader img {
  width: 84px;
  animation: loader-puls 1.4s var(--ease) infinite alternate;
}
html.js.geladen .loader { opacity: 0; visibility: hidden; }
@keyframes loader-puls {
  from { opacity: 0.55; transform: scale(0.97); }
  to   { opacity: 1;    transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .loader { display: none; }
}

/* ============ Navigation ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  transition: background var(--t-schnell) ease, box-shadow var(--t-schnell) ease;
}
.site-nav.fest {
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--linie);
}
.nav-innen {
  height: var(--nav-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-3);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.logo img { width: 34px; height: 34px; }
.logo .wortmarke {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  color: var(--hell);
  transition: color var(--t-schnell) ease;
}
.logo:hover .wortmarke { color: var(--bernstein); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hell-sekundaer);
  padding: 10px 2px;
  transition: color var(--t-schnell) ease;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).aktiv { color: var(--bernstein); }

.nav-burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--hell);
}
.nav-burger .icon { width: 26px; height: 26px; }

/* Mobiles Menü */
.mobilmenu {
  position: fixed; inset: 0;
  z-index: calc(var(--z-nav) + 5);
  background: rgba(7, 5, 4, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad-inline) calc(var(--raum-4) + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mittel) var(--ease), visibility var(--t-mittel);
}
.mobilmenu.offen { opacity: 1; visibility: visible; }
.mobilmenu-kopf {
  height: var(--nav-hoehe);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobilmenu-schliessen {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  color: var(--hell);
}
.mobilmenu-schliessen .icon { width: 26px; height: 26px; }
.mobilmenu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--raum-5);
  flex: 1;
}
.mobilmenu-links a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--hell);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-mittel) var(--ease), transform var(--t-mittel) var(--ease), color var(--t-schnell) ease;
}
.mobilmenu.offen .mobilmenu-links a { opacity: 1; transform: none; }
.mobilmenu-links a:hover { color: var(--bernstein); }
.mobilmenu .btn { margin-top: var(--raum-4); }

/* ============ Buttons (alle mit Icon, Pill, mobil full width) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  min-height: 52px;
  border: 1px solid transparent;
  transition: transform var(--t-schnell) ease, background var(--t-schnell) ease,
              color var(--t-schnell) ease, border-color var(--t-schnell) ease,
              box-shadow var(--t-schnell) ease;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primaer {
  background: var(--bernstein);
  color: var(--schwarz);
  border-color: var(--bernstein);
}
.btn-primaer:hover {
  background: var(--bernstein-tief);
  border-color: var(--bernstein-tief);
  transform: translateY(-2px);
  box-shadow: var(--schatten-akzent);
}
.btn-sekundaer {
  background: transparent;
  color: var(--hell);
  border-color: var(--linie-stark);
}
.btn-sekundaer:hover {
  border-color: var(--bernstein);
  color: var(--bernstein);
  transform: translateY(-2px);
}
.btn-klein { padding: 11px 22px; min-height: 44px; font-size: 0.9rem; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Auf Papier-Fläche: Kupfer-Variante */
.flaeche-papier .btn-primaer {
  background: var(--kupfer);
  border-color: var(--kupfer);
  color: var(--papier);
}
.flaeche-papier .btn-primaer:hover { background: var(--kupfer-tief); border-color: var(--kupfer-tief); box-shadow: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--kohle);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease), filter 1.8s var(--ease);
  filter: blur(10px);
  will-change: opacity;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-slide.aktiv {
  opacity: 1;
  filter: blur(0);
}
html:not(.reduzierte-motion) .hero-slide.aktiv img {
  animation: hero-zoom 9s linear forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.055); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 5, 4, 0.92) 0%, rgba(7, 5, 4, 0.45) 38%, rgba(7, 5, 4, 0.18) 62%, rgba(7, 5, 4, 0.38) 100%);
}
.hero-inhalt {
  position: relative;
  width: 100%;
  padding-block: clamp(72px, 12vh, 128px) clamp(64px, 10vh, 112px);
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  max-width: 13ch;
  color: var(--hell);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--bernstein);
  padding-bottom: 0.08em;
}
.hero-sub {
  margin-top: var(--raum-3);
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--hell-sekundaer);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--raum-2);
  margin-top: var(--raum-4);
}
/* Slide-Fortschritt: funktionale Zustandsanzeige */
.hero-ticks {
  position: absolute;
  right: var(--pad-inline);
  bottom: clamp(28px, 5vh, 48px);
  display: flex;
  gap: 8px;
}
.hero-ticks button {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--linie-stark);
  transition: background var(--t-schnell) ease;
  padding: 0;
  position: relative;
}
.hero-ticks button::after { content: ''; position: absolute; inset: -14px -8px; }
.hero-ticks button.aktiv { background: var(--bernstein); }

/* ============ Trust-Band ============ */
.trust {
  padding-block: calc(var(--raum-sektion) * 0.62);
  background: var(--schwarz);
}
.trust p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
  color: var(--hell);
}
.trust p em {
  font-style: italic;
  color: var(--bernstein);
  padding-bottom: 0.08em;
}

/* ============ Sektions-Kopf ============ */
.sektions-kopf { max-width: 640px; margin-bottom: var(--raum-5); }
.sektions-kopf.mittig { margin-inline: auto; text-align: center; }
.kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--bernstein);
  margin-bottom: var(--raum-2);
  padding-bottom: 0.1em;
}
.flaeche-papier .kicker { color: var(--kupfer); }
.sektions-kopf h2 { font-size: var(--fs-h2); color: var(--hell); }
.sektions-kopf .sub {
  margin-top: var(--raum-2);
  color: var(--hell-sekundaer);
  max-width: 52ch;
}
.sektions-kopf.mittig .sub { margin-inline: auto; }

/* ============ Galerie (Masonry + mobiler Slider) ============ */
.galerie-sektion { background: var(--kohle); }
.galerie-grid {
  columns: 3;
  column-gap: var(--raum-3);
}
.galerie-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--raum-3);
  border-radius: var(--radius-bild);
  overflow: hidden;
  position: relative;
  background: var(--anthrazit);
  touch-action: pan-y;
  padding: 0;
  text-align: left;
}
.galerie-item img {
  width: 100%;
  height: auto;
  transition: transform var(--t-mittel) var(--ease);
}
.galerie-item .mehrbild {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(7, 5, 4, 0.72);
  color: var(--hell);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.galerie-item .mehrbild .icon { width: 1em; height: 1em; }
.badge-set {
  position: absolute;
  left: 10px; top: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bernstein);
  color: var(--schwarz);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (hover: hover) {
  .galerie-item:hover img { transform: scale(1.035); }
  .galerie-item::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: var(--radius-bild);
    box-shadow: inset 0 0 0 1px var(--bernstein);
    opacity: 0;
    transition: opacity var(--t-schnell) ease;
    pointer-events: none;
  }
  .galerie-item:hover::after { opacity: 0.65; }
}
.galerie-item.versteckt { display: none; }
.galerie-mehr {
  display: flex;
  justify-content: center;
  margin-top: var(--raum-5);
}

/* ============ Über die Künstlerin (Papier-Block) ============ */
.flaeche-papier {
  background: var(--papier);
  color: var(--ink);
}
.ueber-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.ueber-portrait { position: relative; }
.ueber-portrait img {
  width: 100%;
  border-radius: var(--radius-bild);
  position: relative;
  z-index: 1;
}
.ueber-portrait::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--kupfer);
  border-radius: var(--radius-bild);
  opacity: 0.55;
}
.ueber-text h2 { font-size: var(--fs-h2); color: var(--ink); }
.ueber-text .absatz { margin-top: var(--raum-3); color: var(--ink-sekundaer); max-width: 56ch; }
.ueber-zitat {
  margin-top: var(--raum-4);
  padding-left: var(--raum-3);
  border-left: 1px solid var(--kupfer);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 40ch;
}
.ueber-signatur {
  margin-top: var(--raum-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--kupfer);
}
.ueber-signatur span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-klein);
  color: var(--ink-sekundaer);
  margin-top: 4px;
}

/* ============ Verfügbare Werke ============ */
.verkauf-sektion { background: var(--schwarz); }
.verkauf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--raum-4) var(--raum-3);
}
.werk-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.werk-card .bildhuelle {
  position: relative;
  border-radius: var(--radius-bild);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--anthrazit);
  touch-action: pan-y;
}
.werk-card .bildhuelle img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--t-mittel) var(--ease);
}
.werk-card .beschreibung-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--raum-3);
  background: linear-gradient(to top, rgba(7, 5, 4, 0.88) 0%, rgba(7, 5, 4, 0.35) 55%, transparent 100%);
  color: var(--hell);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity var(--t-schnell) ease;
  pointer-events: none;
}
@media (hover: hover) {
  .werk-card .bildhuelle:hover img { transform: scale(1.045); }
  .werk-card .bildhuelle:hover .beschreibung-overlay { opacity: 1; }
}
.werk-card .werk-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: var(--raum-3);
  flex: 1;
}
.werk-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--hell);
}
.werk-card .werk-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--raum-2);
  color: var(--hell-sekundaer);
  font-size: var(--fs-klein);
}
.werk-card .werk-preis {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bernstein);
  white-space: nowrap;
}
.werk-card .btn { margin-top: var(--raum-3); align-self: flex-start; }
.werk-card.ist-verkauft .bildhuelle { opacity: 0.82; }
.status-verkauft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-klein);
  font-weight: 600;
  color: var(--hell-sekundaer);
}

/* ============ Ablauf / Prozess-Strahl ============ */
.ablauf-sektion { background: var(--kohle); }
.ablauf {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--raum-5);
}
.ablauf li {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  position: relative;
}
.ablauf .schritt-marker {
  grid-column: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--anthrazit);
  border: 1px solid var(--linie-stark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bernstein);
  position: relative;
  z-index: 1;
}
.ablauf .schritt-marker .icon { width: 24px; height: 24px; }
/* Verbindungslinie: exakt von Marker zu Marker (Segment je Schritt, letzter ohne) */
.ablauf li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-0.5px);
  top: 56px;
  height: calc(100% - 56px + var(--raum-5));
  width: 1px;
  background: linear-gradient(to bottom, var(--bernstein), var(--linie-stark));
  opacity: 0.55;
}
.ablauf .schritt-text { padding-top: 4px; }
.ablauf li:nth-child(odd)  .schritt-text { grid-column: 3; padding-left: var(--raum-3); text-align: left; }
.ablauf li:nth-child(even) .schritt-text { grid-column: 1; grid-row: 1; padding-right: var(--raum-3); text-align: right; }
.ablauf h3 { font-size: var(--fs-h3); color: var(--hell); margin-bottom: 6px; }
.ablauf p { color: var(--hell-sekundaer); font-size: 0.95rem; max-width: 36ch; }
.ablauf li:nth-child(even) p { margin-left: auto; }
.ablauf-cta { display: flex; justify-content: center; margin-top: var(--raum-6); }

/* ============ Kontakt ============ */
.kontakt-sektion { background: var(--schwarz); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.kontakt-info h2 { font-size: var(--fs-h2); color: var(--hell); }
.kontakt-info .sub { margin-top: var(--raum-2); color: var(--hell-sekundaer); max-width: 40ch; }
.kontakt-methoden {
  margin-top: var(--raum-4);
  display: flex;
  flex-direction: column;
  gap: var(--raum-2);
}
.kontakt-methoden a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--linie);
  border-radius: var(--radius-bild);
  color: var(--hell);
  font-weight: 500;
  min-height: 52px;
  transition: border-color var(--t-schnell) ease, color var(--t-schnell) ease, transform var(--t-schnell) ease;
}
.kontakt-methoden a .icon { color: var(--bernstein); width: 22px; height: 22px; }
.kontakt-methoden a:hover { border-color: var(--bernstein); transform: translateY(-2px); }
.kontakt-methoden a span small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--hell-gedimmt);
}

.kontakt-formular {
  background: var(--kohle);
  border: 1px solid var(--linie);
  border-radius: var(--radius-bild);
  padding: clamp(24px, 3.5vw, 44px);
}
.feld { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--raum-3); }
.feld label { font-size: var(--fs-klein); font-weight: 600; color: var(--hell); }
.feld label .optional { font-weight: 400; color: var(--hell-gedimmt); }
.feld input, .feld select, .feld textarea {
  font: inherit;
  color: var(--hell);
  background: var(--anthrazit);
  border: 1px solid var(--linie);
  border-radius: var(--radius-input);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--t-schnell) ease, box-shadow var(--t-schnell) ease;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--hell-gedimmt); }
.feld select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23BCAF9F'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 53.66 90.34L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--bernstein);
  box-shadow: 0 0 0 3px rgba(227, 154, 59, 0.18);
}
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--raum-2); }
.feld-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: var(--raum-3);
  font-size: var(--fs-klein);
  color: var(--hell-sekundaer);
}
.feld-checkbox input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--bernstein);
  flex: none;
}
.feld-checkbox a { color: var(--bernstein); }
.feld-checkbox a:hover { text-decoration: underline; }
.honig { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.formular-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  font-size: 0.95rem;
  margin-bottom: var(--raum-3);
}
.formular-status.ok { background: rgba(143, 203, 132, 0.12); color: var(--ok); border: 1px solid rgba(143, 203, 132, 0.35); }
.formular-status.fehler { background: rgba(224, 86, 60, 0.1); color: var(--fehler); border: 1px solid rgba(224, 86, 60, 0.35); }
.formular-status .icon { margin-top: 2px; }

/* ============ Quickbar (Schnellkontakt) ============ */
.quickbar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-quickbar);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quickbar a {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(29, 24, 21, 0.92);
  border: 1px solid var(--linie);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hell);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--t-schnell) ease, color var(--t-schnell) ease, transform var(--t-schnell) ease;
}
.quickbar a .icon { width: 22px; height: 22px; }
.quickbar a .qlabel {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  white-space: nowrap;
  background: rgba(29, 24, 21, 0.96);
  border: 1px solid var(--linie);
  color: var(--hell);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-schnell) ease, transform var(--t-schnell) ease;
}
@media (hover: hover) {
  .quickbar a:hover { border-color: var(--bernstein); color: var(--bernstein); transform: translateX(-3px); }
  .quickbar a:hover .qlabel { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.quickbar a:focus-visible .qlabel { opacity: 1; transform: translateY(-50%) translateX(0); }
.quickbar a.q-akzent {
  background: var(--bernstein);
  border-color: var(--bernstein);
  color: var(--schwarz);
}
@media (hover: hover) {
  .quickbar a.q-akzent:hover { background: var(--bernstein-tief); border-color: var(--bernstein-tief); color: var(--schwarz); }
  .quickbar a.q-akzent .qlabel { background: var(--bernstein); border-color: var(--bernstein); color: var(--schwarz); }
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(7, 5, 4, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-schnell) ease, visibility var(--t-schnell);
}
.lightbox.offen { opacity: 1; visibility: visible; }
.lightbox-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-3);
  padding: 18px var(--pad-inline);
}
.lightbox-titel { min-width: 0; }
.lightbox-titel strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--hell);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-titel span { font-size: var(--fs-klein); color: var(--hell-sekundaer); }
.lightbox-schliessen {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  display: flex; align-items: center; justify-content: center;
  color: var(--hell);
  flex: none;
  transition: border-color var(--t-schnell) ease, color var(--t-schnell) ease;
}
.lightbox-schliessen:hover { border-color: var(--bernstein); color: var(--bernstein); }
.lightbox-buehne {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 clamp(64px, 8vw, 120px);
  min-height: 0;
}
.lightbox-buehne img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 8px;
  box-shadow: var(--schatten-2);
}
.lightbox-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--linie);
  background: rgba(29, 24, 21, 0.8);
  color: var(--hell);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t-schnell) ease, color var(--t-schnell) ease;
}
.lightbox-pfeil:hover { border-color: var(--bernstein); color: var(--bernstein); }
.lightbox-pfeil.zurueck { left: clamp(10px, 2vw, 32px); }
.lightbox-pfeil.weiter { right: clamp(10px, 2vw, 32px); }
.lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px var(--pad-inline) calc(20px + env(safe-area-inset-bottom));
  overflow-x: auto;
}
.lightbox-thumbs button {
  width: 60px; height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  border: 2px solid transparent;
  padding: 0;
  opacity: 0.55;
  transition: opacity var(--t-schnell) ease, border-color var(--t-schnell) ease;
}
.lightbox-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumbs button.aktiv { opacity: 1; border-color: var(--bernstein); }
.lightbox-thumbs:has(button:only-child) { display: none; }

/* ============ Footer ============ */
.site-footer {
  background: var(--schwarz-tief);
  border-top: 1px solid var(--linie);
  padding: var(--raum-6) 0 var(--raum-4);
}
.footer-innen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--raum-4);
  text-align: center;
}
.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo img { width: 40px; height: 40px; }
.footer-logo .wortmarke {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  color: var(--hell);
  transition: color var(--t-schnell) ease;
}
.footer-logo:hover .wortmarke { color: var(--bernstein); }
.footer-block h4 {
  font-size: var(--fs-klein);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hell-gedimmt);
  margin-bottom: var(--raum-2);
}
.footer-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--raum-2) var(--raum-4);
}
.footer-reihe a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hell-sekundaer);
  font-size: 0.95rem;
  padding: 6px 2px;
  min-height: 44px;
  transition: color var(--t-schnell) ease;
}
.footer-reihe a:hover { color: var(--bernstein); }
.footer-reihe a .icon { width: 18px; height: 18px; }
.footer-unten {
  margin-top: var(--raum-5);
  padding-top: var(--raum-4);
  border-top: 1px solid var(--linie);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-3);
  flex-wrap: wrap;
}
.footer-copyright { font-size: var(--fs-klein); color: var(--hell-gedimmt); }

/* InGlory-Badge (CI: Sumi/Reis/Yuzu — bewusste Ausnahme vom Token-System) */
.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #0A0807;
  border: 1px solid rgba(244, 239, 230, 0.14);
  color: #F4EFE6;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: border-color var(--t-schnell) ease, transform var(--t-schnell) ease;
}
.credit-badge svg { width: 16px; height: 16px; flex: none; }
.credit-badge b { font-weight: 700; color: #C8E96B; }
.credit-badge:hover { border-color: #C8E96B; transform: translateY(-2px); }

/* ============ Admin-Indikator ============ */
.admin-chip {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: var(--z-admin);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: var(--anthrazit);
  border: 1px solid var(--bernstein);
  color: var(--bernstein);
  font-size: 0.82rem;
  font-weight: 700;
}
.admin-chip .icon { width: 15px; height: 15px; }

/* ============ Reveal (verstärkt nur, gated nie) ============ */
.reveal { opacity: 1; transform: none; }
html.js.motion-ok .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js.motion-ok .reveal.sichtbar { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1279px) {
  .quickbar { right: 12px; }
}

/* Quickbar-Gasse: zwischen 768 und 1339px bekommt die Rail rechts Platz,
   Content bleibt symmetrisch zentriert — Überlappung ausgeschlossen. */
@media (min-width: 768px) and (max-width: 1339px) {
  .container { max-width: calc(100vw - (var(--pad-inline) * 2) - 88px); }
}

@media (max-width: 899px) {
  :root { --nav-hoehe: 64px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .galerie-grid { columns: 2; }

  .ueber-grid { grid-template-columns: 1fr; gap: var(--raum-5); }
  .ueber-portrait { max-width: 440px; }

  .verkauf-grid { grid-template-columns: repeat(2, 1fr); }

  .kontakt-grid { grid-template-columns: 1fr; }

  /* Ablauf: Strahl links */
  .ablauf { gap: var(--raum-4); }
  .ablauf li { grid-template-columns: 56px 1fr; }
  .ablauf .schritt-marker { grid-column: 1; }
  .ablauf li:nth-child(odd) .schritt-text,
  .ablauf li:nth-child(even) .schritt-text {
    grid-column: 2;
    grid-row: 1;
    padding: 4px 0 0 var(--raum-3);
    text-align: left;
  }
  .ablauf li:nth-child(even) p { margin-left: 0; }
  .ablauf li:not(:last-child)::after {
    left: 28px;
    transform: none;
    height: calc(100% - 56px + var(--raum-4));
  }
}

@media (max-width: 767px) {
  /* Quickbar → Bottom-Bar */
  .quickbar {
    top: auto;
    right: 0; left: 0; bottom: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    background: rgba(11, 9, 8, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a {
    flex: 1;
    width: auto;
    height: var(--quickbar-mobil-hoehe);
    border-radius: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    gap: 3px;
  }
  .quickbar a .icon { width: 20px; height: 20px; }
  .quickbar a .qlabel {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: inherit;
    pointer-events: auto;
  }
  .quickbar a.q-akzent {
    background: transparent;
    color: var(--bernstein);
  }
  body { padding-bottom: calc(var(--quickbar-mobil-hoehe) + env(safe-area-inset-bottom)); }
}

@media (max-width: 599px) {
  :root { --raum-sektion: 84px; }

  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .werk-card .btn { align-self: stretch; }

  /* Galerie → horizontaler Slider (Seite bleibt kurz) */
  .galerie-grid {
    columns: auto;
    display: flex;
    gap: var(--raum-2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--raum-2);
    margin-inline: calc(var(--pad-inline) * -1);
    padding-inline: var(--pad-inline);
    scrollbar-width: none;
  }
  .galerie-grid::-webkit-scrollbar { display: none; }
  .galerie-item {
    flex: 0 0 78vw;
    margin-bottom: 0;
    scroll-snap-align: center;
  }
  .galerie-item img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
  .galerie-item.versteckt { display: block; }  /* Slider zeigt alle */
  .galerie-mehr { display: none; }

  .verkauf-grid { grid-template-columns: 1fr; }
  .feld-reihe { grid-template-columns: 1fr; }

  .footer-unten { flex-direction: column; justify-content: center; }
  .footer-copyright { text-align: center; }

  .hero h1 { max-width: 11ch; }
  .admin-chip { bottom: calc(var(--quickbar-mobil-hoehe) + env(safe-area-inset-bottom) + 12px); }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slide { filter: none; }
  html.js.motion-ok .reveal { opacity: 1; transform: none; }
}
