/* GTG Vertriebscockpit – Gestaltung nach dem abgenommenen Entwurf vom 25.09.2026:
   dunkles Cockpit in GTG-Blau, Bricolage Grotesque für Überschriften, IBM Plex für Text. */

@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(/fonts/plexsans/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(/fonts/plexsans/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(/fonts/plexsans/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/plexmono/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/fonts/plexmono/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #081321;
  --side: #0b1a2c;
  --card: #0f2135;
  --card2: #16304a;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #e6edf6;
  --soft: #d3deea;
  --muted: #b7c6d6;
  --dim: #9fb3c8;
  --faint: #7f95ad;
  --blue: #1f6fe0;
  --blue-h: #2f7bf0;
  --blue-l: #7fb2ff;
  --blue-p: #9cc4ff;
  --teal: #5fd4c4;
  --green: #3ecf8e;
  --amber: #f5b544;
  --red: #ff7a7a;
  --red-l: #ff9a9a;
  --display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-l); text-decoration: none; }
a:hover { color: #b3d1ff; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--dim); }
.faint { color: var(--faint); font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 2px; }

/* ---------- Animationen ---------- */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 300% 50%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); } 70% { box-shadow: 0 0 0 9px rgba(62, 207, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); } }
@keyframes alarm { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 122, .5); } 70% { box-shadow: 0 0 0 10px rgba(255, 122, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 122, 0); } }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } 100% { transform: translate(0, 0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fx { animation: up .6s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.still .fx { animation: none; }
.live { animation: pulse 2.2s infinite; }
.hot { animation: alarm 1.8s infinite; }
.spark { stroke-dasharray: 420; animation: draw 1.6s .3s cubic-bezier(.3, .6, .2, 1) both; }
.bar { transform-origin: bottom; animation: grow .9s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.barx { transform-origin: left; animation: growx .9s cubic-bezier(.2, .75, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.shine { background: linear-gradient(90deg, #9fb3c8 0%, #ffffff 50%, #9fb3c8 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #16304a 0%, #24507f 50%, #16304a 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- Grundgerüst ---------- */
.shell { display: flex; min-height: 100vh; position: relative; overflow: clip; }
.orb { position: fixed; border-radius: 50%; pointer-events: none; animation: drift 18s ease-in-out infinite; z-index: 0; }
.orb.a { width: 620px; height: 620px; left: 40%; top: -300px; background: radial-gradient(circle, rgba(61, 139, 255, .16) 0%, rgba(61, 139, 255, 0) 70%); }
.orb.b { width: 520px; height: 520px; right: -180px; bottom: -220px; background: radial-gradient(circle, rgba(95, 212, 196, .10) 0%, rgba(95, 212, 196, 0) 70%); animation-delay: -7s; }

aside.side { width: 248px; flex-shrink: 0; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; background: var(--side); border-right: 1px solid rgba(255, 255, 255, .06); position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 2; }
.brand { padding: 14px 6px 6px; line-height: 0; }
.brand img { width: 100%; height: 52px; object-fit: contain; object-position: left center; }
.tag { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot.warn { background: var(--amber); }
.dot.off { background: #54657a; }
nav.menu { display: flex; flex-direction: column; gap: 4px; }
nav.menu a { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 14px; transition: background .2s; }
nav.menu a:hover { background: #15304d; color: var(--text); }
nav.menu a.on { background: #16345a; color: #fff; box-shadow: inset 3px 0 0 #3d8bff; font-weight: 600; }
nav.menu a span.l { display: flex; align-items: center; gap: 12px; }
.badge { min-width: 22px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; background: #1d3a5e; color: #cfe0f5; }
.badge.hot { background: var(--red); color: #2a0d0d; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.conn { padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 6px; }
.conn div { display: flex; justify-content: space-between; }
.ok { color: var(--green); } .warn { color: var(--amber); } .bad { color: var(--red-l); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #1d4f91; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.me .n { font-weight: 600; font-size: 13px; }
.me button { margin-left: auto; }

main.main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 1; }
header.top { height: 68px; flex-shrink: 0; padding: 0 32px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(8, 19, 33, .7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.search { position: relative; width: 480px; max-width: 100%; }
.search svg.i { position: absolute; left: 14px; top: 13px; }
.search input { width: 100%; height: 44px; padding: 0 70px 0 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: var(--card); outline: none; font-size: 14px; }
.search input:focus { border-color: #2d5f99; }
.search input::placeholder, input::placeholder, textarea::placeholder { color: var(--faint); }
.search kbd { position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }
.suggest { position: absolute; left: 0; right: 0; top: 52px; background: var(--card); border: 1px solid #244a74; border-radius: 12px; padding: 6px; z-index: 20; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: fade .15s both; max-height: 70vh; overflow: auto; }
.suggest .grp { display: block; padding: 8px 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.suggest .grp + .grp, .suggest .sep { border-top: 1px solid var(--line); margin-top: 4px; }
.suggest a, .suggest button { width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.suggest a:hover, .suggest a.sel, .suggest button:hover, .suggest button.sel { background: #15304d; }
.suggest .info { color: var(--dim); font-size: 12px; text-align: right; }
.stand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); margin-left: auto; }
.content { flex-grow: 1; padding: 28px 32px 48px; max-width: 1560px; width: 100%; }

/* ---------- Bausteine ---------- */
.card { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 18px 20px; transition: border-color .25s, transform .25s; }
.card.lift:hover { border-color: #2d5f99; transform: translateY(-2px); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ai { border: 1px solid transparent; background: linear-gradient(#0f2135, #0f2135) padding-box, linear-gradient(110deg, #1f4f8f, #3d8bff, #5fd4c4, #1f4f8f, #3d8bff) border-box; background-size: 100% 100%, 300% 100%; animation: flow 9s linear infinite; }
.ai p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); white-space: pre-line; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.g2e { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead .sub { font-size: 13px; color: var(--dim); margin-bottom: 6px; }

.btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { background: var(--blue-h); color: #fff; }
.btn.ghost { background: var(--card); border: 1px solid var(--line2); color: var(--text); font-weight: 500; }
.btn.ghost:hover { background: #1a3656; }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.link { background: transparent; color: var(--blue-l); padding: 0 6px; height: auto; font-weight: 500; }
.btn.link:hover { color: #b3d1ff; background: transparent; }
.btn.danger { background: #7a2530; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--line2); }
.chip:hover { border-color: #3d8bff; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--side); color: var(--muted); white-space: nowrap; }
.pill.amber { background: rgba(245, 181, 68, .14); color: var(--amber); }
.pill.red { background: rgba(255, 122, 122, .12); color: var(--red-l); }
.pill.green { background: rgba(62, 207, 142, .12); color: var(--green); }
.pill.blue { background: rgba(127, 178, 255, .12); color: var(--blue-l); }
.beta { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(245, 181, 68, .45); border-radius: 999px; padding: 4px 10px; }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.kpi .v { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.kpi .v.s { font-size: 24px; }
.kpi .l { font-size: 13px; color: var(--dim); }
.kpi .d { font-size: 12px; font-weight: 600; }
.kpi .up { color: var(--green); } .kpi .down { color: var(--red-l); }

/* Hinweise */
.hints { display: flex; flex-direction: column; }
.hint { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; border-top: 1px solid rgba(255, 255, 255, .05); transition: background .2s, transform .2s; }
.hint:hover { background: #15304d; transform: translateX(3px); }
.hint .sev { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hint .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.hint .t { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hint .t a { font-weight: 600; color: var(--text); }
.hint .x { font-size: 13px; color: var(--muted); }
.hint .src { font-size: 11px; color: var(--faint); white-space: nowrap; }
.hint .acts { display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.hint:hover .acts, .hint:focus-within .acts { opacity: 1; }
.sev-krit { background: var(--red); } .sev-hoch { background: var(--amber); } .sev-info { background: #3d8bff; } .sev-plus { background: var(--green); }
.lbl { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.lbl-krit { color: var(--red); border-color: rgba(255, 122, 122, .4); } .lbl-hoch { color: var(--amber); border-color: rgba(245, 181, 68, .4); }
.lbl-info { color: #7fb2ff; border-color: rgba(61, 139, 255, .4); } .lbl-plus { color: var(--green); border-color: rgba(62, 207, 142, .4); }

/* Listen/Tabellen */
.list .item { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px; border-radius: 10px; transition: background .2s; }
.list .item:hover { background: #15304d; }
.list .item .k { font-size: 12px; color: var(--blue-l); }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; font-weight: 500; color: var(--dim); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: 12px; }
table.t th button.on { color: var(--text); }
table.t td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: middle; }
table.t tr.click { cursor: pointer; transition: background .2s; }
table.t tr.click:hover td { background: #15304d; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

/* Akte */
.akte-head { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(120deg, #11294a 0%, #0f2135 60%); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 18px; flex-wrap: wrap; }
.mono-av { width: 60px; height: 60px; border-radius: 16px; background: var(--blue); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 22px; flex-shrink: 0; }
.akte-head .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chart { height: 170px; display: flex; align-items: flex-end; gap: 14px; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chart .col { flex-grow: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.chart .bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.chart .b { width: 16px; border-radius: 5px 5px 2px 2px; }
.chart .b.a { background: #3d8bff; } .chart .b.o { background: var(--blue-p); } .chart .b.u { width: 28px; background: linear-gradient(180deg, #5fd4c4, #3d8bff); }
.chart .lab { font-size: 11px; color: var(--faint); white-space: nowrap; }
.chart .val { font-size: 11px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.timeline .ev { display: flex; gap: 14px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .rail i { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.timeline .rail b { width: 1px; flex-grow: 1; background: rgba(255, 255, 255, .08); }
.timeline .c { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; flex-grow: 1; min-width: 0; }
.timeline .meta { display: flex; gap: 8px; font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.timeline .txt { font-size: 13px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.contact { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.contact:hover { background: #15304d; }
.contact .ini { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.prof { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 4px; border-top: 1px solid rgba(255, 255, 255, .05); }
.prof .v { font-weight: 600; overflow-wrap: anywhere; }
.prof .v.none { font-weight: 400; color: var(--dim); font-style: italic; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Nachrichten */
.ticker { overflow: hidden; border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 10px 0; margin-bottom: 18px; }
.ticker .track { display: flex; gap: 48px; width: max-content; font-size: 13px; color: var(--muted); padding-left: 20px; animation: ticker 60s linear infinite; }
.ticker .track:hover { animation-play-state: paused; }
.news { display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
.news .topic { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.news .ttl { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text); }
.news .why { font-size: 13px; color: var(--muted); line-height: 1.5; }
.acute { border-radius: 12px; padding: 12px 14px; background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .35); display: flex; flex-direction: column; gap: 4px; }
.acute .k { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--red-l); text-transform: uppercase; }

/* Stufen */
.stages { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.stage { flex: 1 1 220px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stage.on { background: #11294a; border-color: #2d5f99; }
.stage.done { border-color: rgba(62, 207, 142, .35); }
.stage .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--card2); color: var(--dim); }
.stage.on .n { background: var(--blue); color: #fff; }
.stage.done .n { background: rgba(62, 207, 142, .2); color: var(--green); }

/* Formulare */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--dim); }
.in, textarea.in, select.in { width: 100%; min-height: 42px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #0b1a2c; color: var(--text); outline: none; font-size: 14px; }
.in:focus { border-color: #2d5f99; }
textarea.in { min-height: 180px; resize: vertical; line-height: 1.5; }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--soft); }
.check input { width: 18px; height: 18px; accent-color: #3d8bff; margin-top: 1px; flex-shrink: 0; }
.note { font-size: 12px; color: var(--dim); line-height: 1.5; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.msg.info { background: rgba(127, 178, 255, .08); border: 1px solid rgba(127, 178, 255, .25); color: var(--soft); }
.msg.warn { background: rgba(245, 181, 68, .08); border: 1px solid rgba(245, 181, 68, .35); color: #f7d59a; }
.msg.bad { background: rgba(255, 122, 122, .08); border: 1px solid rgba(255, 122, 122, .35); color: #ffc2c2; }
.msg.good { background: rgba(62, 207, 142, .08); border: 1px solid rgba(62, 207, 142, .35); color: #a9ecce; }
.empty { padding: 28px 12px; text-align: center; color: var(--dim); font-size: 13px; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }

.xls-leiste { display: flex; justify-content: flex-end; margin: 0 0 4px; }
/* Dialoge */
dialog.modal { border: 1px solid #244a74; border-radius: 18px; background: var(--card); color: var(--text); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
dialog.modal::backdrop { background: rgba(4, 10, 18, .7); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: up .25s both; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-b { padding: 20px 22px; overflow: auto; max-height: calc(100vh - 200px); }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.mailbody { white-space: pre-wrap; font-size: 14px; line-height: 1.55; color: var(--soft); background: #0b1a2c; border-radius: 12px; padding: 16px; overflow-wrap: anywhere; }
.preview-frame { background: #fff; color: #111; border-radius: 12px; padding: 16px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: #1a3656; color: var(--text); }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #193f70; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: 14px; z-index: 100; animation: up .25s both; max-width: calc(100vw - 32px); }
#toast.bad { background: #7a2530; }

/* Anmeldung */
body.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: radial-gradient(circle at 30% 0%, rgba(61, 139, 255, .18), transparent 60%), var(--bg); }
.login-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; animation: up .6s both; }
.login-card img { width: 220px; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Kleinere Bildschirme ---------- */
.menu-toggle { display: none; }
@media (max-width: 1280px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .g2, .g2e { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  aside.side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; z-index: 30; }
  aside.side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(4, 10, 18, .6); }
  .menu-toggle { display: inline-flex; }
  header.top { padding: 0 16px; gap: 10px; }
  .stand span.t { display: none; }
  .content { padding: 20px 16px 40px; }
  .g4, .g3 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 28px; }
  .hint { flex-wrap: wrap; }
  .hint .acts { opacity: 1; }
  .form .two { grid-template-columns: 1fr; }
  .prof { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Anklickbare Kacheln, Aufgaben, Belege, Profil ---------- */
a.tile, button.tile { color: inherit; text-decoration: none; font: inherit; width: 100%; }
button.tile { border: 1px solid var(--line); }
.tile .go { opacity: 0; color: var(--blue-l); transition: opacity .2s, transform .2s; }
.tile:hover .go, .tile:focus-visible .go { opacity: 1; transform: translate(2px, -2px); }
.tile:hover { border-color: #2d5f99; }
.colbtn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; border-radius: 10px; }
.colbtn:hover .b { filter: brightness(1.2); }
.tasks { display: flex; flex-direction: column; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 6px; border-top: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; transition: background .2s, opacity .3s; }
.task:first-child { border-top: 0; }
.task:hover { background: #15304d; }
.task input { width: 18px; height: 18px; accent-color: #3ecf8e; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.task .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex-grow: 1; }
.task .ttl { background: none; border: 0; padding: 0; text-align: left; color: var(--text); font-weight: 600; cursor: pointer; font-size: 14px; }
.task .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.task.done { opacity: .5; }
.task.done .ttl { text-decoration: line-through; }
dialog.modal.wide { width: min(1280px, calc(100vw - 32px)); }
dialog.modal.mittel { width: min(1040px, calc(100vw - 32px)); }
/* Mailfenster: breit, mit Ziehgriff unten rechts; der Textbereich füllt die Höhe, Knopf „Vergrößern“ geht auf volle Fenstergröße */
dialog.modal.mailfenster { width: min(1040px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-height: calc(100vh - 16px); max-width: calc(100vw - 16px); min-width: 560px; min-height: 420px; resize: both; overflow: hidden; }
dialog.modal.mailfenster[open] { display: flex; flex-direction: column; }
dialog.modal.mailfenster form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
dialog.modal.mailfenster .modal-b { flex: 1 1 auto; max-height: none; min-height: 0; }
dialog.modal.mailfenster textarea.fmt-text { min-height: 280px; resize: vertical; }
dialog.modal.mailfenster.voll { width: calc(100vw - 16px); height: calc(100vh - 16px); }
.termin-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .termin-grid { grid-template-columns: minmax(0, 1fr); } }
.termin-links, .termin-rechts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.termin-titel { width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--line2); color: var(--text); font-family: var(--display); font-size: 24px; font-weight: 600; padding: 4px 0 8px; outline: none; }
.termin-titel:focus { border-bottom-color: var(--blue-l); }
.termin-titel::placeholder { color: var(--faint); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; align-self: flex-start; }
.seg label { cursor: pointer; margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line2); }
.seg label:last-child span { border-right: 0; }
.seg label:hover span { background: rgba(255, 255, 255, .05); }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: -2px; }
.zeit-zeile { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.dauer-chips { flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.termin-karte { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.termin-karte h3 { margin: 0; font-family: var(--display); font-size: 14px; letter-spacing: .02em; color: var(--blue-p); }
.tn-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tn-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 1px solid var(--line2); border-radius: 999px; font-size: 12px; color: var(--muted); cursor: pointer; margin: 0; }
.tn-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tn-pill .av { width: 24px; height: 24px; border-radius: 50%; background: var(--card2); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--blue-p); }
.tn-pill:has(input:checked), .tn-pill.on { background: rgba(31, 111, 224, .22); border-color: var(--blue); color: var(--text); }
.tn-pill:has(input:checked) .av, .tn-pill.on .av { background: var(--blue); color: #fff; }
.tn-pill:has(input:focus-visible) { outline: 2px solid var(--blue-l); }
.termin-ansicht .prof { align-items: baseline; }
.beleg-b { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; max-height: calc(100vh - 150px); }
.beleg-info { overflow: auto; }
.beleg-info .prof { grid-template-columns: 110px minmax(0, 1fr) 0; }
.pdf-frame { min-height: 70vh; background: #0b1a2c; border-radius: 12px; overflow: hidden; display: flex; }
.pdf-frame iframe { border: 0; width: 100%; min-height: 70vh; background: #fff; }
.pdf-frame .empty { margin: auto; }
.disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.disc-opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s; }
.disc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.disc-opt strong { color: var(--c); }
.disc-opt span { color: var(--dim); font-size: 12px; }
.disc-opt:hover { border-color: var(--c); }
.disc-opt:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.disc-opt:has(input:focus-visible) { outline: 2px solid var(--blue-l); outline-offset: 2px; }
@media (max-width: 900px) { .beleg-b { grid-template-columns: 1fr; } .pdf-frame, .pdf-frame iframe { min-height: 60vh; } }
.g2g { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1100px) { .g2g { grid-template-columns: minmax(0, 1fr); } }
.disc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.felder5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.felder2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .disc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .felder5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .felder2 { grid-template-columns: minmax(0, 1fr); } }
.felder3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.felder2e { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .felder3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .felder3, .felder2e { grid-template-columns: minmax(0, 1fr); } }

/* Stichpunkte der Mailauswertung */
.punkte { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.punkte li { line-height: 1.45; }
.punkte li::marker { color: #7fb2ff; }

/* Plus-Knopf für Aktivitäten in der linken Leiste */
.neu-akt { width: 100%; justify-content: center; margin: 4px 0 14px; }
.kunde-treffer { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; margin-top: 6px; }
.kunde-treffer button { text-align: left; background: #0f2440; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; }
.kunde-treffer button:hover, .kunde-treffer button:focus-visible { border-color: #3d8bff; }

.empf-wahl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 4px; }
.empf { display: inline-flex; gap: 2px; }
.empf .chip.cc { padding-left: 8px; padding-right: 8px; opacity: .75; }

/* Filterleiste in den Reitern der Kundenakte */
.filterleiste { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.filterleiste #tf-q { flex: 1 1 220px; max-width: 320px; }
.filterleiste select.in { width: auto; min-width: 150px; }

/* Quartalsdiagramm der Kundenakte: je Balken eigener Wert, mehr Luft */
.qchart { display: grid; gap: 10px; align-items: end; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.qcol { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.qbars { display: flex; gap: 6px; align-items: flex-end; justify-content: center; height: 150px; }
.qbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.qbar .b { width: 18px; border-radius: 5px 5px 2px 2px; }
.qchart .b.a { background: #3d8bff; } .qchart .b.o { background: var(--blue-p); }
.qv { font-size: 12px; color: var(--soft); min-height: 15px; }
.qcol .lab { font-size: 11px; color: var(--faint); white-space: nowrap; }
@media (max-width: 860px) { .qbar .b { width: 11px; } .qbars { gap: 3px; } }

/* Kundenmenü links */
.menu .zurueck-link { opacity: .8; }
.menu .kunde-kopf { padding: 10px 12px 12px; font-weight: 700; color: var(--text); line-height: 1.3; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; }
.menu .kunde-kopf .faint { font-weight: 400; font-size: 12px; }

form.drop { outline: 2px dashed #3d8bff; outline-offset: -6px; background: rgba(61,139,255,.06); }
.anhaenge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.anhaenge a.chip { text-decoration: none; }

.ausz-kachel { display: block; padding: 10px 12px; border-radius: 12px; background: var(--side); color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.ausz-kachel:hover, .ausz-kachel:focus-visible { border-color: #2d5f99; }

.punkte li a { text-decoration: none; }
.punkte li a:hover { text-decoration: underline; text-decoration-color: rgba(127, 178, 255, .5); }
.punkte li { font-size: 13px; }

.abw { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--amber, #f0b429); }
.abw li { margin: 2px 0; }

/* Kundenmenü deutlich vom Hauptmenü unterscheiden: türkiser Ton statt Blau */
aside.side.kunde-modus { background: linear-gradient(180deg, #0c2a2c 0%, #0a2224 100%); border-right-color: rgba(45, 200, 170, .25); }
aside.side.kunde-modus nav.menu a.on { background: #11403d; box-shadow: inset 3px 0 0 #2dc8aa; }
aside.side.kunde-modus nav.menu a:hover { background: #10363a; }
aside.side.kunde-modus .kunde-kopf { background: rgba(45, 200, 170, .12); border: 1px solid rgba(45, 200, 170, .35); border-radius: 10px; margin: 0 0 8px; }
aside.side.kunde-modus .kunde-kopf .faint { color: #8fd9c8; }

.sprache-wahl { width: auto; padding: 6px 10px; font-size: 12px; }
iframe.mailhtml { width: 100%; height: 60vh; border: 0; border-radius: 10px; background: #fff; }
.aenderungen { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.aenderungen li { margin: 2px 0; }
.aenderungen s { color: var(--muted, #8aa0b8); }

.card.dringend { border-color: rgba(255, 107, 107, .55); box-shadow: inset 4px 0 0 #ff6b6b; }

.hint-aktionen { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.snooze { position: relative; display: inline-block; }
.snooze-wahl { display: flex; gap: 6px; position: absolute; right: 0; top: calc(100% + 4px); background: var(--card2, #12283f); border: 1px solid var(--line); border-radius: 10px; padding: 6px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.snooze-wahl[hidden] { display: none; }

/* Cockpit-Baukasten */
.bst-bar { margin-bottom: 18px; }
.bst-region { min-height: 64px; border-radius: 14px; outline: 1px dashed rgba(127, 178, 255, .25); outline-offset: 4px; }
.bst-edit { position: relative; border: 1px dashed rgba(127, 178, 255, .55); border-radius: 14px; padding: 6px; margin-bottom: 12px; cursor: grab; background: rgba(61, 139, 255, .04); }
.bst-edit:active { cursor: grabbing; }
.bst-leiste { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.bst-titel { flex: 1; font-weight: 600; font-size: 12px; color: var(--dim, #9fb3cf); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bst-edit .bst-inhalt { pointer-events: none; opacity: .8; max-height: 320px; overflow: hidden; }
.grid.bst-region > .bst-edit { margin-bottom: 0; }

/* ---------- Kalender (Tag, Woche, Monat) ---------- */
.kal-leiste { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kal-titel { margin-left: 8px; font-size: 16px; }
.kal-legende { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.kal-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.kal-woche { background: var(--card, #0f2440); border: 1px solid var(--line); border-radius: 14px; overflow: auto; max-height: calc(100vh - 250px); min-height: 320px; position: relative; }
.kal-woche:not(.eintag) { --min: 760px; }
.kal-kopfzeile, .kal-ganztag { display: grid; grid-template-columns: 52px repeat(var(--spalten), minmax(0, 1fr)); min-width: var(--min, 0); position: sticky; background: var(--card, #0f2440); z-index: 3; }
.kal-kopfzeile { top: 0; border-bottom: 1px solid var(--line); }
.kal-ganztag { top: 41px; border-bottom: 1px solid var(--line); }
.kal-tagkopf { padding: 10px 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); text-decoration: none; }
.kal-tagkopf.heute { color: #fff; box-shadow: inset 0 -3px 0 #3d8bff; }
.kal-tagkopf.we, .kal-spalte.we { background: rgba(255, 255, 255, .02); }
.kal-ecke { font-size: 11px; padding: 6px 4px; text-align: right; }
.kal-gz { border-left: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kal-raster { display: grid; grid-template-columns: 52px repeat(var(--spalten), minmax(0, 1fr)); min-width: var(--min, 0); position: relative; }
.kal-zeiten > div { position: relative; }
.kal-zeiten span { position: absolute; top: -8px; right: 6px; font-size: 11px; color: var(--dim); }
.kal-spalte { position: relative; border-left: 1px solid var(--line); }
.kal-spalte.heute { background: rgba(61, 139, 255, .05); }
.kal-linie { border-top: 1px solid rgba(255, 255, 255, .06); box-sizing: border-box; }
.kal-termin { position: absolute; box-sizing: border-box; border-left: 4px solid #3d8bff; border-radius: 6px; padding: 3px 6px; overflow: hidden; font-size: 12px; line-height: 1.3; color: var(--text); text-decoration: none; display: flex; flex-direction: column; }
.kal-termin:hover { filter: brightness(1.25); z-index: 2; }
.kal-termin strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-termin span { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-jetzt { position: absolute; left: 0; right: 0; height: 2px; background: #ff5d5d; z-index: 2; pointer-events: none; }
.kal-chip { display: block; border-left: 3px solid #3d8bff; background: rgba(61, 139, 255, .12); border-radius: 4px; padding: 2px 6px; font-size: 12px; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-chip:hover { filter: brightness(1.25); }
.kal-monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, #0f2440); }
.kal-kopf { padding: 8px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.kal-zelle { min-height: 112px; padding: 4px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kal-zelle:nth-child(7n + 8) { border-left: 0; }
.kal-zelle.fremd { background: rgba(0, 0, 0, .18); }
.kal-zelle.fremd .kal-nr { color: var(--dim); }
.kal-zelle.heute .kal-nr { background: #3d8bff; color: #fff; }
.kal-nr { align-self: flex-start; min-width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 12px; font-size: 12.5px; color: var(--text); text-decoration: none; }
.kal-mehr { font-size: 11.5px; color: var(--blue-l, #7fb2ff); text-decoration: none; padding-left: 4px; }
@media (max-width: 720px) { .kal-zelle { min-height: 80px; } .kal-chip { font-size: 11px; } }

.mail-zuordnung { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.mail-zuordnung select { flex: 1 1 260px; min-width: 0; }

/* ---------- E-Mails wie in Outlook ---------- */
.neu-gruppe { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.neu-gruppe .neu-akt { margin: 0; }
.neu-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.neu-zeile .btn { justify-content: center; padding-left: 8px; padding-right: 8px; font-size: 13px; white-space: nowrap; }
.mb { display: grid; grid-template-columns: 260px 360px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, #0f2440); height: calc(100vh - 190px); min-height: 420px; }
.mb-ordner { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .12); overflow: auto; min-width: 0; }
.mb-ordner button.alt { text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; background: none; border: 0; cursor: pointer; }
.mb-ordner button:hover { background: #15304d; color: var(--text); }
.mb-ordner button.on { background: #16345a; color: #fff; font-weight: 600; }
.mb-reaktionen { margin-top: auto; padding: 9px 12px; font-size: 13px; color: var(--muted); }
.mb-mitte { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.mb-suche { padding: 8px; border-bottom: 1px solid var(--line); }
.mb-suche input { width: 100%; }
.mb-liste { overflow-y: auto; flex: 1; }
.mb-zeile { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); background: none; color: var(--text); cursor: pointer; }
.mb-zeile:hover { background: #15304d; }
.mb-zeile.on { background: #16345a; box-shadow: inset 3px 0 0 #3d8bff; }
.mb-zeile.neu .mb-von, .mb-zeile.neu .mb-betreff { font-weight: 700; }
.mb-von, .mb-betreff, .mb-vorschau { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-betreff { grid-column: 1 / -1; font-size: 13.5px; }
.mb-vorschau { grid-column: 1 / -1; color: var(--dim); font-size: 12.5px; }
.mb-zeit { color: var(--dim); font-size: 12px; white-space: nowrap; }
.mb-chip { grid-column: 1 / -1; justify-self: start; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: rgba(45, 200, 170, .14); color: #7fe0cc; }
.mb-chip.lf { background: rgba(245, 181, 68, .14); color: var(--amber); }
.mb-mehr { margin: 10px; }
.mb-leser { overflow-y: auto; min-width: 0; display: flex; flex-direction: column; }
.mb-kopf { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mb-kopf h2 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.mb-text { flex: 1; min-height: 240px; }
.mb-text .mailhtml { width: 100%; min-height: 420px; border: 0; background: #fff; }
.mb-uebersetzung, .mc-ergebnis { margin: 10px 16px; padding: 10px 12px; border: 1px solid rgba(61, 139, 255, .35); border-radius: 10px; background: rgba(61, 139, 255, .07); }
.mc-ergebnis { margin: 0; }
.mc-hinweise { margin: 6px 0 0; padding-left: 18px; }
.mc-hinweise li { margin: 2px 0; }
@media (max-width: 1100px) { .mb { grid-template-columns: 150px 300px minmax(0, 1fr); } }
@media (max-width: 860px) { .mb { grid-template-columns: 1fr; height: auto; } .mb-ordner { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); } .mb-reaktionen { margin-top: 0; } .mb-mitte { border-right: 0; max-height: 50vh; } }

.mb { grid-template-rows: minmax(0, 1fr); }
.mb-leser { min-height: 0; overscroll-behavior: contain; }
.mb-ord { display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.mb-ord:hover { background: #15304d; color: var(--text); }
.mb-ord.on { background: #16345a; color: #fff; font-weight: 600; }
.mb-zahl { font-size: 11.5px; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 10px; background: #3d8bff; color: #fff; }
.mb-ordner { overflow-y: auto; }
.mb-reaktion { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(95, 212, 196, .08); border: 1px solid rgba(95, 212, 196, .25); font-size: 13px; }
.mb-text .mailhtml { min-height: 200px; display: block; }
#mb-sprache, #mc-sprache { width: auto; min-width: 130px; }

/* ---------- Popups bei neuen E-Mails und Aufgaben ---------- */
/* Adressvorschläge im Feld An, Kopie */
.adress-box { position: fixed; z-index: 90; background: #12304f; border: 1px solid rgba(61, 139, 255, .5); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-height: 320px; overflow: auto; padding: 4px; }
.adress-box button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-radius: 7px; padding: 7px 10px; color: var(--text); cursor: pointer; }
.adress-box button.on, .adress-box button:hover { background: rgba(61, 139, 255, .25); }
.adress-box .a-name { font-weight: 600; font-size: 13px; }
.adress-box .a-mail { font-size: 12px; color: var(--muted); }
.adress-box .a-art { font-size: 11px; color: var(--faint); }
.popups { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.popup { display: flex; align-items: flex-start; gap: 4px; background: #12304f; border: 1px solid rgba(61, 139, 255, .5); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: auto; animation: popin .25s ease-out; }
.pl-karte.pl-fokus { box-shadow: 0 0 0 2px rgba(61, 139, 255, .85), 0 8px 24px rgba(61, 139, 255, .18); }
.pl-spalte.pl-ziel { outline: 2px dashed rgba(61, 139, 255, .7); outline-offset: 4px; border-radius: 12px; }
.pl-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pl-board { grid-template-columns: 1fr; } }
.popup.hoch { background: #4a1d1d; border-color: rgba(255, 99, 99, .8); box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 99, 99, .25); }
.popup-text { flex: 1; text-align: left; padding: 12px 4px 12px 14px; background: none; border: 0; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.popup-text strong { font-size: 14px; }
.popup-text span { font-size: 13px; color: var(--muted); white-space: pre-line; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.popup-zu { background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; padding: 8px 12px; cursor: pointer; }
@keyframes popin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.mb-knoten { display: flex; align-items: center; }
.mb-umschalter { width: 22px; flex: none; height: 28px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0; border-radius: 6px; }
button.mb-umschalter:hover { background: #15304d; color: var(--text); }
.mb-umschalter.leer { display: inline-block; cursor: default; }
.mb-knoten .mb-ord { flex: 1; min-width: 0; padding-left: 6px; }
.mb-ordname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mb-ord.ziel { background: #1f4f87; color: #fff; box-shadow: inset 0 0 0 2px #3d8bff; }
.mb-zeile[draggable="true"] { cursor: grab; }
#mb-verschieben { width: auto; min-width: 150px; }

.mb-ord.ungelesen .mb-ordname { font-weight: 700; color: var(--text); }
.mb-zeile.neu .mb-zeit { font-weight: 700; color: #7fb2ff; }
.mb-zeile.neu { box-shadow: inset 3px 0 0 rgba(61, 139, 255, .55); }
.mb-zeile.neu.on { box-shadow: inset 3px 0 0 #3d8bff; }
.mb-zeile.neu .mb-vorschau { color: var(--muted); }

.mc-sprachblock { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.mc-sprachblock select { width: auto; min-width: 220px; }

/* ---------- Handy: E-Mails, Kalender, Fenster, Popups ---------- */
.mb-ordner-kopf, .mb-zurueck { display: none; }
@media (max-width: 860px) {
  .mb { display: block; height: auto; min-height: 0; }
  .mb-ordner { display: block; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .mb-ordner-kopf { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: #15304d; color: var(--text); font-size: 14px; cursor: pointer; }
  .mb-ordner #mb-baum, .mb-ordner .mb-reaktionen { display: none; }
  .mb-ordner.offen #mb-baum { display: block; margin-top: 6px; }
  .mb-ordner.offen .mb-reaktionen { display: block; }
  .mb-mitte { border-right: 0; max-height: none; }
  .mb-liste { max-height: calc(100vh - 230px); }
  .mb-leser { display: none; overflow: visible; }
  .mb.mb-offen .mb-ordner, .mb.mb-offen .mb-mitte { display: none; }
  .mb.mb-offen .mb-leser { display: flex; }
  .mb-zurueck { display: inline-block; padding: 4px 0 8px; }
  .mb-kopf { padding: 12px; }
  .mb-kopf .row .btn, .mb-kopf .row select { flex: 1 1 auto; }
  .mb-text .mailhtml { min-height: 160px; }
}
@media (max-width: 720px) {
  dialog.modal.mailfenster { resize: none; min-width: 0; min-height: 0; }
  dialog.modal, dialog.modal.mittel, dialog.modal.wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  dialog.modal .modal-b { max-height: none; }
  .modal-f { flex-wrap: wrap; position: sticky; bottom: 0; background: var(--card); }
  .modal-f .btn { flex: 1 1 auto; }
  .mc-sprachblock select, .mail-zuordnung select, #mb-verschieben { width: 100%; min-width: 0; }
  .pagehead { flex-wrap: wrap; gap: 10px; }
  .kal-leiste { gap: 8px; }
  .kal-titel { display: block; margin: 6px 0 0; }
  .top .search kbd { display: none; }
  .tbl-wrap { overflow-x: auto; }
  .popups { right: 8px; left: 8px; bottom: 8px; width: auto; }
}

/* ---------- Handy: gesamte Anwendung ---------- */
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; }
  header.top { position: sticky; top: 0; z-index: 20; padding: 8px 12px; gap: 8px; height: auto; background: rgba(8, 20, 34, .94); backdrop-filter: blur(8px); }
  .search { flex: 1 1 auto; width: auto; min-width: 0; }
  .search input { height: 40px; padding: 0 10px 0 38px; font-size: 16px; }
  .search svg.i { top: 10px; left: 12px; }
  .stand { margin-left: 0; gap: 6px; }
  .content { padding: 14px 12px 96px; }
  h1 { font-size: 24px; }
  h2 { font-size: 17px; }
  .pagehead { margin-bottom: 14px; gap: 10px; align-items: flex-start; }
  .pagehead > .r, .pagehead > .row, .pagehead .r > .row { width: 100%; }
  .row { flex-wrap: wrap; }
  .card { padding: 14px; }
  .card-h { flex-wrap: wrap; gap: 6px; }
  .grid { gap: 10px; }
  .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; gap: 6px; }
  .kpi .v { font-size: 22px; }
  .kpi .v.s { font-size: 19px; }
  .kpi .l, .kpi .d, .kpi .faint { font-size: 12px; }
  .btn { min-height: 42px; }
  .btn.sm { min-height: 38px; }
  .chip { min-height: 36px; }
  input, select, textarea, .in { font-size: 16px; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.t th, table.t td { padding: 8px 8px; }
  .akte-head { padding: 16px; gap: 12px; }
  .akte-head h1 { font-size: 22px; }
  .tags { gap: 6px; }
  .task { padding: 12px 4px; }
  .task input { width: 22px; height: 22px; }
  .hint { padding: 12px; }
  .toast { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

/* Tabellen als Karten */
@media (max-width: 720px) {
  table.t.mobil-stapel, table.t.mobil-stapel tbody { display: block; width: 100%; }
  table.t.mobil-stapel thead { display: none; }
  table.t.mobil-stapel tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 12px 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
  table.t.mobil-stapel tr:first-child { border-top: 0; }
  table.t.mobil-stapel td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; overflow-wrap: anywhere; }
  table.t.mobil-stapel td.num { text-align: left; }
  table.t.mobil-stapel td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--dim); margin-bottom: 1px; }
  table.t.mobil-stapel td[data-label=""]::before { display: none; }
  table.t.mobil-stapel td:first-child { grid-column: 1 / -1; font-size: 15px; }
  table.t.mobil-stapel td:empty { display: none; }
  table.t.mobil-stapel tr.click { cursor: pointer; }
}
@media (max-width: 400px) {
  .kpi .v { font-size: 20px; }
  .kpi .v.s { font-size: 17px; }
  .g4, .g3 { gap: 8px; }
}
@media (max-width: 720px) { table.t.mobil-stapel td:first-child::before { display: none; } }

/* Diktat läuft: deutlich erkennbar */
.btn.diktat-an, .diktat-an { color: #ff8a8a; font-weight: 600; }
.diktat-an::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5d5d; margin-right: 6px; animation: diktatpuls 1s ease-in-out infinite; }
@keyframes diktatpuls { 50% { opacity: .25; } }

/* Menügruppen (Auswertung, Rechnungswesen, Einstellungen) und eingerückte Punkte */
nav.menu .menu-gruppe { width: 100%; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; margin-top: 8px; border: 0; border-radius: 10px; background: none; color: #8fb2d8; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
nav.menu .menu-gruppe:hover { background: #15304d; color: var(--text); }
nav.menu .menu-gruppe .l { display: flex; align-items: center; gap: 12px; }
nav.menu .menu-gruppe .pfeil { transition: transform .2s; opacity: .7; }
nav.menu .menu-gruppe:not(.offen) .pfeil { transform: rotate(-90deg); }
nav.menu .menu-kinder { display: flex; flex-direction: column; gap: 2px; }
nav.menu .menu-kind { padding-left: 38px; height: 38px; font-size: 13.5px; }
nav.menu .menu-kind span.l svg { width: 15px; height: 15px; }

/* Diagramme (SVG) und Kuchen */
.chart-svg svg { display: block; width: 100%; height: auto; }
.chart-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart-legende span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.chart-legende i.gestrichelt { width: 16px; height: 0; border-top: 2px dotted #9cc4ff; border-radius: 0; }
.kuchen { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.kuchen svg { flex-shrink: 0; }
.kuchen-legende { flex: 1 1 200px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kuchen-zeile { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kuchen-zeile i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.kuchen-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kuchen-wert { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Punkt mit Unterpunkten (Lieferanten mit Bestellungen): Pfeil rechts neben dem Link */
nav.menu .menu-eltern { display: flex; align-items: center; gap: 2px; }
nav.menu .menu-eltern > a { flex: 1; min-width: 0; }
nav.menu .menu-pfeil { width: 34px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
nav.menu .menu-pfeil:hover { background: #15304d; color: var(--text); }
nav.menu .menu-pfeil .pfeil { transition: transform .2s; opacity: .8; display: flex; }
nav.menu .menu-pfeil:not(.offen) .pfeil { transform: rotate(-90deg); }

/* Verschiebbare Spalten */
.teiler { position: absolute; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 5; touch-action: none; }
.teiler::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: transparent; transition: background .15s; }
.teiler:hover::after, .teiler:focus-visible::after, .teiler.zieht::after { background: #3d8bff; }
.teiler:focus-visible { outline: none; }
body.teiler-zieht { cursor: col-resize; user-select: none; }
body.teiler-zieht iframe { pointer-events: none; }
@media (max-width: 860px) { .teiler { display: none; } }

/* Klickbare Diagramme */
.kuchen-zeile[data-klick] { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.kuchen-zeile[data-klick]:hover { background: rgba(61, 139, 255, .15); }
.chart-svg [data-klick]:hover { filter: brightness(1.25); }
tr[data-klick] { cursor: pointer; }
tr[data-klick]:hover td { background: rgba(61, 139, 255, .08); }
.kuchen svg [data-klick]:hover { filter: brightness(1.2); }
.dr-balken { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.dr-zeile { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 90px; gap: 10px; align-items: center; cursor: pointer; padding: 3px 6px; border-radius: 8px; }
.dr-zeile:hover, .dr-zeile.on { background: rgba(61, 139, 255, .14); }
.dr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.dr-bahn { height: 10px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; }
.dr-bahn i { display: block; height: 100%; background: linear-gradient(90deg, #3d8bff, #5fd4c4); border-radius: 6px; }
.dr-wert { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
/* Teile, die bei der stillen Aktualisierung neu entstehen, blenden nicht noch einmal ein */
.kein-anim, .kein-anim * { animation: none !important; }

/* Infokarte über Diagrammen */
.tipp { position: fixed; z-index: 10000; max-width: 360px; min-width: 190px; background: #0e2236; border: 1px solid #2d5a8c; border-radius: 12px; padding: 10px 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); font-size: 12.5px; pointer-events: none; }
.tipp[hidden] { display: none; }
.tipp-t { font-weight: 700; margin-bottom: 6px; color: #e8f1fb; }
.tipp-z { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; color: #c9d6e6; }
.tipp-z b { font-weight: 600; color: #e8f1fb; white-space: nowrap; }
.tipp-f { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fa9c4; }
[data-tipp], .kuchen path, .kuchen-zeile, .dr-zeile { transition: opacity .15s, filter .15s; }
.kuchen path:hover, .kuchen circle:hover { filter: brightness(1.25); }
.kuchen-zeile:hover, .dr-zeile:hover { background: rgba(127, 178, 255, .08); }
svg rect[data-tipp]:hover, svg circle[data-tipp]:hover { filter: brightness(1.3); }
/* Pipeline als Trichter */
.tr-gitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .tr-gitter { grid-template-columns: minmax(0, 1fr); } }
.trichter h3 { margin: 0 0 8px; font-size: 14px; color: #c9d6e6; }
.tr-zeile { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.tr-zeile:hover { background: rgba(127, 178, 255, .1); }
.tr-name { font-size: 13px; }
.tr-bahn { display: block; height: 22px; background: rgba(255, 255, 255, .05); border-radius: 11px; overflow: hidden; }
.tr-bahn i { display: block; height: 100%; border-radius: 11px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tr-wert { font-weight: 700; text-align: right; }
.tr-wert small { display: block; font-weight: 400; font-size: 11px; color: #8fa9c4; }
@media (max-width: 520px) { .tr-zeile { grid-template-columns: 100px minmax(0, 1fr) 60px; } }

/* Diktat */
.diktat-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(127, 178, 255, .06); font-size: 12.5px; }
.diktat-leiste[hidden] { display: none; }
.dk-punkt { width: 9px; height: 9px; border-radius: 50%; background: #5b7691; flex: none; }
.dk-an .dk-punkt { background: #ff5b5b; animation: dk-puls 1.1s infinite; }
@keyframes dk-puls { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 91, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 91, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0); } }
.dk-status { color: #c9d6e6; }
.dk-pegel { width: 70px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; flex: none; }
.dk-pegel i { display: block; height: 100%; width: 0; background: #2dc8aa; transition: width .08s linear; }
.dk-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.diktat-an { color: #ff8a8a !important; font-weight: 700; }

/* Schulung: Bausteine als zweispaltige Auswahl */
.sch-bl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.sch-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sch-b.an { border-color: rgba(61, 139, 255, .6); background: rgba(61, 139, 255, .08); }
.sch-b select.in { width: 130px; flex: none; padding: 5px 8px; }

/* Startseite */
.start-kachel { border: 1px solid var(--line); background: inherit; color: inherit; font: inherit; padding: 18px 20px; }
/* Erfassung der Teilnehmer auf dem GTG-Gerät: ohne Menü */
body.erfassung-modus .side, body.erfassung-modus header.top, body.erfassung-modus .popups, body.erfassung-modus .orb { display: none !important; }
body.erfassung-modus .shell { display: block; }
body.erfassung-modus .main { margin: 0 auto; max-width: 780px; }
.erfassung { padding: 16px; }
.erfassung details p { font-size: 14px; }
