/* Zaratrade – gemeinsames Design für zaratrade.com (B2B) und zaratrade.de (B2C).
   Farbwelt und Schriften übernommen von der bisherigen Seite. */
@import url("fonts.css");

:root {
  --ink: #0b0b0b;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --gold: #c4a574;
  --gold-hell: #d8be8e;
  --akzent: var(--gold);
  --elfenbein: #f5f1e8;
  --elfenbein-2: #c8bfb0;
  --leise: #8f877a;
  --linie: rgba(196, 165, 116, .22);
  --wa: #25d366;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --breite: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--elfenbein);
  font: 300 16px/1.65 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(var(--breite), 100% - 32px); margin-inline: auto; }

/* ---------- Typo ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; }
em, .kursiv { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold-hell); }
.augenbraue {
  font: 500 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .8em;
}
.augenbraue::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--elfenbein-2); max-width: 36em; }
.leise { color: var(--leise); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em; border-radius: 10px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--ink); font: 500 .95rem/1 var(--sans); text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.knopf:hover { background: var(--gold-hell); border-color: var(--gold-hell); }
.knopf:active { transform: translateY(1px); }
.knopf-rand { background: transparent; color: var(--elfenbein); border-color: rgba(245, 241, 232, .28); }
.knopf-rand:hover { background: transparent; border-color: var(--gold); color: var(--gold-hell); }
.knopf-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.knopf-wa:hover { background: #1ebe57; border-color: #1ebe57; }
.knopf-klein { min-height: 38px; padding: .5em 1em; font-size: .88rem; }
.knopf svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.marke img { width: 52px; height: auto; }
.marke b { display: block; font: 600 1.55rem/1 var(--serif); letter-spacing: .02em; }
.marke small { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .92rem; color: var(--elfenbein-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--elfenbein); border-color: var(--gold); }
.kopf-aktionen { display: flex; align-items: center; gap: 10px; }
.symbol {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--linie); color: var(--elfenbein); text-decoration: none; background: none; cursor: pointer;
}
.symbol:hover { border-color: var(--gold); color: var(--gold-hell); }
.symbol svg { width: 19px; height: 19px; }
.symbol .zahl {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: var(--ink); font: 600 .68rem/18px var(--sans); text-align: center;
}
.symbol .zahl:empty { display: none; }
.symbol-wa { color: var(--wa); }
.menue-knopf { display: none; }

@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--ink-2); border-bottom: 1px solid var(--linie);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.offen { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .menue-knopf { display: grid; }
  .kopf .knopf { display: none; }
}
@media (max-width: 480px) {
  .marke small { display: none; }
  .marke img { width: 42px; }
  .symbol-wa { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 10px; }
.hero h1 + .kursiv { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 22px; }
.hero .lead { margin-bottom: 28px; }
.hero-bild { position: relative; }
.hero-bild img { width: 100%; aspect-ratio: 4 / 5; max-height: min(74vh, 760px); object-fit: cover; border-radius: var(--r); }
.hero-bild::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold);
  border-radius: var(--r); opacity: .5; z-index: -1;
}
.hero-bild figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 8px;
  background: rgba(11, 11, 11, .78); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hell);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  padding: .55em 1.05em; border: 1px solid var(--linie); border-radius: 999px; font-size: .88rem;
  color: var(--elfenbein-2); text-decoration: none; background: none; cursor: pointer; font-family: var(--sans);
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.hinweis-zeile { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: .92rem; color: var(--elfenbein-2); }
.hinweis-zeile b { color: var(--gold-hell); font-weight: 500; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap > * { min-width: 0; }
  .hero-bild { max-width: 560px; margin-right: 12px !important; }
  .hero-bild img { aspect-ratio: 4 / 3; }
  .hero-bild::before { inset: 12px -12px -12px 12px; }
}

/* ---------- Lauftext ---------- */
.lauf { border-block: 1px solid var(--linie); overflow: hidden; padding: 18px 0; }
.lauf-spur { display: flex; gap: 48px; width: max-content; animation: lauf 38s linear infinite; }
.lauf span { font: italic 500 1.6rem/1 var(--serif); color: var(--gold); white-space: nowrap; }
.lauf span::after { content: "✦"; font-style: normal; font-size: .8rem; margin-left: 48px; color: var(--leise); vertical-align: middle; }
.lauf:hover .lauf-spur { animation-play-state: paused; }
@keyframes lauf { to { transform: translateX(-50%); } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(56px, 8vw, 110px) 0; }
.abschnitt-kopf { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.abschnitt-kopf h2 { margin-top: 12px; }
.hell { background: var(--elfenbein); color: var(--ink); }
.hell .lead, .hell .leise { color: #5d564b; }
.hell .augenbraue { color: #8a6d3f; }
.hell .knopf-rand { color: var(--ink); border-color: rgba(11, 11, 11, .3); }

/* ---------- Kategorien-Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kachel {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r);
  text-decoration: none; background: var(--ink-3); border: 1px solid var(--linie);
}
.kachel img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .6s, opacity .3s; }
.kachel:hover img { transform: scale(1.05); opacity: .9; }
.kachel span {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; font: 500 1.35rem/1.1 var(--serif);
  background: linear-gradient(transparent, rgba(11, 11, 11, .9));
}
.kachel small { display: block; font: 400 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
@media (max-width: 860px) { .kacheln { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Produktkarten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.karte {
  display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--linie);
  border-radius: var(--r); overflow: hidden; transition: border-color .25s, transform .25s;
}
.karte:hover { border-color: rgba(196, 165, 116, .6); transform: translateY(-3px); }
.karte-bild { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--ink-3); overflow: hidden; }
.karte-bild-link { display: block; width: 100%; height: 100%; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.karte:hover .karte-bild img { transform: scale(1.04); }
.karte-neu {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--gold); color: var(--ink); font: 600 .68rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.merken {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(11, 11, 11, .7); color: var(--elfenbein); display: grid; place-items: center; cursor: pointer;
}
.merken svg { width: 18px; height: 18px; }
.merken[aria-pressed="true"] { color: var(--gold-hell); }
.merken[aria-pressed="true"] svg { fill: currentColor; }
.karte-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.karte-kat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.karte-name { font: 500 1.3rem/1.15 var(--serif); text-decoration: none; }
.karte-name:hover { color: var(--gold-hell); }
.karte-beschr { font-size: .88rem; color: var(--elfenbein-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.karte-preis { margin-top: 4px; font: 500 1.15rem/1.2 var(--sans); color: var(--gold-hell); }
.karte-preis small { font-size: .72rem; color: var(--leise); font-weight: 300; }
.karte-fuss { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.karte-fuss .knopf { flex: 1; }
.leer { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--leise); border: 1px dashed var(--linie); border-radius: var(--r); }

/* ---------- Katalog-Werkzeuge ---------- */
.werkzeug { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.werkzeug .chips { margin: 0; flex: 1 1 100%; }
.suche {
  flex: 1 1 260px; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--linie);
  background: var(--ink-2); color: var(--elfenbein); font: 400 .95rem var(--sans);
}
.suche::placeholder { color: var(--leise); }
select.suche { flex: 0 1 220px; }
.anzahl { font-size: .88rem; color: var(--leise); }

/* ---------- Produkt-Detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: 36px 0 80px; }
.detail-bild { position: sticky; top: 100px; }
.detail-bild img { width: 100%; border-radius: var(--r); background: var(--ink-3); }
.detail h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 14px 0 6px; }
.detail .meta { font-size: .88rem; color: var(--leise); margin-bottom: 20px; }
.detail .preis-gross { font: 500 1.9rem/1.2 var(--sans); color: var(--gold-hell); margin: 8px 0 4px; }
.detail .beschr { color: var(--elfenbein-2); white-space: pre-line; margin: 20px 0 26px; }
.zurueck { display: inline-flex; gap: 8px; color: var(--gold); text-decoration: none; font-size: .9rem; margin-top: 28px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail-bild { position: static; } }

/* ---------- Infokasten / Händler ---------- */
.kasten { background: var(--ink-2); border: 1px solid var(--linie); border-radius: var(--r); padding: clamp(22px, 4vw, 40px); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
@media (max-width: 860px) { .zwei { grid-template-columns: 1fr; } }
.liste-haken { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.liste-haken li { padding-left: 28px; position: relative; color: var(--elfenbein-2); }
.liste-haken li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.schritte { counter-reset: s; display: grid; gap: 14px; list-style: none; padding: 0; margin: 20px 0; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; color: var(--elfenbein-2); }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 500 1.1rem var(--serif); }
.schritte b { color: var(--elfenbein); font-weight: 500; }

/* ---------- Termine ---------- */
.termine { display: grid; gap: 12px; }
.termin { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--linie); border-radius: var(--r); background: var(--ink-2); flex-wrap: wrap; }
.termin h3 { font-size: 1.5rem; }
.termin .status { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--linie); color: var(--leise); }
.termin.naechster { border-color: var(--gold); }
.termin.naechster .status { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.termin.vergangen { opacity: .5; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 6px; font-size: .88rem; color: var(--elfenbein-2); }
.formular input, .formular textarea, .formular select {
  min-height: 46px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linie);
  background: var(--ink); color: var(--elfenbein); font: 400 1rem var(--sans);
}
.formular textarea { min-height: 130px; resize: vertical; }

/* ---------- Rechtstexte ---------- */
.recht { max-width: 760px; padding: 40px 0 90px; }
.recht h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 12px 0 28px; }
.recht h2 { font-size: 1.6rem; margin: 34px 0 10px; }
.recht p, .recht li { color: var(--elfenbein-2); }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 56px 0 28px; background: var(--ink-2); font-size: .92rem; color: var(--elfenbein-2); }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.fuss h4 { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.fuss a { text-decoration: none; display: block; padding: 3px 0; }
.fuss a:hover { color: var(--gold-hell); }
.fuss-unten { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linie); font-size: .82rem; color: var(--leise); }
.fuss-unten a { display: inline; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss-raster { grid-template-columns: 1fr; } }

