
html[lang="bar"] [lang="de"],
html[lang="de"] [lang="bar"] { display: none !important; }

:root {
    --bg: #111214;
    --panel: #1a1c20;
    --panel-2: #22252a;
    --line: #2e3238;
    --text: #ecedef;
    --muted: #8d939c;
    --volt: #ffd400;
    --ok: #3ddc84;
    --off: #ff4d4d;
    --hazard: repeating-linear-gradient(-45deg, var(--volt) 0 18px, #111 18px 36px);
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; }

.hazard { height: 14px; background: var(--hazard); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(17, 18, 20, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: 1.15rem; }
.logo svg { width: 30px; height: 30px; color: var(--volt); filter: drop-shadow(0 0 6px rgba(255, 212, 0, .6)); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 8px 12px; color: var(--muted); border-radius: 4px; }
.top nav a:hover { color: var(--bg); background: var(--volt); }
.lang { display: flex; font-family: var(--mono); font-size: .75rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.lang button { font: inherit; border: 0; background: transparent; color: var(--muted); padding: 6px 10px; cursor: pointer; text-transform: uppercase; }
html[lang="bar"] .lang [data-lang-switch="bar"],
html[lang="de"] .lang [data-lang-switch="de"] { background: var(--volt); color: #111; font-weight: 700; }

.hero { padding: 80px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.warn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--volt); border: 1px solid var(--volt); padding: 6px 12px; border-radius: 3px; }
.warn svg { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: .95; margin: 24px 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.hero h1 mark { white-space: nowrap; background: var(--volt); color: #111; padding: 0 .12em; }
.hero .gruss { font-family: var(--mono); color: var(--muted); font-size: .85rem; max-width: 60ch; margin: 0; }
.schaltkasten { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 18px; border-radius: 6px; transform: rotate(1.5deg); }
.schaltkasten img { border-radius: 2px; width: 100%; height: auto; }
.schaltkasten::before, .schaltkasten::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #777, #2a2a2a); top: 5px; }
.schaltkasten::before { left: 5px; }
.schaltkasten::after { right: 5px; }

.messwerte { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.messwert { padding: 28px 24px; border-right: 1px solid var(--line); }
.messwert:last-child { border-right: 0; }
.messwert b { display: block; font-family: var(--mono); font-size: 2.2rem; color: var(--volt); line-height: 1.1; }
.messwert > span { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

section { padding: 88px 0; }
.kopf { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.kopf .nr { font-family: var(--mono); color: var(--volt); font-size: .9rem; }
.kopf h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; font-weight: 900; letter-spacing: -.01em; }
.kopf::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }

.typenschild {
    position: relative; max-width: 760px; color: #1d1f22; padding: 36px 40px 28px;
    background: linear-gradient(135deg, #d9dde2 0%, #b4bac1 45%, #d4d8dd 60%, #a7adb5 100%);
    border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 20px 40px rgba(0, 0, 0, .4);
    font-family: var(--mono);
}
.typenschild .schraube { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f5f5f5, #6d737a); }
.typenschild .schraube::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 2px; background: #555; transform: rotate(35deg); }
.s1 { top: 10px; left: 10px; } .s2 { top: 10px; right: 10px; } .s3 { bottom: 10px; left: 10px; } .s4 { bottom: 10px; right: 10px; }
.typenschild h3 { margin: 0 0 16px; font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #1d1f22; padding-bottom: 10px; }
.typenschild dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: .92rem; }
.typenschild dt { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; padding-top: 2px; color: #3b3f45; }
.typenschild dd { margin: 0; font-weight: 700; }
.typenschild .fuss { margin-top: 18px; padding-top: 10px; border-top: 1px solid #6d737a; font-size: .75rem; display: flex; justify-content: space-between; gap: 16px; letter-spacing: .1em; }

.kasten { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.hutschiene { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
html.js .kasten:not(.offen) .sicherung:nth-child(n+9) { display: none; }
.sicherung { background: #f1f1ee; color: #1d1f22; border-radius: 4px; padding: 10px 10px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.sicherung .nr { font-family: var(--mono); font-size: .7rem; color: #6d737a; align-self: flex-start; }
.hebel { width: 26px; height: 44px; border-radius: 4px; background: #d5d6d2; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.hebel::after { content: ""; position: absolute; left: 3px; right: 3px; height: 18px; top: 3px; border-radius: 3px; background: #2b2e33; }
.hebel::before { content: ""; position: absolute; left: -10px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.sicherung.aus .hebel::after { top: auto; bottom: 3px; }
.sicherung.aus .hebel::before { background: var(--off); box-shadow: 0 0 6px var(--off); }
.sicherung strong { font-size: .95rem; line-height: 1.2; }
.sicherung small { font-size: .75rem; color: #4a4f56; line-height: 1.25; }
.alle { display: none; margin-top: 18px; font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #111; background: var(--volt); border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer; align-items: center; gap: 8px; }
.alle:hover { filter: brightness(1.1); }
html.js .alle { display: inline-flex; }
.alle .pfeil { transition: transform .2s; }
.alle[aria-expanded="true"] .pfeil { transform: rotate(180deg); }
.alle[aria-expanded="true"] .wenn-zu,
.alle[aria-expanded="false"] .wenn-offen { display: none; }

.refs { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 12px; }
.ref { position: relative; margin: 0; overflow: hidden; border-radius: 4px; grid-column: span 3; background: var(--panel); }
.ref:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.ref:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.ref img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transition: filter .3s, transform .4s; }
.ref:hover img { filter: none; transform: scale(1.04); }
.ref figcaption { position: absolute; left: 0; bottom: 0; background: var(--volt); color: #111; font-family: var(--mono); font-size: .75rem; font-weight: 700; padding: 6px 10px; text-transform: uppercase; letter-spacing: .06em; }

.flotte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fahrzeug { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.fahrzeug .bild { height: 200px; padding: 20px; background: radial-gradient(circle at 50% 70%, #3a3e45, var(--panel-2) 70%); }
.fahrzeug .bild img { width: 100%; height: 100%; object-fit: contain; }
.fahrzeug dl { margin: 0; padding: 16px 20px; display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-family: var(--mono); font-size: .85rem; border-top: 1px solid var(--line); }
.fahrzeug dt { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; padding-top: 2px; }
.fahrzeug dd { margin: 0; }

.fehler { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.fehler .code { font: 900 clamp(5rem, 20vw, 11rem)/1 var(--mono); color: var(--volt); text-shadow: 0 0 30px rgba(255, 212, 0, .35); margin: 0; }
.fehler h1 { margin: 16px 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; font-weight: 900; }
.fehler p { color: var(--muted); font-family: var(--mono); margin: 0 0 28px; }
.knopf { display: inline-block; text-decoration: none; font: 700 .85rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--volt); color: #111; padding: 12px 18px; border-radius: 4px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 32px 24px; font-family: var(--mono); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
footer b { color: var(--volt); }

@media (max-width: 960px) {
    .flotte { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .top nav { display: none; }
    .lang { margin-left: auto; }
    .hero { padding-top: 48px; }
    .hero .wrap { grid-template-columns: 1fr; }
    .messwerte { grid-template-columns: repeat(2, 1fr); }
    .messwert:nth-child(2) { border-right: 0; }
    .messwert:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    section { padding: 64px 0; }
    .typenschild { padding: 32px 22px 24px; }
    .typenschild dl { grid-template-columns: 1fr; gap: 2px; }
    .typenschild dd { margin-bottom: 8px; }
    .refs { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .ref, .ref:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .ref:nth-child(1), .ref:last-child { grid-column: span 2; grid-row: span 1; }
    footer .wrap { flex-direction: column; }
}

@media (max-width: 520px) {
    .flotte { grid-template-columns: 1fr; }
}
