/* BPS Kundenportal. Hell und ruhig wie ein gutes Verwaltungs-Werkzeug:
   Bordeaux nur für die Hauptaktion und die Auswahl, Status immer als Punkt + Wort,
   Gerätenummern mit gleich breiten Ziffern. Schriften liegen lokal (kein Google-Server). */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-700.woff2) format('woff2'); }

:root {
  --marke: #7A0C2E;
  --marke-dunkel: #5E0923;
  --marke-hell: #F5E6EB;
  --grund: #F4EEF0;
  --flaeche: #FFFFFF;
  --flaeche-2: #FAFAFB;
  --flaeche-3: #F0F2F4;
  --linie: #ECE6E9;
  --linie-2: #DCD3D8;
  --text: #191C1F;
  --text-2: #5A616B;
  --text-3: #8A919B;
  --ok: #0F7A4E;
  --bald: #B45309;
  --rot: #C62828;
  --rot-hell: #FDF3F3;
  --rot-linie: #F1CFCF;
  --grau: #A3A9B2;
  --schrift: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 22px;
  --rot-900: #5C0A24;
  --rot-glanz: #9A3C56;
  --schatten: 0 1px 2px rgba(92, 10, 36, .04), 0 20px 44px -26px rgba(92, 10, 36, .38);
  /* Namen, die die Vorschau-Leiste noch nutzt */
  --muted: var(--text-2);
  --primary: var(--marke);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Rosé-Schimmer nur oben, darunter die Grundfarbe (sonst wiederholt sich der Verlauf am Seitenende) */
html {
  background:
    radial-gradient(1100px 560px at 8% -12%, #EAD3DB 0%, transparent 62%) no-repeat,
    radial-gradient(900px 520px at 100% -5%, #F0E1E7 0%, transparent 58%) no-repeat,
    var(--grund);
}
body {
  color: var(--text);
  font-family: var(--schrift); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--marke); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; }
.nr { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- Kopfleiste ---------- */
.kopfleiste { padding: 14px 32px 0; }
.kopfleiste-innen {
  max-width: 1136px; margin: 0 auto; min-height: 60px; padding: 8px 10px 8px 18px; display: flex; align-items: center; gap: 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(92, 10, 36, .05), 0 10px 30px -16px rgba(92, 10, 36, .3);
}
.firma { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; }
.firma img { width: 36px; height: 36px; flex: none; }
.firma small { display: inline-flex; align-items: center; gap: 8px; margin-left: -2px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.firma small svg.i { width: 16px; height: 16px; color: var(--text-3); }
.login {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--flaeche); color: var(--text); box-shadow: 0 0 0 1px rgba(92, 10, 36, .06), 0 2px 8px -4px rgba(92, 10, 36, .3);
  font: 600 14px/1 var(--schrift); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.login:hover { background: #FCF8FA; box-shadow: 0 0 0 1px rgba(92, 10, 36, .12), 0 4px 12px -6px rgba(92, 10, 36, .35); }
.login svg.i { width: 17px; height: 17px; color: var(--text-2); }

/* ---------- Seitenrahmen ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 36px 32px 0; }
.wrap.schmal { max-width: 744px; }
#inhalt { min-height: 50vh; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.unter { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.fehlt { padding: 72px 0; text-align: center; color: var(--text-2); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px; color: #fff; font: 600 14.5px/1 var(--schrift); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: linear-gradient(120deg, var(--rot-900) 0%, var(--rot-glanz) 48%, var(--rot-900) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 26px -12px rgba(122, 12, 46, .7);
  transition: filter .2s, box-shadow .2s;
}
.knopf:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px -12px rgba(122, 12, 46, .8); }
.knopf.zweit, .knopf.hell { background: rgba(255, 255, 255, .92); color: var(--text); box-shadow: 0 0 0 1px rgba(92, 10, 36, .08), 0 6px 16px -10px rgba(92, 10, 36, .35); }
.knopf.zweit:hover, .knopf.hell:hover { filter: none; background: #fff; box-shadow: 0 0 0 1px rgba(92, 10, 36, .14), 0 8px 20px -10px rgba(92, 10, 36, .4); }
.knopf.zweit svg.i { color: var(--text-2); }
.knopf.voll { width: 100%; height: 50px; font-size: 15px; }
.knopf:disabled { opacity: .6; cursor: default; }
.text-knopf {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none;
  color: var(--marke); font: 600 14px/1 var(--schrift); cursor: pointer; text-decoration: none;
}
.text-knopf:hover { color: var(--marke-dunkel); text-decoration: underline; text-underline-offset: 3px; }
.text-knopf svg.i { width: 16px; height: 16px; }

/* ---------- Anmelden ---------- */
.anmeldung { max-width: 440px; margin: 40px auto 0; }
.anmeldung .karte { padding: 34px 34px 30px; }
.anmeldung h1 { font-size: 25px; }
.anmeldung .karte > .unter { margin: 8px 0 8px; padding: 0; }
.anmeldung .knopf.voll { margin-top: 26px; }
.anmeldung .hilfe { margin: 22px 0 0; color: var(--text-2); font-size: 14px; text-align: center; }
.anmeldung .hilfe a, .vergessen-hinweis a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.label-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-zeile .text-knopf { padding: 0; font-size: 13px; font-weight: 600; }
.vergessen-hinweis { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBF5F7; color: var(--text-2); font-size: 14px; }
.anmeldung-text { max-width: 560px; margin: 40px auto 0; }

/* ---------- Formulare ---------- */
label { display: block; margin: 16px 0 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--linie-2); border-radius: 12px;
  background: var(--flaeche); color: var(--text); font: 400 16px/1.4 var(--schrift);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--marke); box-shadow: 0 0 0 3px var(--marke-hell); }
textarea { min-height: 88px; resize: vertical; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.zwei > div { min-width: 0; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.datei { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.datei input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.datei label {
  margin: 0; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--linie-2); border-radius: 999px; background: var(--flaeche); color: var(--text); font-size: 14px; font-weight: 600;
}
.datei label svg.i { color: var(--text-2); }
.datei span { color: var(--text-2); font-size: 14px; }
.form-knoepfe { display: flex; gap: 10px; margin-top: 24px; }
.form-knoepfe .knopf { flex: 1; height: 44px; }
.meldung { margin-top: 12px; font-size: 14px; font-weight: 500; }
.meldung:empty { display: none; }
.meldung.fehler { color: var(--rot); }
.meldung.ok { color: var(--ok); }

/* ---------- Karten und Abschnitte ---------- */
.karte { background: var(--flaeche); border: 1px solid rgba(92, 10, 36, .05); border-radius: var(--radius); box-shadow: var(--schatten); }
.abschnitt { margin-top: 32px; }
.abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 30px; }
.abschnitt-kopf h2 { margin: 0; font-size: 16px; font-weight: 600; }
.abschnitt-kopf .hinweis { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 13px; }
.abschnitt-kopf .hinweis svg.i { width: 14px; height: 14px; }
.karte > p { margin: 0; padding: 16px 20px; color: var(--text-2); }
.karte-fuss { padding: 0 20px 20px; }

/* Status: Punkt + Wort */
.punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grau); flex: none; }
.punkt.ok { background: var(--ok); }
.punkt.bald { background: var(--bald); }
.punkt.faellig, .punkt.bad { background: var(--rot); }
.st { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 500; }
.st i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--grau); flex: none; }
.st-ok { color: var(--text-2); }
.st-ok i { background: var(--ok); }
.st-bald { color: var(--bald); font-weight: 600; }
.st-bald i { background: var(--bald); }
.st-faellig, .st-bad { color: var(--rot); font-weight: 600; }
.st-faellig i, .st-bad i { background: var(--rot); }
.st-aus { color: var(--text-3); }
.st-neu { color: var(--text-2); }
.punkt.defekt { background: var(--rot); }

