/* Gleisstaubsauger.de – Design „Bahndienst“
   Signalgelb, Schwarz, Papier. Warnschraffur, Typenschilder, Maßlinien.
   Bewusst kantig: keine Rundungen, keine Schatten, Linien statt Karten. */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }

:root {
  --gelb: #ffc800;
  --schwarz: #111210;
  --papier: #f1eee4;
  --papier-2: #e4e0d3;
  --grau: #5d5c55;
  --rot: #c8321e;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --linie: 3px solid var(--schwarz);
  --schraffur: repeating-linear-gradient(-45deg, var(--schwarz) 0 12px, var(--gelb) 12px 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 1.125rem/1.6 var(--text); color: var(--schwarz); background: var(--papier); }
svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: var(--gelb); }
a:hover { background: var(--gelb); color: var(--schwarz); }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
small { font-size: .8em; font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gelb); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .98; margin: 0 0 .5em; hyphens: auto; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.05; }
.eyebrow, .breadcrumb, .muted { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; }
.eyebrow { text-transform: uppercase; margin-bottom: 1.2rem; }
.muted { color: var(--grau); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 44rem; }

/* Überschriften laufend nummerieren: 01, 02 … */
main { counter-reset: h; }
main h2 { counter-increment: h; }
main h2::before { content: counter(h, decimal-leading-zero); display: block; font: 400 .85rem/1 var(--mono); letter-spacing: .1em; margin-bottom: .9rem; padding-top: .9rem; border-top: var(--linie); width: 4.5rem; }
.section--alt h2::before { border-color: var(--gelb); color: var(--gelb); }
.notice h2 { counter-increment: none; }
.notice h2::before { content: none; }

