/* Finestead – öffentlicher Webshop. Elfenbein, Tinte, Altgold; Serifenschrift für Titel, keine fremden Schriften (CSP). */
:root {
  --ivory: #f7f4ee; --paper: #ffffff; --ink: #1b1a17; --ink2: #3b3832; --muted: #7a7469; --line: #e4ddd0; --soft: #efe9de;
  --gold: #8a6d2f; --gold2: #b08d44; --gold-soft: #f3ecdc; --ok: #2f5d34; --warn: #8a5a00; --bad: #8a2f22;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --w: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.serif, h1, h2, h3 { font-family: var(--serif); font-weight: normal; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 18px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hidden { display: none !important; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: var(--gold); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 238, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.kopf .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.wortmarke { font-family: var(--serif); font-size: 24px; letter-spacing: .32em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid transparent; color: var(--ink2); }
.nav a:hover, .nav a.on { border-color: var(--gold); color: var(--ink); }
.kopf-rechts { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.sprachen { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sprachen button { border: 0; background: none; padding: 4px 10px; font-size: 12px; letter-spacing: .08em; cursor: pointer; color: var(--muted); }
.sprachen button.on { background: var(--ink); color: var(--ivory); }
.kopf-rechts a { text-decoration: none; }
.menu-knopf { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ivory); flex-direction: column; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); gap: 8px; }
  .nav.offen { display: flex; } .menu-knopf { display: block; } .kopf .wrap { gap: 14px; } .wortmarke { font-size: 19px; letter-spacing: .24em; flex: 1; }
  .kopf-rechts .intern { display: none; }
}

/* Knöpfe & Felder */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); padding: 12px 22px;
  font-size: 14px; letter-spacing: .06em; text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink2); }