/* Digitale Prüfplakette */
.plakette { display: block; width: 112px; height: 112px; flex: none; overflow: visible; }
/* Farbe = Zustand: grün gültig, orange bald fällig, rot überfällig. Getönt wie ein Aufkleber, nicht wie eine Uhr. */
.plakette { --pk-grund: #E8F3ED; --pk-linie: #BBDCCB; --pk-farbe: var(--ok); }
.pk-bald { --pk-grund: #FCF0E2; --pk-linie: #EDCDA6; --pk-farbe: var(--bald); }
.pk-faellig { --pk-grund: #FBEAEA; --pk-linie: #ECBDBD; --pk-farbe: var(--rot); }
.pk-rand { fill: var(--pk-grund); stroke: var(--pk-linie); stroke-width: 1.4; }
.pk-strich { fill: none; stroke: var(--pk-linie); stroke-width: 1; }
.pk-innen { fill: #fff; stroke: var(--pk-linie); stroke-width: 1.2; }
.pk-zahl { fill: #4F5761; font: 600 9.5px var(--schrift); }
.pk-an { fill: #fff; font-weight: 700; }
.pk-loch { fill: var(--pk-farbe); }
.pk-klein { fill: var(--text-2); font: 500 7.5px var(--schrift); letter-spacing: .02em; }
.pk-jahr { fill: var(--text); font: 600 30px var(--schrift); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Übersicht ---------- */
.seitenkopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.seitenkopf .aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

.lage { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.lage > div { padding: 26px 28px; min-width: 0; }
.lage h2 { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.lage-termin { display: flex; align-items: center; gap: 24px; border-right: 1px solid var(--linie); }
.lage-termin .gross { color: var(--text); margin: 4px 0 6px; font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.lage-termin p { margin: 0; color: var(--text-2); font-size: 14px; }
.lage-termin p + p { margin-top: 2px; }
.todo { list-style: none; margin: 8px 0 0; padding: 0; }
.todo li + li { border-top: 1px solid var(--linie); }
.todo button {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.todo button .punkt { margin-top: 7px; }
.todo button span { flex: 1; min-width: 0; color: var(--text-2); }
.todo button b { color: var(--text); font-weight: 600; }
.todo button svg.i { margin-top: 1px; color: var(--text-3); transition: color .15s; }
.todo button:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.todo button:hover svg.i { color: var(--marke); }
.alles-gut { display: flex; align-items: flex-start; gap: 14px; margin: 14px 0 0; color: var(--text-2); }
.alles-gut .punkt { margin-top: 8px; }
.alles-gut b { display: block; color: var(--text); font-weight: 600; }

/* Werkzeugleiste: Reiter + Suche, direkt über der Tabelle */
.geraete-karte { margin-top: 28px; overflow: hidden; }
.werkzeug { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--linie); }
.reiter { position: relative; display: flex; gap: 26px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.reiter::-webkit-scrollbar { display: none; }
.reiter button {
  position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 17px 0 15px;
  border: 0; background: none; color: var(--text-2); font: 500 14px/1 var(--schrift); cursor: pointer;
}
.reiter button span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.reiter button:hover { color: var(--text); }
.reiter button.aktiv { color: var(--marke); font-weight: 600; }
.reiter button.aktiv span { color: var(--marke); opacity: .7; }
.reiter button.aktiv::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--marke); }
.suche {
  flex: 0 1 300px; display: flex; align-items: center; gap: 8px; height: 40px; margin: 8px 0; padding: 0 16px;
  border: 1px solid var(--linie); border-radius: 999px; background: #FBF9FA; color: var(--text-3); cursor: text;
}
.suche svg.i { width: 17px; height: 17px; }
.suche input { min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; box-shadow: none; }
.suche input:focus { box-shadow: none; }
.suche input::-webkit-search-cancel-button { cursor: pointer; }
.suche:focus-within { border-color: var(--marke); box-shadow: 0 0 0 3px var(--marke-hell); }

/* Geräte-Tabelle (PC) */
table.geraete { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.geraete th { padding: 11px 12px; border-bottom: 1px solid var(--linie); color: var(--text-2); font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.geraete td { padding: 12px 12px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.geraete th:first-child, .geraete td:first-child { padding-left: 20px; }
.geraete th:last-child, .geraete td:last-child { padding-right: 20px; }
.geraete tbody tr:last-child td { border-bottom: 0; }
.geraete tr.z { cursor: pointer; }
.geraete tr.z:hover td { background: #FCF8FA; }
.geraete .sp-nr { width: 96px; color: var(--text-2); }
.geraete .sp-geraet a { color: var(--text); font-weight: 600; text-decoration: none; }
.geraete .sp-geraet a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.geraete .sp-ort, .geraete .sp-person { color: var(--text-2); }
.geraete .sp-datum { width: 1%; color: var(--text-2); white-space: nowrap; }
.geraete .sp-status { width: 1%; }
.geraete .rot { color: var(--rot); }
.geraete .handy-meta, .geraete .st-handy { display: none; }
.geraete.ohne-person .sp-person, .geraete.ohne-ort .sp-ort { display: none; }
.geraete tr.z-aus td, .geraete tr.z-aus .sp-geraet a { color: var(--text-3); font-weight: 500; }
.geraete tr.gruppe th {
  padding: 10px 20px; background: #FBF7F8; color: var(--text); font-size: 13px; font-weight: 600; white-space: normal;
}
.geraete tr.gruppe th span { margin-left: 8px; color: var(--text-3); font-weight: 500; }
.geraete tr.leer td { padding: 48px 20px; color: var(--text-2); text-align: center; cursor: default; }

/* ---------- Geräteseite ---------- */
.geraet-kopf .etikett { margin: 0 0 8px; color: var(--text-2); font-size: 14px; }
.geraet-kopf .etikett .nr { color: var(--text); }
.status-karte { margin-top: 24px; display: flex; align-items: center; gap: 22px; padding: 20px 24px; }
.status-karte .plakette { width: 104px; height: 104px; }
.status-karte h2 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 600; }
.status-karte h2 .punkt { vertical-align: .18em; margin-right: 10px; }
.status-karte p { margin: 6px 0 0; color: var(--text-2); }
.status-karte p a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.status-karte.s-bad { border-color: var(--rot-linie); background: var(--rot-hell); }
.status-karte.s-bad h2 { color: var(--rot); }
.status-karte.s-ohne { padding: 22px 24px; }

dl.daten { margin: 0; padding: 2px 20px; }
.daten .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-top: 1px solid var(--linie); }
.daten .zeile:first-child { border-top: 0; }
dt { color: var(--text-2); }
dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
dd .st { justify-content: flex-end; }
.ergaenzen {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 40px); margin: 4px 20px 20px; padding: 13px 14px;
  border: 1px dashed var(--linie-2); border-radius: 14px; background: none; color: var(--text-2);
  font: 500 14px/1.4 var(--schrift); text-align: left; cursor: pointer; transition: border-color .15s, color .15s;
}
.ergaenzen:hover { border-color: var(--marke); color: var(--marke); }
.ergaenzen svg.i { width: 17px; height: 17px; }
.foto { padding: 0 20px 20px; }
.foto img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--linie); }
.karte > .foto:first-child { padding-top: 20px; }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-top: 1px solid var(--linie); }
.verlauf li:first-child { border-top: 0; }
.verlauf .datum { font-weight: 600; font-variant-numeric: tabular-nums; }
.verlauf .wer { display: block; color: var(--text-2); font-size: 13px; }
.formular { padding: 4px 20px 20px; }

/* ---------- Fuß ---------- */
footer {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  margin-top: 56px; padding: 20px 0 40px; border-top: 1px solid var(--linie); color: var(--text-3); font-size: 13px;
}
footer a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--marke); }
footer svg.i { width: 16px; height: 16px; }
footer .rechtliches { display: inline-flex; gap: 18px; }
footer .rechtliches a { font-weight: 500; color: var(--text-3); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .lage { grid-template-columns: 1fr; }
  .lage-termin { border-right: 0; border-bottom: 1px solid var(--linie); }
  .geraete .sp-person { display: none; }
}

/* ---------- Handy: Tabelle wird Liste ---------- */
@media (max-width: 760px) {
  .kopfleiste { padding: 10px 10px 0; }
  .kopfleiste-innen { min-height: 54px; padding: 6px 7px 6px 14px; gap: 12px; }
  .login { height: 40px; padding: 0 14px; }
  .firma { gap: 10px; font-size: 14px; }
  .firma img { width: 32px; height: 32px; }
  .firma small { gap: 6px; font-size: 13px; }
  .wrap { padding: 24px 16px 0; }
  h1 { font-size: 24px; }
  .seitenkopf { align-items: stretch; flex-direction: column; gap: 16px; }
  .seitenkopf .aktionen { display: grid; grid-template-columns: 1fr 1fr; }
  .seitenkopf .aktionen .knopf { width: 100%; padding: 0 10px; }
  .lage { margin-top: 20px; }
  .lage > div { padding: 20px; }
  .lage-termin { gap: 18px; }
  .lage-termin .plakette { width: 92px; height: 92px; }
  .lage-termin .gross { font-size: 22px; }
  .todo button { font-size: 14.5px; }

  .geraete-karte { margin-top: 20px; }
  .werkzeug { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 0; }
  .suche { order: -1; flex: none; height: 44px; margin: 0; }
  .suche input { font-size: 16px; }
  .reiter { gap: 22px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .reiter button { padding: 16px 0 14px; }

  .geraete thead { display: none; }
  .geraete, .geraete tbody { display: block; }
  .geraete tr.z { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 11px 16px; border-bottom: 1px solid var(--linie); }
  .geraete tbody tr:last-child { border-bottom: 0; }
  .geraete tr.z td { display: none; padding: 0; border: 0; background: none !important; }
  .geraete tr.z td.sp-geraet { display: block; flex: 1; min-width: 0; }
  .geraete tr.z td.sp-status { display: block; width: auto; text-align: right; }
  .geraete .handy-meta { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .geraete .st-pc { display: none; }
  .geraete .st-handy { display: inline; }
  .geraete .st { font-size: 13.5px; }
  .geraete tr.gruppe { display: block; }
  .geraete tr.gruppe th { display: block; padding: 9px 16px; border-bottom: 1px solid var(--linie); }
  .geraete tr.leer { display: block; }
  .geraete tr.leer td { display: block; }

  .status-karte { gap: 16px; padding: 16px; }
  .status-karte .plakette { width: 88px; height: 88px; }
  .status-karte h2 { font-size: 17px; }
  .status-karte p { font-size: 14px; }
  .abschnitt { margin-top: 26px; }
  dl.daten { padding: 2px 16px; }
  .verlauf li { padding: 12px 16px; }
  .foto, .karte-fuss { padding-left: 16px; padding-right: 16px; }
  .ergaenzen { width: calc(100% - 32px); margin: 4px 16px 16px; }
  .formular { padding: 4px 16px 16px; }
  .karte > p { padding: 14px 16px; }
  .anmeldung { margin-top: 20px; }
  .anmeldung .karte { padding: 26px 20px 22px; }
  .anmeldung h1 { font-size: 22px; }
  footer { flex-direction: column; align-items: flex-start; margin-top: 40px; padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .firma small { display: none; }
}
@media (max-width: 420px) {
  .firma .lang { display: none; }
}
@media (max-width: 380px) {
  .seitenkopf .aktionen { grid-template-columns: 1fr; }
  .firma { overflow: hidden; }
  .firma > span { overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Prüfnachweis: nur beim Drucken sichtbar ---------- */
#druck { display: none; }
@media print {
  @page {
    size: A4; margin: 14mm 14mm 18mm;
    @bottom-left { content: "BPS Brinkmann Prüf-Service · Prüfnachweis"; font: 7.5pt 'Plus Jakarta Sans', sans-serif; color: #888; }
    @bottom-right { content: "Seite " counter(page) " von " counter(pages); font: 7.5pt 'Plus Jakarta Sans', sans-serif; color: #888; }
  }
  body { background: #fff; font-size: 10pt; }
  body.druck-nachweis > *:not(#druck) { display: none !important; }
  body.druck-nachweis #druck { display: block; color: #111; }
  #druck .d-kopf { display: flex; gap: 10px; align-items: center; font-size: 9pt; color: #444; margin-bottom: 10mm; }
  #druck .d-kopf img { width: 14mm; height: 14mm; }
  #druck .d-kopf b { color: #111; font-size: 10.5pt; }
  #druck h1 { font-size: 20pt; font-weight: 600; margin: 0 0 1mm; }
  #druck .d-unter { margin: 0 0 6mm; color: #444; }
  #druck table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
  #druck .d-info { width: auto; margin-bottom: 7mm; }
  #druck .d-info td { padding: 0.9mm 8mm 0.9mm 0; }
  #druck .d-info td:first-child { color: #666; }
  #druck .d-liste { table-layout: fixed; }
  #druck .d-liste .c-nr { width: 17mm; } #druck .d-liste .c-raum { width: 30mm; } #druck .d-liste .c-datum { width: 22mm; }
  #druck .d-liste .c-ergebnis { width: 27mm; } #druck .d-liste .c-naechste { width: 34mm; }
  #druck .d-liste th { text-align: left; font-size: 8pt; font-weight: 600; color: #555; white-space: nowrap; border-bottom: 0.4mm solid #111; padding: 1.5mm 2mm 1.5mm 0; }
  #druck .d-liste td { padding: 1.4mm 2mm 1.4mm 0; border-bottom: 0.2mm solid #d4d4d4; font-size: 9pt; vertical-align: top; }
  #druck .d-liste td:nth-last-child(-n+3) { white-space: nowrap; }
  #druck .d-liste tr.d-gruppe td { padding: 4mm 0 1.2mm; border-bottom: 0.3mm solid #111; font-size: 9pt; font-weight: 700; white-space: normal; }
  #druck .d-liste tr.d-gruppe { break-after: avoid; }
  #druck .d-liste tr { break-inside: avoid; }
  #druck .d-liste thead { display: table-header-group; }
  #druck .nb { color: #BA1A1A; font-weight: 700; }
  #druck .d-fuss { margin-top: 5mm; font-size: 8.5pt; color: #555; }
}
