/* Gestaltung angelehnt an den Adcom Events Hub (Dunkelblau, Koralle, helle
   Karten). Alle Werte als Variablen an dieser Stelle. */
:root {
  --navy: #041E42; --navy-80: #1B3458; --navy-60: #3D5273; --navy-soft: #EEF1F7;
  --koralle: #FF4465; --koralle-dunkel: #E02C4E; --koralle-soft: #FFE9EE;
  --rivella: #D0202E; --rivella-soft: #FCE8EA;
  --bg: #F5F6FA; --karte: #FFFFFF; --linie: #E7EAF2; --linie-soft: #F0F2F8;
  --text: #0E2240; --muted: #5F6E87; --faint: #8E9AAE;
  --gruen: #12865F; --gruen-soft: #E3F6EE;
  --gelb: #B45F06; --gelb-soft: #FDF0DC;
  --blau: #2563EB; --blau-soft: #E7EEFD;
  --markeb: #0E7490; --markeb-soft: #E0F2F6;
  --krit: #C42A48; --krit-soft: #FDE8EC;
  --schatten: 0 1px 2px rgba(4,30,66,.05), 0 4px 16px rgba(4,30,66,.05);
  --schatten-gross: 0 12px 40px rgba(4,30,66,.18);
  --radius: 16px; --radius-klein: 10px;
  --t: 160ms ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--koralle); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--koralle-soft); }
