/* General Lasers – Geräte- & Wartungsmanagement
   Gestaltung: ruhige Flächen, klare Hierarchie, Statusfarben. Keine externen Schriften. */

:root {
  --bg: #f2f5f8;
  --flaeche: #ffffff;
  --flaeche-2: #f7f9fb;
  --flaeche-3: #eef2f6;
  --linie: #e2e8ef;
  --linie-2: #d3dbe5;
  --text: #0f1f33;
  --text-2: #475569;
  --text-3: #7b8a9d;
  --marke: #0d9488;
  --marke-d: #0b7a70;
  --marke-h: #e5f5f3;
  --marke-2: #14b8a6;
  --nav: #0f1f33;
  --nav-2: #16293f;
  --nav-text: #aab8c9;
  --gruen: #12a150;
  --gelb: #d98a00;
  --rot: #d93838;
  --blau: #3b6ff5;
  --lila: #7c5cd6;
  --r: 14px;
  --r-k: 10px;
  --schatten: 0 1px 2px rgba(15, 31, 51, .04), 0 4px 16px rgba(15, 31, 51, .05);
  --schatten-h: 0 2px 4px rgba(15, 31, 51, .05), 0 12px 32px rgba(15, 31, 51, .09);
  --sb: 264px;
  --tb: 64px;
  --schrift: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-bereich="techniker"] { --marke: #2563eb; --marke-d: #1d4fd8; --marke-h: #e8effe; --marke-2: #3b82f6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--schrift); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--marke-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.gedaempft { color: var(--text-3); }
.klein { font-size: 13px; }
.text-rot { color: var(--rot); font-weight: 600; }
.text-orange { color: var(--gelb); font-weight: 600; }
.text-gruen { color: var(--gruen); font-weight: 600; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.rechts { text-align: right; }
.abstand { margin-top: 20px; }
.trenn { border: 0; border-top: 1px solid var(--linie); margin: 18px 0; }

/* ---------- Gerüst ---------- */
.app { display: flex; min-height: 100vh; }
.sb { position: fixed; inset: 0 auto 0 0; width: var(--sb); background: var(--nav); color: var(--nav-text); display: flex; flex-direction: column; z-index: 40; }
.sb-kopf { height: var(--tb); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sb-logo { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none !important; }
.sb-logo strong { display: block; font-size: 15.5px; letter-spacing: .01em; }
.sb-logo small { display: block; font-size: 11.5px; color: var(--nav-text); text-transform: uppercase; letter-spacing: .08em; }
.sb-logo-zeichen { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--marke-2), var(--marke-d)); color: #fff; box-shadow: 0 6px 16px rgba(13,148,136,.35); }
.sb-logo-zeichen .ic { width: 19px; height: 19px; fill: #fff; stroke: #fff; }
.sb-zu { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.sb-zu .ic { width: 24px; height: 24px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 10px; color: var(--nav-text); font-weight: 500; font-size: 14.5px; text-decoration: none; transition: background .15s, color .15s; }
.sb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-nav a.aktiv { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--marke-2); }
.sb-nav a.aktiv .ic { color: var(--marke-2); }
.sb-nav a span { flex: 1; }
.sb-zahl { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--marke); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.sb-gruppe { margin: 18px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6c7f96; font-weight: 700; }
.sb-fuss { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-ich { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sb-ich-text { min-width: 0; }
.sb-ich-text strong { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-ich-text small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-abmelden { color: var(--nav-text); padding: 8px; border-radius: 8px; }
.sb-abmelden:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-schleier { display: none; }

.haupt { flex: 1; margin-left: var(--sb); min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.tb { position: sticky; top: 0; z-index: 30; height: var(--tb); background: var(--flaeche); border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.tb-menue { display: none; background: none; border: 0; padding: 8px; margin-left: -8px; cursor: pointer; color: var(--text); }
.tb-menue .ic { width: 26px; height: 26px; }
.tb-suche { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 11px; padding: 0 14px; height: 42px; }
.tb-suche:focus-within { border-color: var(--marke); background: #fff; box-shadow: 0 0 0 4px var(--marke-h); }
.tb-suche .ic { color: var(--text-3); }
.tb-suche input[type=search], .tb-suche input[type=search]:focus { border: 0; background: none; outline: 0; flex: 1; font: inherit; min-width: 0; height: 40px; padding: 0; box-shadow: none; }
.tb-gruss { font-weight: 600; font-size: 16px; }
.tb-rechts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-knopf, .tb-ich { position: relative; background: none; border: 0; height: 42px; min-width: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--text-2); padding: 0 8px; }
.tb-knopf:hover, .tb-ich:hover { background: var(--flaeche-3); }
.tb-knopf .ic { width: 21px; height: 21px; }
.tb-punkt { position: absolute; top: 9px; right: 9px; transform: translate(50%, -50%); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rot); color: #fff; font: 700 11px/18px var(--schrift); font-style: normal; border: 2px solid #fff; box-sizing: content-box; }
.inhalt { padding: 28px 30px 40px; width: 100%; max-width: 1480px; margin: 0 auto; flex: 1; }
.fuss { padding: 18px 30px; color: var(--text-3); font-size: 12.5px; text-align: center; }

/* ---------- Ausklappmenüs ---------- */
.dd { position: relative; }
.dd-menue { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten-h); padding: 6px; z-index: 50; display: none; }
.dd.offen > .dd-menue { display: block; animation: auf .14s ease-out; }
.dd-rechts { left: auto; right: 0; }
.dd-menue a, .dd-menue button.dd-punkt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.dd-menue a:hover, .dd-menue button.dd-punkt:hover { background: var(--flaeche-3); }
.dd-menue .ic { color: var(--text-3); width: 17px; height: 17px; }
.dd-kopf { padding: 10px 12px 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; }
.dd-kopf strong, .dd-kopf small { display: block; }
.dd-kopf small { color: var(--text-3); font-size: 12.5px; }
@keyframes auf { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.glocke-menue { width: 380px; padding: 0; }
.glocke-kopf { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--linie); }
.glocke-liste { max-height: 420px; overflow-y: auto; }
.glocke-liste a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; border-radius: 0; }
.glocke-liste a:hover { background: var(--flaeche-2); }
.glocke-liste a.neu { background: var(--marke-h); }
.glocke-liste a strong { display: block; font-size: 14px; }
.glocke-liste a span { display: block; font-size: 13px; color: var(--text-2); }
.glocke-liste a small { color: var(--text-3); font-size: 12px; }
.glocke-leer { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
.glocke-fuss { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Kopf einer Seite ---------- */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.seitenkopf h1 { font-size: 26px; font-weight: 750; }
.seitenkopf p { margin: 6px 0 0; color: var(--text-2); }
.seitenkopf-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--text-3); margin-bottom: 8px; font-weight: 500; }
.zurueck .ic { width: 16px; height: 16px; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s; }
.knopf:active { transform: translateY(1px); }
.knopf .ic { width: 17px; height: 17px; }
.knopf-primaer { background: var(--marke); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.12); }
.knopf-primaer:hover { background: var(--marke-d); color: #fff; }
.knopf-zweit { background: #fff; color: var(--text); border-color: var(--linie-2); }
.knopf-zweit:hover { background: var(--flaeche-2); color: var(--text); }
.knopf-gefahr { background: #fff; color: var(--rot); border-color: #f2c4c4; }
.knopf-gefahr:hover { background: #fdf1f1; }
.knopf-gruen { background: var(--gruen); color: #fff; }
.knopf-gruen:hover { background: #0e8a44; color: #fff; }
.knopf-dunkel { background: var(--nav); color: #fff; }
.knopf-dunkel:hover { background: var(--nav-2); color: #fff; }
.knopf-klein { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.knopf-gross { height: 50px; padding: 0 24px; font-size: 16px; }
.knopf-breit { width: 100%; }
.knopf[disabled] { opacity: .5; pointer-events: none; }
.knopf-icon { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: none; border: 0; color: var(--text-3); cursor: pointer; }
.knopf-icon:hover { background: var(--flaeche-3); color: var(--text); }
.knopf-icon-rot:hover { background: #fdeeee; color: var(--rot); }
.link { background: none; border: 0; color: var(--marke-d); font-weight: 600; cursor: pointer; padding: 0; font-size: 13.5px; }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Karten ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); }
.karte + .karte { margin-top: 20px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.karte-kopf h2, .karte-kopf h3 { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.karte-kopf h2 .ic, .karte-kopf h3 .ic { color: var(--marke); }
.karte-kopf a { font-size: 13.5px; font-weight: 600; }
.karte-inhalt { padding: 20px 22px; }
.karte-inhalt-eng { padding: 6px 0; }
.karte-fuss { padding: 14px 22px; border-top: 1px solid var(--linie); background: var(--flaeche-2); border-radius: 0 0 var(--r) var(--r); }
.raster { display: grid; gap: 20px; }
.raster-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spalten { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.spalten-breit { grid-template-columns: minmax(0, 1fr) 400px; }
.stapel > * + * { margin-top: 20px; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { display: flex; align-items: center; gap: 15px; padding: 18px 20px; background: #fff; border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); color: var(--text); text-decoration: none !important; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.kpi:hover { box-shadow: var(--schatten-h); transform: translateY(-1px); border-color: var(--linie-2); }
.kpi-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--marke-h); color: var(--marke); flex: none; }
.kpi-ic .ic { width: 22px; height: 22px; }
.kpi-text strong { display: block; font-size: 25px; font-weight: 780; line-height: 1.1; letter-spacing: -.02em; }
.kpi-text > span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.kpi-lang .kpi-text strong { font-size: 19px; letter-spacing: -.01em; }
.kpi-text small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi-rot .kpi-ic { background: #fdeeee; color: var(--rot); }
.kpi-rot strong { color: var(--rot); }
.kpi-gelb .kpi-ic { background: #fdf4e3; color: var(--gelb); }
.kpi-gruen .kpi-ic { background: #e7f6ee; color: var(--gruen); }
.kpi-blau .kpi-ic { background: #ebf0fe; color: var(--blau); }
.kpi-lila .kpi-ic { background: #f1edfb; color: var(--lila); }

/* ---------- Status-Plaketten ---------- */
.badge { --f: #64748b; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.5; color: var(--f); background: color-mix(in srgb, var(--f) 11%, #fff); border: 1px solid color-mix(in srgb, var(--f) 22%, #fff); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--f); }
.badge .ic { width: 13px; height: 13px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 7px; background: var(--flaeche-3); color: var(--text-2); font-size: 12.5px; font-weight: 600; }

/* ---------- Tabellen ---------- */
.tabelle-huelle { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 14.2px; }
.tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 12px 16px; background: var(--flaeche-2); border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tabelle td { padding: 13px 16px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle tbody tr { transition: background .1s; }
.tabelle tbody tr:hover { background: #fafcfd; }
.tabelle tr[data-href] { cursor: pointer; }
.tabelle .haupttext { font-weight: 650; color: var(--text); display: block; }
.tabelle .nebentext { font-size: 12.8px; color: var(--text-3); display: block; margin-top: 1px; }
.tabelle td.aktionen { text-align: right; white-space: nowrap; }
.zelle-mit-bild { display: flex; align-items: center; gap: 12px; }
.mini-bild { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--flaeche-3); display: grid; place-items: center; flex: none; color: var(--text-3); overflow: hidden; }
.mini-bild img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Filter ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.filter .suchfeld { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: 0 12px; height: 40px; }
.filter .suchfeld input { border: 0; background: none; outline: 0; flex: 1; font: inherit; min-width: 0; }
.filter .suchfeld .ic { color: var(--text-3); }
.filter select { height: 40px; border: 1px solid var(--linie); border-radius: 10px; padding: 0 32px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8a9d' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; color: var(--text); max-width: 100%; }
.reiter { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--linie); overflow-x: auto; scrollbar-width: none; }
.reiter a, .reiter button { padding: 14px 12px 12px; font-weight: 600; font-size: 14px; color: var(--text-3); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none !important; display: inline-flex; gap: 7px; align-items: center; }
.reiter a:hover, .reiter button:hover { color: var(--text); }
.reiter .aktiv { color: var(--marke-d); border-bottom-color: var(--marke); }
.reiter .zahl { background: var(--flaeche-3); color: var(--text-2); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.reiter .aktiv .zahl { background: var(--marke-h); color: var(--marke-d); }
.seiten { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 18px; font-size: 13.5px; color: var(--text-3); }
.seiten span { margin-right: auto; }
.seiten a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 9px; color: var(--text); }
.seiten em { font-style: normal; }

/* ---------- Formulare ---------- */
.feld { margin-bottom: 16px; }
.feld > label, .feld-titel { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--text); }
.feld small.hilfe { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 5px; }
.pflicht::after { content: " *"; color: var(--rot); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=search], input[type=url], select, textarea {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--linie-2); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--text); outline: 0; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8a9d' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; }
input:focus, select:focus, textarea:focus { border-color: var(--marke); box-shadow: 0 0 0 4px var(--marke-h); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--marke); vertical-align: middle; }
.feldreihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.feldreihe-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feldreihe-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.schalter { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; cursor: pointer; }
.schalter input { margin-top: 2px; }
.schalter strong { display: block; font-size: 14.5px; }
.schalter small { display: block; color: var(--text-3); font-size: 13px; }
.formfuss { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.abschnitt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin: 8px 0 14px; display: flex; align-items: center; gap: 10px; }
.abschnitt::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

/* Upload */
.dropzone { position: relative; border: 1.5px dashed var(--linie-2); border-radius: 12px; background: var(--flaeche-2); transition: border-color .15s, background .15s; }
.dropzone.ueber { border-color: var(--marke); background: var(--marke-h); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone-text { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; text-align: center; pointer-events: none; }
.dropzone-text .ic { width: 28px; height: 28px; color: var(--marke); margin-bottom: 4px; }
.dropzone-text strong { font-size: 14.5px; }
.dropzone-text u { color: var(--marke-d); }
.dropzone-text small { color: var(--text-3); font-size: 12.5px; }
.dropzone-liste { list-style: none; margin: 0; padding: 0 12px; position: relative; z-index: 2; }
.dropzone-liste:not(:empty) { padding: 0 12px 12px; }
.dropzone-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--linie); border-radius: 9px; margin-top: 6px; font-size: 13.5px; }
.dropzone-liste li .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-liste li img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.dropzone-liste li select { height: 32px; font-size: 13px; width: auto; max-width: 190px; padding: 0 28px 0 8px; }
.dropzone-liste li button { background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }

/* ---------- Dateien ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.galerie figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--flaeche-3); border: 1px solid var(--linie); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie form { position: absolute; top: 5px; right: 5px; }
.galerie form .knopf-icon { background: rgba(255,255,255,.92); width: 30px; height: 30px; }
.dateiliste { list-style: none; margin: 0; padding: 0; }
.dateiliste li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.dateiliste li:last-child { border-bottom: 0; }
.dateiliste-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--marke-h); color: var(--marke); flex: none; }
.dateiliste-name { font-weight: 600; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.dateiliste-info { font-size: 12.5px; color: var(--text-3); flex-basis: 100%; margin: -6px 0 0 50px; order: 3; }

/* ---------- Leerzustand, Hinweise ---------- */
.leer { text-align: center; padding: 38px 20px; color: var(--text-2); }
.leer > .ic { width: 42px; height: 42px; color: var(--text-3); opacity: .55; margin-bottom: 10px; }
.leer strong { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.leer p { color: var(--text-3); font-size: 14px; max-width: 420px; margin: 0 auto 14px; }
.leer-gross { padding: 80px 20px; }
.leer-gross h2 { font-size: 22px; margin-bottom: 8px; }
.flash { display: flex; align-items: flex-start; gap: 11px; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid; animation: auf .2s ease-out; }
.flash .ic { margin-top: 1px; }
.flash span { flex: 1; }
.flash-ok { background: #ecf8f1; border-color: #bfe6cf; color: #0b6b37; }
.flash-fehler { background: #fdf0f0; border-color: #f3c7c7; color: #a42727; }
.flash-info { background: #edf3fe; border-color: #c9d8fb; color: #2449a8; }
.flash-zu { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.hinweis { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--flaeche-2); border: 1px solid var(--linie); font-size: 14px; color: var(--text-2); }
.hinweis .ic { color: var(--marke); margin-top: 2px; }
.hinweis-gelb { background: #fdf7ea; border-color: #f2dfb3; color: #7a5300; }
.hinweis-gelb .ic { color: var(--gelb); }
.hinweis-rot { background: #fdf0f0; border-color: #f3c7c7; color: #8f2222; }
.hinweis-rot .ic { color: var(--rot); }

/* ---------- Avatare, Listen ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #22c3b4, #0b7a70); color: #fff; font-weight: 700; font-size: 13px; flex: none; letter-spacing: .02em; }
html[data-bereich="techniker"] .avatar { background: linear-gradient(135deg, #4f8df7, #1d4fd8); }
.avatar-klein { width: 32px; height: 32px; font-size: 12px; }
.eintraege { list-style: none; margin: 0; padding: 0; }
.eintraege > li { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--linie); }
.eintraege > li:last-child { border-bottom: 0; }
.eintraege a.eintrag-link { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.eintrag-text { flex: 1; min-width: 0; }
.eintrag-text strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eintrag-text span { display: block; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datum-block { width: 52px; flex: none; text-align: center; border-radius: 11px; background: var(--marke-h); color: var(--marke-d); padding: 6px 0; line-height: 1.1; }
.datum-block b { display: block; font-size: 19px; }
.datum-block small { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.datum-block.rot { background: #fdeeee; color: var(--rot); }
.datum-block.grau { background: var(--flaeche-3); color: var(--text-2); }

/* ---------- Detailseiten ---------- */
.detailkopf { display: flex; gap: 22px; padding: 22px; align-items: flex-start; flex-wrap: wrap; }
.detailkopf-bild { width: 132px; height: 132px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--flaeche-3), #e3eaf1); display: grid; place-items: center; flex: none; border: 1px solid var(--linie); color: var(--text-3); }
.detailkopf-bild img { width: 100%; height: 100%; object-fit: cover; }
.detailkopf-bild .ic { width: 46px; height: 46px; opacity: .5; }
.detailkopf-text { flex: 1; min-width: 240px; }
.detailkopf-text h1 { font-size: 24px; font-weight: 760; }
.detailkopf-text .unter { color: var(--text-2); margin: 4px 0 12px; }
.detailkopf-plaketten { display: flex; gap: 8px; flex-wrap: wrap; }
.fakten { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; }
.fakten > div { padding: 13px 22px; border-top: 1px solid var(--linie); }
.fakten dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; margin-bottom: 3px; }
.fakten dd { margin: 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.infoliste { margin: 0; }
.infoliste > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.infoliste > div:last-child { border-bottom: 0; }
.infoliste dt { color: var(--text-3); }
.infoliste dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.textblock { white-space: pre-wrap; font-size: 14.5px; color: var(--text); background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px; }

/* Zeitleiste */
.zeitleiste { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.zeitleiste li { position: relative; padding: 0 0 22px 34px; }
.zeitleiste li::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: -2px; width: 2px; background: var(--linie); }
.zeitleiste li:last-child::before { display: none; }
.zeitleiste .punkt { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--f, var(--marke)); color: #fff; box-shadow: 0 0 0 4px #fff; }
.zeitleiste .punkt .ic { width: 12px; height: 12px; stroke-width: 3; }
.zeitleiste strong { display: block; font-size: 14.5px; }
.zeitleiste span { display: block; font-size: 13px; color: var(--text-3); }
.zeitleiste p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }

/* Fortschritt eines Auftrags */
.schritte { display: flex; gap: 0; padding: 18px 22px; overflow-x: auto; }
.schritt { flex: 1; min-width: 110px; position: relative; text-align: center; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.schritt::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--linie); }
.schritt:first-child::before { display: none; }
.schritt b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: #fff; border: 2px solid var(--linie-2); position: relative; z-index: 1; color: var(--text-3); font-size: 12px; }
.schritt.fertig b { background: var(--marke); border-color: var(--marke); color: #fff; }
.schritt.fertig::before, .schritt.aktiv::before { background: var(--marke); }
.schritt.aktiv b { border-color: var(--marke); color: var(--marke); box-shadow: 0 0 0 5px var(--marke-h); }
.schritt.aktiv { color: var(--text); }
.schritt b .ic { width: 14px; height: 14px; stroke-width: 3; }

/* Geräte-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; padding: 18px; }
.kachel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; color: var(--text); text-decoration: none !important; transition: box-shadow .15s, transform .15s; box-shadow: var(--schatten); }
.kachel:hover { box-shadow: var(--schatten-h); transform: translateY(-2px); }
.kachel-bild { height: 150px; background: linear-gradient(135deg, #eef3f7, #e1e9f0); display: grid; place-items: center; color: var(--text-3); position: relative; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-bild .ic { width: 44px; height: 44px; opacity: .4; }
.kachel-bild .badge { position: absolute; top: 10px; left: 10px; background: #fff; }
.kachel-text { padding: 15px 17px 17px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kachel-text strong { font-size: 16px; }
.kachel-text span { font-size: 13px; color: var(--text-3); }
.kachel-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; gap: 8px; flex-wrap: wrap; }

/* Prüfbericht */
.pruefliste { width: 100%; border-collapse: collapse; }
.pruefliste td { padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: middle; font-size: 14px; }
.pruefliste td:first-child { width: 34%; font-weight: 600; }
.pruefliste td:last-child input { min-width: 110px; }
.ergebnis-wahl { display: inline-flex; border: 1px solid var(--linie-2); border-radius: 10px; overflow: hidden; }
.ergebnis-wahl label { position: relative; cursor: pointer; }
.ergebnis-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.ergebnis-wahl span { display: block; white-space: nowrap; padding: 7px 10px; font-size: 13px; font-weight: 650; color: var(--text-3); border-right: 1px solid var(--linie-2); user-select: none; }
.ergebnis-wahl label:last-child span { border-right: 0; }
.ergebnis-wahl input:checked + span.ok { background: #e7f6ee; color: var(--gruen); }
.ergebnis-wahl input:checked + span.mangel { background: #fdeeee; color: var(--rot); }
.ergebnis-wahl input:checked + span.na { background: var(--flaeche-3); color: var(--text-2); }
.ergebnis-wahl input:focus-visible + span { outline: 2px solid var(--marke); }
.pruefliste input[type=text] { height: 36px; font-size: 14px; }
.zeilen-editor .zeile { display: grid; grid-template-columns: 140px 1fr 80px 1fr 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.zeilen-editor-mangel .zeile { grid-template-columns: 150px 1fr 1fr 40px; }
.unterschrift-feld { border: 1.5px dashed var(--linie-2); border-radius: 12px; background: #fff; position: relative; touch-action: none; }
.unterschrift-feld canvas { width: 100%; height: 170px; display: block; cursor: crosshair; }
.unterschrift-feld .unterschrift-linie { position: absolute; left: 20px; right: 20px; bottom: 36px; border-bottom: 1px solid var(--linie-2); pointer-events: none; }
.unterschrift-feld button { position: absolute; top: 8px; right: 8px; }
.ergebnis-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ergebnis-karten label { border: 1.5px solid var(--linie-2); border-radius: 12px; padding: 13px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.ergebnis-karten label:has(input:checked) { border-color: var(--f); background: color-mix(in srgb, var(--f) 8%, #fff); }
.ergebnis-karten input { margin-top: 2px; accent-color: var(--f); }

/* ---------- Kalender ---------- */
.kal-kopf { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.kal-kopf h2 { font-size: 19px; min-width: 190px; }
.kal-kopf .knopf-icon { border: 1px solid var(--linie); }
.kal-ansicht { margin-left: auto; display: inline-flex; background: var(--flaeche-3); border-radius: 10px; padding: 3px; }
.kal-ansicht button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--text-2); }
.kal-ansicht button.aktiv { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kal-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.kal-wt { padding: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); text-align: center; border-bottom: 1px solid var(--linie); background: var(--flaeche-2); }
.kal-tag { min-height: 118px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 6px; position: relative; transition: background .1s; }
.kal-tag:nth-child(7n) { border-right: 0; }
.kal-tag.fremd { background: #fafbfc; }
.kal-tag.fremd .kal-nr { color: #b8c3cf; }
.kal-tag.heute .kal-nr { background: var(--marke); color: #fff; }
.kal-tag.ziel { background: var(--marke-h); }
.kal-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 650; color: var(--text-2); margin-bottom: 3px; }
.kal-ev { display: block; font-size: 12px; line-height: 1.3; padding: 4px 7px; border-radius: 7px; margin-bottom: 3px; color: var(--text); background: color-mix(in srgb, var(--f) 13%, #fff); border-left: 3px solid var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; cursor: pointer; }
.kal-ev:hover { background: color-mix(in srgb, var(--f) 22%, #fff); }
.kal-ev b { font-weight: 700; }
.kal-ev.faellig { border-left-style: dashed; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--f) 10%, #fff) 0 6px, #fff 6px 10px); }
.kal-ev.frei { border-left-color: #94a3b8; background: #f4f6f9; color: var(--text-2); }
.kal-ev[draggable=true] { cursor: grab; }
.kal-mehr { font-size: 12px; color: var(--marke-d); font-weight: 600; padding: 0 6px; cursor: pointer; background: none; border: 0; }
.kal-liste { padding: 6px 0; }
.kal-liste-tag { padding: 12px 22px 4px; font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.kal-liste-tag.heute { color: var(--marke-d); }
.kal-liste a { display: flex; gap: 14px; align-items: center; padding: 11px 22px; color: var(--text); text-decoration: none; border-left: 3px solid transparent; }
.kal-liste a:hover { background: var(--flaeche-2); border-left-color: var(--f); }
.kal-liste .zeit { width: 54px; font-weight: 700; font-size: 14px; color: var(--text-2); flex: none; }
.kal-liste .farbpunkt { width: 10px; height: 10px; border-radius: 50%; background: var(--f); flex: none; }
.kal-legende { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--linie); font-size: 12.5px; color: var(--text-2); }
.kal-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kal-legende i { width: 10px; height: 10px; border-radius: 3px; background: var(--f); }

/* ---------- Nachrichten ---------- */
.chat { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--tb) - 120px); min-height: 520px; overflow: hidden; }
.chat-liste { border-right: 1px solid var(--linie); overflow-y: auto; display: flex; flex-direction: column; }
.chat-liste-kopf { padding: 14px; border-bottom: 1px solid var(--linie); display: flex; gap: 8px; position: sticky; top: 0; background: #fff; z-index: 1; }
.chat-liste a { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.chat-liste a:hover { background: var(--flaeche-2); }
.chat-liste a.aktiv { background: var(--marke-h); }
.chat-liste a.ungelesen strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--marke); margin-left: 7px; vertical-align: middle; }
.chat-liste .eintrag-text small { color: var(--text-3); font-size: 12px; float: right; margin-left: 6px; }
.chat-fenster { display: flex; flex-direction: column; min-width: 0; }
.chat-kopf { padding: 14px 20px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 12px; }
.chat-kopf strong { display: block; }
.chat-kopf span { font-size: 13px; color: var(--text-3); }
.chat-verlauf { flex: 1; overflow-y: auto; padding: 22px; background: var(--flaeche-2); display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 72%; display: flex; gap: 10px; align-items: flex-end; }
.msg .avatar { width: 30px; height: 30px; font-size: 11px; }
.msg-blase { background: #fff; border: 1px solid var(--linie); border-radius: 16px 16px 16px 5px; padding: 10px 14px; font-size: 14.5px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.msg-blase .msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-meta { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.msg.ich { align-self: flex-end; flex-direction: row-reverse; }
.msg.ich .msg-blase { background: var(--marke); color: #fff; border-color: var(--marke); border-radius: 16px 16px 5px 16px; }
.msg.ich .msg-meta { color: rgba(255,255,255,.75); text-align: right; }
.msg.ich .msg-blase a { color: #fff; }
.msg-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-anhaenge img { width: 140px; height: 105px; object-fit: cover; border-radius: 10px; display: block; }
.msg-anhaenge .anhang { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 9px; background: rgba(15,31,51,.06); font-size: 13px; font-weight: 600; color: inherit; }
.msg.ich .msg-anhaenge .anhang { background: rgba(255,255,255,.18); }
.chat-eingabe { border-top: 1px solid var(--linie); padding: 12px 16px; background: #fff; }
.chat-eingabe form { display: flex; gap: 10px; align-items: flex-end; }
.chat-eingabe textarea { min-height: 46px; max-height: 180px; height: 46px; resize: none; padding-top: 12px; }
.chat-eingabe .anhang-knopf { position: relative; overflow: hidden; flex: none; width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--linie-2); display: grid; place-items: center; color: var(--text-2); cursor: pointer; }
.chat-eingabe .anhang-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-eingabe .knopf { height: 46px; }
.chat-anhaenge { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat-anhaenge span { background: var(--flaeche-3); padding: 4px 10px; border-radius: 8px; font-size: 12.5px; }
.chat-leer { flex: 1; display: grid; place-items: center; color: var(--text-3); }
.chat-bezug { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; background: var(--flaeche-3); padding: 3px 9px; border-radius: 7px; color: var(--text-2); margin-left: 6px; }

/* ---------- Modal, Lightbox ---------- */
.modal { position: fixed; inset: 0; background: rgba(15, 31, 51, .55); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal.offen { display: flex; animation: einblenden .15s; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: auf .18s ease-out; }
.modal-box.breit { max-width: 760px; }
.modal-kopf { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--linie); }
.modal-kopf h3 { font-size: 17px; }
.modal-inhalt { padding: 20px 22px; }
.modal-fuss { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--linie); background: var(--flaeche-2); border-radius: 0 0 16px 16px; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 15, 26, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox-zu { position: absolute; top: 14px; right: 18px; font-size: 36px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- Diagramm ---------- */
.balken { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 10px 4px 0; }
.balken div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.balken i { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--marke-2), var(--marke)); min-height: 3px; display: block; }
.balken i.gering { background: var(--linie-2); }
.balken small { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.balken b { font-size: 12px; }
.fortschritt { height: 8px; border-radius: 4px; background: var(--flaeche-3); overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--marke); border-radius: 4px; }

/* ---------- Anmeldung ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-marke { background: radial-gradient(circle at 20% 15%, rgba(20,184,166,.28), transparent 45%), radial-gradient(circle at 85% 90%, rgba(59,111,245,.22), transparent 45%), var(--nav); color: #cbd6e2; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
html[data-bereich="techniker"] .login-marke { background: radial-gradient(circle at 20% 15%, rgba(59,130,246,.3), transparent 45%), radial-gradient(circle at 85% 90%, rgba(20,184,166,.18), transparent 45%), var(--nav); }
.login-marke::after { content: ""; position: absolute; right: -120px; top: 30%; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015); }
.login-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 750; font-size: 19px; text-decoration: none !important; }
.login-marke h2 { color: #fff; font-size: 34px; line-height: 1.2; max-width: 460px; margin: 60px 0 26px; font-weight: 750; letter-spacing: -.02em; }
.login-marke ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 440px; }
.login-marke li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.login-marke li .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--marke-2); }
.login-marke-fuss { color: #6c7f96; position: relative; z-index: 1; }
.login-marke-innen { position: relative; z-index: 1; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.login-box { width: 100%; max-width: 410px; }
.login-box h1 { font-size: 28px; font-weight: 780; margin-bottom: 6px; letter-spacing: -.02em; }
.login-box > p { color: var(--text-2); margin-bottom: 26px; }
.login-bereich { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--marke-h); color: var(--marke-d); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.login-box .knopf { width: 100%; height: 50px; font-size: 16px; }
.login-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.login-wechsel { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 13.5px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; }
.passwort-feld { position: relative; }
.passwort-feld button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* Portal-Auswahl */
.portal { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: radial-gradient(circle at 15% 10%, rgba(20,184,166,.18), transparent 40%), radial-gradient(circle at 90% 90%, rgba(59,111,245,.14), transparent 40%), var(--nav); }
.portal-box { width: 100%; max-width: 980px; text-align: center; color: #cbd6e2; }
.portal-box h1 { color: #fff; font-size: 34px; margin: 22px 0 8px; }
.portal-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; text-align: left; }
.portal-karte { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px; color: #fff; text-decoration: none !important; transition: background .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; gap: 10px; }
.portal-karte:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); border-color: rgba(255,255,255,.2); }
.portal-karte .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(20,184,166,.18); color: #5eead4; }
.portal-karte strong { font-size: 19px; }
.portal-karte span { color: #aab8c9; font-size: 14.5px; }
.portal-karte em { font-style: normal; color: #5eead4; font-weight: 650; font-size: 14px; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Druck ---------- */
.nur-druck { display: none; }
@media print {
  body { background: #fff; }
  .sb, .tb, .fuss, .seitenkopf-aktionen, .nicht-drucken, .flash, .zurueck, .reiter { display: none !important; }
  .haupt { margin: 0; }
  .inhalt { padding: 0; max-width: none; }
  .karte { box-shadow: none; break-inside: avoid; }
  .nur-druck { display: block; }
  .spalten { grid-template-columns: 1fr; }
  a { color: inherit; }
}

/* ---------- Anpassung an Tablet und Handy ---------- */
@media (max-width: 1200px) {
  .raster-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spalten, .spalten-breit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .sb { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; width: 290px; }
  body.sb-offen .sb { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.35); }
  body.sb-offen .sb-schleier { display: block; position: fixed; inset: 0; background: rgba(15,31,51,.5); z-index: 35; }
  .sb-zu { display: block; }
  .haupt { margin-left: 0; }
  .tb-menue { display: inline-grid; place-items: center; }
  .raster-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { grid-template-columns: 280px minmax(0, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login-marke { display: none; }
  .portal-karten { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .tb { padding: 0 12px; gap: 6px; }
  .tb-suche { height: 40px; }
  .tb-suche input::placeholder { color: transparent; }
  .tb-neu span, .nur-gross { display: none; }
  .tb-neu { width: 42px; padding: 0; }
  .tb-gruss { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .inhalt { padding: 18px 14px 30px; }
  .seitenkopf h1 { font-size: 22px; }
  .seitenkopf-aktionen { width: 100%; }
  .seitenkopf-aktionen .knopf { flex: 1; }
  .raster-2, .raster-3, .raster-4, .feldreihe, .feldreihe-3, .feldreihe-4, .ergebnis-karten { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; gap: 11px; flex-direction: column; align-items: flex-start; }
  .kpi-ic { width: 38px; height: 38px; }
  .kpi-text strong { font-size: 22px; }
  .karte-kopf, .karte-inhalt { padding-left: 16px; padding-right: 16px; }
  .eintraege > li { padding: 13px 16px; }
  .glocke-menue { position: fixed; left: 10px; right: 10px; top: calc(var(--tb) + 4px); width: auto; }
  .dd-menue.dd-rechts { max-width: calc(100vw - 20px); }
  /* Tabellen werden zu Karten */
  .tabelle.karten thead { display: none; }
  .tabelle.karten, .tabelle.karten tbody, .tabelle.karten tr, .tabelle.karten td { display: block; width: 100%; }
  .tabelle.karten tr { padding: 12px 16px; border-bottom: 1px solid var(--linie); }
  .tabelle.karten td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tabelle.karten td[data-l]::before { content: attr(data-l); color: var(--text-3); font-size: 12.5px; text-align: left; flex: none; }
  .tabelle.karten td.haupt-zelle { display: block; text-align: left; padding-bottom: 6px; }
  .tabelle.karten td.aktionen { justify-content: flex-end; padding-top: 6px; }
  .filter { padding: 12px; }
  .filter select { flex: 1 1 45%; }
  .kal-tag { min-height: 74px; padding: 3px; }
  .kal-ev { font-size: 10.5px; padding: 2px 4px; }
  .kal-ev b { display: none; }
  .kal-wt { padding: 8px 2px; font-size: 10.5px; }
  .kal-kopf h2 { min-width: 0; font-size: 17px; flex: 1; }
  .kal-ansicht { margin-left: 0; width: 100%; }
  .kal-ansicht button { flex: 1; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - var(--tb) - 90px); }
  .chat.mit-auswahl .chat-liste { display: none; }
  .chat:not(.mit-auswahl) .chat-fenster { display: none; }
  .msg { max-width: 90%; }
  .detailkopf { padding: 16px; gap: 14px; }
  .detailkopf-bild { width: 88px; height: 88px; }
  .detailkopf-text h1 { font-size: 20px; }
  .fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten > div { padding: 11px 16px; }
  .zeilen-editor .zeile, .zeilen-editor-mangel .zeile { grid-template-columns: 1fr 1fr; }
  .pruefliste tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .pruefliste td { display: block; width: auto !important; border: 0; padding: 0; }
  .pruefliste td:nth-child(1), .pruefliste td:nth-child(2) { grid-column: 1 / -1; }
  .pruefliste td:last-child input { min-width: 0; }
  .schritt { min-width: 70px; font-size: 11px; }
  .schritte { padding: 14px 10px; }
  .kacheln { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }
  .knopf { height: 44px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .portal-box h1 { font-size: 26px; }
  .login-form { padding: 28px 18px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
