/* ==========================================================================
   ArchiveNoire. Stil des Schaufensters.

   Eigene Marke, bewusst nicht im Erscheinungsbild von Brand Palace:
   Schwarz, Weiß, kühles Hellgrau und Bordeaux als einziger Akzent.
   Bodoni Moda für Überschriften, Jost für Text.

   Regeln für diese Datei:
   - Sichtbarkeit hängt nie an JavaScript, Scroll-Beobachtern oder Animationen.
   - Raster immer mit minmax(0,1fr), Kinder mit min-width:0.
   - Beträge mit tabular-nums lining-nums.
   - Keine gesperrten Versalien, keine Schreibmaschinenschrift, keine
     gestrichelten Ränder, keine Plaketten.
   - Zwei Ansichten: „Galerie“ (hell, Standard) und „Noir“ (dunkel) über
     html[data-ton]. Farben nur über die Bedeutungs-Variablen verwenden.
   - Nach jeder Änderung den Stand ASSET_V in server/src/shop/themes/
     archivenoire.js hochzählen.
   ========================================================================== */

@font-face {
  font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/jost-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/jost-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben und Maße ---------- */
:root {
  /* Markenfarben */
  --noir: #0B0B0C;
  --encre: #161617;
  --fumee: #2C2C2F;
  --blanc: #FFFFFF;
  --brume: #F3F3F1;
  --trait: #DEDEDA;
  --ivoire: #F4F3EF;
  --gris: #6A6A6E;
  --gris-nuit: #A6A6AB;
  --sang: #7A1B2A;
  --sang-clair: #D9929C;

  /* Bedeutung, Ansicht Galerie */
  --flaeche: var(--blanc);
  --flaeche2: var(--brume);
  --text: var(--noir);
  --text2: var(--gris);
  --linie: var(--trait);
  --vitrine: var(--brume);
  --akzent: var(--sang);
  --knopf: var(--noir);
  --knopf-text: var(--blanc);

  --titel: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Bodoni MT', Georgia, 'Times New Roman', serif;
  --lauf: 'Jost', 'Futura', 'Avenir Next', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;

  --rand: 20px;
  --breite: 1440px;
  --abschnitt: 64px;
}
@media (min-width: 701px) { :root { --rand: 32px; --abschnitt: 88px; } }
@media (min-width: 1101px) { :root { --rand: 56px; --abschnitt: 120px; } }

/* Ansicht Noir: dunkle Seite, die Vitrinen bleiben hell wie beleuchtete Schaukästen. */
html[data-ton="noir"] {
  --flaeche: var(--noir);
  --flaeche2: var(--encre);
  --text: var(--ivoire);
  --text2: var(--gris-nuit);
  --linie: var(--fumee);
  --vitrine: #ECECE8;
  --akzent: var(--sang-clair);
  --knopf: var(--ivoire);
  --knopf-text: var(--noir);
}

/* Bereiche, die unabhängig von der Ansicht dunkel sind (Auftakt, Fuß). */
.an-dunkel {
  --flaeche: var(--noir);
  --flaeche2: var(--encre);
  --text: var(--ivoire);
  --text2: var(--gris-nuit);
  --linie: var(--fumee);
  --akzent: var(--sang-clair);
  --knopf: var(--ivoire);
  --knopf-text: var(--noir);
  background: var(--flaeche);
  color: var(--text);
}
/* Gegenfläche: dunkel in der Galerie, hell in Noir. */
.an-gegen {
  --flaeche: var(--noir);
  --flaeche2: var(--encre);
  --text: var(--ivoire);
  --text2: var(--gris-nuit);
  --linie: var(--fumee);
  --akzent: var(--sang-clair);
  --knopf: var(--ivoire);
  --knopf-text: var(--noir);
  background: var(--flaeche);
  color: var(--text);
}
html[data-ton="noir"] .an-gegen {
  --flaeche: var(--ivoire);
  --flaeche2: var(--blanc);
  --text: var(--noir);
  --text2: #5E5E62;
  --linie: #D4D3CE;
  --akzent: var(--sang);
  --knopf: var(--noir);
  --knopf-text: var(--ivoire);
}

/* ---------- Grundlage ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--flaeche);
  color: var(--text);
  font-family: var(--lauf);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
@media (min-width: 701px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titel); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
/* Silbentrennung nur in kleinem Text. Große Überschriften trennt man nicht. */
.an-stueck-titel, .an-stueck-marke, .an-bereich-name, .an-eckdaten dd, .an-fach-in dd, .an-fach-in p { -webkit-hyphens: auto; hyphens: auto; }
em { font-style: italic; }

.an-rand { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.an-nur-vorlesen {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.an-sprung {
  position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 18px;
  background: var(--noir); color: var(--ivoire); text-decoration: none;
}
.an-sprung:focus { top: 12px; }

/* ---------- Knöpfe und Verweise ---------- */
.an-knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--knopf); color: var(--knopf-text);
  border: 1px solid var(--knopf); border-radius: 0;
  font-family: var(--lauf); font-size: .9375rem; font-weight: 500; line-height: 1.2; letter-spacing: .015em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
  touch-action: manipulation;
}
.an-knopf:hover { background: transparent; color: var(--text); }
.an-knopf[disabled] { opacity: .45; cursor: default; }
.an-knopf-rand { background: transparent; color: var(--text); border-color: var(--text); }
.an-knopf-rand:hover { background: var(--knopf); color: var(--knopf-text); }
.an-knopf-voll { width: 100%; }
.an-textlink { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 500; }

/* ---------- Kopf ---------- */
.an-leiste { background: var(--noir); color: var(--ivoire); font-size: .8125rem; }
.an-leiste-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.an-leiste-rechts { display: flex; align-items: center; gap: 24px; flex: none; }
.an-leiste-zwei { display: none; }
.an-leiste a { display: inline-flex; align-items: center; min-height: 40px; }
.an-leiste :focus-visible { outline-color: var(--ivoire); outline-offset: -2px; }
@media (min-width: 701px) { .an-leiste-zwei { display: inline; } }

.an-kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.an-kopf-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "marke rechts" "nav nav";
  align-items: center; column-gap: 16px;
}
.an-marke {
  grid-area: marke; justify-self: start;
  display: inline-flex; align-items: center; min-height: 60px;
  font-family: var(--titel); font-size: clamp(1.375rem, 6.6vw, 1.625rem); line-height: 1; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
}
.an-marke em { font-style: italic; }
.an-kopf-rechts { grid-area: rechts; display: flex; align-items: center; gap: 4px 20px; font-size: .9375rem; }
.an-kopf-rechts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.an-kopf-rechts a:hover { text-decoration: underline; }
.korb-n { margin-left: .3em; font-variant-numeric: tabular-nums lining-nums; }
.korb-n::before { content: "("; }
.korb-n::after { content: ")"; }