.btn.hell { background: transparent; color: var(--ink); } .btn.hell:hover { background: var(--ink); color: var(--ivory); }
.btn.gold { background: var(--gold); border-color: var(--gold); } .btn.gold:hover { background: var(--gold2); }
.btn.voll { width: 100%; } .btn:disabled { opacity: .5; cursor: default; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.eingabe { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 11px 12px; border-radius: 2px; color: var(--ink); font-size: 15px; }
.eingabe:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink2); }
.fehler { color: var(--bad); font-size: 14px; min-height: 1em; }
.hinweis { background: var(--gold-soft); border: 1px solid #e7dbc0; padding: 12px 14px; font-size: 14px; }

/* Startseite */
.held { position: relative; min-height: 560px; display: grid; grid-template-columns: 1.05fr .95fr; border-bottom: 1px solid var(--line); }
.held-text { padding: 90px 56px 70px max(24px, calc((100vw - var(--w)) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; }
.held-bild { background: var(--soft) center/cover no-repeat; min-height: 420px; }
.held p.lead { font-size: 18px; color: var(--ink2); max-width: 520px; margin: 0 0 30px; }
.suche-gross { display: flex; max-width: 520px; border: 1px solid var(--ink); background: var(--paper); }
.suche-gross input { flex: 1; border: 0; padding: 14px 16px; font-size: 16px; background: transparent; outline: none; }
.suche-gross button { border: 0; background: var(--ink); color: var(--ivory); padding: 0 22px; cursor: pointer; letter-spacing: .06em; }
@media (max-width: 900px) { .held { grid-template-columns: 1fr; } .held-text { padding: 56px 24px; } .held-bild { min-height: 300px; } }
.zahlen { display: flex; gap: 40px; margin-top: 34px; } .zahlen b { display: block; font: 30px var(--serif); }
.abschnitt { padding: 72px 0; } .abschnitt.dunkel { background: var(--ink); color: var(--ivory); } .abschnitt.dunkel .muted { color: #b9b2a4; }
.abschnitt-kopf { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.abschnitt-kopf a { font-size: 14px; letter-spacing: .06em; }
.kategorien { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kategorien a { background: var(--paper); padding: 26px 18px; text-decoration: none; font-family: var(--serif); font-size: 19px; text-align: center; transition: background .15s; }
.kategorien a:hover { background: var(--gold-soft); }
.kategorien a span { display: block; font: 12px var(--sans); color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.schritte .nr { font: 44px var(--serif); color: var(--gold2); }
@media (max-width: 700px) { .kategorien { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .schritte { grid-template-columns: 1fr; gap: 24px; } }

/* Raster */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 34px 24px; }
.stueck { text-decoration: none; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.stueck .bild { aspect-ratio: 1; background: var(--paper) center/cover no-repeat; border: 1px solid var(--line); position: relative; transition: border-color .2s; }
.stueck:hover .bild { border-color: var(--gold); }
.stueck .marke { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.etikett { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; background: var(--ivory); border: 1px solid var(--line); }
.etikett.auktion { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.etikett.reserviert { background: #fbeed3; border-color: #ead9b0; } .etikett.verkauft { background: #f3e1de; border-color: #e7cdc8; } .etikett.neu { background: var(--gold); color: #fff; border-color: var(--gold); }
.stueck .titel { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.stueck .unter { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.stueck .preis { font-size: 15px; letter-spacing: .02em; }
.leer { padding: 60px 0; text-align: center; color: var(--muted); }

/* Suche */
.such-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0 80px; }
.filter { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filter h4 { margin: 0 0 8px; font: 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filter .wahl { display: flex; flex-direction: column; gap: 4px; }
.filter .wahl label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; cursor: pointer; padding: 2px 0; }
.filter .wahl label span:last-child { color: var(--muted); font-size: 12px; }
.filter .zwei { display: flex; gap: 8px; }
.ergebnis-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-knopf { display: none; }
@media (max-width: 900px) { .such-layout { grid-template-columns: 1fr; } .filter { display: none; position: static; max-height: none; } .filter.offen { display: flex; } .filter-knopf { display: inline-flex; } }
.seiten { display: flex; gap: 6px; justify-content: center; margin-top: 44px; }
.seiten button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.seiten button.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* Detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 56px; padding: 40px 0 70px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 28px; } }
.galerie .haupt { aspect-ratio: 1; background: var(--paper) center/contain no-repeat; border: 1px solid var(--line); cursor: zoom-in; }
.galerie .daumen { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.galerie .daumen button { width: 74px; height: 74px; border: 1px solid var(--line); background: var(--paper) center/cover; cursor: pointer; padding: 0; }
.galerie .daumen button.on { border-color: var(--gold); outline: 1px solid var(--gold); }
.kasten { border: 1px solid var(--line); background: var(--paper); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.preis-gross { font: 32px var(--serif); }
.countdown { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.eigenschaften { width: 100%; border-collapse: collapse; font-size: 14px; }
.eigenschaften th { text-align: left; font-weight: normal; color: var(--muted); padding: 9px 0; width: 42%; border-bottom: 1px solid var(--line); }
.eigenschaften td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.beschreibung p { margin: 0 0 12px; color: var(--ink2); }
.verlauf { font-size: 13px; color: var(--muted); max-height: 160px; overflow: auto; }
.verlauf div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.zurueck { display: inline-flex; gap: 6px; font-size: 14px; text-decoration: none; color: var(--muted); margin-top: 26px; }
.bild-gross { position: fixed; inset: 0; background: rgba(20, 19, 16, .92); z-index: 50; display: grid; place-items: center; cursor: zoom-out; }
.bild-gross img { max-width: 94vw; max-height: 92vh; }

/* Konto, Formulare, Text */
.konto-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 0 80px; }
@media (max-width: 800px) { .konto-raster { grid-template-columns: 1fr; } }
.formular { display: flex; flex-direction: column; gap: 14px; }
.liste-zeile { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.liste-zeile .mini { width: 64px; height: 64px; background: var(--paper) center/contain no-repeat; border: 1px solid var(--line); }
.text-seite { max-width: 760px; padding: 60px 0 90px; } .text-seite p, .text-seite li { color: var(--ink2); }
.juwelier-karte { border: 1px solid var(--line); background: var(--paper); padding: 26px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.juwelier-karte:hover { border-color: var(--gold); }
.dialog-hg { position: fixed; inset: 0; background: rgba(27, 26, 23, .5); z-index: 40; display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--paper); max-width: 460px; width: 100%; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 12px 20px; z-index: 60; font-size: 14px; max-width: 90vw; }

/* Fuss */
.fuss { border-top: 1px solid var(--line); padding: 50px 0 40px; font-size: 14px; color: var(--muted); }
.fuss .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
.fuss a { display: block; text-decoration: none; padding: 3px 0; }
.fuss form { display: flex; gap: 0; margin-top: 8px; } .fuss form input { flex: 1; border: 1px solid var(--line); padding: 10px; background: var(--paper); }
.fuss form button { border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); padding: 0 14px; cursor: pointer; }
@media (max-width: 800px) { .fuss .wrap { grid-template-columns: 1fr 1fr; } }

/* Einfache Seiten (Newsletter bestätigen/abmelden) */
body.schlicht { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.schlicht-karte { background: var(--paper); border: 1px solid var(--line); padding: 44px; max-width: 520px; text-align: center; }
.schlicht-karte .wortmarke { display: block; margin-bottom: 26px; }

/* Video-Kundenberatung (Gast-Seite /beratung/:id) */
.gespraech { position: relative; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin: 22px 0 16px; }
.gespraech-kachel { position: relative; background: var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.gespraech-kachel video { width: 100%; height: 100%; object-fit: contain; display: block; }
.gespraech-kachel.bildschirm { grid-column: 1 / -1; }
.gespraech-name { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 13px; background: rgba(27, 26, 23, .55); padding: 3px 8px; }
.gespraech-eigen { width: 180px; max-width: 34vw; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink2); transform: scaleX(-1); justify-self: end; border: 2px solid var(--paper); }
.gespraech-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }

/* Schmuck-Berater (12.11.2026) */
.berater-knopf { position: fixed; right: 18px; bottom: 16px; z-index: 60; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 6px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.22)); }
.berater-knopf .dia-svg { transition: transform .2s; }
.berater-knopf:hover .dia-svg { transform: translateY(-2px) rotate(-3deg); }
.berater-blase { background: var(--ink); color: var(--ivory); font: 500 14px/1 var(--sans); padding: 9px 13px; border-radius: 14px 14px 4px 14px; white-space: nowrap; }
.berater-knopf.offen .berater-blase { display: none; }
.berater-knopf.hidden, .berater-fenster.hidden { display: none; }
.dia-auge { transform-box: fill-box; transform-origin: center; animation: diablink 4.2s infinite; }
.dia-auge:nth-child(2) { animation-delay: .04s; }
@keyframes diablink { 0%, 44%, 50%, 90%, 94%, 97%, 100% { transform: scaleY(1); } 47%, 92%, 95.5% { transform: scaleY(.08); } }
.berater-knopf.winkt .dia-svg { transform-origin: 50% 85%; animation: diawinkt .45s ease-in-out 4 alternate; }
@keyframes diawinkt { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.berater-knopf.denkt .dia-augen { animation: diaschaut 1.4s ease-in-out infinite; }
.berater-knopf.denkt .dia-licht, .berater-knopf.denkt .dia-punkt { animation: dialicht .7s steps(2) infinite; }
@keyframes diaschaut { 0%, 100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
@keyframes dialicht { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .dia-auge, .berater-knopf.winkt .dia-svg, .berater-knopf.denkt .dia-augen { animation: none; } }
.berater-kopf .dia-svg { flex-shrink: 0; }
.berater-fenster { position: fixed; right: 22px; bottom: 92px; z-index: 60; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.berater-kopf { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.berater-kopf b { font-family: var(--serif); font-weight: normal; font-size: 18px; }
.berater-kopf .grow { flex: 1; }
.berater-klein { border: 0; background: none; color: var(--gold); font-size: 13px; cursor: pointer; text-decoration: underline; }
.berater-zu { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink2); }
.berater-liste { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.berater-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.berater-msg p { margin: 0 0 6px; } .berater-msg p:last-child { margin: 0; }
.berater-msg.user { align-self: flex-end; background: var(--ink); color: var(--ivory); white-space: pre-wrap; }
.berater-msg.assistant { align-self: flex-start; background: var(--soft); }
.berater-msg.assistant a { color: var(--gold); }
.berater-msg.denkt { color: var(--muted); font-style: italic; }
.berater-stuecke { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.berater-stueck { display: flex; flex-direction: column; padding: 7px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.berater-stueck span { color: var(--muted); font-size: 13px; }
.berater-beispiele { display: flex; flex-wrap: wrap; gap: 6px; }
.berater-beispiele button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--ink2); }
.berater-beispiele button:hover { border-color: var(--gold); }
.berater-fehler { color: var(--bad); font-size: 14px; }
.berater-eingabe { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.berater-eingabe textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font: 15px/1.4 var(--sans); max-height: 120px; }
.berater-eingabe .btn { padding: 8px 14px; }
.berater-hinweis { padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 700px) { .berater-fenster { right: 6px; left: 6px; width: auto; bottom: 84px; height: calc(100vh - 108px); } .berater-knopf { right: 10px; bottom: 10px; } .berater-knopf .dia-svg { width: 58px; height: 58px; } }

/* Handy: nichts breiter als der Bildschirm (12.11.2026 – Fusszeile und Suchfeld waren 543 px breit) */
@media (max-width: 900px) { .held { grid-template-columns: minmax(0, 1fr); } .held-text > * { max-width: 100%; } }
.suche-gross input, .fuss form input { min-width: 0; }
@media (max-width: 520px) { .fuss .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

/* Sprechblase «Fragen?» nur beim Darüberfahren mit der Maus bzw. mit Tastatur-Fokus (Alexander, 12.11.2026) */
.berater-blase { opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) { .berater-knopf:hover .berater-blase { opacity: 1; transform: none; } }
.berater-knopf:focus-visible .berater-blase { opacity: 1; transform: none; }
.berater-knopf { gap: 0; }
.berater-blase { position: absolute; right: calc(100% + 6px); top: 50%; margin-top: -17px; }
@media (hover: hover) { .berater-knopf:hover .berater-blase { transform: none; } }

/* Berater auf dem Handy/Fold (12.11.2026, Zenja): Fenster passt in den sichtbaren Bereich (ohne Adressleiste),
   die Kopfzeile mit × bleibt immer sichtbar; offen zeigt der Diamant ein × zum Schliessen */
.berater-fenster { height: min(600px, calc(100dvh - 120px)); }
@media (max-width: 700px) {
  .berater-fenster { top: max(8px, env(safe-area-inset-top)); bottom: 84px; height: auto; max-height: none; }
}
@media (max-height: 520px) { .berater-fenster { top: 8px; bottom: 84px; height: auto; } }
.berater-knopf.offen::after { content: '×'; position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--ivory); font: 600 17px/24px var(--sans); text-align: center; }
.berater-knopf { position: fixed; }
/* Schmale Handys (z.B. Fold zugeklappt): Kopfzeile passt in die Breite – sonst wird die ganze Seite breiter als der Bildschirm
   und feste Elemente (Berater, ×) liegen ausserhalb (12.11.2026, Zenja) */
@media (max-width: 480px) {
  .kopf .wrap { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .wortmarke { font-size: 16px; letter-spacing: .14em; min-width: 0; overflow: hidden; }
  .kopf-rechts { gap: 8px; flex-shrink: 0; }
  .sprachen button { padding: 4px 7px; }
}
@media (max-width: 380px) { .wortmarke { font-size: 14px; letter-spacing: .1em; } .sprachen button { padding: 4px 5px; font-size: 11px; } }
html { overflow-x: clip; }
@media (max-width: 480px) { .ergebnis-kopf > div { flex-wrap: wrap; max-width: 100%; min-width: 0; } .ergebnis-kopf select { max-width: 100%; min-width: 0; } }

/* Bilder wischen (12.11.2026) */
.galerie .haupt { position: relative; touch-action: pan-y; user-select: none; }
.bild-zahl { position: absolute; right: 10px; bottom: 10px; background: rgba(27, 26, 23, .7); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.bild-zahl.hidden { display: none; }
.bild-gross { cursor: default; touch-action: none; user-select: none; }
.bild-gross img { max-width: 94vw; max-height: 86vh; object-fit: contain; -webkit-user-drag: none; }
.bild-gross img.rein-r { animation: reinR .22s ease-out; } .bild-gross img.rein-l { animation: reinL .22s ease-out; }
@keyframes reinR { from { transform: translateX(40px); opacity: .3; } } @keyframes reinL { from { transform: translateX(-40px); opacity: .3; } }
.bg-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.bg-pfeil:hover { background: rgba(255,255,255,.26); } .bg-pfeil.links { left: 18px; } .bg-pfeil.rechts { right: 18px; }
.bg-zu { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.bg-zahl { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .05em; }
@media (hover: none) { .bg-pfeil { display: none; } }
@media (prefers-reduced-motion: reduce) { .bild-gross img.rein-r, .bild-gross img.rein-l { animation: none; } }

/* Herz zum Merken auf den Karten (12.11.2026) */
.stueck .herz { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s, background .15s; }
.stueck .herz svg path { fill: none; stroke: var(--ink2); transition: fill .15s, stroke .15s; }
.stueck .herz:hover { transform: scale(1.08); background: #fff; }
.stueck .herz.an svg path { fill: var(--gold); stroke: var(--gold); }
.stueck .herz.an { animation: herzpuls .3s ease-out; }
@keyframes herzpuls { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .stueck .herz.an { animation: none; } }

/* Auktionen auf den Karten: Band mit Preis und Restzeit, Auge zum Beobachten (12.11.2026) */
.stueck .auk-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 12px;
  background: rgba(27, 26, 23, .88); color: var(--ivory); }
.stueck .auk-etikett { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); font-weight: 600; }
.stueck .auk-preis { font-size: 17px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stueck .auk-zeit { margin-left: auto; font-size: 12.5px; opacity: .85; }
.stueck .auk-band.vorbei { background: rgba(80, 76, 68, .85); }
.stueck .herz.auge svg .aussen, .stueck .herz.auge svg .pupille { fill: none; stroke: var(--ink2); }
.stueck .herz.auge.an svg .aussen { fill: var(--gold-soft); stroke: var(--gold); }
.stueck .herz.auge.an svg .pupille { fill: var(--gold); stroke: var(--gold); }
.preis-art { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Auktions-Mitteilungen (12.11.2026) */
.konto-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.mt-zahl { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold, #a8854a); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.mt-zeile .mt-text { font-size: 14px; margin-top: 4px; color: var(--ink2); }
.mt-zeile.ungelesen { background: var(--gold-soft); box-shadow: -10px 0 0 var(--gold-soft), 10px 0 0 var(--gold-soft); }
.mt-zeile.ungelesen .mt-text { font-weight: 600; color: var(--ink); }
.mt-zuschlag .mt-text { color: var(--ok); }
.mt-block input[type=checkbox] { accent-color: var(--gold); }
/* Welt-Symbol unter dem Newsletter → Homepage (12.11.2026) */
.fuss a.fuss-welt { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: 14px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); padding: 0; transition: border-color .15s, color .15s; }
.fuss a.fuss-welt:hover, .fuss a.fuss-welt:focus-visible { border-color: var(--gold); color: var(--ink); }

/* Bildwechsler oben auf der Startseite: meistgeklickte Stücke (12.11.2026) */
.held-bild.hw { position: relative; overflow: hidden; background: #fff; touch-action: pan-y; user-select: none; }
.hw-folie { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; color: inherit; text-decoration: none; }
.hw-folie.an { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.hw-bild { position: absolute; inset: 0 0 92px; background: #fff center/contain no-repeat; transition: transform 6s ease; }
.hw-folie.an .hw-bild { transform: scale(1.03); }
.hw-info { position: absolute; left: 0; right: 0; bottom: 0; min-height: 92px; padding: 14px 120px 16px 28px; display: flex; flex-direction: column; gap: 3px; justify-content: center;
  background: var(--paper, #faf7f0); border-top: 1px solid var(--line); }
.hw-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hw-titel { font-size: 19px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-unter { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hw-unter .preis { color: var(--ink); }
.hw-folie:hover .hw-titel, .hw-folie:focus-visible .hw-titel { text-decoration: underline; text-underline-offset: 3px; }
.hw-folie:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.hw-pfeil { position: absolute; z-index: 3; top: calc(50% - 46px - 22px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.88);
  color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.hw-pfeil.links { left: 14px; } .hw-pfeil.rechts { right: 14px; }
.held-bild.hw:hover .hw-pfeil, .hw-pfeil:focus-visible { opacity: 1; }
.hw-punkte { position: absolute; z-index: 3; right: 24px; bottom: 38px; display: flex; gap: 7px; }
.hw-punkte button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; cursor: pointer; }
.hw-punkte button.an { background: var(--gold); }
@media (hover: none) { .hw-pfeil { display: none; } }
@media (max-width: 900px) { .held-bild.hw { min-height: 380px; } .hw-info { padding-right: 24px; padding-bottom: 30px; } .hw-punkte { right: auto; left: 24px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .hw-folie, .hw-folie.an, .hw-bild { transition: none; } .hw-folie.an .hw-bild { transform: none; } }
/* Startbild zentriert (12.11.2026): Text und Bildwechsler in derselben Breite wie Kopfzeile und Inhalt (--w),
   statt das Bild bis an den rechten Bildschirmrand laufen zu lassen */
.held { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--w) * .53)) minmax(0, calc(var(--w) * .47)) minmax(0, 1fr); }
.held > .held-text { grid-column: 2; padding-left: 24px; }
.held > .held-bild { grid-column: 3; }
@media (min-width: 1290px) { .held > .held-bild { margin: 28px 24px 28px 0; border: 1px solid var(--line); } }
@media (max-width: 900px) { .held { grid-template-columns: minmax(0, 1fr); } .held > .held-text, .held > .held-bild { grid-column: auto; } }
/* Beim Wechseln nie zwei Titel übereinander: alte Beschriftung sofort weg, neue kommt mit dem Bild */
.hw-info { transition: opacity .35s ease .3s; }
.hw-folie:not(.an) .hw-info { opacity: 0; transition: opacity .12s ease; }

/* In meiner Nähe (12.11.2026) */
.nahe-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; color: var(--gold); text-decoration: none; align-self: flex-start; }
.nahe-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nahe-kasten { margin: 10px 0 34px; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper, #fff); max-width: 720px; }
.nahe-kasten h4, .nahe-filter h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.nahe-kasten h4 svg, .nahe-filter h4 svg { color: var(--gold); }
.nahe-form { display: flex; gap: 0; }
.nahe-form .eingabe { flex: 1; min-width: 0; }
.nahe-form .btn { white-space: nowrap; }
.nahe.kompakt .nahe-form .btn { padding: 0 14px; }
.nahe-standort { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; border: 0; background: none; padding: 2px 0; color: var(--gold); cursor: pointer; font: inherit; font-size: 13px; }
.nahe-standort:hover { text-decoration: underline; text-underline-offset: 3px; }
.nahe-meldung:empty { display: none; }
.nahe-meldung { margin-top: 6px; color: var(--ink2); }
.nahe-schutz { margin-top: 6px; font-size: 11.5px; line-height: 1.4; }
.nahe.kompakt .nahe-schutz { font-size: 11px; }
.nahe-aktiv { margin-top: 12px; font-size: 14px; }
.nahe-filter { padding-bottom: 6px; }
.juwelier-karte { position: relative; }
.km-marke { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gold); }
.stueck .unter .km { color: var(--gold); }
/* Seiten mit «wrap abschnitt» (Juweliere, Juwelier, Über uns …): seitlicher Rand wie Kopfzeile – .abschnitt hatte ihn auf 0 gesetzt */
.wrap.abschnitt { padding-left: 24px; padding-right: 24px; }
/* Umkreis neben «Mein Standort» (12.11.2026) */
.nahe-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.nahe-zeile .nahe-standort { margin-top: 0; }
.nahe-umkreis-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.nahe-umkreis { width: auto; padding: 6px 28px 6px 10px; font-size: 14px; }
.nahe.kompakt .nahe-zeile { flex-direction: column; align-items: stretch; }
.nahe.kompakt .nahe-umkreis-label { justify-content: space-between; }
.nahe-titel { font-size: 24px; margin: 6px 0 18px; }
.raster + .nahe-titel { margin-top: 44px; }

/* ===== Goldhintergrund (fest seit 12.11.2026; vorher Test mit ?hintergrund=gold) =====
   Champagner statt Elfenbein, zwei weiche Lichtflächen, feine Papierstruktur; «mit Schimmer»: ein sehr langsamer, kaum
   sichtbarer Lichtschein (24 s). Karten und Bilder bleiben weiss, damit der Schmuck vorne steht. */
html.bg-gold { --ivory: #f6efe1; --soft: #efe4cc; --line: #e2d5b8; }
html.bg-gold body { background: #f5ecda; }
html.bg-gold body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .18 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"),
    radial-gradient(110% 75% at 12% -8%, rgba(236, 214, 160, .62), rgba(236, 214, 160, 0) 62%),
    radial-gradient(85% 70% at 104% 108%, rgba(212, 178, 106, .42), rgba(212, 178, 106, 0) 60%),
    radial-gradient(60% 50% at 70% 30%, rgba(255, 251, 240, .55), rgba(255, 251, 240, 0) 70%),
    linear-gradient(158deg, #fbf6ec 0%, #f4e9d2 46%, #f8f0df 100%); }
html.bg-gold body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(112deg, rgba(255, 246, 220, 0) 38%, rgba(255, 246, 220, .75) 48%, rgba(255, 255, 255, .9) 50%, rgba(255, 246, 220, .75) 52%, rgba(255, 246, 220, 0) 62%);
  background-size: 320% 100%; background-position: 120% 0; animation: gold-schimmer 24s ease-in-out infinite; }
@keyframes gold-schimmer { 0%, 12% { background-position: 120% 0; } 62%, 100% { background-position: -20% 0; } }
html.bg-gold-still body::after { animation: none; background-position: 40% 0; opacity: .55; }
@media (prefers-reduced-motion: reduce) { html.bg-gold body::after { animation: none; background-position: 40% 0; opacity: .55; } }
html.bg-gold .kopf { background: rgba(250, 244, 231, .82); }
html.bg-gold .fuss { background: rgba(255, 252, 245, .35); }
html.bg-gold .held-bild.hw, html.bg-gold .hw-info { background: #fffdf8; }
html.bg-gold .abschnitt.dunkel { background: linear-gradient(160deg, #1d1b17, #2a2418); }
html.bg-gold .wortmarke { background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 42%, #8a6d2f 50%, var(--ink) 58%, var(--ink) 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gold-wort 24s ease-in-out infinite; }
@keyframes gold-wort { 0%, 60% { background-position: 100% 0; } 72%, 100% { background-position: 0 0; } }
html.bg-gold-still .wortmarke, html.bg-gold .fuss .wortmarke { animation: none; background: none; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html.bg-gold .wortmarke { animation: none; background: none; color: var(--ink); } }
/* Test-Hinweis unten links (nur im Test sichtbar) */
.gold-test { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100vw - 110px);
  padding: 7px 8px 7px 12px; background: rgba(27, 26, 23, .88); color: #f7f1e3; font-size: 12px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.gold-test b { font-weight: 600; margin-right: 4px; color: #e3c98c; }
.gold-test button { border: 1px solid rgba(227, 201, 140, .45); background: none; color: #f7f1e3; padding: 3px 9px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.gold-test button.on { background: #e3c98c; color: #1b1a17; border-color: #e3c98c; }
html.bg-gold input[type=radio], html.bg-gold input[type=checkbox] { accent-color: var(--gold); }
@media (max-width: 560px) { .gold-test { gap: 4px; padding: 5px 6px; left: 8px; bottom: 8px; max-width: calc(100vw - 96px); flex-wrap: nowrap; } .gold-test b { display: none; } .gold-test button { padding: 3px 7px; font-size: 11px; } }

/* Bildwechsler: gleichmässiger Rand um jedes Bild (12.11.2026) – Abstand ringsum gleich, Fotos mit feiner Kante */
.hw-bild { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 5%, 40px); background: #fff; }
.hw-bild img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.hw-bild img.foto { box-shadow: 0 0 0 1px rgba(27, 26, 23, .08), 0 10px 28px -14px rgba(27, 26, 23, .35); }
html.bg-gold .hw-bild { background: #fffdf8; }

/* Karten und Stückseite: ganzes Bild mit gleichmässigem Rand statt quadratisch zugeschnitten (12.11.2026) */
.stueck .bild .bild-rahmen { position: absolute; inset: 0; padding: 9%; display: flex; align-items: center; justify-content: center; }
.stueck .bild.mit-band .bild-rahmen { bottom: 34px; } /* genaue Höhe setzt site.js (ResizeObserver) */
.stueck .bild .bild-rahmen img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; user-select: none; -webkit-user-drag: none; transition: transform .4s ease; }
.stueck .bild .bild-rahmen img.foto { box-shadow: 0 0 0 1px rgba(27, 26, 23, .08), 0 8px 20px -12px rgba(27, 26, 23, .35); }
.stueck:hover .bild .bild-rahmen img { transform: scale(1.025); }
.stueck .bild .marke, .stueck .bild .herz, .stueck .bild .auk-band { z-index: 1; }
.galerie .haupt { background-origin: content-box; padding: 6%; }
@media (prefers-reduced-motion: reduce) { .stueck:hover .bild .bild-rahmen img { transform: none; } }

/* Kategorien mit Icons (12.11.2026) */
.kategorien.mit-icons a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 14px 24px; }
.kategorien.mit-icons .kat-icon { width: 52px; height: 52px; color: var(--gold); transition: transform .35s ease, color .2s; }
.kategorien.mit-icons .kat-name { display: block; font: 13px/1.35 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin: 0; }
.kategorien.mit-icons a:hover .kat-icon, .kategorien.mit-icons a:focus-visible .kat-icon { transform: translateY(-3px); color: #6f5622; }
.kategorien.mit-icons a:hover .kat-name { color: var(--ink); }
@media (max-width: 700px) { .kategorien.mit-icons a { padding: 24px 10px 18px; gap: 10px; } .kategorien.mit-icons .kat-icon { width: 44px; height: 44px; } .kategorien.mit-icons .kat-name { font-size: 11.5px; letter-spacing: .08em; } }
@media (prefers-reduced-motion: reduce) { .kategorien.mit-icons .kat-icon { transition: none; } .kategorien.mit-icons a:hover .kat-icon { transform: none; } }
/* Kategorien frei, ohne Raster (12.11.2026): keine Felder und Linien – Icons stehen direkt auf der Oberfläche */
.kategorien.mit-icons { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; background: none; border: 0; padding: 6px 0 4px; }
.kategorien.mit-icons a { background: none; padding: 14px 4px 10px; gap: 14px; border-radius: 0; }
.kategorien.mit-icons a:hover, .kategorien.mit-icons a:focus-visible { background: none; }
.kategorien.mit-icons a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.kategorien.mit-icons .kat-icon { width: 56px; height: 56px; }
.kategorien.mit-icons .kat-name { position: relative; padding-bottom: 7px; text-align: center; font-size: 12px; letter-spacing: .12em; }
.kategorien.mit-icons .kat-name::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: var(--gold); transform: translateX(-50%); transition: width .35s ease; }
.kategorien.mit-icons a:hover .kat-name::after, .kategorien.mit-icons a:focus-visible .kat-name::after { width: 28px; }
@media (max-width: 1000px) { .kategorien.mit-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 26px; } }
@media (max-width: 700px) { .kategorien.mit-icons { gap: 4px; row-gap: 20px; } .kategorien.mit-icons a { padding: 8px 2px 6px; gap: 10px; }
  .kategorien.mit-icons .kat-icon { width: 46px; height: 46px; } .kategorien.mit-icons .kat-name { font-size: 10.5px; letter-spacing: .07em; line-height: 1.3; } }
@media (prefers-reduced-motion: reduce) { .kategorien.mit-icons .kat-name::after { transition: none; } }
.kategorien.mit-icons a { justify-content: flex-start; } /* Icons auf einer Linie, auch wenn ein Name zweizeilig ist */
.kategorien.mit-icons .kat-icon { flex: none; }

/* Kategorien als 3D-Schmuckstücke (12.11.2026) – Zeichenfläche hinter den Links, Modelle in den Feldern .kat-bild */
.kategorien.mit-icons { position: relative; }
.kategorien.mit-icons a { position: relative; z-index: 1; }
.kat3d-flaeche { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.kategorien.mit-icons .kat-bild { width: 104px; height: 104px; display: grid; place-items: center; flex: none; transition: transform .35s ease; }
.kategorien.mit-icons.mit-3d .kat-icon { opacity: 0; }
.kategorien.mit-icons.mit-3d a:hover .kat-icon { transform: none; }
.kategorien.mit-icons a:hover .kat-bild, .kategorien.mit-icons a:focus-visible .kat-bild { transform: translateY(-3px); }
.kategorien.mit-icons a { gap: 8px; }
@media (max-width: 700px) { .kategorien.mit-icons .kat-bild { width: 80px; height: 80px; } }
@media (prefers-reduced-motion: reduce) { .kategorien.mit-icons .kat-bild { transition: none; } .kategorien.mit-icons a:hover .kat-bild { transform: none; } }
