/* Nespoli QR-Produktinfo - "Werkstatt-Etikett": Papier, Tinte, ein rotes Anschlagband.
   Systemschriften sind Absicht - im Funkloch des Baumarkts laedt keine Schriftdatei, und eine
   Fremdanfrage waere ohnehin ausgeschlossen. Charakter kommt aus Gewicht, Laufweite, Versalien. */

:root {
  --papier: #f8f7f5; --flaeche: #fff;
  --tinte: #1a1917; --tinte-matt: #5c5852; --tinte-blass: #8d8880;
  --rot: #e31c17; --rot-tief: #b0120e;
  --linie: #ded9d1; --linie-fein: #eceae5;
  --f: var(--tinte); --f2: #000;
  --spalte: 560px; --rand: 18px;
  --luft-m: 1rem; --luft-l: 1.75rem; --luft-xl: 2.75rem;
  --mikro: .6875rem; --klein: .8125rem; --text: 1rem; --gross: 1.1875rem;
  --titel: clamp(1.5rem, 5.5vw, 2.05rem);
  --kante: 3px;
  --schatten: 3px 3px 0 rgba(26, 25, 23, .1);
  --schatten-tief: 5px 5px 0 rgba(26, 25, 23, .13);
  --zeit: 160ms; --kurve: cubic-bezier(.2, .7, .3, 1);
}

/* Zwoelf Rubrikfarben. Feste Palette statt freier Farbwahl: jede traegt weisse Schrift mit
   mindestens 4,5:1 und kommt ohne Inline-Style aus (CSP: style-src 'self'). */