/* Kategorien: auf dem Telefon eine Zeile, die sich seitlich schieben lässt.
   Immer sichtbar, ohne Menüknopf und ohne Skript. */
.an-nav {
  grid-area: nav; min-width: 0;
  display: flex; gap: 26px; overflow-x: auto; white-space: nowrap;
  margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand);
  border-top: 1px solid var(--linie);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.an-nav::-webkit-scrollbar { display: none; }
.an-nav a {
  display: inline-flex; align-items: center; min-height: 46px;
  font-size: .9375rem; text-decoration: none; color: var(--text2);
  transition: color .2s ease;
}
.an-nav a:hover, .an-nav a[aria-current="page"] { color: var(--text); }
.an-nav a[aria-current="page"] { font-weight: 500; }

@media (min-width: 901px) {
  .an-kopf { position: sticky; top: 0; z-index: 20; }
  .an-kopf-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "nav marke rechts"; min-height: 76px; }
  .an-marke { justify-self: center; font-size: 1.875rem; }
  .an-kopf-rechts { justify-self: end; }
  .an-nav { margin-inline: 0; padding-inline: 0; border-top: 0; overflow: visible; gap: 30px; }
}

/* ---------- Auftakt der Startseite ---------- */
.an-auftakt-in {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  padding-block: 48px 56px;
}
.an-auftakt-text { min-width: 0; align-self: center; }
.an-vorzeile { color: var(--text2); font-size: .9375rem; margin-bottom: 18px; }
.an-auftakt h1 { font-size: clamp(2.75rem, 1.35rem + 6vw, 6rem); line-height: 1.02; letter-spacing: -.034em; }
.an-auftakt h1 em { display: block; }
.an-auftakt-sub { max-width: 31em; margin-top: 24px; color: var(--text2); font-size: 1.0625rem; }
.an-auftakt-wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.an-auftakt-bild { min-width: 0; background: #EFEFEB; aspect-ratio: 4 / 5; overflow: hidden; }
/* multiply wie in der Vitrine: ein Foto mit weißem Grund geht in der Fläche auf */
.an-auftakt-bild img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; }
@media (min-width: 701px) {
  .an-auftakt-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-block: 56px; }
  .an-auftakt-bild { max-height: 720px; justify-self: end; width: 100%; }
  /* in der schmaleren Spalte kleiner, damit „Ausgewählte“ in eine Zeile passt */
  .an-auftakt h1 { font-size: 7.4vw; }
}
@media (min-width: 901px) {
  .an-auftakt-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; padding-block: 72px; }
  .an-auftakt h1 { font-size: clamp(2.75rem, 1.35rem + 6vw, 6rem); }
  .an-auftakt-sub { font-size: 1.1875rem; }
}