img { display: block; max-width: 100%; }
.zahl { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.klein { font-size: 12.5px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 28px 32px 64px; max-width: 1360px; width: 100%; margin: 0 auto; }
.view { animation: rein .22s ease; }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 248px; flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 22px 14px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand { padding: 0 10px 22px; }
.logos { display: flex; align-items: baseline; gap: 9px; }
.wort { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.x { color: var(--koralle); font-weight: 800; font-size: 13px; }
.kampagne { font-weight: 800; font-size: 18px; color: #fff; padding: 1px 9px 2px; border-radius: 7px; background: var(--rivella); letter-spacing: .01em; }
.sub { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8FA0BC; font-weight: 600; margin-top: 8px; }
.nav-gruppe { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #8193B2; font-weight: 700; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; border-radius: 10px;
  color: #C3CDDF; font-weight: 500; font-size: 13.5px; margin-bottom: 2px; position: relative;
  transition: background var(--t), color var(--t); width: 100%; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.aktiv { background: var(--navy-80); color: #fff; }
.nav-item.aktiv::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--koralle); }
.nav-item .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; }
.nav-item .badge.k { background: var(--koralle); }
.sidebar-fuss { margin-top: auto; padding-top: 18px; }
.demo-karte { border: 1px dashed rgba(255,255,255,.22); border-radius: 12px; padding: 12px 13px; font-size: 12px; color: #B4C0D6; display: flex; flex-direction: column; gap: 4px; }
.demo-karte strong { color: #fff; font-size: 12px; }
.link-hell { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 600; text-align: left; margin-top: 4px; }
.link-hell:hover { color: var(--koralle); }
.ich { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.ich .name { font-weight: 600; font-size: 13px; }
.ich .rolle { font-size: 11.5px; color: #8FA0BC; }
.schleier { display: none; }

/* ---------- Topbar ---------- */
.topbar {
  height: 64px; background: var(--karte); border-bottom: 1px solid var(--linie);
  display: flex; align-items: center; gap: 16px; padding: 0 32px; position: sticky; top: 0; z-index: 30;
}
.menu-knopf { display: none; width: 38px; height: 38px; border-radius: 10px; align-items: center; justify-content: center; }
.menu-knopf:hover { background: var(--navy-soft); }
.menu-knopf svg { width: 20px; height: 20px; }
.kampagne-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: var(--navy-soft); font-weight: 600; font-size: 13px; white-space: nowrap; }
.kampagne-chip .punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--rivella); }
.topbar-rechts { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.etikett-demo { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--linie); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.rollen { display: flex; background: var(--navy-soft); border-radius: 10px; padding: 3px; }
.rollen button { padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; color: var(--navy-60); transition: background var(--t), color var(--t); white-space: nowrap; }
.rollen button:hover { color: var(--navy); }
.rollen button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: var(--schatten); }

/* ---------- Bausteine ---------- */
.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kopf h1 { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.kopf p { color: var(--muted); margin-top: 4px; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.zurueck:hover { color: var(--koralle); }
.zurueck svg { width: 16px; height: 16px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); padding: 22px; }
.karte h2 { font-size: 15.5px; font-weight: 700; }
.karte .unter { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.karte-kopf { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.raster { display: grid; gap: 20px; }
.r2 { grid-template-columns: 1.6fr 1fr; }
.r2g { grid-template-columns: 1fr 1fr; }
.r3 { grid-template-columns: repeat(3, 1fr); }
.r4 { grid-template-columns: repeat(4, 1fr); }
.abstand { margin-top: 20px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 650; font-size: 13.5px;
  transition: background var(--t), box-shadow var(--t), transform var(--t), color var(--t); white-space: nowrap;
}
.knopf svg { width: 17px; height: 17px; }
.knopf.haupt { background: var(--koralle); color: #fff; box-shadow: 0 4px 14px rgba(255,68,101,.32); }
.knopf.haupt:hover { background: var(--koralle-dunkel); }
.knopf.haupt:active { transform: translateY(1px); }
.knopf.zweit { background: var(--karte); border: 1px solid var(--linie); color: var(--navy); }
.knopf.zweit:hover { border-color: var(--navy-60); }
.knopf.navy { background: var(--navy); color: #fff; }
.knopf.navy:hover { background: var(--navy-80); }
.knopf.klein { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.knopf.breit { width: 100%; padding: 14px 16px; font-size: 15px; border-radius: 12px; }
.knopf[disabled] { opacity: .45; pointer-events: none; }
.textlink { white-space: nowrap; color: var(--koralle-dunkel); font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.aktiv { background: var(--gruen-soft); color: var(--gruen); }
.status.aktiv::before { animation: puls 1.6s infinite; }
.status.geplant { background: var(--blau-soft); color: var(--blau); }
.status.unbesetzt { background: var(--gelb-soft); color: var(--gelb); }
.status.abgeschlossen { background: var(--navy-soft); color: var(--navy-60); }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(18,134,95,.5); } 70% { box-shadow: 0 0 0 6px rgba(18,134,95,0); } 100% { box-shadow: 0 0 0 0 rgba(18,134,95,0); } }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11.5px; color: #fff; background: var(--navy-80); flex-shrink: 0; border: 2px solid var(--karte); }
.avatar.gross { width: 44px; height: 44px; font-size: 14px; }
.avatare { display: inline-flex; }
.avatare .avatar + .avatar { margin-left: -8px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .n { font-weight: 600; }
.person .s { font-size: 12px; color: var(--muted); }

.sterne { display: inline-flex; gap: 2px; color: #E8A317; }
.sterne svg { width: 14px; height: 14px; display: block; }
.sterne .aus { color: #D5DAE3; }

/* KPI */
.kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 148px; }
.kpi .titel { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-60); font-size: 13px; }
.kpi .ikon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--koralle-soft); color: var(--koralle-dunkel); }
.kpi .ikon svg { width: 16px; height: 16px; }
.kpi .wert { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.kpi .wert small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.kpi .hinweis { font-size: 12.5px; color: var(--muted); }
.kpi .delta { color: var(--gruen); font-weight: 650; }
.kpi.hervor { transition: box-shadow .6s, border-color .6s; }
.kpi.blitz { border-color: var(--koralle); box-shadow: 0 0 0 4px var(--koralle-soft); }

/* Hero */
.hero { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-80) 100%); color: #fff; border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; gap: 24px; justify-content: space-between; margin-bottom: 22px; position: relative; overflow: hidden; }
.hero h1 { font-size: 21px; font-weight: 750; }
.hero p { color: #C9D3E6; margin-top: 6px; max-width: 640px; }
.hero .live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #7EE2B8; background: rgba(18,134,95,.22); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.hero .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7EE2B8; animation: puls 1.6s infinite; }
.hero .deko { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,68,101,.12); pointer-events: none; }

/* Filter */
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.segment { display: flex; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 3px; }
.segment button { padding: 6px 12px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); transition: background var(--t), color var(--t); }
.segment button:hover { color: var(--navy); }
.segment button.an { background: var(--navy); color: #fff; }
.auswahl { appearance: none; background: var(--karte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6E87' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; border: 1px solid var(--linie); border-radius: 10px; padding: 8px 34px 8px 12px; font-weight: 600; font-size: 12.5px; color: var(--navy); }
.auswahl:hover { border-color: var(--navy-60); }

/* Fortschritt */
.balken { height: 12px; border-radius: 99px; background: var(--navy-soft); overflow: hidden; }
.balken > span { display: block; height: 100%; border-radius: 99px; background: var(--koralle); transition: width .6s ease; }
.balken.duenn { height: 8px; }
.balken.navy > span { background: var(--navy); }
.fortschritt-zahlen { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fortschritt-zahlen .gross { font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.wochen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 170px; margin-top: 26px; padding-bottom: 2px; border-bottom: 1px solid var(--linie); position: relative; }
.woche { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.woche .saeule { width: 100%; max-width: 54px; border-radius: 4px 4px 0 0; background: var(--navy); transition: height .6s ease, background var(--t); min-height: 2px; }
.woche.jetzt .saeule { background: var(--koralle); }
.woche.zukunft .saeule { background: repeating-linear-gradient(135deg, var(--linie) 0 4px, transparent 4px 8px); border: 1px dashed #C5CDD9; border-bottom: 0; }
.woche:hover .saeule { filter: brightness(1.15); }
.woche .wert { font-size: 11.5px; font-weight: 700; margin-bottom: 4px; color: var(--navy-60); }
.wochen-label { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; text-align: center; font-size: 11.5px; color: var(--muted); }
.tipp { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--t); z-index: 5; box-shadow: var(--schatten-gross); }
.woche:hover .tipp, .woche:focus .tipp { opacity: 1; }

/* Listen */
.zeilen > * + * { border-top: 1px solid var(--linie-soft); }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-radius: 10px; transition: background var(--t); }
a.zeile:hover, button.zeile:hover { background: var(--bg); }
button.zeile { width: 100%; text-align: left; }
.zeile .rechts { margin-left: auto; text-align: right; }
.zeile .haupt { font-weight: 650; }
.zeile .neben { color: var(--muted); font-size: 12.5px; }

/* Eindrücke / Galerie */
.eindruecke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.foto { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-soft); display: block; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.foto:hover img { transform: scale(1.04); }
.foto .unterschrift { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(4,30,66,.78)); color: #fff; font-size: 11.5px; font-weight: 600; }
.foto .neu { position: absolute; top: 8px; left: 8px; background: var(--koralle); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.zitat { padding: 14px 16px; border-radius: 12px; background: var(--bg); position: relative; }
.zitat p { font-size: 14px; font-weight: 500; }
.zitat p::before { content: "«"; color: var(--koralle); font-weight: 800; margin-right: 2px; }
.zitat p::after { content: "»"; color: var(--koralle); font-weight: 800; margin-left: 2px; }
.zitat .quelle { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.stimmung { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.stimmung.positiv { background: var(--gruen-soft); color: var(--gruen); }
.stimmung.neutral { background: var(--navy-soft); color: var(--navy-60); }
.stimmung.kritisch { background: var(--gelb-soft); color: var(--gelb); }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 0 12px 10px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--linie-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--t); }
tbody tr.klickbar { cursor: pointer; }
tbody tr.klickbar:hover { background: var(--bg); }
tr.neu-zeile { animation: markiert 2.4s ease; }
@keyframes markiert { 0%, 40% { background: var(--koralle-soft); } 100% { background: transparent; } }
td.r, th.r { text-align: right; }
td.zahl { white-space: nowrap; }
.tabelle-huelle table { min-width: 640px; }
.mehr { display: flex; justify-content: center; padding-top: 14px; }
.tag-titel { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-60); padding: 18px 12px 8px; }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label, .feld .label { font-weight: 650; font-size: 12.5px; color: var(--navy-60); }
.eingabe { border: 1px solid var(--linie); background: var(--karte); border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color var(--t), box-shadow var(--t); }
.eingabe:hover { border-color: #C5CDD9; }
.eingabe:focus { outline: none; border-color: var(--koralle); box-shadow: 0 0 0 3px var(--koralle-soft); }
textarea.eingabe { resize: vertical; min-height: 76px; }
.felder { display: grid; gap: 16px; }
.felder.zwei { grid-template-columns: 1fr 1fr; }
.felder.drei { grid-template-columns: 1.3fr 1fr 1fr; }
.wahl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; transition: border-color var(--t), background var(--t); cursor: pointer; }
.wahl:hover { border-color: #C5CDD9; }
.wahl input { accent-color: var(--koralle); width: 16px; height: 16px; }
.wahl.gewaehlt { border-color: var(--koralle); background: var(--koralle-soft); }
.wahl.belegt { opacity: .55; }
.wahl .rechts { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); }
.wahl-liste { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--linie); font-weight: 600; font-size: 13px; background: var(--karte); transition: all var(--t); }
.chip:hover { border-color: var(--navy-60); }
.chip.an { background: var(--navy); border-color: var(--navy); color: #fff; }
.stern-wahl { display: flex; gap: 6px; }
.stern-wahl button { color: #D5DAE3; transition: color var(--t), transform var(--t); padding: 2px; }
.stern-wahl button svg { width: 30px; height: 30px; }
.stern-wahl button.an { color: #E8A317; }
.stern-wahl button:hover { transform: scale(1.1); }
.stern-wahl.klein button svg { width: 22px; height: 22px; }

/* Modal */
.modal-huelle { position: fixed; inset: 0; background: rgba(4,30,66,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: rein .18s ease; }
.modal-huelle[hidden] { display: none; }
.modal { background: var(--karte); border-radius: 18px; box-shadow: var(--schatten-gross); width: 100%; max-width: 620px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-kopf { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-kopf h2 { font-size: 18px; font-weight: 750; }
.modal-kopf p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.modal-inhalt { padding: 20px 24px; overflow-y: auto; }
.modal-fuss { padding: 16px 24px; border-top: 1px solid var(--linie); display: flex; justify-content: flex-end; gap: 10px; }
.schliessen { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.schliessen:hover { background: var(--bg); color: var(--navy); }
.schliessen svg { width: 18px; height: 18px; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 13.5px; box-shadow: var(--schatten-gross); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); }
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #7EE2B8; flex-shrink: 0; }

/* Detail */
.fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linie); border-radius: 12px; overflow: hidden; border: 1px solid var(--linie); }
.fakt { background: var(--karte); padding: 14px 16px; }
.fakt .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.fakt .w { font-size: 20px; font-weight: 750; margin-top: 2px; }
.fakt .w small { font-size: 12px; color: var(--muted); font-weight: 600; }
.zeitleiste { display: flex; align-items: center; gap: 0; margin: 4px 0; }
.zeitleiste .pkt { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; }
.zeitleiste .pkt .k { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--linie); background: var(--karte); }
.zeitleiste .pkt.ok .k { border-color: var(--gruen); background: var(--gruen); }
.zeitleiste .pkt .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.zeitleiste .pkt .z { font-weight: 750; }
.zeitleiste .strich { flex: 1; height: 3px; background: var(--linie); border-radius: 2px; margin-bottom: 38px; }
.zeitleiste .strich.ok { background: var(--gruen); }
.leer { text-align: center; padding: 28px 16px; color: var(--muted); }
.leer strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 4px; }
.hinweis-sim { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--navy-60); background: var(--navy-soft); padding: 3px 9px; border-radius: 99px; }
.hinweis-sim svg { width: 13px; height: 13px; }

/* Lager */
.lager-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.typ { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.typ.typ-aus { background: var(--koralle-soft); color: var(--koralle-dunkel); }
.typ.typ-rueck { background: var(--gruen-soft); color: var(--gruen); }
.typ.typ-ein { background: var(--navy-soft); color: var(--navy-60); }

/* Teams */
.teams { display: grid; grid-template-columns: 300px 1fr; min-height: 560px; padding: 0; overflow: hidden; }
.kanaele { border-right: 1px solid var(--linie); padding: 14px 10px; overflow-y: auto; max-height: 640px; }
.kanal { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; width: 100%; text-align: left; transition: background var(--t); }
.kanal:hover { background: var(--bg); }
.kanal.an { background: var(--navy-soft); }
.kanal .hash { width: 32px; height: 32px; border-radius: 9px; background: #EDEBFA; color: #5B5BD6; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kanal .t { font-weight: 650; font-size: 13px; }
.kanal .s { font-size: 11.5px; color: var(--muted); }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-kopf { padding: 16px 22px; border-bottom: 1px solid var(--linie); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nachrichten { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 470px; }
.nachricht { display: flex; gap: 10px; max-width: 640px; }
.nachricht .blase { background: var(--bg); padding: 9px 13px; border-radius: 4px 12px 12px 12px; }
.nachricht .wer { font-size: 12px; font-weight: 700; }
.nachricht .wer span { font-weight: 500; color: var(--faint); margin-left: 6px; }
.nachricht.system { align-self: center; max-width: none; }
.nachricht.system .blase { background: var(--gruen-soft); color: var(--gruen); font-size: 12.5px; font-weight: 600; border-radius: 99px; padding: 5px 14px; }
.chat-eingabe { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--linie); }

/* E-Learning */
.lektionen { display: grid; gap: 8px; }
.lektion { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--linie); width: 100%; text-align: left; transition: border-color var(--t), background var(--t); }
.lektion:hover { border-color: #C5CDD9; }
.lektion.an { border-color: var(--koralle); background: var(--koralle-soft); }
.lektion .nr { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-soft); color: var(--navy-60); font-weight: 750; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.lektion.fertig .nr { background: var(--gruen); color: #fff; }
.lektion.fertig .nr svg { width: 15px; height: 15px; }
.lern-bild { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 18px; }
.lern-bild img { width: 100%; height: 100%; object-fit: cover; }
.lern-text h3 { font-size: 19px; font-weight: 750; margin-bottom: 8px; }
.lern-text p { color: var(--navy-80); margin-bottom: 10px; max-width: 680px; }
.lern-text ul { margin: 0 0 10px 18px; color: var(--navy-80); }
.lern-text li { margin-bottom: 4px; }
.antwort { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 10px; margin-bottom: 8px; font-weight: 550; transition: all var(--t); }
.antwort:hover { border-color: var(--navy-60); }
.antwort.richtig { border-color: var(--gruen); background: var(--gruen-soft); color: var(--gruen); }
.antwort.falsch { border-color: var(--gelb); background: var(--gelb-soft); color: var(--gelb); }

/* ---------- Promotor (mobil) ---------- */
.telefon-buehne { display: flex; justify-content: center; gap: 40px; align-items: flex-start; }
.telefon { width: 100%; max-width: 400px; background: var(--bg); border-radius: 36px; border: 10px solid var(--navy); box-shadow: var(--schatten-gross); overflow: hidden; position: relative; }
.telefon-innen { min-height: 760px; display: flex; flex-direction: column; }
.tel-kopf { background: var(--navy); color: #fff; padding: 16px 18px 18px; }
.tel-kopf .zeile1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tel-kopf .marke { display: flex; align-items: baseline; gap: 7px; }
.tel-kopf .marke .wort { font-size: 19px; }
.tel-kopf .marke .kampagne { font-size: 13px; padding: 0 7px 1px; border-radius: 5px; }
.tel-kopf select { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 9px; padding: 5px 8px; font-size: 12.5px; font-weight: 600; max-width: 160px; }
.tel-kopf select option { color: var(--text); }
.tel-kopf .gruss { margin-top: 14px; font-size: 18px; font-weight: 750; }
.tel-kopf .datum { color: #A9B6CD; font-size: 13px; }
.tel-inhalt { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tel-karte { background: var(--karte); border-radius: 16px; border: 1px solid var(--linie); padding: 16px; box-shadow: var(--schatten); }
.tel-karte h3 { font-size: 15px; font-weight: 750; }
.tel-karte .unter { color: var(--muted); font-size: 12.5px; }
.tel-reihe { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.einsatz-titel { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.info-liste { display: grid; gap: 8px; margin: 12px 0 14px; }
.info-liste div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--navy-80); }
.info-liste svg { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; }
.zaehler { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 2px; }
.zaehler .gross { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.zaehler .von { color: var(--muted); font-size: 12.5px; }
.zaehl-knoepfe { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.zaehl-knoepfe button { padding: 14px 0; border-radius: 12px; background: var(--navy-soft); font-weight: 750; font-size: 16px; color: var(--navy); transition: background var(--t), transform .08s; }
.zaehl-knoepfe button:active { transform: scale(.96); }
.zaehl-knoepfe button.plus { background: var(--navy); color: #fff; }
.zaehl-knoepfe button.plus:hover { background: var(--navy-80); }
.zaehl-direkt { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.zaehl-direkt .eingabe { text-align: center; font-weight: 700; }
.foto-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.foto-raster .foto { border-radius: 10px; }
.foto-dazu { aspect-ratio: 4 / 3; border: 2px dashed #C5CDD9; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11.5px; font-weight: 650; cursor: pointer; transition: border-color var(--t), color var(--t); }
.foto-dazu:hover { border-color: var(--koralle); color: var(--koralle-dunkel); }
.foto-dazu svg { width: 22px; height: 22px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linie); background: var(--karte); position: sticky; bottom: 0; }
.tel-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 12px; font-size: 11px; font-weight: 650; color: var(--faint); }
.tel-tabs a svg { width: 20px; height: 20px; }
.tel-tabs a.an { color: var(--koralle-dunkel); }
.erfolg { text-align: center; padding: 8px 0; }
.erfolg .haken { width: 60px; height: 60px; border-radius: 50%; background: var(--gruen-soft); color: var(--gruen); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.erfolg .haken svg { width: 30px; height: 30px; }
.seiten-text { max-width: 300px; padding-top: 40px; }
.seiten-text h2 { font-size: 20px; font-weight: 750; margin-bottom: 8px; }
.seiten-text p { color: var(--muted); margin-bottom: 14px; }
.seiten-text ol { margin-left: 18px; color: var(--navy-80); display: grid; gap: 6px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .r4, .lager-kpi { grid-template-columns: repeat(2, 1fr); }
  .seiten-text { display: none; }
}
@media (max-width: 980px) {
  .r2, .r2g, .r3 { grid-template-columns: 1fr; }
  .teams { grid-template-columns: 1fr; }
  .kanaele { border-right: 0; border-bottom: 1px solid var(--linie); max-height: 220px; }
  .etikett-demo { display: none; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--schatten-gross); }
  .app.menu-offen .sidebar { transform: none; }
  .app.menu-offen .schleier { display: block; position: fixed; inset: 0; background: rgba(4,30,66,.4); z-index: 35; }
  .menu-knopf { display: inline-flex; }
  .topbar { padding: 0 16px; gap: 10px; }
  .content { padding: 20px 16px 48px; }
  .kampagne-chip { display: none; }
  .fakten { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .r4, .lager-kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; min-height: 0; }
  .kpi .wert { font-size: 26px; }
  .kpi .hinweis { font-size: 11.5px; }
  .rollen button { padding: 7px 8px; font-size: 11.5px; }
  .eindruecke { grid-template-columns: 1fr 1fr; }
  .eindruecke.start .foto:nth-child(3) { display: none; }
  .rollen .zusatz { display: none; }
  .rollen button { padding: 7px 10px; }
  .felder.zwei, .felder.drei { grid-template-columns: 1fr; }
  .hero { padding: 20px; flex-direction: column; align-items: flex-start; }
  .karte { padding: 16px; }
  .tabelle-huelle { margin: 0 -16px; padding: 0 16px; }
  .wochen, .wochen-label { gap: 6px; }
  .modal-huelle { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  /* Promotor: volle Breite, kein Handy-Rahmen */
  .ansicht-promotor .content { padding: 0; }
  .telefon { border: 0; border-radius: 0; box-shadow: none; max-width: none; }
  .telefon-innen { min-height: calc(100vh - 64px); }
}

/* Nachträge: Überbreite auf kleinen Bildschirmen vermeiden */
.raster > * { min-width: 0; }
.tipp { display: none; }
.woche:hover .tipp, .woche:focus .tipp { display: block; }
.woche:first-child .tipp { left: 0; transform: none; }
.woche:nth-child(n+5) .tipp { left: auto; right: 0; transform: none; }
.chat-kopf .hinweis-sim { white-space: normal; }

/* Topbar neben der Seitennavigation (861–1280 px): Kampagnen-Chip, Demo-Etikett
   und Perspektiven-Umschalter dürfen die Seite nicht verbreitern (BRE-204). */
.topbar > * { min-width: 0; }
.topbar-rechts { flex-shrink: 0; }
.kampagne-chip { overflow: hidden; }
@media (max-width: 1080px) { .etikett-demo { display: none; } }
@media (min-width: 861px) and (max-width: 940px) { .rollen .zusatz { display: none; } }
.segment { max-width: 100%; flex-wrap: wrap; }

/* Promotor-Ansicht: Handy-Rahmen nie breiter als der verfügbare Platz */
.telefon-buehne > *, .telefon-innen > *, .tel-kopf .zeile1 > *, .zaehl-direkt > * { min-width: 0; }
.zaehl-direkt .eingabe { flex: 1; }
.zaehl-knoepfe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.foto-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tel-inhalt textarea { max-width: 100%; }

/* Promotor-Ansicht auf dem Desktop: Handy in Fensterhöhe, nur der Inhalt
   zwischen Kopf und Tab-Leiste scrollt (BRE-213). Topbar 64 px, oben und
   unten je 28 px Abstand. */
@media (min-width: 561px) {
  .ansicht-promotor .content { padding-bottom: 28px; }
  .ansicht-promotor .telefon { height: min(820px, max(480px, calc(100vh - 120px))); height: min(820px, max(480px, calc(100dvh - 120px))); }
  .ansicht-promotor .telefon-innen { height: 100%; min-height: 0; }
  .ansicht-promotor .tel-kopf, .ansicht-promotor .tel-tabs { flex-shrink: 0; }
  .ansicht-promotor .tel-inhalt {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(4,30,66,.18) transparent;
  }
  .ansicht-promotor .tel-inhalt > * { flex-shrink: 0; }
  .ansicht-promotor .tel-inhalt::-webkit-scrollbar { width: 6px; }
  .ansicht-promotor .tel-inhalt::-webkit-scrollbar-thumb { background: rgba(4,30,66,.18); border-radius: 3px; }
  .ansicht-promotor .tel-inhalt::-webkit-scrollbar-track { background: transparent; }
}

/* ---------- Ausbau BRE-216: Jahresplanung, Positionen, Einsatzvorbereitung ---------- */
.kampagne.markeb { background: var(--markeb); }
.kampagne-chip .punkt.markeb { background: var(--markeb); }
.kontext-markeb .hero { background: linear-gradient(115deg, var(--navy) 0%, #0B4A5E 100%); }

.fehlt { color: var(--gelb); font-weight: 650; font-style: normal; }
.folgetag { display: inline-block; font-size: 10.5px; font-weight: 750; color: var(--navy-60); background: var(--navy-soft); border-radius: 5px; padding: 0 4px; vertical-align: 1px; }
.krit-text { color: var(--krit); font-weight: 650; }
.warn-text { color: var(--gelb); font-weight: 650; }
.ok-text { color: var(--gruen); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.krit-text svg, .warn-text svg { vertical-align: -2px; margin-right: 3px; }
.textlink.neutral { color: var(--navy-80); font-weight: 600; white-space: normal; }
.textlink.neutral:hover { color: var(--koralle-dunkel); }
.ueber { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.abstand-u { margin-bottom: 20px; }
.unter-titel { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-60); margin: 18px 0 6px; }

/* Merkmale und Etiketten */
.status.entwurf { background: #F1F2F6; color: var(--muted); }
.status.entwurf::before { background: transparent; border: 1.5px dashed currentColor; width: 6px; height: 6px; }
.status.storniert { background: #F1F2F6; color: var(--faint); text-decoration: line-through; }
.merkmal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.merkmal svg { width: 13px; height: 13px; }
.merkmal.ok { background: var(--gruen-soft); color: var(--gruen); }
.merkmal.warn { background: var(--gelb-soft); color: var(--gelb); }
.merkmal.krit { background: var(--krit-soft); color: var(--krit); }
.merkmale { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.herkunft { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.herkunft.quelle { background: var(--blau-soft); color: var(--blau); }
.herkunft.bestaetigt { background: var(--gruen-soft); color: var(--gruen); }
.herkunft.annahme { background: var(--gelb-soft); color: var(--gelb); }
.herkunft.offen { background: #F1F2F6; color: var(--muted); }
.fenster-typ { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 99px; white-space: nowrap; border: 1px solid var(--linie); color: var(--navy-60); }
.fenster-typ.fix { background: var(--koralle-soft); border-color: transparent; color: var(--koralle-dunkel); }
.fenster-typ.kw { background: var(--navy); border-color: var(--navy); color: #fff; }
.fenster-typ.monat, .fenster-typ.monate { border-style: dashed; }
.fenster-typ.offen { color: var(--muted); border-style: dotted; }
.art-chip { display: inline-block; font-size: 11px; font-weight: 750; letter-spacing: .02em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: var(--navy-soft); color: var(--navy-80); }
.art-chip.pos { background: #EDEBFA; color: #4B4BC4; }
.art-chip.gohome { background: #E6F4F1; color: #0F766E; }
.art-chip.event { background: #FDF0DC; color: #9A5B12; }
.stand { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.stand.ungeplant { background: #F1F2F6; color: var(--muted); }
.stand.teilweise { background: var(--blau-soft); color: var(--blau); }
.stand.verplant { background: var(--gruen-soft); color: var(--gruen); }
.stand.durch { background: var(--navy-soft); color: var(--navy-60); }
.version { display: inline-block; font-size: 11px; font-weight: 750; padding: 1px 7px; border-radius: 6px; background: var(--navy); color: #fff; vertical-align: 2px; margin-left: 4px; }
.geaendert { font-size: 10.5px; font-weight: 750; color: var(--koralle-dunkel); background: var(--koralle-soft); padding: 0 6px; border-radius: 5px; }
.toast.warn svg { color: #FFC680; }

/* Filterleiste */
.filterleiste { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.feld-inline { display: flex; flex-direction: column; gap: 4px; }
.feld-inline label { font-size: 11.5px; font-weight: 650; color: var(--navy-60); }
.filterleiste .muted { margin-left: auto; padding-bottom: 8px; }
.klein-kpi { min-height: 0; }
.klein-kpi .wert { font-size: 28px; }
.chip-karte { padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.chip-karte .zahl { font-size: 24px; font-weight: 750; }

/* Legende */
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 16px; height: 9px; border-radius: 3px; }
.lg.fix { background: var(--koralle); }
.lg.kw { background: var(--navy); }
.lg.monat { background: repeating-linear-gradient(135deg, #9FB0C8 0 3px, #DDE3EC 3px 6px); }
.lg.offen { border: 1.5px dotted var(--faint); }
.lg.punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.lg.v { background: var(--navy); }
.lg.z { background: #F7A8B6; }
.lg.o { background: var(--navy-soft); }

/* Jahreszeitleiste */
.zl-huelle { overflow-x: auto; margin: 0 -22px; padding: 0 22px 4px; }
.zl { min-width: 860px; }
.zl-kopf, .zl-zeile { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: center; }
.zl-monate { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11.5px; color: var(--faint); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--linie); padding-bottom: 6px; }
.zl-monate span { padding-left: 4px; border-left: 1px solid var(--linie-soft); }
.zl-koerper { position: relative; }
.zl-koerper::before { content: ""; position: absolute; left: 264px; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--linie-soft) calc(100% / 12 - 1px) calc(100% / 12)); pointer-events: none; }
.zl-zeile { padding: 7px 0; border-radius: 8px; position: relative; }
.zl-zeile:hover { background: var(--bg); }
.zl-label { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; min-width: 0; }
.zl-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zl-spur { position: relative; height: 26px; }
.zl-balken { position: absolute; top: 6px; height: 14px; border-radius: 4px; }
.zl-balken.fix { background: var(--koralle); min-width: 6px; }
.zl-balken.kw { background: var(--navy); min-width: 6px; }
.zl-balken.monat, .zl-balken.monate { background: repeating-linear-gradient(135deg, #9FB0C8 0 4px, #DDE3EC 4px 8px); border: 1px dashed #8E9AAE; }
.zl-text { position: absolute; top: 4px; font-size: 11.5px; color: var(--navy-60); font-weight: 600; white-space: nowrap; }
.zl-offen { position: absolute; top: 3px; font-size: 11.5px; font-weight: 650; color: var(--muted); border: 1.5px dotted var(--faint); border-radius: 99px; padding: 1px 9px; white-space: nowrap; }
.zl-punkt { position: absolute; top: 9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--navy); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--navy); }
.zl-punkt.geplant, .zl-punkt.entwurf { background: #fff; }
.zl-punkt.aktiv { background: var(--gruen); box-shadow: 0 0 0 1px var(--gruen); }
.zl-jetzt { position: absolute; top: -4px; bottom: 0; width: 0; border-left: 2px solid var(--koralle); z-index: 1; pointer-events: none; }
.zl-jetzt span { position: absolute; bottom: 0; left: 4px; font-size: 10.5px; font-weight: 750; color: var(--koralle-dunkel); white-space: nowrap; background: var(--karte); padding: 0 4px; border-radius: 4px; }
.zl-koerper { padding-bottom: 20px; }

/* Positionsdetail */
.mengen-raster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--linie); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.menge-block { background: var(--karte); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.menge-block .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.menge-block .w { font-size: 24px; font-weight: 750; letter-spacing: -.01em; }
.menge-block .w small { font-size: 13px; color: var(--muted); font-weight: 600; }
.menge-block .neben { font-size: 12px; color: var(--muted); }
.menge-block.krit { background: var(--krit-soft); }
.menge-block.krit .w { color: var(--krit); }
.balken.mehrfach { display: flex; background: var(--navy-soft); }
.balken.mehrfach > span { border-radius: 0; transition: width .6s ease; }
.balken.mehrfach > span.v { background: var(--navy); }
.balken.mehrfach > span.z { background: #F7A8B6; }
.balken.mehrfach + .legende { margin-top: 8px; }
.leer-balken { background: repeating-linear-gradient(135deg, var(--linie) 0 4px, transparent 4px 8px); }
.leer-balken > span { background: transparent !important; }
tr.platzhalter td { color: var(--muted); font-size: 13px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--linie-soft) 6px 12px); }
tr.platzhalter svg { vertical-align: -3px; }
tr.storniert td { color: var(--faint); }
dl.werte { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; font-size: 13.5px; }
dl.werte dt { color: var(--muted); font-weight: 600; font-size: 12.5px; }
dl.werte.zwei-spalten { grid-template-columns: 210px 1fr; }
.brief-liste { display: grid; gap: 0; }
.brief-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie-soft); align-items: flex-start; }
.brief-zeile:first-child { border-top: 0; }
.brief-zeile .l { font-size: 12px; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
.brief-zeile.luecke { background: var(--gelb-soft); margin: 0 -10px; padding: 10px; border-radius: 8px; }
.quelle-einsatz { font-size: 10.5px; font-weight: 750; color: var(--koralle-dunkel); background: var(--koralle-soft); padding: 0 6px; border-radius: 5px; margin-left: 4px; }
.historie { list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--navy-80); }
.historie li { padding-left: 14px; position: relative; }
.historie li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--linie); }
.historie-auf { margin-top: 12px; }
.historie-auf summary { cursor: pointer; font-weight: 650; font-size: 13px; color: var(--navy-60); padding: 6px 0; }
.historie-auf p { margin-top: 8px; }

/* Offene Punkte */
.op-liste { display: grid; gap: 10px; }
.op { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linie); border-left: 4px solid var(--gelb); background: var(--karte); }
a.op:hover { background: var(--bg); }
.op.in_klaerung { border-left-color: var(--blau); }
.op.erledigt { border-left-color: var(--gruen); opacity: .7; }
.op-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.op-zust { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.op p { font-size: 13px; color: var(--navy-80); margin: 4px 0 8px; }
.op-status { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.auswahl.klein { padding: 5px 30px 5px 10px; font-size: 12px; }

/* Dialoge */
.modal.breit { max-width: 860px; }
.modal-fehler { margin: 0 24px 12px; padding: 10px 12px; border-radius: 10px; background: var(--krit-soft); color: var(--krit); font-weight: 600; font-size: 13px; }
.modal-fehler[hidden] { display: none; }
.auswirkung { padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.hinweis-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--navy-soft); color: var(--navy-80); margin-bottom: 16px; align-items: flex-start; }
.hinweis-box > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.hinweis-box p { margin: 2px 0 6px; font-size: 13px; }
.hinweis-box.warn { background: var(--gelb-soft); color: #7A4205; }
.hinweis-box.ok { background: var(--gruen-soft); color: #0B5E43; }
.hinweis-box.klein { padding: 10px 12px; margin-bottom: 12px; }
.plan-kopf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: 12px; margin-bottom: 14px; }
.plan-kopf .l, .bedarf .l { display: block; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.plan-kopf .neben { display: block; font-size: 11.5px; color: var(--muted); }
.plan-zeile { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr 34px; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--linie-soft); }
.plan-zeile .plan-weg { margin-bottom: 4px; }
.plan-hinweis { grid-column: 1 / -1; color: var(--muted); min-height: 0; }
.plan-hinweis:empty { display: none; }
.plan-summe { margin: 14px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--navy-soft); font-size: 13.5px; }
.mini { display: inline-flex; vertical-align: middle; color: var(--muted); padding: 2px; border-radius: 6px; }
.mini:hover { color: var(--koralle-dunkel); background: var(--bg); }

/* Einsatzvorbereitung */
.bedarf { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; border-radius: 12px; background: var(--bg); margin-bottom: 14px; align-items: flex-end; }
.bedarf strong { font-size: 20px; font-weight: 750; }
.bedarf p { flex-basis: 100%; color: var(--muted); }
.bedarf.warn { background: var(--gelb-soft); }
.bedarf.warn p strong { color: var(--gelb); }
table.kompakt td { padding: 9px 10px; }
table.kompakt th { padding: 0 10px 8px; }
.tabelle-huelle table.kompakt { min-width: 560px; }
.pruef-liste { display: grid; gap: 8px; }
.pruef { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linie); font-weight: 600; cursor: pointer; }
.pruef input { width: 18px; height: 18px; accent-color: var(--gruen); }
.pruef.ok { border-color: #BFE6D5; background: var(--gruen-soft); color: #0B5E43; }
.pruef .kasten { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #C5CDD9; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pruef.ok .kasten { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.pruef .kasten svg { width: 13px; height: 13px; }
div.pruef { cursor: default; }
.fakten.sechs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fakten .neben { font-size: 11.5px; color: var(--muted); }
.typ.typ-verlust { background: var(--gelb-soft); color: var(--gelb); }
.wahl-liste.gross { max-height: 420px; }
.team-wahl { flex-wrap: wrap; cursor: default; }
.wahl-haupt { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; cursor: pointer; }
.wahl-haupt .n { display: block; font-weight: 650; }
.wahl-haupt .klein { display: block; }
.team-wahl.warnung { border-color: #F2D3A6; }
.wahl-warnung { flex-basis: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--gelb); font-weight: 600; }
.wahl-warnung .eingabe { flex: 1; min-width: 200px; padding: 6px 10px; font-size: 12.5px; }
.verfuegbar { color: var(--gruen); font-weight: 650; font-size: 12px; }

/* Kunde */
.vorlaeufig { margin-top: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.arten { display: grid; gap: 16px; margin-top: 18px; }
.art-zeile { display: grid; gap: 6px; }
.art-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.art-pos { display: flex; gap: 12px; flex-wrap: wrap; }
.eindruecke-raster { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.zitate { display: grid; gap: 12px; align-content: start; }
.pos-karte { display: block; transition: box-shadow var(--t), border-color var(--t); }
.pos-karte:hover { border-color: #C5CDD9; box-shadow: var(--schatten-gross); }
.pos-karte h2 { margin-top: 12px; }

/* Lager */
.bilanz.gewaehlt { border-color: var(--koralle); }
.bilanz-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bilanz-zahlen .l { display: block; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.bilanz-zahlen strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.bilanz-zahlen .neben { display: block; font-size: 11.5px; color: var(--muted); }
.stapel { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--navy-soft); }
.gleichung { margin-top: 10px; }

/* Promotor-App */
.aufgaben { border-color: #F2D3A6; background: #FFFBF5; }
.aufgaben-liste { display: grid; gap: 8px; margin-top: 8px; }
.aufgaben-liste > * { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--navy-80); text-align: left; }
.aufgaben-liste button { color: var(--koralle-dunkel); }
.aufgaben-liste svg { width: 18px; height: 18px; flex-shrink: 0; }
dl.kurz { display: grid; gap: 10px; margin: 12px 0; }
dl.kurz dt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
dl.kurz dt svg { width: 14px; height: 14px; }
dl.kurz dd { font-size: 14px; color: var(--text); }
.briefing details { border-top: 1px solid var(--linie-soft); }
.briefing summary { cursor: pointer; padding: 10px 0; font-weight: 650; font-size: 13.5px; }
.briefing details p { font-size: 13px; color: var(--navy-80); margin-bottom: 8px; }

@media (max-width: 1180px) {
  .mengen-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fakten.sechs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .eindruecke-raster { grid-template-columns: 1fr; }
  .plan-zeile { grid-template-columns: 1fr 1fr 1fr 34px; }
  .plan-zeile .feld:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mengen-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten.sechs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-kopf { grid-template-columns: 1fr 1fr; }
  .plan-zeile { grid-template-columns: 1fr 1fr; }
  .plan-zeile .plan-weg { grid-column: 2; justify-self: end; grid-row: 1; }
  .plan-zeile .feld:first-child { grid-column: 1; }
  dl.werte, dl.werte.zwei-spalten { grid-template-columns: 1fr; gap: 2px 0; }
  dl.werte dd { margin-bottom: 8px; }
  .filterleiste .feld-inline { flex: 1 1 140px; }
  .filterleiste .auswahl { width: 100%; }
  .filterleiste .muted { margin-left: 0; }
  .kopf .filter .knopf { flex: 1 1 auto; }
}

table.positionen th { white-space: normal; vertical-align: bottom; }
table.positionen td:first-child { min-width: 230px; }
table.positionen .neben { color: var(--muted); font-size: 12px; margin-top: 3px; }
table.positionen .neben .art-chip { margin-right: 4px; }
/* Formulare im Dialog: Inhalt scrollt, Fussleiste mit Hauptaktion bleibt sichtbar */
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.modal-inhalt { min-height: 0; flex: 1 1 auto; }
.modal-fuss { flex-shrink: 0; flex-wrap: wrap; }
td.pos-zelle { min-width: 240px; }
.zl-zeile .zl-label, .zl-kopf .zl-label { position: sticky; left: 0; z-index: 2; background: var(--karte); align-self: stretch; }
.zl-zeile:hover .zl-label { background: var(--bg); }
@media (max-width: 560px) {
  .zl-kopf, .zl-zeile { grid-template-columns: 150px 1fr; }
  .zl-koerper::before { left: 164px; }
  .zl-label .art-chip { display: none; }
}
.zl { --zl-l: 264px; }
@media (max-width: 560px) { .zl { --zl-l: 164px; } }
