/* Vogtsburg Antik — Shop
   Farben, Schriften und Maße übernommen aus vogtsburgantik.de
   (CSS-Variablen der Website: --dark, --cream, --gold, --text-light …) */

:root {
  /* Website-Palette, Namen wie dort */
  --dark: #1a1612;
  --dark-card: #231e17;
  --dark-mid: #2a2218;
  --cream: #f5f0e8;
  --cream-mid: #e8e0d0;
  --gold: #b8976a;
  --gold-dark: #8a6f4e;
  --gold-light: #d4b48a;
  --text-light: #c8bfaf;
  --text-muted: #8a7e6e;

  --linie: rgba(184, 151, 106, 0.22);
  --linie-stark: rgba(184, 151, 106, 0.45);

  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Cormorant Garamond", Georgia, serif;
  --ff-ui: Lato, sans-serif;

  --rand: clamp(1.25rem, 0.7rem + 2vw, 2.5rem);
  --spalte: 74rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--ff-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

main { flex: 1; }

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.4rem); color: var(--cream); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.8rem); color: var(--gold-light); }
h3 { font-size: 1.25rem; color: var(--gold-light); }

p { margin: 0 0 1em; font-size: 1.25rem; max-width: 62ch; }

a { color: var(--gold-light); text-decoration-color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

/* Lato für alles Funktionale: Navigation, Knöpfe, Felder, Metadaten */
.meta {
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.meta-ruhig { color: var(--text-muted); }

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

img { max-width: 100%; display: block; }

hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }

.wrap {
  width: min(100% - 2 * var(--rand), var(--spalte));
  margin-inline: auto;
}

.schmal { max-width: 44rem; }

/* ---------- Kopf ---------- */

.kopf {
  background: var(--dark);
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  z-index: 20;
}

.kopf-innen {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
}

.marke { margin-right: auto; display: block; line-height: 0; }
.marke img { width: clamp(11rem, 26vw, 15rem); height: auto; }

.kopf-nav {
  display: flex;
  gap: 1.6rem;
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kopf-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.kopf-nav a:hover,
.kopf-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

.korb-knopf {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-light);
  white-space: nowrap;
}

.korb-knopf:hover { color: var(--dark); background: var(--gold-light); border-color: var(--gold-light); }
.korb-knopf[data-voll="ja"] { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* ---------- Auftakt ---------- */

.auftakt { padding: clamp(3rem, 1.5rem + 6vw, 5.5rem) 0 2.5rem; }

.auftakt h1 { max-width: 20ch; }

/* Banner statt Überschrift auf der Shop-Startseite */
.auftakt .banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.auftakt picture + .bestand,
.auftakt .banner + .bestand { margin-top: 1.5rem; }
.auftakt:has(.banner) { padding-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* Nur für Vorleseprogramme und Suchmaschinen, nicht sichtbar */
.nur-vorlesen {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.auftakt p.lead {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-light);
  max-width: 42ch;
}

.bestand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bestand span:first-child { color: var(--gold); }

/* Hinweisleiste ganz oben im Kopf, auf jeder Seite (z. B. kostenloser Versand) */
.ankuendigung {
  background: var(--gold);
  color: var(--dark);
  text-align: center;
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}
.ankuendigung a { color: inherit; text-decoration: none; }
.ankuendigung a:hover { text-decoration: underline; }
@media (max-width: 36rem) {
  .ankuendigung { font-size: 0.68rem; letter-spacing: 0.06em; padding: 0.4rem 0.75rem; }
}

/* ---------- Filter ---------- */

/* Feste Leiste mit Suche und Kategorien: bleibt unter dem Kopf stehen */
.werkzeugleiste {
  position: sticky;
  top: var(--kopfhoehe, 0px);
  z-index: 15;
  background: var(--dark);
  border-bottom: 1px solid var(--linie);
  margin-bottom: 2rem;
}

.leiste-innen {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem 1.25rem;
  padding: 0.6rem 0;
}

.leiste-innen .filter { flex: 1 1 0; min-width: 0; gap: 0.35rem; }
.leiste-innen .filter button { padding: 0.4rem 0.75rem; font-size: 0.7rem; }

.suche { flex: 0 0 15rem; }

.suche input[type="search"],
.such-menue-feld input[type="search"] {
  width: 100%;
  font: inherit;
  font-family: var(--ff-ui);
  font-size: 0.9rem;
  color: var(--text-light);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
}

.suche input[type="search"]:focus,
.such-menue-feld input[type="search"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.treffer { font-family: var(--ff-ui); font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1.25rem; min-height: 1.2em; }

.text-knopf {
  font: inherit; color: var(--gold-light); background: none; border: 0; padding: 0;
  text-decoration: underline; cursor: pointer;
}

/* Menü „Suche & Kategorien“ im Kopf der übrigen Seiten */
.such-menue { position: relative; font-family: var(--ff-ui); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.such-menue summary { cursor: pointer; color: var(--text-light); list-style: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.such-menue summary::-webkit-details-marker { display: none; }
.such-menue summary::after { content: " ▾"; }
.such-menue[open] summary, .such-menue summary:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.such-menue-feld {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 30;
  width: min(20rem, 88vw);
  background: var(--dark); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-transform: none; letter-spacing: 0.02em;
}
.such-menue-feld form { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.such-menue-feld form .knopf { padding: 0.5rem 0.9rem; font-size: 0.75rem; }
.such-menue-kategorien { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.such-menue-kategorien a { display: block; padding: 0.4rem 0.2rem; color: var(--text-light); text-decoration: none; font-size: 0.95rem; }
.such-menue-kategorien a:hover { color: var(--gold-light); }

.versandfrei-hinweis { color: var(--gold-light); font-family: var(--ff-ui); font-size: 0.85rem; max-width: none; }

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter button {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.filter button:hover { color: var(--gold-light); border-color: var(--gold); }

.filter button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ---------- Katalog ---------- */

.katalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 3rem 2rem;
  padding-bottom: 5rem;
  list-style: none;
  margin: 0;
}

.posten a { text-decoration: none; color: inherit; display: block; }

.posten-bild {
  background: var(--dark-card);
  border: 1px solid var(--linie);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.posten-bild img { width: 100%; height: 100%; object-fit: cover; }

.posten h3 { font-size: 1.3rem; color: var(--cream); margin: 1rem 0 0.35rem; }
.posten a:hover h3 { color: var(--gold-light); }

.posten-meta { margin-bottom: 0.9rem; }

.posten-fuss {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--linie);
  padding-top: 0.6rem;
}

.preis {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.verkauft .posten-bild { opacity: 0.35; }
.verkauft .preis { color: var(--text-muted); font-style: italic; }

/* ---------- Artikelseite ---------- */

.artikel-raster { display: grid; gap: 2.5rem; padding: 2.5rem 0 5rem; }

@media (min-width: 54rem) {
  .artikel-raster { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

.galerie-haupt {
  border: 1px solid var(--linie);
  background: var(--dark-card);
  aspect-ratio: 4 / 5;
}

.galerie-haupt img { width: 100%; height: 100%; object-fit: cover; }

.galerie-mini { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }

.galerie-mini button {
  width: 4.5rem; height: 4.5rem; padding: 0;
  border: 1px solid var(--linie);
  background: var(--dark-card);
  cursor: pointer;
}

.galerie-mini button[aria-pressed="true"] { border-color: var(--gold); }
.galerie-mini img { width: 100%; height: 100%; object-fit: cover; }

.daten {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.15rem;
}

.daten th {
  text-align: left;
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 1.5rem 0.7rem 0;
  vertical-align: top;
  width: 10rem;
}

.daten td { padding: 0.7rem 0; border-bottom: 1px solid var(--linie); color: var(--text-light); }
.daten tr:first-child th, .daten tr:first-child td { border-top: 1px solid var(--linie); }

/* Gesetzliche Gewährleistung (EU-Label, unverändert, nur skaliert) */
.gewaehrleistung-hinweis { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linie); }
.gewaehrleistung-label { margin: 1.25rem 0 0; }
.gewaehrleistung-label img {
  width: 100%;
  max-width: 28rem;
  height: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--linie);
}
.gewaehrleistung-label.gross img { max-width: 100%; }
.gewaehrleistung-label figcaption {
  margin-top: 0.6rem;
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Elektronische Widerrufsfunktion */
.widerruf-zugang { margin-top: 1.25rem; }
.widerruf-zugang .knopf { padding: 0.7rem 1.2rem; font-size: 0.75rem; }

/* Bankverbindung: IBAN, BIC und Verwendungszweck gut abschreibbar
   (Lato mit normalen Ziffern statt Mediävalziffern der Cormorant) */
.daten.bank td.kennung {
  font-family: var(--ff-ui);
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cream);
  user-select: all;
}

/* Merkmale-Tabelle aus der eBay-Annonce, direkt unter der Überschrift "Details" */
.daten.merkmale { margin-top: 0.75rem; }

/* Infokasten zur Manufaktur / zum Künstler */
.kasten h3 { margin-top: 0; }
.kasten > :last-child { margin-bottom: 0; }

.preis-gross {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  color: var(--gold-light);
  line-height: 1;
  margin: 0.6rem 0 0.3rem;
  font-variant-numeric: tabular-nums;
}

.steuer-hinweis {
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

/* ---------- Knöpfe ---------- */

.knopf {
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.95rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.knopf:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--dark); }

.knopf:disabled {
  background: rgba(0, 0, 0, 0.12);
  border-color: var(--linie);
  color: var(--text-muted);
  cursor: not-allowed;
}

.knopf-zweit {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text-light);
  border-color: var(--linie-stark);
}

.knopf-zweit:hover { background: transparent; color: var(--gold-light); border-color: var(--gold); }

.knopf-breit { width: 100%; }

/* ---------- Warenkorb & Kasse ---------- */

.korb-liste { list-style: none; margin: 0; padding: 0; }

.korb-zeile {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linie);
}

.korb-zeile img {
  border: 1px solid var(--linie);
  background: var(--dark-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.korb-zeile a {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--cream);
  text-decoration: none;
}

.korb-zeile a:hover { color: var(--gold-light); }

.entfernen {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--linie);
  padding: 0 0 2px;
  margin-top: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
}

.entfernen:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.summe { margin-left: auto; width: min(100%, 24rem); font-variant-numeric: tabular-nums; }

.summe div { display: flex; justify-content: space-between; gap: 2rem; padding: 0.4rem 0; }

.summe .gesamt {
  border-top: 1px solid var(--linie-stark);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.schritt {
  border: 1px solid var(--linie);
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: var(--rand);
  margin-bottom: 1.75rem;
}

.schritt > h2 { margin-top: 0; }

.wahl { display: grid; gap: 0.75rem; }

.wahl label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--dark-mid);
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.wahl label:has(input:checked) { border-color: var(--gold); }
.wahl strong { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 400; color: var(--gold-light); }
.wahl small { display: block; font-family: var(--ff-ui); font-size: 0.85rem; color: var(--text-muted); }

.feldgruppe { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

label.feld { display: block; }

label.feld span {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font-family: var(--ff-ui);
  font-size: 0.95rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--cream);
}

input:focus, select:focus, textarea:focus { border-color: var(--gold); }

select option { background: var(--dark); color: var(--cream); }

textarea { min-height: 5.5rem; resize: vertical; }

.spanne-voll { grid-column: 1 / -1; }

.zustimmung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; }

.hinweis {
  border-left: 2px solid var(--gold-dark);
  padding: 0.5rem 0 0.5rem 1.1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 1.25rem 0;
}

.hinweis.achtung { border-color: #b5651d; color: #d79a5b; }

.fehler { color: #d79a5b; font-family: var(--ff-ui); font-size: 0.9rem; margin: 0.75rem 0 0; }

#paypal-bereich { margin-top: 1.5rem; }

.leer { padding: 4rem 0; color: var(--text-muted); }

/* ---------- Rechtstexte ---------- */

.rechtstext { padding: 2.5rem 0 5rem; }
.rechtstext h2 { margin-top: 2.75rem; }
.rechtstext h3 { margin-top: 2rem; }
.rechtstext ol, .rechtstext ul { max-width: 62ch; padding-left: 1.2rem; font-size: 1.25rem; }
.rechtstext li { margin-bottom: 0.45rem; }

.kasten {
  border: 1px solid var(--linie);
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: var(--rand);
  margin: 2rem 0;
}

/* ---------- Fuß ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  background: var(--dark-card);
  padding: 3.5rem 0 3rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.fuss-raster { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.fuss h3 {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.fuss p { margin: 0; font-size: 1.05rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.4rem; }
.fuss a { color: var(--text-muted); text-decoration: none; }
.fuss a:hover { color: var(--gold-light); }

@media (prefers-reduced-motion: no-preference) {
  .knopf, .korb-knopf, .filter button, .posten h3, .fuss a, .kopf-nav a, .entfernen, .korb-zeile a {
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  }
}

@media (max-width: 36rem) {
  /* Im Shop nimmt auf dem Handy nur die Leiste feste Höhe ein; der Kopf scrollt weg */
  body[data-seite="shop"] .kopf { position: static; }
  .leiste-innen { flex-direction: column; align-items: stretch; padding: 0.5rem 0; gap: 0.5rem; }
  .suche { flex: 0 0 auto; }
  .leiste-innen .filter { flex: 0 0 auto; }
  .filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 0.2rem; scrollbar-width: thin; }
  .filter button { flex: 0 0 auto; white-space: nowrap; }
  .kopf-innen { padding: 0.9rem 0; }
  .kopf-nav { font-size: 0.72rem; gap: 1.1rem; order: 3; width: 100%; }
  p, .zustimmung, .hinweis { font-size: 1.15rem; }
  .korb-zeile { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .korb-zeile .preis { grid-column: 2; }
  .daten th { width: 7.5rem; padding-right: 1rem; }
}