/* ---------- Abschnitte ---------- */
.an-abschnitt { padding-block: var(--abschnitt); }
.an-abschnitt:not(.an-gegen):not(.an-dunkel) + .an-abschnitt:not(.an-gegen):not(.an-dunkel) { padding-top: 0; }
.an-kopfzeile {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin-bottom: 28px;
}
.an-kopfzeile h2, .an-h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem); line-height: 1.08; letter-spacing: -.028em; }
.an-kopfzeile p { color: var(--text2); }
@media (min-width: 901px) { .an-kopfzeile { margin-bottom: 44px; } }

/* ---------- Vitrine: Bildfläche hinter jedem Stück ---------- */
.an-vitrine { display: block; background: var(--vitrine); aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
/* multiply lässt weiße Fotohintergründe der Händler in der Vitrine aufgehen */
.an-vitrine img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s ease; }
a:hover .an-vitrine img { transform: scale(1.035); }
.an-ohne-bild { position: absolute; inset: 0; display: grid; place-items: center; color: #6A6A6E; font-size: .875rem; }

/* ---------- Bereiche (Kategorien) ---------- */
.an-bereiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
.an-bereiche li { min-width: 0; }
.an-bereiche a { display: block; text-decoration: none; }
.an-bereiche li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.an-bereiche li:last-child:nth-child(odd) .an-vitrine { aspect-ratio: 16 / 9; }
.an-bereich-name { display: block; margin-top: 12px; font-family: var(--titel); font-size: 1.375rem; line-height: 1.2; }
.an-bereich-zahl { display: block; color: var(--text2); font-size: .875rem; font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 701px) {
  .an-bereiche { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
  .an-bereiche li:last-child:nth-child(odd) { grid-column: auto; }
  .an-bereiche li:last-child:nth-child(odd) .an-vitrine { aspect-ratio: 4 / 5; }
}
@media (min-width: 1101px) {
  .an-bereiche { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .an-bereich-name { font-size: 1.5rem; }
}

/* ---------- Raster der Stücke ---------- */
.an-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 12px; }
.an-stueck { min-width: 0; }
.an-stueck a { display: block; text-decoration: none; }
.an-stueck-text { display: block; padding-top: 12px; }
.an-stueck-marke { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.an-stueck-titel { display: block; color: var(--text2); font-size: .9375rem; line-height: 1.35; }
.an-stueck-zustand { display: block; margin-top: 6px; color: var(--text2); font-size: .8125rem; }
.an-preis { display: block; margin-top: 8px; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.an-preis-sub { display: block; color: var(--text2); font-size: .75rem; line-height: 1.4; }
/* Ein vergebenes Stück bleibt in der Liste, sagt es aber gleich dort; der Preis tritt zurück. */
.an-stueck-hinweis { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 500; }
.an-stueck-weg .an-preis { color: var(--text2); font-weight: 400; }
.an-preis-sub a { color: inherit; }
@media (min-width: 701px) { .an-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 20px; } }
@media (min-width: 1101px) { .an-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 24px; } }

/* ---------- Herkunft: drei Regeln ---------- */
.an-regeln { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
.an-regeln li { min-width: 0; padding-block: 24px; border-top: 1px solid var(--linie); }
.an-regeln h3 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 10px; }
.an-regeln p { color: var(--text2); max-width: 30em; }
@media (min-width: 901px) {
  .an-regeln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .an-regeln li { padding-block: 28px 0; }
  .an-regeln h3 { font-size: 1.875rem; }
}

/* ---------- Zwei Wege ---------- */
.an-wege { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.an-weg { min-width: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; align-items: center; }
.an-weg h3 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 8px; }
.an-weg p { color: var(--text2); }
.an-weg .an-textlink { margin-top: 6px; }
@media (min-width: 901px) {
  .an-wege { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .an-weg { gap: 32px; }
  .an-weg h3 { font-size: 2rem; }
}

/* ---------- Seitenkopf von Kategorie und Warenkorb ---------- */
.an-pfad { padding-top: 22px; color: var(--text2); font-size: .8125rem; }
.an-pfad ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.an-pfad li + li::before { content: "/"; margin-right: 8px; color: var(--linie); }
.an-pfad a { text-decoration: none; }
.an-pfad a:hover { text-decoration: underline; }
.an-seitenkopf { padding-block: 28px 30px; }
.an-seitenkopf h1 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem); line-height: 1.04; letter-spacing: -.034em; }
.an-seitenkopf p { margin-top: 12px; color: var(--text2); max-width: 40em; }
.an-filter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding-block: 14px; margin-bottom: 30px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.an-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.an-wahl a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--linie); font-size: .9375rem; text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.an-wahl a:hover { border-color: var(--text); }
.an-wahl a[aria-current="true"] { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); }
.an-zahl { color: var(--text2); font-size: .9375rem; font-variant-numeric: tabular-nums lining-nums; }
.an-blaettern {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--linie);
  font-size: .9375rem; font-variant-numeric: tabular-nums lining-nums;
}
.an-blaettern a, .an-blaettern span { display: inline-flex; align-items: center; min-height: 44px; }
.an-leer { padding-block: 40px; color: var(--text2); }

