/* Historische Schmuck Galerie · Designsystem
   Farben gemessen: Gusseisen der Fassade (#282C26), Logo-Gold der Folie (#B48E57).
   Schrift: Bona Nova (Antiqua) und Ysabeau Office (Text), beide OFL, mit ẞ. */
@font-face { font-family: "Bona Nova"; src: url("../fonts/BonaNova-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bona Nova"; src: url("../fonts/BonaNova-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bona Nova"; src: url("../fonts/BonaNova-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("../fonts/YsabeauOffice.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("../fonts/YsabeauOffice-Italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  --eisen: #1F231E; --eisen-2: #272C26; --eisen-3: #333932; --stein: #121311;
  --samt: #1D3328; --samt-2: #24402F;
  --gold: #B48E57; --gold-hell: #D8B878; --gold-blass: #E9D6AE; --gold-tinte: #7A5A2E;
  --creme: #F3EDE2; --papier: #FAF6EE; --tinte: #2A2620; --tinte-2: #5E564A;
  --hell: #EDE6D8; --hell-2: #B9B2A3; --hell-3: #A39C8E;
  --koralle: #C46A52; --grün-ok: #7FB38A;
  --antiqua: "Bona Nova", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text-font: "Ysabeau Office", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r1: 6px; --r2: 12px; --r3: 20px; --r4: 32px; --r5: 52px; --r6: 84px;
  --rand: clamp(18px, 5vw, 64px); --breit: 1240px; --abschnitt: clamp(72px, 11vw, 148px);
  --ecke: 4px; --aus-quart: cubic-bezier(.25, 1, .5, 1); --aus-expo: cubic-bezier(.16, 1, .3, 1);
  --kopf-h: 64px; --sicher-unten: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 8px); }
html.blatt-auf { overflow: hidden; }
body { margin: 0; background: var(--eisen); color: var(--hell); font-family: var(--text-font); font-size: 1.0625rem; line-height: 1.6; font-weight: 450;
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga", "pnum"; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; border-radius: 2px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold-hell); color: var(--stein); padding: 10px 14px; border-radius: var(--ecke); }
.sprung:focus { top: 12px; }

/* ---------- Schrift ---------- */
h1, h2, h3, .antiqua { font-family: var(--antiqua); font-weight: 400; letter-spacing: -.005em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.05rem, 4.8vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-hell); }
p { margin: 0; text-wrap: pretty; }
.zeile { font-family: var(--text-font); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hell); display: inline-flex; align-items: center; gap: 12px; }
.zeile::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--hell-2); max-width: 38em; }
.klein { font-size: .9rem; color: var(--hell-3); }
.ziffern { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum", "lnum"; }

/* ---------- Abschnitte ---------- */
.abschnitt { position: relative; padding: var(--abschnitt) 0; }
.innen { width: min(100% - 2 * var(--rand), var(--breit)); margin-inline: auto; }
.kopfzeile { display: grid; gap: var(--r3); margin-bottom: var(--r5); max-width: 46rem; }
.stein { background: var(--stein); }
.samt { background: var(--samt); }
.creme { background: var(--creme); color: var(--tinte); color-scheme: light; }
.creme .lead { color: var(--tinte-2); }
.creme .zeile { color: var(--gold-tinte); }
.creme h1 em, .creme h2 em, .creme h3 em { color: var(--gold-tinte); }
.creme .klein { color: var(--tinte-2); }
.linie { height: 1px; background: linear-gradient(90deg, transparent, rgba(216, 184, 120, .45), transparent); border: 0; margin: 0; }

/* ---------- Knöpfe ---------- */
.knopf { --k-grund: var(--gold); --k-text: #14120E; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--k-grund); color: var(--k-text); border: 1px solid transparent; border-radius: var(--ecke); font-family: var(--text-font); font-weight: 750; font-size: 1rem;
  letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--aus-quart), background-color .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.knopf .ic { width: 20px; height: 20px; flex: none; }
.knopf:hover { background: var(--gold-hell); box-shadow: 0 10px 28px -12px rgba(216, 184, 120, .55); }
.knopf:active { transform: scale(.98); }
.knopf.rand { --k-grund: transparent; --k-text: var(--hell); border-color: rgba(216, 184, 120, .55); }
.knopf.rand:hover { background: rgba(216, 184, 120, .1); box-shadow: none; }
.creme .knopf.rand { --k-text: var(--tinte); border-color: rgba(122, 90, 46, .5); }
.creme .knopf.rand:hover { background: rgba(122, 90, 46, .08); }
.knopf.klein { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.knopf.gross { min-height: 58px; padding: 0 30px; font-size: 1.06rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { color: var(--gold-hell); text-decoration: none; border-bottom: 1px solid rgba(216, 184, 120, .45); padding-bottom: 1px; font-weight: 650; }
.creme .textlink { color: var(--gold-tinte); border-color: rgba(122, 90, 46, .45); }
.ic { width: 1.1em; height: 1.1em; }
.nur-schmal { display: none; }
@media (max-width: 560px) { .nur-breit { display: none; } .nur-schmal { display: inline; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(216, 184, 120, .35); background: transparent; color: var(--hell); font-weight: 650; font-size: .95rem;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"], .chip.an { background: var(--gold-hell); color: var(--stein); border-color: var(--gold-hell); }
.creme .chip { color: var(--tinte); border-color: rgba(122, 90, 46, .4); }
.creme .chip[aria-pressed="true"] { background: var(--tinte); color: var(--creme); border-color: var(--tinte); }

/* Status */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hell-3); flex: none; }
.status.offen::before { background: var(--grün-ok); box-shadow: 0 0 0 4px rgba(127, 179, 138, .18); }
.status.zu::before { background: var(--koralle); }

/* Einblenden */
.js .zeigen { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--aus-expo), transform .9s var(--aus-expo); }
.js .zeigen.da { opacity: 1; transform: none; }
.js .zeigen.v1 { transition-delay: .08s; } .js .zeigen.v2 { transition-delay: .16s; } .js .zeigen.v3 { transition-delay: .24s; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 40; height: calc(var(--kopf-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, box-shadow .35s; }
.kopf.gescrollt { background: rgba(18, 19, 17, .96); box-shadow: 0 1px 0 rgba(216, 184, 120, .18), 0 12px 30px -18px rgba(0, 0, 0, .8); }
.kopf-innen { height: var(--kopf-h); width: min(100% - 2 * var(--rand), 1400px); margin-inline: auto; display: flex; align-items: center; gap: var(--r3); }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-hell); min-height: 44px; }
.marke img, .marke svg { width: 34px; height: 35px; }
.marke-wort { font-family: var(--antiqua); font-size: 1.02rem; line-height: 1.02; color: var(--hell); letter-spacing: .02em; }
.marke-wort small { display: block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hell); font-family: var(--text-font); font-weight: 700; margin-top: 3px; }
.kopf-nav { display: flex; gap: 4px; margin-left: auto; }
.kopf-nav a { text-decoration: none; padding: 10px 12px; color: var(--hell-2); font-weight: 600; font-size: .95rem; border-radius: var(--ecke); }
.kopf-nav a:hover { color: var(--hell); }
.kopf .knopf { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.kopf-kurs { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-size: .8rem; color: var(--hell-3); white-space: nowrap; }
.kopf-kurs b { color: var(--gold-hell); font-size: .98rem; font-weight: 750; }
.menü-knopf { display: none; width: 48px; height: 48px; margin-right: -8px; border: 0; background: transparent; color: var(--hell); align-items: center; justify-content: center; cursor: pointer; }
.menü-knopf .ic { width: 26px; height: 26px; }
@media (max-width: 1080px) { .kopf-nav { display: none; } .kopf-kurs { margin-left: auto; } }
@media (max-width: 760px) {
  :root { --kopf-h: 58px; }
  .kopf .knopf { display: none; }
  .kopf-kurs { font-size: .72rem; }
  .menü-knopf { display: inline-flex; }
  .marke-wort { font-size: .95rem; }
}

/* ---------- Leiste (Handy, unten fest) ---------- */
.leiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: none; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; padding: 8px 10px calc(8px + var(--sicher-unten));
  background: rgba(18, 19, 17, .97); box-shadow: 0 -1px 0 rgba(216, 184, 120, .2); transform: translateY(110%); transition: transform .45s var(--aus-expo); }
.leiste.da { transform: none; }
.leiste a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--ecke); text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--hell); border: 1px solid rgba(216, 184, 120, .35); }
.leiste a:first-child { background: var(--gold); color: #14120E; border-color: transparent; }
.leiste .ic { width: 19px; height: 19px; }
@media (max-width: 760px) { .leiste { display: grid; } body { padding-bottom: calc(70px + var(--sicher-unten)); } }

/* ---------- Blätter ---------- */
.blatt-grund { position: fixed; inset: 0; z-index: 60; background: rgba(8, 9, 8, .62); opacity: 0; pointer-events: none; transition: opacity .35s; }
.blatt-grund.offen { opacity: 1; pointer-events: auto; }
.blatt { position: fixed; z-index: 61; right: 0; top: 0; bottom: 0; width: min(520px, 100%); background: var(--eisen-2); color: var(--hell); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .45s var(--aus-expo); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .8); }
.blatt.offen { transform: none; }
.blatt-griff { display: none; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid rgba(216, 184, 120, .16); }
.blatt-kopf h2 { font-size: 1.6rem; }
.blatt-zu { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); display: grid; place-items: center; cursor: pointer; }
.blatt-zu .ic { width: 22px; height: 22px; }
.blatt-inhalt { padding: 22px 24px calc(28px + var(--sicher-unten)); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
@media (max-width: 899px) {
  .blatt { top: auto; left: 0; width: 100%; max-height: 92svh; border-radius: 18px 18px 0 0; transform: translateY(104%); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8); }
  .blatt-griff { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 10px auto 0; }
}
.menü-liste { list-style: none; margin: 0 0 var(--r3); padding: 0; }
.menü-liste a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; font-family: var(--antiqua); font-size: 1.45rem; border-bottom: 1px solid rgba(216, 184, 120, .14); }
.menü-liste .ic { color: var(--gold-hell); }
.menü-status { margin-bottom: var(--r3); }
.menü-wege { display: grid; gap: 10px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--stein); padding: var(--r6) 0 calc(var(--r4) + var(--sicher-unten)); color: var(--hell-2); font-size: .95rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--r4); }
.fuss h3 { font-family: var(--text-font); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hell); font-weight: 700; margin-bottom: var(--r2); }
.fuss a { color: var(--hell); text-decoration: none; }
.fuss a:hover { color: var(--gold-hell); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss-marke { display: flex; gap: 14px; align-items: center; color: var(--gold-hell); margin-bottom: var(--r3); }
.fuss-marke svg, .fuss-marke img { width: 48px; height: 50px; }
.fuss-unten { margin-top: var(--r5); padding-top: var(--r3); border-top: 1px solid rgba(216, 184, 120, .14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--hell-3); font-size: .85rem; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss a { overflow-wrap: anywhere; }

/* Kennzeichnung Musteransicht */
.muster { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--hell-3); letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Fuß: Hinweis und Statistik-Knopf */
.fuss-powered { color: var(--hell-3) !important; }
.fuss-powered:hover { color: var(--gold-hell) !important; }


/* Helle Seiten (Impressum, Datenschutz, 404): Kopf immer mit dunklem Grund, sonst verschwindet die Wortmarke im Creme */
body:has(main.recht) .kopf { background: rgba(18, 19, 17, .97); box-shadow: 0 1px 0 rgba(216, 184, 120, .18); }

/* Einwilligung „Darf ein Cookie bleiben?“ (Banner-Logik: Modul der Besucher-Zentrale; Gestaltung hier) */
.ew { position: fixed; z-index: 70; left: var(--rand); bottom: calc(18px + var(--sicher-unten)); width: min(440px, calc(100% - 2 * var(--rand)));
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 18px 18px 16px; color: var(--hell);
  background: linear-gradient(180deg, #262A24, #1C1F1A); border: 1px solid rgba(216, 184, 120, .4); border-radius: 6px;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .85); opacity: 0; transform: translateY(18px); transition: opacity .45s var(--aus-expo), transform .55s var(--aus-expo); }
.ew.bz-offen { opacity: 1; transform: none; }
.ew-stein { width: 96px; height: auto; margin-top: 4px; }
.ew-strich { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ew.bz-offen .ew-strich { animation: ew-zeichnen .9s .25s var(--aus-quart) forwards; }
.ew-tropfen { opacity: 0; }
@keyframes ew-zeichnen { to { stroke-dashoffset: 0; } }
.ew-titel { font-family: var(--antiqua); font-size: 1.32rem; line-height: 1.15; margin: 0 26px 6px 0; }
.ew-text { font-size: .93rem; line-height: 1.5; color: var(--hell-2); }
.ew-text a { color: var(--gold-hell); }
.ew-knöpfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ew-knopf { min-height: 46px; padding: 0 10px; font-size: .95rem; }
.ew-zu { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--hell-3); display: grid; place-items: center; cursor: pointer; }
.ew-zu svg { width: 18px; height: 18px; }
.ew-zu:hover { color: var(--hell); }
@media (max-width: 760px) {
  /* über der Handy-Leiste (70 px) und über dem Hero-Knopf (endet 84 px über dem Rand) */
  .ew { bottom: calc(96px + var(--sicher-unten)); grid-template-columns: 1fr; gap: 6px; padding: 16px 16px 14px; }
  .ew-stein { width: 84px; margin: 0; }
}
/* Antwort auf die Wahl: gleich viel Zuwendung für beide */
.ew-antwort { position: fixed; z-index: 71; left: var(--rand); bottom: calc(18px + var(--sicher-unten)); display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 14px; background: #1C1F1A; border: 1px solid rgba(216, 184, 120, .4); border-radius: 6px; color: var(--hell);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .85); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .45s var(--aus-expo); }
.ew-antwort.da { opacity: 1; transform: none; }
.ew-antwort .ew-stein { width: 72px; margin: 0; }
.ew-antwort .ew-strich { stroke-dashoffset: 0; }
.ew-antwort-text { font-family: var(--antiqua); font-size: 1.12rem; }
.ew-antwort.ja .ew-strich { animation: ew-glanz 1.4s .1s ease-out both; }
@keyframes ew-glanz { 0% { filter: brightness(1); } 40% { filter: brightness(1.7) drop-shadow(0 0 4px rgba(233, 214, 174, .9)); } 100% { filter: brightness(1.15); } }
.ew-antwort.nein .ew-tropfen { animation: ew-tropfen .55s ease-in forwards; }
.ew-antwort.nein .ew-strich { animation: ew-lösen 1.1s .5s ease-out forwards; }
@keyframes ew-tropfen { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(32px); } }
@keyframes ew-lösen { to { opacity: .08; stroke-width: 9; } }
@media (max-width: 760px) { .ew-antwort { bottom: calc(96px + var(--sicher-unten)); } }
@media (prefers-reduced-motion: reduce) {
  .ew, .ew-antwort { transition: none; }
  .ew .ew-strich { stroke-dashoffset: 0; animation: none !important; }
  .ew-antwort .ew-strich, .ew-antwort .ew-tropfen { animation: none !important; }
  .ew-antwort.nein .ew-strich { opacity: .08; }
}