/* Raster */
.container { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--alt { background: var(--schwarz); color: var(--papier); }
.section__intro { max-width: 44rem; margin-bottom: 2.5rem; font-size: 1.15rem; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prose-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .prose-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }

.schraffur { height: 16px; background: var(--schraffur); }

/* Kopf */
.header { background: var(--schwarz); color: var(--papier); }
.header a:hover { background: none; color: var(--gelb); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding: .9rem 0; flex-wrap: wrap; }
.logo { font: 800 clamp(1.5rem, 4vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.logo span { color: var(--gelb); }
.nav { display: flex; gap: 1.4rem; }
.nav a { font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: .5rem 0; border-bottom: 3px solid transparent; }
.nav a[aria-current] { border-color: var(--gelb); color: var(--gelb); }
.nav-toggle { display: none; font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; background: var(--gelb); color: var(--schwarz); border: 0; padding: .6rem .9rem; cursor: pointer; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid #444; }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid #444; font-size: 1.3rem; }
}

/* Gleistafeln: Spurweiten als Schilder */
.tafel, .badge, .chip { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .55rem; background: var(--papier); color: var(--schwarz); border: 3px solid var(--schwarz); font: 800 1.25rem/1 var(--display); text-decoration: none; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.tafel:hover, .badge:hover, .chip:hover, .chip[aria-pressed="true"] { background: var(--schwarz); color: var(--gelb); }
.spurbar { border-top: 1px solid #3a3a36; }
.spurbar__inner { display: flex; align-items: center; gap: .4rem; padding: .6rem 0; overflow-x: auto; scrollbar-width: none; }
.spurbar__label { font: 400 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a9a79c; white-space: nowrap; margin-right: .5rem; }
.spurbar .tafel { border: 2px solid var(--papier); background: transparent; color: var(--papier); min-width: 2.3rem; height: 2.3rem; font-size: 1.1rem; }
.spurbar .tafel:hover, .spurbar .tafel[aria-current] { background: var(--gelb); border-color: var(--gelb); color: var(--schwarz); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badges--lg { margin-bottom: 1.5rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }

/* Gelbes Band: Hero und Seitenkopf */
.hero, .pagehead { background: var(--gelb); position: relative; overflow: hidden; }
.hero a:hover, .pagehead a:hover { background: var(--schwarz); color: var(--gelb); }
.hero__grid { padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.hero h1 { font-size: clamp(3.2rem, 14.5vw, 13rem); line-height: .84; margin-bottom: .25em; }
.hero__text { display: grid; gap: 1.5rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .hero__text { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 4rem; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__art { width: 100%; }
.pagehead > .container { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; }
.pagehead > .container > * { position: relative; }
.breadcrumb { margin-bottom: 1.5rem; text-transform: uppercase; }
.pagehead .pagehead__spur { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 800 clamp(9rem, 32vw, 26rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 3px var(--schwarz); opacity: .2; pointer-events: none; user-select: none; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .staub rect { animation: saugen 2.8s linear infinite; }
  .staub rect:nth-child(2n) { animation-delay: -.9s; }
  .staub rect:nth-child(3n) { animation-delay: -1.9s; }
}
@keyframes saugen { from { transform: translateX(60px); opacity: 0; } 20%, 85% { opacity: 1; } to { transform: translateX(-200px); opacity: 0; } }

.keyfacts { display: flex; flex-wrap: wrap; margin: 2rem 0 0; border: var(--linie); width: fit-content; max-width: 100%; }
.keyfacts div { padding: .7rem 1.2rem; border-right: var(--linie); }
.keyfacts div:last-child { border-right: 0; }
.keyfacts dt { font: 400 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.keyfacts dd { margin: 0; font: 800 1.6rem/1.1 var(--display); }
@media (max-width: 600px) { .keyfacts { width: 100%; } .keyfacts div { flex: 1 1 100%; border-right: 0; border-bottom: var(--linie); } .keyfacts div:last-child { border-bottom: 0; } }

/* Maßlinie: zwei Schienen im Abstand der Spurweite, 1 mm = 4 px */
.mass { display: inline-block; position: relative; height: 30px; width: calc(var(--mm) * 4px + 12px); border-inline: 6px solid currentColor; vertical-align: middle; }
.mass::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 2px dashed currentColor; transform: translateY(-1px); }
.mass::after { content: ""; position: absolute; inset: auto -12px 0; border-top: 3px solid currentColor; }
.mass-demo { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; font: 400 .85rem/1 var(--mono); }

/* Spurlehre: Zeilen statt Karten */
.lineal { list-style: none; margin: 0; padding: 0; border-top: var(--linie); }
.lineal a { display: grid; grid-template-columns: 9rem 220px 1fr auto 2rem; align-items: center; gap: 1.5rem; padding: 1rem .5rem; border-bottom: var(--linie); text-decoration: none; }
.lineal a:hover { background: var(--schwarz); color: var(--gelb); }
.lineal__name { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--display); }
.lineal__data, .lineal__count { font: 400 .9rem/1.4 var(--mono); }
.lineal__count { text-transform: uppercase; letter-spacing: .06em; }
.lineal__count b { font: 800 1.8rem/1 var(--display); margin-right: .4rem; vertical-align: -.1em; }
.lineal__pfeil { font: 800 1.8rem/1 var(--display); }
@media (max-width: 760px) {
  .lineal a { grid-template-columns: 1fr auto; gap: .6rem 1rem; }
  .lineal__pfeil { order: 2; }
  .lineal__gleis { grid-column: 1 / -1; order: 3; }
  .lineal__data { order: 4; }
  .lineal__data br { display: none; }
  .lineal__count { order: 5; text-align: right; }
}

/* Kästen */
.card, .notice { border: var(--linie); padding: 1.6rem; background: var(--papier); color: var(--schwarz); }
.card--accent { background: var(--gelb); }
.card--accent .checklist li { border-color: var(--schwarz); }
.card--link { text-decoration: none; display: block; border-color: var(--papier); background: transparent; color: var(--papier); position: relative; padding-right: 3.2rem; }
.card--link::after { content: "→"; position: absolute; right: 1.2rem; top: 1.4rem; font: 800 1.6rem/1 var(--display); }
.card--link:hover { background: var(--gelb); border-color: var(--gelb); color: var(--schwarz); }
.card--link p { margin: 0; }
.notice { background: var(--papier-2); border-left-width: 16px; margin-top: 2.5rem; }
.notice > :last-child { margin-bottom: 0; }
.notice h2, .notice h3 { margin-top: 0; font-size: 1.7rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border: var(--linie); background: transparent; color: var(--schwarz); font: 700 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.btn::after { content: "→"; }
.btn:hover { background: var(--schwarz); color: var(--gelb); }
.btn.btn--primary { background: var(--schwarz); color: var(--gelb); }
.btn.btn--primary:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn--block { display: flex; justify-content: space-between; margin-top: 1.2rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding: .7rem 0 .7rem 2rem; margin: 0; border-bottom: 1px solid var(--schwarz); }
.checklist li:first-child { border-top: 1px solid var(--schwarz); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: .9rem; height: .9rem; background: var(--schwarz); }

/* Vier Schritte: große Ziffern, Trennlinien */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; padding: 1.5rem 0; border-top: 3px solid var(--gelb); }
.steps li::before { content: counter(s); display: block; font: 800 6.5rem/.9 var(--display); color: transparent; -webkit-text-stroke: 2px var(--gelb); margin-bottom: .6rem; }
.steps h3 { color: var(--gelb); }
.steps p { margin: 0; }

.criteria { list-style: none; counter-reset: c; padding: 0; }
.criteria > li { counter-increment: c; display: grid; grid-template-columns: 4rem 1fr; padding: 1.2rem 0; border-top: var(--linie); margin: 0; }
.criteria > li::before { content: counter(c); font: 800 3.2rem/.9 var(--display); grid-row: span 2; }
.criteria h3 { margin: 0 0 .3em; }
.criteria p { margin: 0; grid-column: 2; }

/* Typenschild: Produktkarte */
.schild { display: flex; flex-direction: column; border: var(--linie); background: var(--papier); color: var(--schwarz); }
.schild:target { outline: 6px solid var(--rot); }
.section--alt .schild { border-color: var(--gelb); }
.schild__kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--schwarz); color: var(--papier); padding: .5rem .5rem .5rem 1.2rem; font: 400 .8rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; min-height: 3.2rem; }
.schild__kopf .badge { border-color: var(--gelb); background: var(--gelb); min-width: 2.2rem; height: 2.2rem; font-size: 1.05rem; }
.schild__kopf .badge:hover { background: var(--papier); border-color: var(--papier); color: var(--schwarz); }
.schild__body { padding: 1.4rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.schild__typ { font: 400 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.schild__typ::before { content: ""; display: inline-block; width: .7rem; height: .7rem; background: var(--gelb); border: 2px solid var(--schwarz); margin-right: .5rem; vertical-align: -1px; }
.schild--alternative .schild__typ::before { background: transparent; }
.schild h3 { font-size: 2rem; font-weight: 800; margin-bottom: .5em; }
.schild__note { font-size: .95rem; border-left: 6px solid var(--gelb); padding-left: .8rem; }
.schild__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .8rem; }
.schild__cta .btn { font-size: 1.05rem; padding: .75rem 1rem; }
.facts { margin: 0 0 1.2rem; border-top: var(--linie); font: 400 .85rem/1.4 var(--mono); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--schwarz); }
.facts dt { text-transform: uppercase; letter-spacing: .04em; color: var(--grau); }
.facts dd { margin: 0; font-weight: 700; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: var(--linie); background: var(--papier); color: var(--schwarz); margin-bottom: 1rem; }
.section--alt .table-wrap { border-color: var(--gelb); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 620px; }
th, td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--schwarz); }
thead th { background: var(--schwarz); color: var(--gelb); font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
tbody th { font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; }
tbody th small { font: 400 .75rem/1.6 var(--mono); text-transform: none; }
tbody tr:last-child > * { border-bottom: 0; }
td .badge, tbody th .badge { min-width: 2rem; height: 2rem; font-size: 1rem; border-width: 2px; }
.yes, .no { font: 400 .8rem/1 var(--mono); text-transform: uppercase; padding: .25rem .5rem; border: 2px solid var(--schwarz); }
.yes { background: var(--gelb); }
.section--alt .muted { color: #a9a79c; }

/* Glossar */
.glossar { display: grid; gap: 3rem; }
@media (min-width: 960px) { .glossar { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } .glossar__toc { position: sticky; top: 1.5rem; } }
.glossar__toc .footer__title { color: var(--grau); }
.glossar__toc ul { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 1rem; }
.glossar__toc li { border-bottom: 1px solid var(--schwarz); }
.glossar__toc a { display: block; padding: .4rem 0; text-decoration: none; }
.terms { margin: 0; }
.terms > div { padding: 1.5rem 0; border-top: var(--linie); display: grid; gap: .6rem 2rem; }
@media (min-width: 720px) { .terms > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.terms > div:target { background: var(--gelb); padding-inline: 1rem; }
.terms dt { font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--display); text-transform: uppercase; hyphens: auto; overflow-wrap: anywhere; }
.terms dt small { display: block; font: 400 .75rem/1.5 var(--mono); text-transform: none; margin-top: .5rem; }
.terms dd { margin: 0; }

/* FAQ */
.faq { border-top: 1px solid currentColor; }
.faq:last-of-type { border-bottom: 1px solid currentColor; }
.faq summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font-size: 2rem; color: var(--gelb); }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 0 1.3rem; margin: 0; max-width: 44rem; }

/* Fuß */
.footer { background: var(--schwarz); color: var(--papier); font-size: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { background: none; color: var(--gelb); }
.footer__grid { display: grid; gap: 2.5rem; padding: 3.5rem 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.footer__brand { font: 800 2.2rem/1 var(--display); text-transform: uppercase; color: var(--gelb); }
.footer__title { font: 400 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; }
.footer .footer__title { color: var(--gelb); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer__legal { border-top: 1px solid #3a3a36; padding: 1.5rem 0 2.5rem; font: 400 .78rem/1.6 var(--mono); color: #a9a79c; }

/* Produktbild im Typenschild */
.schild__bild { display: block; background: #fff; border-bottom: var(--linie); }
.schild__bild:hover { background: #fff; }
.schild__bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; padding: .5rem; }
.schild__offen { font: 400 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grau); padding: .9rem 0; }

/* Fuß bleibt am unteren Fensterrand, auch wenn die Seite kürzer ist als das Fenster */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
address { font-style: normal; margin-bottom: 1em; }
.prose h1 + h2 { margin-top: 1em; }

/* Unterzeile der Startseiten-Überschrift */
.hero__sub { display: block; font-size: .3em; line-height: 1.1; letter-spacing: .02em; margin-top: .35em; }

/* Liste weiterer Katalogeinträge */
.katalogliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.katalogliste a { display: block; padding: .9rem 2rem .9rem 0; border-top: 1px solid var(--papier); text-decoration: none; position: relative; }
.katalogliste a::after { content: "→"; position: absolute; right: .3rem; top: .9rem; font: 800 1.4rem/1 var(--display); color: var(--gelb); }
.katalogliste a:hover { background: var(--gelb); color: var(--schwarz); padding-left: .6rem; }
.katalogliste a:hover::after { color: var(--schwarz); }
.katalogliste strong { display: block; font: 700 1.25rem/1.1 var(--display); text-transform: uppercase; color: var(--gelb); }
.katalogliste a:hover strong { color: var(--schwarz); }
.katalogliste span { font-size: .95rem; }
.section--alt a { text-decoration-color: var(--gelb); }