/* ---------- Seite eines Stücks ---------- */
.an-seite-stueck { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 20px 72px; }
.an-seite-stueck + .an-abschnitt { padding-top: 0; }
.an-galerie {
  min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--rand)); padding-inline: var(--rand);
  scrollbar-width: none;
}
.an-galerie::-webkit-scrollbar { display: none; }
.an-galerie .an-vitrine { flex: 0 0 86%; scroll-snap-align: center; }
.an-galerie .an-vitrine:only-child { flex-basis: 100%; }
.an-angaben { min-width: 0; }
.an-angaben .an-stueck-marke { font-size: 1.0625rem; }
.an-angaben h1 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.12; margin-top: 6px; }
.an-nummer { margin-top: 10px; color: var(--text2); font-size: .875rem; font-variant-numeric: tabular-nums lining-nums; }
.an-preis-gross { margin-top: 22px; font-family: var(--titel); font-size: clamp(1.75rem, 8vw, 2.125rem); line-height: 1.1; font-variant-numeric: lining-nums; }
.an-angaben .an-preis-sub { font-size: .8125rem; margin-top: 4px; }
.an-eckdaten { margin-top: 24px; border-top: 1px solid var(--linie); }
.an-eckdaten div { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; border-bottom: 1px solid var(--linie); font-size: .9375rem; }
.an-eckdaten dt { color: var(--text2); flex: none; }
.an-eckdaten dd { text-align: right; min-width: 0; }
.an-kaufen { margin-top: 24px; display: grid; gap: 12px; }
.an-menge { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .9375rem; }
.an-menge input { width: 84px; min-height: 48px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 0; background: var(--flaeche); text-align: center; font-size: 1rem; }
.an-hinweis { min-height: 1.5em; margin-top: 10px; font-size: .9375rem; }
.an-hinweis.fehler { color: var(--akzent); }
.an-nichtda { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--linie); }
/* Partnerstück: wer verkauft, Hinweis auf die Provision, Knopf zum Shop (src/shop/awin.js) */
.an-partner-box { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--linie); }
.an-partner-box p { margin: 0 0 14px; font-size: .9375rem; }
.an-zusagen { margin-top: 20px; font-size: .9375rem; }
.an-zusagen li { padding-block: 10px; border-top: 1px solid var(--linie); }
.an-zusagen li:last-child { border-bottom: 1px solid var(--linie); }