/* ---------- WhatsApp schwebend ---------- */
.wa-schwebend {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.wa-schwebend svg { width: 30px; height: 30px; }
.wa-schwebend::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: puls 2.4s ease-out infinite; }
@keyframes puls { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Einblenden ---------- */
.ein { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.ein.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ein { opacity: 1; transform: none; }
}

/* Händlerbereich: Anmeldekasten ausblenden, sobald ein Händler eingeloggt ist (Klasse setzt b2b-preise.js) */
.b2b-haendler [data-nur-gast] { display: none; }
.b2b-status:not(:empty) { margin-bottom: 18px; }
.hell .schritte li, .hell .liste-haken li { color: #4a443a; }
.hell .schritte b { color: var(--ink); }
.hell .schritte li::before { color: #8a6d3f; border-color: #8a6d3f; }

/* ---------- Bild-Zoom (Lupe) ---------- */
.lupe-knopf {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 0; border-radius: 8px; background: rgba(11, 11, 11, .78); color: var(--elfenbein);
  font: 400 .78rem/1 var(--sans); cursor: zoom-in;
}
.lupe-knopf svg { width: 15px; height: 15px; }
.lupe-knopf:hover { color: var(--gold-hell); }
.detail-bild { cursor: zoom-in; }
.detail-bild .lupe-knopf { left: 14px; bottom: 14px; }
.zoom { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 5, .96); display: none; touch-action: none; }
.zoom.offen { display: block; }
.zoom-buehne { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.zoom-buehne.zieht { cursor: grabbing; }
.zoom-buehne img { position: absolute; left: 50%; top: 50%; max-width: 94vw; max-height: 86vh; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.zoom-leiste { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 12px; background: rgba(26, 26, 26, .92); border: 1px solid var(--linie); z-index: 2; }
.zoom-leiste button, .zoom-zu { width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--elfenbein); font: 500 1.3rem/1 var(--sans); cursor: pointer; }
.zoom-leiste button:hover, .zoom-zu:hover { background: var(--ink-3); color: var(--gold-hell); }
.zoom-leiste .stufe { min-width: 58px; display: grid; place-items: center; font-size: .82rem; color: var(--elfenbein-2); }
.zoom-zu { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(26, 26, 26, .92); font-size: 1.6rem; }
.zoom-titel { position: absolute; top: 20px; left: 20px; right: 80px; z-index: 2; font: 500 1.2rem/1.2 var(--serif); color: var(--elfenbein); text-shadow: 0 1px 8px #000; }
.zoom-hinweis { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); font-size: .8rem; color: var(--leise); z-index: 2; white-space: nowrap; }