.farbe-1  { --f: #c1121f; --f2: #8e0c16 }
.farbe-2  { --f: #a63a00; --f2: #7a2a00 }
.farbe-3  { --f: #7e6200; --f2: #5c4700 }
.farbe-4  { --f: #4b6b10; --f2: #374f0b }
.farbe-5  { --f: #2e7d32; --f2: #215c25 }
.farbe-6  { --f: #00695c; --f2: #004b42 }
.farbe-7  { --f: #0b6fa4; --f2: #075179 }
.farbe-8  { --f: #303f9f; --f2: #232e75 }
.farbe-9  { --f: #6a1b9a; --f2: #4e1371 }
.farbe-10 { --f: #ad1457; --f2: #7f0f40 }
.farbe-11 { --f: #4e342e; --f2: #392622 }
.farbe-12 { --f: #37474f; --f2: #28343a }

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 var(--text)/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none; overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100% }
img { height: auto }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px }
.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.sprung {
  position: absolute; left: var(--rand); top: -4rem; z-index: 20; padding: .55rem .9rem;
  background: var(--tinte); color: #fff; font-size: var(--klein); font-weight: 600;
  text-decoration: none; transition: top var(--zeit) var(--kurve);
}
.sprung:focus { top: .5rem }

/* ── Blatt: die schmale Spalte. Auf grossen Schirmen ein Etikett auf ruhigem Grund. ── */
.blatt {
  max-width: var(--spalte); margin: 0 auto; min-height: 100vh; background: var(--flaeche);
  border-left: 1px solid var(--linie); border-right: 1px solid var(--linie);
  display: flex; flex-direction: column;
}
@media (min-width: 640px) {
  .blatt { margin: 2.5rem auto; min-height: 0; box-shadow: var(--schatten-tief) }
}

/* ── Markenkopf ── */
.marke {
  position: sticky; top: 0; z-index: 10; padding: .7rem var(--rand);
  display: flex; align-items: center; justify-content: space-between; gap: var(--luft-m);
  background: var(--flaeche);
  border-top: var(--kante) solid var(--rot); border-bottom: 1px solid var(--linie);
}
.marke__heim { display: flex; align-items: center; gap: .65rem; text-decoration: none }
.marke__logo { width: 25px; height: 28px }
.marke__wort {
  font-size: var(--mikro); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tinte-matt);
}

/* Sprachwahl als <details>: sie muss auch dann gehen, wenn qr.js nie ankommt. */
.sprachwahl { position: relative }
.sprachwahl > summary {
  display: flex; align-items: center; gap: .3rem; cursor: pointer; list-style: none;
  padding: .3rem .5rem .3rem .6rem; border: 1px solid var(--linie);
  font-size: var(--klein); font-weight: 700; letter-spacing: .06em;
}
.sprachwahl > summary::-webkit-details-marker { display: none }
.sprachwahl > summary:hover { border-color: var(--tinte) }
.sprachwahl[open] > summary { background: var(--tinte); color: #fff; border-color: var(--tinte) }
.sprachwahl[open] .sym--klein { transform: rotate(180deg) }
/* Der Kopf klebt: was unter den Bildschirmrand reicht, erreicht kein Wischen. Deshalb ab sieben
   Sprachen zweispaltig und notfalls in sich rollbar (Querformat, kleine Telefone). */
.sprachwahl__liste {
  position: absolute; right: 0; top: calc(100% + .45rem); z-index: 12;
  margin: 0; padding: .3rem; min-width: 11.5rem; list-style: none;
  max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto;
  background: var(--flaeche); border: 1px solid var(--tinte); box-shadow: var(--schatten);
}
.sprachwahl__liste:has(> li:nth-child(7)) { display: grid; grid-template-columns: 1fr 1fr; column-gap: .15rem }
.sprachwahl__liste a {
  display: flex; gap: .55rem; padding: .45rem .6rem;
  text-decoration: none; font-size: var(--klein); color: var(--tinte-matt);
}
.sprachwahl__liste b { color: var(--tinte); letter-spacing: .06em }
.sprachwahl__liste a:hover { background: var(--papier) }
.sprachwahl__liste a.ist-da { background: var(--papier); color: var(--tinte); font-weight: 600 }

.band {
  margin: 0; padding: .6rem var(--rand);
  background: repeating-linear-gradient(135deg, #ffe9a8 0 12px, #ffdf82 12px 24px);
  border-bottom: 1px solid #d6b04a;
  font-size: var(--klein); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.inhalt { flex: 1; padding-bottom: var(--luft-xl) }

/* ── Aufschlag (Start, Ratgeber, Info) ── */
.aufschlag { padding: var(--luft-l) var(--rand) 0 }
.aufschlag__zeile, .etikett__marke {
  margin: 0 0 .5rem; font-size: var(--mikro); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rot);
}
.aufschlag__titel, .etikett__titel, .leer__titel {
  margin: 0; font-size: var(--titel); line-height: 1.08; letter-spacing: -.02em; font-weight: 800;
}

/* ── Abschnitt mit Mikro-Ueberschrift und Haarlinie ── */
.abschnitt { padding: var(--luft-l) var(--rand) 0 }
.abschnitt__kopf {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 var(--luft-m);
  font-size: var(--mikro); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--tinte-matt);
}
.abschnitt__kopf::before { content: ""; width: 14px; height: 3px; background: var(--rot); flex: none }
.abschnitt__kopf::after { content: ""; flex: 1; height: 1px; background: var(--linie) }

.fliess { padding: 0 var(--rand); color: var(--tinte-matt) }
/* Wer schon in einem Behaelter mit Seitenrand steht, bringt keinen zweiten mit. */
.abschnitt .fliess, .klapp .fliess, .aufschlag .fliess, .abschnitt .kacheln { padding: 0 }
.fliess--gross { margin-top: var(--luft-m); font-size: var(--gross); color: var(--tinte) }
.fliess p { margin: 0 0 .85em }
.fliess p:last-child { margin-bottom: 0 }
.fliess ul, .fliess ol { margin: 0 0 .85em; padding-left: 1.25em }
.fliess li { margin-bottom: .3em }
.fliess a { color: var(--rot-tief) }
.fliess h3, .fliess h4 { margin: 1.2em 0 .4em; font-size: var(--text); color: var(--tinte) }
.hinweis {
  margin: var(--luft-l) var(--rand) 0; padding: var(--luft-m);
  border: 1px dashed var(--linie); color: var(--tinte-blass); font-size: var(--klein);
}

/* ── Rubrikbalken ── */
.balken { margin: 0; padding: 0; list-style: none }
.balken__zeile { border-bottom: 1px solid var(--linie-fein) }
.balken__weg {
  display: flex; align-items: center; gap: var(--luft-m); padding: .95rem var(--rand);
  background: var(--f); color: #fff; text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--f2);
  transition: filter var(--zeit) var(--kurve), transform var(--zeit) var(--kurve);
}
.balken__weg:hover { filter: saturate(1.12) brightness(1.06) }
.balken__weg:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--f2) }
.balken__icon { width: 36px; height: 36px; flex: none }
.balken__titel {
  flex: 1; font-size: var(--gross); font-weight: 800; line-height: 1.15;
  letter-spacing: .01em; text-transform: uppercase;
}
.balken__pfeil { opacity: .75; transition: transform var(--zeit) var(--kurve) }
.balken__weg:hover .balken__pfeil { transform: translateX(3px) }
.balken--schmal .balken__weg { padding: .7rem var(--rand) }
.balken--schmal .balken__icon { width: 24px; height: 24px }
.balken--schmal .balken__titel { font-size: var(--text) }

/* ── Rubrikkopf ── */
.rubrikkopf {
  padding: var(--luft-l) var(--rand); background: var(--f); color: #fff;
  border-bottom: var(--kante) solid var(--f2);
}
.rubrikkopf__icon { width: 44px; height: 44px; margin-bottom: .7rem }
.rubrikkopf__titel {
  margin: 0; font-size: var(--titel); line-height: 1.05; letter-spacing: -.015em;
  font-weight: 800; text-transform: uppercase;
}
.rubrikkopf__zahl {
  margin: .5rem 0 0; font-size: var(--mikro); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; opacity: .85;
}
.rubrikbild { width: 100%; aspect-ratio: 2/1; object-fit: cover }

/* ── Chips (Unterkategorien) ── */
.chips {
  display: flex; gap: .45rem; padding: var(--luft-l) var(--rand) 0;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none }
.chip {
  display: inline-flex; align-items: baseline; gap: .4rem; flex: none;
  padding: .4rem .75rem; border: 1px solid var(--linie);
  font-size: var(--klein); text-decoration: none; white-space: nowrap;
  transition: border-color var(--zeit) var(--kurve), background var(--zeit) var(--kurve);
}
.chip:hover { border-color: var(--tinte) }
.chip.ist-da { background: var(--tinte); border-color: var(--tinte); color: #fff }
.chip__zahl { font-size: var(--mikro); font-weight: 700; color: var(--tinte-blass) }
.chip.ist-da .chip__zahl { color: rgba(255, 255, 255, .7) }

/* ── Kacheln ── */
.kacheln {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
  margin: var(--luft-m) 0 0; padding: 0 var(--rand); list-style: none;
}
@media (min-width: 420px) { .kacheln { gap: .9rem } }
.kachel { display: flex }
.kachel__weg {
  display: flex; flex-direction: column; flex: 1;
  border: 1px solid var(--linie); text-decoration: none;
  transition: border-color var(--zeit) var(--kurve), box-shadow var(--zeit) var(--kurve), transform var(--zeit) var(--kurve);
}
.kachel__weg:hover { border-color: var(--tinte); box-shadow: var(--schatten); transform: translate(-1px, -1px) }
.kachel__weg:active { transform: none; box-shadow: none }
.kachel__bild {
  display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
  border-bottom: 1px solid var(--linie-fein);
}
.kachel__bild img { width: 100%; height: 100%; object-fit: contain; padding: .55rem }
.kachel__text { display: flex; flex-direction: column; gap: .2rem; padding: .65rem .7rem .8rem }
.kachel__titel { font-size: var(--klein); font-weight: 700; line-height: 1.3 }
.kachel__unter { font-size: var(--mikro); color: var(--tinte-matt); line-height: 1.35 }
.kachel__zahl {
  margin-top: .15rem; font-size: var(--mikro); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--rot);
}

/* ── Wegliste (Ratgeber) ── */
.wegliste { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linie-fein) }
.wegliste__weg {
  display: flex; align-items: center; gap: .85rem; padding: .7rem 0;
  border-bottom: 1px solid var(--linie-fein); text-decoration: none;
}
.wegliste__weg:hover .wegliste__titel { color: var(--rot-tief) }
.wegliste__bild { width: 52px; height: 52px; object-fit: cover; flex: none }
.wegliste__marke {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: var(--papier); color: var(--tinte-matt);
}
.wegliste__titel { flex: 1; font-size: var(--klein); font-weight: 600; line-height: 1.35 }
.wegliste__pfeil { color: var(--tinte-blass); transition: transform var(--zeit) var(--kurve) }
.wegliste__weg:hover .wegliste__pfeil { transform: translateX(3px); color: var(--rot) }

/* ── Produktgalerie: wischbar ueber scroll-snap, ohne eine Zeile Pflicht-Skript ── */
.galerie { position: relative; border-bottom: 1px solid var(--linie) }
.galerie__spur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none }
.galerie__spur::-webkit-scrollbar { display: none }
.galerie__feld {
  flex: 0 0 100%; margin: 0; scroll-snap-align: center;
  display: grid; place-items: center; aspect-ratio: 1;
}
.galerie__feld img { width: 100%; height: 100%; object-fit: contain; padding: var(--rand) }
.galerie__punkte {
  position: absolute; left: 0; right: 0; bottom: .8rem;
  display: flex; justify-content: center; gap: .35rem;
}
.galerie__punkt {
  width: 6px; height: 6px; border-radius: 50%; background: var(--linie);
  transition: background var(--zeit) var(--kurve), transform var(--zeit) var(--kurve);
}
.galerie__punkt.ist-da { background: var(--rot); transform: scale(1.4) }
.galerie__zahl {
  position: absolute; right: var(--rand); top: .8rem; margin: 0; padding: .15rem .45rem;
  background: rgba(26, 25, 23, .82); color: #fff;
  font-size: var(--mikro); font-weight: 700; letter-spacing: .06em;
}
.galerie--leer {
  display: grid; place-items: center; gap: .6rem; aspect-ratio: 2/1;
  background: repeating-linear-gradient(135deg, var(--papier) 0 9px, #f1efeb 9px 18px);
  color: var(--tinte-blass); font-size: var(--klein);
}
.galerie--leer p { margin: 0 }

/* ── Etikett: Marke, Titel, Untertitel ── */
.etikett { padding: var(--luft-l) var(--rand) 0 }
.etikett__marke { letter-spacing: .18em }
.etikett__unter { margin: .5rem 0 0; font-size: var(--gross); color: var(--tinte-matt); line-height: 1.35 }
.etikett__rubrik {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: var(--luft-m);
  padding: .3rem .7rem .3rem .55rem; background: var(--f); color: #fff; text-decoration: none;
  font-size: var(--mikro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.etikett__rubrik:hover { background: var(--f2) }

/* ── Haken-Liste ── */
.haken { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem }
.haken li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.45 }
.haken__zeichen {
  flex: none; margin-top: .22rem; padding: 3px;
  color: #fff; background: var(--rot); border-radius: 50%;
}

/* ── Klappabschnitte ── */
.klapp { margin: var(--luft-l) var(--rand) 0; border-top: 1px solid var(--linie) }
.klapp:last-of-type { border-bottom: 1px solid var(--linie) }
.klapp__kopf {
  display: flex; align-items: center; justify-content: space-between; gap: var(--luft-m);
  padding: .85rem 0; cursor: pointer; list-style: none;
  font-size: var(--mikro); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.klapp__kopf::-webkit-details-marker { display: none }
.klapp__kopf:hover { color: var(--rot-tief) }
.klapp__pfeil { color: var(--tinte-blass); transition: transform var(--zeit) var(--kurve) }
.klapp[open] .klapp__pfeil { transform: rotate(180deg) }
.klapp__inhalt { padding-bottom: var(--luft-m) }

/* ── Technische Daten: Ticket-Zeilen mit Punktlinie ── */
.daten { margin: 0 }
.daten__zeile {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .45rem 0; border-bottom: 1px dotted var(--linie);
}
.daten__zeile:last-child { border-bottom: 0 }
.daten dt { flex: none; max-width: 52%; font-size: var(--klein); color: var(--tinte-matt) }
.daten dd { margin: 0; flex: 1; text-align: right; font-size: var(--klein); font-weight: 600 }

/* ── Hersteller ── */
.hersteller__anschrift {
  font-style: normal; white-space: pre-line; font-size: var(--klein); color: var(--tinte-matt);
}
.hersteller__post { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 0; font-size: var(--klein) }
.hersteller__post .sym { color: var(--tinte-blass) }

/* ── Ratgeber-Schritte ── */
.ratgeber__bild { width: 100%; margin-top: var(--luft-m); aspect-ratio: 3/2; object-fit: cover }
.schritte { margin: var(--luft-l) 0 0; padding: 0; list-style: none }
.schritt {
  display: flex; gap: var(--luft-m); padding: var(--luft-m) var(--rand);
  border-top: 1px solid var(--linie-fein);
}
.schritt__zahl {
  flex: none; margin: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--tinte); color: #fff; font-size: var(--klein); font-weight: 800;
}
.schritt__text { flex: 1; min-width: 0 }
.schritt__titel { margin: .15rem 0 .5rem; font-size: var(--gross); line-height: 1.25; letter-spacing: -.01em }
.schritt__bild { width: 100%; margin: 0 0 .7rem; aspect-ratio: 4/3; object-fit: cover }

/* ── Knopf ── */
.knopf {
  display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem 1rem;
  border: 1px solid var(--tinte); background: var(--flaeche); color: var(--tinte);
  text-decoration: none; font-size: var(--klein); font-weight: 700;
  transition: box-shadow var(--zeit) var(--kurve), transform var(--zeit) var(--kurve);
}
.knopf:hover { box-shadow: var(--schatten); transform: translate(-1px, -1px) }
.knopf:active { box-shadow: none; transform: none }
.knopf--voll { background: var(--tinte); color: #fff }
.knopf--voll:hover { background: var(--rot); border-color: var(--rot) }
.knopf__zusatz { width: 100%; font-size: var(--mikro); font-weight: 400; letter-spacing: .04em; opacity: .8 }
.video { width: 100%; aspect-ratio: 16/9; background: var(--tinte) }

.blaettern {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--luft-m); padding: var(--luft-l) var(--rand) 0;
}
.blaettern__stand {
  font-size: var(--mikro); letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-blass);
}

/* ── 404 und Weiterleitungsseiten ── */
.leer { padding: var(--luft-xl) var(--rand); text-align: center }
.leer__code {
  margin: 0; font-size: 3.6rem; line-height: 1; font-weight: 800;
  letter-spacing: -.04em; color: var(--linie);
}
.leer__titel { margin: .4rem 0 .6rem }
.leer__text { margin: 0 0 var(--luft-l); color: var(--tinte-matt) }
.weiterliste { margin: var(--luft-m) 0 0; padding: 0; list-style: none; display: grid; gap: .4rem }

/* ── Fuss ── */
.fuss {
  margin-top: auto; padding: var(--luft-l) var(--rand);
  border-top: 1px solid var(--linie); background: var(--papier); font-size: var(--klein);
}
.fuss__firma { margin: 0 0 .6rem; font-weight: 700 }
.fuss__firma a { text-decoration: none }
.fuss__firma a:hover { color: var(--rot-tief); text-decoration: underline }
.fuss__wege { display: flex; flex-wrap: wrap; gap: .3rem 1rem }
.fuss__wege a { color: var(--tinte-matt) }

/* ── Symbole ── */
.sym, .balken__icon, .rubrikkopf__icon {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round;
}
.sym { width: 20px; height: 20px; flex: none; stroke-width: 1.7 }
.balken__icon, .rubrikkopf__icon { stroke-width: 1.5 }
.sym--klein { width: 14px; height: 14px; transition: transform var(--zeit) var(--kurve) }
.sym--links { transform: rotate(180deg) }
.sym--platz { width: 44px; height: 44px; stroke-width: 1.2; color: var(--tinte-blass) }

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