.an-faecher { margin-top: 32px; border-top: 1px solid var(--text); }
.an-fach { border-bottom: 1px solid var(--linie); }
.an-fach summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; cursor: pointer; list-style: none;
  font-size: 1rem; font-weight: 500;
}
.an-fach summary::-webkit-details-marker { display: none; }
.an-fach summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background:
    linear-gradient(var(--text), var(--text)) center / 13px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1px 13px no-repeat;
}
.an-fach[open] summary::after { background: linear-gradient(var(--text), var(--text)) center / 13px 1px no-repeat; }
.an-fach-in { padding-bottom: 22px; color: var(--text2); font-size: .9375rem; }
.an-fach-in p + p { margin-top: 10px; }
.an-fach-in strong { color: var(--text); font-weight: 500; }
.an-fach-in dl div { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; border-top: 1px solid var(--linie); }
.an-fach-in dl div:first-child { border-top: 0; }
.an-fach-in dd { color: var(--text); text-align: right; min-width: 0; }
.an-fehlt { color: var(--akzent); }
.an-sprach-hinweis { margin-top: 10px; font-size: .8125rem; }

@media (min-width: 901px) {
  .an-seite-stueck { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; padding-top: 28px; }
  .an-galerie {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible;
    margin-inline: 0; padding-inline: 0;
  }
  .an-galerie .an-vitrine { flex: none; }
  .an-galerie .an-vitrine:first-child { grid-column: 1 / -1; }
  .an-angaben { position: sticky; top: 108px; align-self: start; }
}

/* ---------- Warenkorb ---------- */
.an-korb-seite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: var(--abschnitt); }
.an-korb-liste { min-width: 0; }
.an-sendung { padding-block: 12px; color: var(--text2); font-size: .875rem; border-top: 1px solid var(--text); }
.an-posten { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--linie); }
.an-sendung + .an-posten { border-top: 0; padding-top: 4px; }
.an-posten .an-vitrine { width: 96px; }
.an-posten-text { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-content: start; }
.an-posten-text .an-stueck-marke, .an-posten-text .an-stueck-titel { grid-column: 1; }
.an-posten-text a { text-decoration: none; }
.an-posten-text a:hover { text-decoration: underline; }
.an-posten-preis { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
@media (max-width: 479px) {
  .an-posten { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .an-posten .an-vitrine { width: 84px; }
  .an-posten-text { grid-template-columns: minmax(0, 1fr); }
  .an-posten-preis { grid-column: 1; grid-row: auto; text-align: left; margin-top: 4px; }
}
.an-posten-sub { grid-column: 1 / -1; color: var(--text2); font-size: .8125rem; }
.an-posten-fuss { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: .875rem; }
.an-posten-fuss input { width: 72px; min-height: 44px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 0; background: var(--flaeche); text-align: center; font-size: 1rem; }
.an-weg-knopf { min-height: 44px; padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .24em; cursor: pointer; font-size: .875rem; }
.an-summe { min-width: 0; align-self: start; padding: 24px 20px; border: 1px solid var(--linie); }
.an-summe h2 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 14px; }
.an-summe-zeile { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; font-size: .9375rem; font-variant-numeric: tabular-nums lining-nums; }
.an-summe-zeile span:last-child { white-space: nowrap; }
.an-summe-gesamt { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--text); align-items: baseline; font-weight: 500; }
.an-summe-gesamt span:last-child { font-family: var(--titel); font-size: clamp(1.5rem, 7.4vw, 1.875rem); font-weight: 400; line-height: 1.1; }
.an-summe-neben { color: var(--text2); font-size: .8125rem; }
.an-summe .an-knopf { margin-top: 20px; }
.an-summe-fuss { margin-top: 16px; color: var(--text2); font-size: .8125rem; }
.an-summe-fuss p + p { margin-top: 8px; }
.an-melde { margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--linie); font-size: .9375rem; }
.an-melde.warn { border-color: var(--akzent); }
.an-land { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: .9375rem; }
.an-land select { min-height: 44px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 0; background: var(--flaeche); font-size: 1rem; }
@media (min-width: 901px) {
  .an-korb-seite { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 72px; }
  .an-posten { grid-template-columns: 128px minmax(0, 1fr); gap: 24px; }
  .an-posten .an-vitrine { width: 128px; }
  .an-summe { position: sticky; top: 108px; padding: 32px 28px; }
}

/* ---------- Kasse ---------- */
.an-kasse { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.an-kasse-form { min-width: 0; }
.an-kasse fieldset { min-width: 0; margin: 0 0 36px; padding: 0; border: 0; }
.an-kasse legend { padding: 0; margin-bottom: 16px; font-family: var(--titel); font-size: 1.625rem; line-height: 1.2; letter-spacing: -.012em; }
.an-feld { min-width: 0; margin-bottom: 16px; }
.an-feld label { display: block; margin-bottom: 6px; font-size: .9375rem; }
.an-feld input, .an-feld select {
  display: block; width: 100%; min-height: 52px; padding: 0 14px;
  background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); border-radius: 0;
  font-size: 1rem; /* mindestens 16 px, sonst zoomt das Telefon beim Antippen hinein */
}
.an-feld input:focus, .an-feld select:focus { border-color: var(--text); }
.an-feld input[aria-invalid="true"] { border-color: var(--akzent); }
.an-feld-reihe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.an-feld-fehler { margin-top: 6px; color: var(--akzent); font-size: .875rem; }
.an-feld-hinweis { margin-top: 6px; color: var(--text2); font-size: .875rem; }
.an-zahlweg {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px; margin-bottom: 10px; border: 1px solid var(--linie); cursor: pointer;
}
.an-zahlweg:has(input:checked) { border-color: var(--text); }
.an-zahlweg input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--text); }
.an-zahlweg strong { display: block; font-weight: 500; }
.an-zahlweg span span { display: block; margin-top: 2px; color: var(--text2); font-size: .875rem; }
.an-zustimmung { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 20px; font-size: .9375rem; cursor: pointer; }
.an-zustimmung input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--text); }
.an-summe-zwischen { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--linie); }
@media (min-width: 561px) {
  .an-feld-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-feld-reihe:has(.an-feld-schmal) { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
}
@media (min-width: 901px) {
  .an-kasse { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}

/* ---------- Bestellansicht ---------- */
.an-bestellung { max-width: 760px; }
/* Die Bestellnummer bleibt in einer Zeile; die Überschrift ist so bemessen, dass sie auch am schmalen Telefon hineinpasst. */
.an-bestellung .an-seitenkopf h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.75rem); }
.an-ganz { white-space: nowrap; }
/* Zahlungsangaben mit langen Werten (IBAN, Verwendungszweck): am Telefon stehen Bezeichnung und Wert untereinander. */
.an-angabe { flex-direction: column; gap: 2px; }
.an-angabe span:first-child { color: var(--text2); font-size: .8125rem; }
.an-angabe span:last-child { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 561px) {
  .an-angabe { flex-direction: row; gap: 20px; }
  .an-angabe span:first-child { color: inherit; font-size: inherit; }
  .an-angabe span:last-child { white-space: nowrap; }
}
.an-kasten { margin-bottom: 28px; padding: 24px 20px; border: 1px solid var(--linie); }
.an-kasten h2 { font-size: 1.625rem; line-height: 1.2; margin-bottom: 12px; }
.an-kasten-fuss { margin-top: 12px; color: var(--text2); font-size: .875rem; }
.an-kasten form { margin-top: 16px; }
.an-retoure-zeile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid var(--linie); font-size: .9375rem; }
.an-retoure-zeile span { min-width: 0; }
.an-retoure-zeile input { flex: none; width: 76px; min-height: 44px; padding: 0 10px; background: var(--flaeche); color: var(--text); border: 1px solid var(--linie); border-radius: 0; text-align: center; font-size: 1rem; }
.an-retoure .an-feld { margin-top: 16px; }
.an-bestellung-fuss { margin-top: 10px; color: var(--text2); font-size: .875rem; }
@media (min-width: 701px) { .an-kasten { padding: 32px 28px; } }

/* ---------- Textseiten (Rechtstexte) ---------- */
.an-text { max-width: 44em; padding-block: 36px var(--abschnitt); }
/* So bemessen, dass die längsten Wörter der Titel (Geschäftsbedingungen, Datenschutzerklärung) auch am schmalen Telefon in eine Zeile passen. */
.an-text h1 { font-size: clamp(1.625rem, .6rem + 5.2vw, 3.75rem); line-height: 1.06; margin-bottom: 28px; }
.an-text p + p { margin-top: 14px; }
.an-stand { margin-top: 28px; color: var(--text2); font-size: .875rem; }

/* ---------- Fuß ---------- */
.an-fuss { padding-block: 56px 36px; font-size: .9375rem; }
html[data-ton="noir"] .an-fuss { border-top: 1px solid var(--linie); }
.an-fuss-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.an-fuss-marke { grid-column: 1 / -1; min-width: 0; }
.an-fuss-marke .an-marke { min-height: 0; font-size: 2rem; }
.an-fuss-marke p { margin-top: 10px; color: var(--text2); max-width: 22em; }
.an-fuss nav { min-width: 0; }
.an-fuss h2 { font-family: var(--lauf); font-size: .9375rem; font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }
.an-fuss nav a { display: flex; align-items: center; min-height: 40px; color: var(--text2); text-decoration: none; }
.an-fuss nav a:hover { color: var(--text); text-decoration: underline; }
.an-fuss-recht { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linie); color: var(--text2); font-size: .8125rem; }
.an-fuss-recht p + p { margin-top: 8px; }
.an-fuss-recht p { max-width: 62em; }
@media (min-width: 901px) {
  .an-fuss-in { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
  .an-fuss-marke { grid-column: auto; }
}

/* ---------- Zugang vor der Eröffnung ---------- */
.an-zugang { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.an-zugang-kopf { padding-block: 28px; text-align: center; }
.an-zugang-mitte { display: grid; place-items: center; padding-block: 32px; }
.an-zugang-form { width: min(100%, 420px); }
.an-zugang-form h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem); line-height: 1.06; }
.an-zugang-form p { margin-top: 14px; color: var(--text2); }
.an-zugang-form p.an-fehlt { color: var(--akzent); }
.an-zugang-form label { display: block; margin-top: 28px; font-size: .9375rem; }
.an-zugang-form input {
  display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 0 14px;
  background: transparent; border: 1px solid var(--linie); border-radius: 0; font-size: 1rem;
}
.an-zugang-form input:focus { border-color: var(--text); }
.an-zugang-form .an-knopf { margin-top: 14px; }
.an-zugang-fuss { padding-block: 24px; text-align: center; color: var(--text2); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a:hover .an-vitrine img { transform: none; }
}
