:root { --ink: #17181b; --muted: #44474e; --soft: #5b5e66; --line: #e4e2dc; --bg: #f5f4f1; --card: #fff; --dark: #0d0e10; --accent: #ffb71f; --accent-soft: #fff6e2; --warn: #8a4b00; --warn-bg: #fdecd0; --ok: #1d5b2e; --ok-bg: #e3f2e6; --blue: #1d3f8a; --blue-bg: #dbe6ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Poppins, system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
a { color: #2f5fc4; }
button, input, select, textarea { font: inherit; color: inherit; }
.app { display: flex; min-height: 100vh; }
.side { width: 232px; flex: 0 0 232px; background: var(--dark); color: #e9e7e2; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side img { width: 176px; margin: 4px 8px 0; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; color: #d6d3cc; text-decoration: none; }
.nav a:hover { background: #1b1d21; }
.nav a.on { background: var(--accent); color: var(--dark); font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.nav .badge { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--accent); color: var(--dark); padding: 2px 8px; border-radius: 99px; }
.nav a.on .badge { background: var(--dark); color: var(--accent); }
.nav .lock { margin-left: auto; font-size: 10px; color: #a9a6a0; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 13px; }
.side .me .av { width: 32px; height: 32px; border-radius: 99px; background: #2a2c31; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.side .me small { display: block; color: #a9a6a0; font-size: 11px; }
.side .me button { margin-left: auto; background: none; border: 0; color: #a9a6a0; cursor: pointer; font-size: 12px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search { flex: 1 1 320px; position: relative; }
.search input { width: 100%; height: 42px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 0 12px 0 36px; }
.search svg { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; }
.results { position: absolute; top: 46px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 360px; overflow: auto; }
.results a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid #f0eee9; }
.results a:hover { background: var(--bg); }
.content { padding: 24px 28px 40px; }
.btn { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { border-color: #c9c6bf; }
.btn.dark { background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 600; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--dark); font-weight: 600; }
.btn.green { background: #2e7d45; border-color: #2e7d45; color: #fff; font-weight: 600; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.big { height: 48px; min-width: 120px; font-size: 15px; font-weight: 600; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: default; }
.iconbtn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 99px; background: #d33; }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.kicker { font-size: 12px; color: var(--soft); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-1 { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-2 { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-3 { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.card.warn { background: var(--accent-soft); border-color: #f3dfb0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; display: inline-block; }
.tag.A { background: var(--accent); color: var(--dark); }
.tag.B { background: var(--blue-bg); color: var(--blue); }
.tag.C { background: #ebe9e4; color: var(--muted); }
.tag.D { background: #fff; color: var(--muted); border: 1px solid #c9c6bf; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; display: inline-block; white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.grey { background: #ebe9e4; color: var(--muted); }
.pill.red { background: var(--warn); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: #ebe9e4; padding: 4px; border-radius: 10px; }
.tabs button, .tabs a { border: 0; background: transparent; border-radius: 8px; padding: 8px 14px; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: none; }
.tabs .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.board { overflow-x: auto; padding-bottom: 10px; }
.board-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; align-items: start; }
.lane { background: #ebe9e4; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 420px; }
.lane.over { outline: 2px dashed var(--dark); }
.lane-h { padding: 4px 6px 6px; }
.lane-h h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; text-decoration: none; color: var(--ink); cursor: grab; box-shadow: 0 1px 2px rgba(13,14,16,.05); }
.lcard:hover { border-color: #c9c6bf; }
.lcard .name { font-weight: 600; }
.lcard .foot { border-top: 1px solid #efede8; padding-top: 7px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.drops { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.drop { border: 2px dashed #b5b2ab; border-radius: 14px; padding: 16px; background: #fff; }
.drop.won { border-color: #2e7d45; background: #eef7f0; color: var(--ok); }
.drop.over { outline: 3px solid var(--dark); }
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 4px; overflow-x: auto; }
.stepper button { border: 0; padding: 9px 10px; font-size: 12px; text-align: left; cursor: pointer; background: #ebe9e4; color: var(--muted); border-radius: 0; }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper button.done { background: var(--dark); color: #fff; }
.stepper button.now { background: var(--accent); color: var(--dark); font-weight: 600; }
.vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.vsteps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; border: 0; background: none; font-size: 12.5px; cursor: pointer; text-align: left; }
.vsteps .num { flex: 0 0 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1px solid #c9c6bf; color: var(--muted); }
.vsteps .done { color: var(--soft); }
.vsteps .done .num { background: var(--dark); color: #fff; border-color: var(--dark); }
.vsteps .now { background: var(--accent); font-weight: 600; }
.vsteps .now .num { background: var(--dark); color: var(--accent); border-color: var(--dark); }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.tl { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; }
.tl .ic { flex: 0 0 30px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #ebe9e4; }
.tl.mail .ic { background: var(--accent-soft); color: var(--warn); }
.tl.anruf .ic { background: var(--blue-bg); color: var(--blue); }
.tl.notiz .ic { background: var(--ok-bg); color: var(--ok); }
.tl .t { white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea, .inp { height: 40px; border: 1px solid #d9d6cf; border-radius: 8px; padding: 0 10px; font-size: 14px; color: var(--ink); background: #fff; }
.field textarea, textarea.inp { height: auto; padding: 10px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--dark); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--soft); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; font-weight: 600; }
table.t td { border-top: 1px solid #efede8; padding: 8px; vertical-align: middle; }
table.t tr.off td { color: #8b8e95; background: #faf9f6; }
.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.qty input { width: 48px; height: 28px; text-align: center; border: 1px solid var(--line); border-radius: 6px; }
.price { width: 100px; height: 32px; text-align: right; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.posname { width: 100%; min-width: 220px; height: 32px; border: 1px solid transparent; border-radius: 6px; padding: 0 6px; background: transparent; }
.posname:hover, .posname:focus { border-color: var(--line); background: #fff; }
.totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; padding: 14px 16px; background: #faf9f6; border-top: 1px solid var(--line); }
.totals div { display: flex; flex-direction: column; align-items: flex-end; }
.totals b { font-size: 18px; }
.callcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.callcard.over { border-color: #e9b65c; }
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--accent-soft); border-radius: 10px; padding: 12px; }
.ask b { font-size: 16px; margin-right: 6px; }
.result { font-size: 13px; font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; }
.task { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.task input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--dark); }
.task .tt { flex: 1 1 240px; display: flex; flex-direction: column; }
.task.done .tt span:first-child { text-decoration: line-through; color: var(--soft); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--dark); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: 440px; }
.modal-bg { position: fixed; inset: 0; background: rgba(13,14,16,.45); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow: auto; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: min(640px, 100%); display: flex; flex-direction: column; gap: 14px; }
.dropdown { position: absolute; right: 0; top: 48px; width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.15); max-height: 420px; overflow: auto; z-index: 20; }
.dropdown a, .dropdown div.n { display: block; padding: 10px 14px; border-bottom: 1px solid #f0eee9; color: var(--ink); text-decoration: none; font-size: 13px; }
.dropdown .unread { background: var(--accent-soft); }
.say { font-size: 17px; line-height: 1.6; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid #d9d6cf; background: #fff; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.bubble { border-radius: 10px; padding: 8px 10px; max-width: 92%; font-size: 13px; line-height: 1.5; background: var(--bg); }
.switch { width: 46px; height: 26px; border-radius: 99px; border: 0; padding: 3px; cursor: pointer; display: flex; background: #c9c6bf; }
.switch span { width: 20px; height: 20px; border-radius: 99px; background: #fff; }
.switch.on { background: var(--dark); justify-content: flex-end; }
.switch.on span { background: var(--accent); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark); }
.login form { background: #fff; border-radius: 18px; padding: 28px; width: min(380px, 92vw); display: flex; flex-direction: column; gap: 14px; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 300px; }
.ev { font-size: 12px; border-left: 3px solid var(--accent); background: var(--bg); padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); display: block; }
.ev.task { border-left-color: #2f5fc4; }
.ev.done { opacity: .5; text-decoration: line-through; }
.empty { color: var(--soft); font-size: 13px; padding: 8px 0; }
@media (max-width: 760px) { .side { width: 100%; flex-basis: 100%; height: auto; position: static; } .app { flex-direction: column; } .week { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } .content { padding: 16px; } }

/* Uhr im Kopfbereich + Ortszeit */
.clock { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 13px; }
.clock span { display: flex; flex-direction: column; line-height: 1.2; }
.clock small { font-size: 11px; color: var(--muted); }
.clock b { font-size: 15px; font-variant-numeric: tabular-nums; }
.clock.abroad { background: var(--blue-bg); color: var(--blue); padding: 6px 12px; border-radius: 12px; }
.clock.abroad small { color: var(--blue); }
.ortszeit { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-bg); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.ortszeit.block { display: block; margin-top: 2px; width: max-content; }
/* Signatur-Auswahl */
.sigpick { display: flex; flex-wrap: wrap; gap: 12px; }
.sigopt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; cursor: pointer; background: #fff; }
.sigopt.on { border-color: var(--accent); background: #fff8e8; }
.sigopt input { position: absolute; opacity: 0; pointer-events: none; }
.sigopt img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* Angepinnte Notizen */
.pins { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pin { background: #fff4d6; border: 1.5px solid #f3c45a; border-left: 6px solid var(--accent); border-radius: 12px; padding: 12px 16px; }
.pintag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--dark); color: #fff; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.pintext { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--dark); }
.pinmeta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pinadd { align-self: flex-start; }
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--blue); font-size: 12px; cursor: pointer; text-decoration: underline; }
.pins.compact { margin: 8px 0 0; }
.pins.compact .pin { padding: 6px 10px; border-left-width: 4px; }
.pins.compact .pintext { font-size: 13px; }

/* Dokumente, Bilder, Unterlagen */
.docsbox.drag { outline: 3px dashed var(--accent); outline-offset: -6px; background: #fffaf0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip span { color: var(--muted); margin-left: 2px; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip.on span { color: #ccc; }
.docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.doc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.docthumb { display: flex; align-items: center; justify-content: center; height: 120px; background: #f4f2ee; overflow: hidden; }
.docthumb img { width: 100%; height: 100%; object-fit: cover; }
.docicon { font-weight: 800; font-size: 20px; color: #c0392b; background: #fff; border: 2px solid #e6c3bd; border-radius: 8px; padding: 14px 12px; }
.docinfo { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docname { font-weight: 600; font-size: 13px; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir.in { color: var(--ok); font-weight: 600; }
.dir.out { color: var(--blue); font-weight: 600; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; }

.sigsel { height: 40px; width: auto; flex: 0 0 auto; }

.ev.outlook { background: #ecebe8; color: #55575c; border-left: 3px solid #b9b6af; }

.pausebar { background: #fff4d6; border-bottom: 1px solid #f3c45a; padding: 8px 28px; font-size: 13px; }
.pausebar a { margin-left: 6px; }

/* ---------- Kalender (Tag/Woche/Monat) ---------- */
.calbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.calbar .iconbtn { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; color: var(--ink); width: 38px; height: 38px; }
.caltitle { font-size: 26px; margin: 0 10px 0 6px; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-left: auto; }
.seg a { padding: 8px 16px; text-decoration: none; color: var(--ink); font-size: 14px; }
.seg a.on { background: var(--dark); color: #fff; }
.olpill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #ebe9e4; color: var(--muted); }
.olpill.on { background: var(--blue-bg); color: var(--blue); }
.calusr { height: 38px; width: auto; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cgrid { display: grid; }
.chead { border-bottom: 1px solid var(--line); background: #fcfbf9; }
.ch { text-align: center; padding: 10px 4px; }
.ch a { text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; }
.ch span { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.ch b { font-size: 22px; font-weight: 600; }
.ch.today b { background: var(--accent); color: var(--dark); border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.ch.today span { color: #b07a00; }
.callday { border-bottom: 1px solid var(--line); min-height: 36px; }
.callday .lbl { font-size: 10px; letter-spacing: .08em; color: var(--muted); padding: 10px 6px; font-weight: 600; }
.ca { border-left: 1px solid #efede8; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calscroll { max-height: calc(100vh - 300px); min-height: 420px; overflow-y: auto; }
.hours { position: relative; }
.hr { position: absolute; left: 0; right: 0; height: 0; }
.hr span { position: absolute; top: -8px; right: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc { position: relative; border-left: 1px solid #efede8; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 55px, #efede8 55px, #efede8 56px); }
.cc.wk { background-color: #fbfaf7; }
.cc.blocked, .mc.blocked { background-color: #f1f0ec; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 8px, transparent 8px 16px), repeating-linear-gradient(to bottom, transparent 0, transparent 55px, #e4e2dc 55px, #e4e2dc 56px); }
.cc.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: #e0352b; z-index: 4; pointer-events: none; transition: top .5s; }
.nowline.today::before { content: ''; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e0352b; }
.nowline.other { height: 1px; background: rgba(224, 53, 43, .35); }
.hours { position: relative; }
.nowlbl { position: absolute; right: 4px; transform: translateY(-50%); background: #e0352b; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 6px; z-index: 5; transition: top .5s; }
.cev { position: absolute; z-index: 2; border-radius: 8px; padding: 4px 6px 4px 8px; font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer; border-left: 4px solid; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.cev.allday, .cev.mini { position: static; }
.cev.anruf { background: #edf1f5; border-color: #6a8099; color: #3a4f68; }
.cev.termin { background: #e8f0fc; border-color: #2f6fd6; color: #1c4a94; }
.cev.bg { background: #f8f0d9; border-color: #c9a35a; color: #8a6615; }
.cev.bg .ck.on { background: #c9a35a; border-color: #c9a35a; }
.cev.aufgabe { background: #fff4d6; border-color: #e0a100; color: #6b4d00; }
.cev.ol { background: #4a4f5a; border-color: #2c3038; color: #fff; cursor: default; }
.cev.ol.free { background: #eceae5; color: #55575c; border-color: #b9b6af; }
.cev.done { opacity: .6; }
.cev.done .cti { text-decoration: line-through; }
.cev .ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; background: #fff; padding: 0; font-size: 11px; line-height: 15px; cursor: pointer; color: inherit; flex: 0 0 auto; }
.cev .ck.on { background: #2f8f4e; border-color: #2f8f4e; color: #fff; }
.cev .ct { font-weight: 700; white-space: nowrap; }
.cev .cti { font-weight: 600; flex: 1 1 60px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cev .csub { flex-basis: 100%; font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cev .av { width: 20px; height: 20px; border-radius: 50%; background: #c0392b; color: #fff; font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cev .olic { display: inline-flex; background: #fff; color: var(--blue); border-radius: 4px; padding: 1px; }
.cal.single .cev .cti { white-space: normal; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mhead, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mhead div { padding: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.mc { min-height: 118px; border-right: 1px solid #efede8; border-bottom: 1px solid #efede8; padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc.wk { background: #fbfaf7; }
.mc.other { opacity: .45; }
.mday { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 13px; padding: 2px 4px; align-self: flex-start; }
.mc.today .mday { background: var(--accent); border-radius: 99px; padding: 2px 8px; }
.cev.mini { font-size: 11.5px; padding: 2px 6px; border-left-width: 3px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { font-size: 11.5px; color: var(--blue); padding-left: 4px; }
@media (max-width: 900px) { .caltitle { font-size: 20px; } .seg { margin-left: 0; } }

/* ---------- E-Mail ---------- */
.mailapp { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-height: calc(100vh - 150px); overflow: hidden; }
.mside { background: #faf9f6; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.newmail { background: #2f8f4e; color: #fff; border: 0; justify-content: center; font-weight: 600; height: 42px; margin-bottom: 10px; }
.newmail:hover { background: #267a41; color: #fff; }
.mfolders { display: flex; flex-direction: column; gap: 2px; }
.mfolders a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.mfolders a:hover { background: #f0eee9; }
.mfolders a.on { background: #e8f0fc; color: #1c4a94; font-weight: 600; }
.mfolders .cnt { margin-left: auto; font-size: 12px; font-weight: 600; background: #e7e5e0; color: #55575c; border-radius: 99px; padding: 1px 8px; }
.mfolders .cnt.blue { background: #2f6fd6; color: #fff; }
.msep { font-size: 11px; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 14px 12px 4px; }
.mconn { margin-top: auto; font-size: 12px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.mconn.on { color: #1d5b2e; }
.mmain { min-width: 0; display: flex; flex-direction: column; }
.mtool { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mtool h1 { font-size: 22px; margin: 0; }
.msearch { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; height: 38px; flex: 1 1 220px; max-width: 420px; color: var(--muted); }
.msearch input { border: 0; background: transparent; outline: 0; flex: 1; font: inherit; color: var(--ink); min-width: 0; }
.seg.sm a { padding: 6px 12px; font-size: 13px; }
.seg.sm { margin-left: 0; }
.mtotal { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.mhint { background: #f5f8fe; border-bottom: 1px solid #dfe8f8; color: #1c4a94; font-size: 13px; padding: 9px 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mhint.warn { background: #fff7e6; color: #7a5200; border-color: #f2dfb5; }
.mlist { overflow: auto; }
.mrow { display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px 110px 24px 74px 70px; align-items: center; gap: 12px; padding: 0 18px; height: 54px; border-bottom: 1px solid #f0eee9; cursor: pointer; font-size: 14px; }
.mrow:hover { background: #fafaf8; }
.mrow:hover .mrowact { opacity: 1; }
.mrow:focus { outline: 2px solid #2f6fd6; outline-offset: -2px; }
.mwho { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.mwho .dot { width: 8px; height: 8px; border-radius: 50%; background: #2f6fd6; flex: 0 0 auto; }
.mcount { color: var(--muted); font-size: 13px; }
.msubj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msubj b { font-weight: 500; }
.mrow.unread .msubj b, .mrow.unread .mwho { font-weight: 700; }
.mprev { color: var(--muted); }
.mlead { min-width: 0; }
.leadchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 12.5px; color: #55575c; text-decoration: none; background: #f3f2ee; border-radius: 99px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leadchip:hover { background: #e8f0fc; color: #1c4a94; }
.matt { color: var(--muted); display: flex; }
.mdate { text-align: right; color: var(--muted); font-size: 13px; white-space: nowrap; }
.mrow.unread .mdate { color: var(--ink); font-weight: 600; }
.mstat { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #ebe9e4; color: #55575c; white-space: nowrap; margin-right: 4px; }
.mstat.err { background: #fde3e1; color: #a1281d; }
.mstat.ok { background: var(--ok-bg); color: var(--ok); }
.mstat.night { background: #ecebfa; color: #3f3a8c; }
.mstat.auto { background: #fff4d6; color: #7a5200; }
.mrowact { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transition: opacity .15s; }
.iconbtn.sm { width: 30px; height: 30px; }
@media (max-width: 1200px) { .mrow { grid-template-columns: 150px minmax(0, 1fr) 140px 90px 20px 64px 60px; } }
@media (max-width: 900px) { .mailapp { grid-template-columns: 1fr; } .mside { flex-direction: row; flex-wrap: wrap; } .mrow { grid-template-columns: 1fr auto; height: auto; padding: 10px 14px; } .mrow .mlead, .mrow .mstatcol, .mrow .matt, .mrow .mrowact { display: none; } }
.mthread { padding: 18px 24px 30px; display: flex; flex-direction: column; gap: 14px; background: #fbfaf8; flex: 1; }
.mth { font-size: 24px; margin: 0 0 4px; }
.mmsg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.mmsg.mine { border-left: 4px solid #2f8f4e; }
.mmsg header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.mav { width: 38px; height: 38px; border-radius: 50%; background: #2c3038; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.mmsg.mine .mav { background: var(--accent); color: var(--dark); }
.mfrom { flex: 1; min-width: 0; line-height: 1.4; }
.mwhen { white-space: nowrap; }
iframe.mbody { width: 100%; border: 0; display: block; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; border-top: 1px solid #f0eee9; padding-top: 10px; }
.attchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; color: var(--ink); text-decoration: none; }
.attchip:hover { border-color: #2f6fd6; }
.compose { display: flex; flex-direction: column; flex: 1; }
.cline { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 18px; min-height: 52px; }
.cline label { width: 70px; color: var(--muted); font-size: 14px; }
.cline input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; height: 50px; background: transparent; }
.ctools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.ddbtn { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ddbtn:hover, .fmt:hover { background: #efede8; }
.dd { position: relative; }
.ddmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.16); min-width: 300px; padding: 8px; }
.ddmenu.wide { width: min(640px, 80vw); }
.ddmenu .msearch { max-width: none; margin: 4px 4px 8px; }
.ddscroll { max-height: 420px; overflow: auto; }
.ddhead { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 10px 4px; display: flex; justify-content: space-between; }
.tplitem { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: var(--ink); }
.tplitem:hover, .tplitem:focus { background: #e8f0fc; outline: 0; }
.ddmenu:not(.wide) .tplitem { grid-template-columns: 1fr; }
.tplitem .ticons { grid-row: span 2; display: flex; gap: 2px; color: #7a5200; align-items: center; }
.tplitem .tname { font-weight: 500; font-size: 14px; }
.tplitem .tsub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ddfoot { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 6px 2px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ddfoot a, .ddfoot button { font-size: 13.5px; color: #2f6fd6; background: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; }
.tsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fmt { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 14px; }
.sigsel2 { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sigsel2 select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; }
.editor { flex: 1; min-height: 320px; padding: 18px 22px; outline: 0; font-family: Arial, sans-serif; font-size: 15px; line-height: 1.65; overflow: auto; }
.editor.tall { min-height: 460px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.editor img { max-width: 100%; height: auto; border-radius: 8px; }
.editor:empty::before { content: 'Nachricht schreiben …'; color: var(--muted); }
.cfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }

/* ---------- Vorlagen-Verwaltung ---------- */
.tplapp { display: grid; grid-template-columns: 340px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; min-height: calc(100vh - 150px); overflow: hidden; }
.tpllist { border-right: 1px solid var(--line); background: #faf9f6; display: flex; flex-direction: column; min-height: 0; }
.tplhead { display: flex; align-items: center; gap: 10px; padding: 14px; }
.tplhead h1 { font-size: 20px; margin: 0; flex: 1; }
.tpllist .msearch { margin: 0 14px; max-width: none; }
.tpllist .chips { padding: 0 14px; }
.chip { text-decoration: none; color: var(--ink); }
.tplscroll { overflow: auto; flex: 1; padding: 0 8px 20px; max-height: calc(100vh - 330px); }
.tplrow { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.tplrow:hover { background: #f0eee9; }
.tplrow.on { background: #e8f0fc; }
.tplrow .tname { font-weight: 600; font-size: 13.5px; }
.tplrow .tsub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbadges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tb { font-size: 11px; font-weight: 600; color: #55575c; background: #ebe9e4; border-radius: 6px; padding: 1px 6px; display: inline-flex; align-items: center; gap: 3px; }
.tb.auto { background: #fff4d6; color: #7a5200; }
.tpledit { min-width: 0; display: flex; flex-direction: column; }
.tpltop { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tplname { flex: 1; min-width: 240px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 20px; font-weight: 700; padding: 6px 10px; }
.tplname:hover, .tplname:focus { border-color: var(--line); outline: 0; }
.tplgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; flex: 1; min-height: 0; }
.tplform { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 230px); }
.tplform .ctools { border: 1px solid var(--line); border-radius: 10px; }
.tplprev { background: #eceae5; display: flex; flex-direction: column; min-height: 0; }
.prevbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.prevbar a { margin-left: auto; }
#tPrev { flex: 1; width: 100%; border: 0; min-height: 600px; }
.tplempty { margin: auto; text-align: center; color: var(--muted); max-width: 380px; padding: 40px; }
.tplempty h2 { color: var(--ink); }
@media (max-width: 1200px) { .tplgrid { grid-template-columns: 1fr; } .tplform { border-right: 0; max-height: none; } }
@media (max-width: 900px) { .tplapp { grid-template-columns: 1fr; } }
.tpllist .msearch, .mside .msearch, .ddmenu .msearch { flex: 0 0 auto; height: 38px; }
.tpllist .chips { margin: 10px 0 4px; }
.tpllist .chip { font-size: 12.5px; padding: 4px 10px; }
.mhint b { margin: 0 3px; }
.editor p { margin: 0 0 14px; }
.editor ul, .editor ol { margin: 0 0 14px; padding-left: 22px; }
.editor blockquote { margin: 0 0 14px; padding: 10px 14px; background: #fff6e2; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }

.resv { position: absolute; left: 0; right: 0; z-index: 1; background: repeating-linear-gradient(135deg, #e3e1db 0 6px, #ecebe6 6px 12px); border-top: 1px solid #d3d0c8; border-bottom: 1px solid #d3d0c8; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #8a877f; padding: 2px 6px; pointer-events: none; }

/* ---------- Projekt-Seite ---------- */
.phead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.phead h1 { margin: 0; }
.chipl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border-radius: 99px; background: #f3f2ee; color: var(--ink); text-decoration: none; }
.chipl:hover { background: #e8f0fc; color: #1c4a94; }
.stp { flex: 1 0 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; padding: 4px 2px; position: relative; font: inherit; color: var(--muted); }
.stp::before { content: ''; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: #e2dfd8; z-index: 0; }
.stp:first-child::before { display: none; }
.stp.done::before, .stp.now::before { background: #2f8f4e; }
.stp .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #d6d3cc; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.stp.done .dot { background: #2f8f4e; border-color: #2f8f4e; color: #fff; }
.stp.now .dot { background: var(--accent); border-color: var(--accent); color: var(--dark); box-shadow: 0 0 0 4px rgba(255,183,31,.25); }
.stp .lbl { font-size: 11.5px; line-height: 1.3; text-align: center; max-width: 120px; }
.stp.now .lbl { color: var(--ink); font-weight: 700; }
.stp:hover .lbl { color: var(--ink); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
.ptgroup { margin-top: 14px; }
.pth { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.pt { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #f0eee9; transition: opacity .25s, transform .25s; }
.pt.leaving { opacity: 0; transform: translateX(20px); }
.ptck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b9b6af; background: #fff; cursor: pointer; flex: 0 0 auto; font-size: 13px; color: #fff; padding: 0; }
.ptck:hover { border-color: #2f8f4e; background: #eaf6ed; }
.ptck.on { background: #2f8f4e; border-color: #2f8f4e; }
.ptx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ptt { font-weight: 500; }
.pt.done .ptt { text-decoration: line-through; color: var(--muted); }
.ptok { padding: 12px 4px; color: #1d5b2e; font-weight: 500; }
.ptadd { margin-top: 12px; }
.ptdone { margin-top: 12px; }
.ptdone summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.svcrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #efede8; font-size: 14px; }
.pillsel { border: 0; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; background: #ebe9e4; cursor: pointer; }
.pillsel.warn { background: var(--warn-bg); color: var(--warn); }
.pillsel.blue { background: var(--blue-bg); color: var(--blue); }
.pillsel.ok { background: var(--ok-bg); color: var(--ok); }
.calcust { background: #f7f6f2; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.pstepper { display: flex; gap: 4px; overflow-x: auto; padding: 6px 2px 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 10px; }
.tlmore { display: block; }
.tlmore summary { cursor: pointer; color: var(--blue); font-size: 12.5px; margin-top: 4px; list-style: none; display: inline-block; }
.tlmore summary::-webkit-details-marker { display: none; }
.tlmore summary::after { content: '▼ ganzen Text anzeigen'; }
.tlmore[open] summary::after { content: '▲ weniger anzeigen'; }
.tlmore[open] summary { margin-bottom: 6px; }
.abgl { border: 1.5px solid var(--accent); background: #fffaf0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.abglopt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.abglopt input { margin-top: 4px; accent-color: var(--dark); }
.stp .lbl { hyphens: auto; overflow-wrap: anywhere; }
.stp { flex: 1 0 100px; }

/* ---------- Kundenansicht (Variante A) ---------- */
.kd-head { margin-bottom: 16px; }
.kd { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .kd { grid-template-columns: 1fr; } }
.kd-side, .kd-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kd-side h2, .kd-main h2 { font-size: 16px; }
.dt { display: grid; grid-template-columns: 110px 1fr; gap: 7px 12px; margin: 0; font-size: 13.5px; }
.dt dt { color: var(--soft); } .dt dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.dt-g { border-top: 1px solid #efede8; padding-top: 8px; }
.dt-g.now { background: #fbfaf7; margin: 0 -16px; padding: 8px 16px; border-left: 3px solid var(--accent); }
.dt-gh { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); font-weight: 600; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.dt-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.dt-l { flex: 1; min-width: 0; color: var(--ink); line-height: 1.35; }
.dt-row.erledigt .dt-l { color: var(--soft); }
.dt-row.kommt .dt-l { color: #8c8a84; }
.dt-v { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.dt-v select { height: 32px; font-size: 13px; max-width: 190px; }
.dt-ok { border: 0; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.dt-open { font-size: 12px; font-weight: 600; color: var(--warn); }
.dt-dash { color: #b9b6af; }
.ptck.sm { width: 20px; height: 20px; }
.todo { gap: 4px; }
.td { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid #f0eee9; transition: opacity .25s, transform .25s; }
.td.leaving { opacity: 0; transform: translateX(20px); }
.td.first { background: #0d0e10; color: #fff; border-radius: 12px; padding: 12px 14px; border: 0; margin: 4px 0; }
.td.first .muted { color: #cfccc6; }
.tdx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tdt { font-weight: 500; }
.composer { gap: 10px; }
.ctabs, .vtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px -16px 4px; padding: 0 12px; align-items: center; }
.ctabs button, .ctabs a, .vtabs button { border: 0; background: none; padding: 10px 12px; font-size: 14px; color: var(--soft); cursor: pointer; border-bottom: 2px solid transparent; text-decoration: none; }
.ctabs .on, .vtabs .on { color: var(--ink); font-weight: 600; border-bottom-color: var(--dark); }
.cvlegend { margin-left: auto; display: flex; gap: 14px; font-size: 12px; color: var(--soft); font-weight: 600; }

/* Verlauf: Kunde links, wir rechts */
.cvlist { display: flex; flex-direction: column; gap: 10px; }
.cvday { align-self: center; font-size: 12px; font-weight: 600; color: var(--soft); background: #f1efea; border-radius: 99px; padding: 3px 12px; margin: 8px 0 2px; }
.cv { display: flex; }
.cv.kunde { justify-content: flex-start; }
.cv.wir { justify-content: flex-end; }
.cv.sys { justify-content: center; }
.cv.sys span { font-size: 12px; color: #8c8a84; text-align: center; max-width: 80%; }
.cvb { max-width: 78%; border-radius: 14px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cv.kunde .cvb { border-bottom-left-radius: 4px; }
.cv.wir .cvb { border-bottom-right-radius: 4px; }
.cvh { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cvh b { font-size: 14px; }
.cvtag { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.cvt { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: #2b2d33; overflow-wrap: anywhere; }
.cvm { font-size: 11.5px; color: var(--soft); }
.cv.wir .cvm { text-align: right; }
.t-notiz .cvb, .t-pin .cvb { background: #fffaf0; border-color: #f3dfb0; } .t-notiz .cvtag, .t-pin .cvtag { background: #ffe7a8; color: #6b4700; }
.t-anruf .cvb { background: #f3faf5; border-color: #cfe8d6; } .t-anruf .cvtag { background: #d5efdc; color: #1d5b2e; }
.t-mail .cvb { background: #f4f7fd; border-color: #d3def5; } .t-mail .cvtag { background: #dbe6ff; color: #1d3f8a; }
.t-termin .cvb { background: #f8f5fd; border-color: #e0d6f3; } .t-termin .cvtag { background: #e9e0fa; color: #4b2f93; }
.t-dok .cvtag, .t-konfig .cvtag { background: #ebe9e4; color: #44474e; }
.cv.kunde .cvb { background: #fff; border-left: 4px solid currentColor; }
.cv.kunde.t-mail .cvb { border-left-color: #6d8fd8; } .cv.kunde.t-termin .cvb { border-left-color: #9a7fd6; } .cv.kunde.t-dok .cvb, .cv.kunde.t-konfig .cvb { border-left-color: #b9b6af; }

/* ---------- Heute zu tun ---------- */
.hz-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.hz-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.hz-tile { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; min-width: 132px; }
.hz-tile b { display: block; font-size: 22px; line-height: 1.1; } .hz-tile span:not(.hz-ic) { font-size: 12.5px; color: var(--soft); }
.hz-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.hz-tile.anruf .hz-ic { background: #d5efdc; color: #1d5b2e; } .hz-tile.termin .hz-ic { background: #e9e0fa; color: #4b2f93; } .hz-tile.aufgabe .hz-ic { background: #ffe7a8; color: #6b4700; } .hz-tile.over .hz-ic { background: #fbdcd5; color: #a3321a; }
.hz { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .hz { grid-template-columns: 1fr; } }
.hz-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hz-colh { display: flex; align-items: baseline; justify-content: space-between; } .hz-colh h2 { margin: 0; font-size: 17px; }
.hz-time { min-width: 58px; font-weight: 700; font-size: 17px; }
.hz-badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.hz-badge.anruf { background: #d5efdc; color: #1d5b2e; } .hz-badge.termin { background: #e9e0fa; color: #4b2f93; } .hz-badge.aufgabe { background: #ffe7a8; color: #6b4700; }
.callcard.anruf { border-left: 4px solid #2f8f4e; } .callcard.termin { border-left: 4px solid #8a6ad0; }
.hz-sub { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--soft); padding: 8px 4px 2px; }
.hz-sub.over { color: #a3321a; }
.hz-up { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #f0eee9; text-decoration: none; color: inherit; }
.hz-up:first-child { border-top: 0; }
.hz-upt { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
[hidden] { display: none !important; }
.hz-grp { padding: 12px 16px 6px; }
.hz-grph { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; padding-bottom: 4px; }
.hz-grph a { color: var(--ink); text-decoration: none; } .hz-grph a:hover { text-decoration: underline; }
.hz-grph .small { font-weight: 400; margin-left: auto; }
.td.waiting { opacity: .62; }
.td.waiting:hover { opacity: 1; }
.pill.wait { background: #eef0f3; color: #44474e; white-space: nowrap; }
.waitsel { height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--soft); padding: 0 6px; cursor: pointer; max-width: 110px; }
.td .waitsel { opacity: 0; transition: opacity .15s; } .td:hover .waitsel, .waitsel:focus { opacity: 1; }
.hz-tile.mail .hz-ic { background: #dbe6ff; color: #1d3f8a; }
.hz-badge.mail { background: #dbe6ff; color: #1d3f8a; }
.hz-mail { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-top: 1px solid #f0eee9; text-decoration: none; color: inherit; }
.hz-mail:first-child { border-top: 0; } .hz-mail:hover { background: #fafaf8; }
.hz-mail.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2f5fc4; margin-right: 6px; vertical-align: middle; }
.hz-wait summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.hz-wait summary::-webkit-details-marker { display: none; }
.hz-wait summary b::before { content: '▸ '; } .hz-wait[open] summary b::before { content: '▾ '; }
.tag.cgr { font-size: 10px; padding: 0 5px; line-height: 15px; min-width: 0; height: auto; margin-right: 4px; border-radius: 4px; flex: 0 0 auto; display: inline-block; vertical-align: 1px; }
.callday:not(.open) .allday.more { display: none; }
.camore { border: 0; background: none; color: #2f5fc4; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; text-align: left; }
.nowlbl small { display: block; font-size: 9.5px; font-weight: 600; opacity: .9; line-height: 1.1; text-align: center; }
.cloc { font-size: 10.5px; font-weight: 700; background: #dbe6ff; color: #1d3f8a; border-radius: 5px; padding: 0 5px; margin-right: 5px; white-space: nowrap; flex: 0 0 auto; }
/* kompakte Projektphasen: erledigte und spätere Phasen nur als Punkt, Name beim Drüberfahren */
.pstepper.compact { align-items: flex-start; overflow-x: auto; }
.pstepper.compact .stp { flex: 1 1 110px; min-width: 96px; }
.pstepper.compact .stp.mini { flex: 0 0 38px; min-width: 38px; }
.pstepper.compact .stp.mini .lbl { display: none; }
.pstepper.compact .stp.mini::before { left: -10px; right: 50%; }
.pscount { align-self: center; margin-left: auto; padding: 0 8px; font-size: 12px; color: var(--soft); white-space: nowrap; }
.caltip { position: fixed; z-index: 9999; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; pointer-events: none; }
.caltip b { font-size: 14px; line-height: 1.35; }
.cti b { font-weight: 700; }
.results .qhead { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--soft); padding: 8px 12px 2px; }
.results .qart { font-size: 11px; font-weight: 700; background: #eef0f3; border-radius: 6px; padding: 1px 6px; }
.results .qsnip { display: block; font-size: 12.5px; color: #44474e; margin-top: 2px; }
.results mark { background: #ffe7a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.results { max-height: 70vh; overflow-y: auto; }

/* ---------- Handy (bis 760 px): Navigation unten, eine Spalte, große Tipp-Flächen ---------- */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .side { position: fixed; bottom: 0; left: 0; right: 0; top: auto; width: 100%; height: auto; flex-basis: auto; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); z-index: 50; gap: 0; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-top: 1px solid #2a2c31; }
  .side > img, .side .me { display: none; }
  .side .nav { display: flex; flex-direction: row; gap: 2px; width: 100%; }
  .side .nav a { flex: 1 0 64px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px; text-align: center; justify-content: center; border-radius: 10px; position: relative; }
  .side .nav a span:not(.badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; }
  .side .nav a .badge { position: absolute; top: 2px; right: 8px; font-size: 10px; padding: 0 5px; }
  .main { padding-bottom: 72px; }
  .top { padding: 10px 12px; gap: 8px; }
  .top .search { flex: 1 1 100%; order: 3; }
  .clock { display: none; }
  .content, #view { padding: 12px !important; }
  h1 { font-size: 22px; }
  .card { padding: 14px; border-radius: 14px; }
  .btn { min-height: 40px; }
  .row { flex-wrap: wrap; }
  .kd, .hz, .grid2, .grid3, .pgrid { grid-template-columns: 1fr !important; }
  .kd-head .row.between > .row { width: 100%; }
  .kd-head .btn { flex: 1 1 auto; justify-content: center; }
  .stepper { overflow-x: auto; }
  .stepper button { min-width: 110px; }
  .cvb { max-width: 92%; }
  .hz-tiles { width: 100%; } .hz-tile { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .callcard .row { flex-wrap: wrap; } .callcard .btn { flex: 1 1 auto; justify-content: center; }
  .td { flex-wrap: wrap; } .td .waitsel { opacity: 1; }
  .modal, .modalbox { width: calc(100vw - 20px) !important; max-height: calc(100vh - 40px); overflow-y: auto; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .tabs a { white-space: nowrap; }
  .caltip { display: none; }
  .pausebar { font-size: 12px; padding: 8px 12px; }
  table.t { display: block; overflow-x: auto; }
}
/* Kalender: eine Zeile, Name vorne, Rest mit … abgeschnitten */
.cc .cev:not(.allday) { flex-wrap: nowrap; align-content: flex-start; align-items: flex-start; }
.cc .cev .cti { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .cev .ct { flex: 0 0 auto; }
.cev.allday .cti { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.dupg { border-top: 1px solid #efede8; padding: 12px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.duprow { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(160px, 1.4fr) minmax(110px, 1fr) minmax(80px, .8fr) auto auto auto; gap: 12px; align-items: center; font-size: 13.5px; padding: 6px 8px; border-radius: 8px; }
.duprow.keep { background: #f3faf5; }
.duprow a { color: var(--ink); }
.dellist .duprow { grid-template-columns: 1fr auto auto auto; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: inherit; padding: 6px 0; border-top: 1px solid #f0eee9; }
.qrow:first-of-type { border-top: 0; }
.qrow > span:first-child { display: flex; flex-direction: column; }
.pill.warnp { background: #fff1d6; color: #8a5a00; }
.linkbtn.red { color: #a3321a; }
.auditlist { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.arow { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; padding: 8px 0; border-top: 1px solid #f0eee9; font-size: 13.5px; align-items: baseline; }
.rescard { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px; }
.reschips { display: flex; flex-wrap: wrap; gap: 6px; }
.reschips .chip, .resfield .chip { cursor: pointer; font-size: 13.5px; }
.chip.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.resfield { display: flex; flex-direction: column; gap: 6px; }
.qbar { display: inline-block; width: 80px; height: 8px; background: #efede8; border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.qbar span { display: block; height: 100%; background: #2f8f4e; }
.phbars { display: flex; flex-direction: column; gap: 4px; }
.phb { display: grid; grid-template-columns: minmax(160px, 320px) 1fr 40px auto; gap: 10px; align-items: center; font-size: 13px; }
.phbar { height: 10px; background: #f1efea; border-radius: 99px; overflow: hidden; } .phbar span { display: block; height: 100%; background: var(--accent); }
.akprev { background: #fafaf8; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; }
.dupbox { gap: 6px; }
@media (max-width: 760px) { .duprow { grid-template-columns: 1fr 1fr; } .arow { grid-template-columns: 1fr; gap: 2px; } .phb { grid-template-columns: 1fr 1fr 30px; } }

/* ---------- Raumweise Heizlast ---------- */
.hl { display: flex; flex-direction: column; gap: 14px; }
.hl-top { gap: 12px; }
.hl-sum { display: flex; flex-direction: column; align-items: flex-end; background: var(--dark); color: #fff; border-radius: 14px; padding: 10px 16px; min-width: 200px; }
.hl-sum span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #cfccc6; }
.hl-sum b { font-size: 26px; line-height: 1.1; } .hl-sum small { color: #cfccc6; font-size: 12px; }
.hl-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.hl-steps button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px 6px 6px; font-size: 14px; cursor: pointer; color: var(--soft); }
.hl-steps button span { width: 24px; height: 24px; border-radius: 50%; background: #efede8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--ink); }
.hl-steps button.on { background: var(--dark); color: #fff; border-color: var(--dark); } .hl-steps button.on span { background: var(--accent); }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.hl-grid > section, .hl-grid > aside { gap: 10px; }
.hl h2 { font-size: 16px; margin: 0; }
.hl-inp { position: relative; display: flex; align-items: center; }
.hl-inp input { width: 100%; padding-right: 54px; }
.hl-inp i { position: absolute; right: 10px; font-style: normal; font-size: 12px; color: var(--soft); pointer-events: none; }
.hl .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hl-check { background: #f4f7fd; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.hl-nav { justify-content: space-between; }
.hl-u td { vertical-align: middle; } .hl-u .hl-inp { max-width: 150px; }
.hl-bar { display: inline-block; width: 90px; height: 7px; background: #efede8; border-radius: 99px; overflow: hidden; vertical-align: middle; margin-left: 8px; }
.hl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f8f4e, #ffb71f, #d24a2c); }
.hl-etage { display: grid; grid-template-columns: 1.4fr .8fr 1.6fr 1.6fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #f0eee9; }
.hl-etage label { display: flex; flex-direction: column; gap: 2px; color: var(--soft); }
.hl-et { gap: 10px; }
.hl-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hl-room { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.hl-room:hover { border-color: #c9c6bf; }
.hl-rk { display: flex; justify-content: space-between; font-size: 15px; }
.hl-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hl-seg button { border: 0; background: #fff; padding: 8px 14px; cursor: pointer; font: inherit; color: var(--soft); }
.hl-seg button.on { background: var(--dark); color: #fff; }
.hl-w td { vertical-align: middle; } .hl-w tr:not(.on) td { color: var(--soft); } .hl-w .hl-inp { max-width: 130px; } .hl-w select { min-width: 140px; }
.hl-raumres { position: sticky; top: 12px; gap: 6px; }
.hl .big { font-size: 28px; line-height: 1.15; }
.hl .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.hl-trh td { background: #f5f4f1; font-weight: 700; font-size: 12.5px; }
.hl-tsum td { font-weight: 700; border-top: 2px solid var(--dark); }
.hl-share { display: grid; grid-template-columns: 1fr 120px 70px; gap: 8px; align-items: center; font-size: 13.5px; padding: 4px 0; }
.hl-share .hl-bar { width: 100%; margin: 0; } .hl-share .hl-bar i { background: var(--accent); }
@media (max-width: 760px) { .hl-etage { grid-template-columns: 1fr 1fr; } .hl .grid3 { grid-template-columns: 1fr 1fr; } .hl-sum { align-items: flex-start; width: 100%; } }
/* Projekt-Karten */
.pc-days { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #efede8; color: #55575c; white-space: nowrap; }
.pc-days.warn { background: #fff1d6; color: #8a5a00; } .pc-days.red { background: #fbdcd5; color: #a3321a; }
.pc-svc { display: flex; gap: 4px; flex-wrap: wrap; } .pc-svc span { font-size: 10.5px; font-weight: 600; background: #f1efea; color: #44474e; border-radius: 6px; padding: 1px 6px; }
.pc-prog { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.pc-prog .bar { flex: 1; height: 6px; border-radius: 99px; background: #efede8; overflow: hidden; } .pc-prog .bar i { display: block; height: 100%; background: #2f8f4e; }
.pc-nx { color: #2b2d33; } .pc-nx.none { color: #a3321a; font-weight: 600; }
.pc-open { margin-left: auto; font-size: 11px; font-weight: 700; background: #ffe7a8; color: #6b4700; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.pc-wait { margin-left: auto; font-size: 11px; font-weight: 700; background: #eef0f3; color: #44474e; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.hl-hf { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.hl-hf-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .hl-hf-f { grid-template-columns: 1fr 1fr; } }
/* Heizlast im Aufbau wie HEADQUARTER: Vollbild, dunkle Schrittleiste, eine Spalte, feste Fußleiste */
.hlx { position: fixed; inset: 0; z-index: 60; background: #f5f4f1; display: flex; flex-direction: column; gap: 0; }
.hlx-head { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.hlx-title { display: flex; flex-direction: column; } .hlx-title b { font-size: 20px; } .hlx-title span { font-size: 13px; color: var(--soft); }
.hlx-pill { margin: 0 auto; display: flex; align-items: baseline; gap: 10px; background: #0d0e10; color: #fff; border-radius: 99px; padding: 8px 20px; }
.hlx-pill span { font-size: 11px; letter-spacing: .1em; color: var(--accent); } .hlx-pill b { font-size: 20px; } .hlx-pill small { color: #b9b6b0; font-size: 12px; }
.hlx-x { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-size: 18px; }
.hlx-steps { display: flex; gap: 6px; padding: 10px 24px; background: #0d0e10; overflow-x: auto; }
.hlx-steps button { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid transparent; color: #e9e7e2; font: inherit; font-weight: 600; font-size: 15px; padding: 6px 16px 6px 6px; border-radius: 14px; cursor: pointer; white-space: nowrap; }
.hlx-steps button span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #3a3c41; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #b9b6b0; }
.hlx-steps button.on { background: #1d1f23; border-color: #4a3f25; } .hlx-steps button.on span { background: var(--accent); color: #0d0e10; border-color: var(--accent); }
.hlx-body { flex: 1; overflow-y: auto; padding: 22px 24px 30px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.hlx-body > * { width: 100%; max-width: 980px; margin: 0 auto; }
.hlx-intro h1 { margin: 0 0 4px; font-size: 26px; } .hlx-intro p { margin: 0; color: var(--soft); }
.hlx .hl-grid { grid-template-columns: 1fr; }
.hlx .hl-grid.hl-raumgrid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
.hlx .card { border-radius: 18px; padding: 20px 22px; }
.hlx-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 24px; background: #fff; border-top: 1px solid var(--line); }
.hlx-foot .btn.dark { background: #0d0e10; min-width: 140px; justify-content: center; }
.hlx details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.hlx details > summary::after { content: ''; width: 46px; height: 26px; border-radius: 99px; background: #e4e2dc; flex: 0 0 auto; transition: background .2s; box-shadow: inset 0 0 0 3px #e4e2dc; background-image: radial-gradient(circle at 13px 13px, #fff 10px, transparent 11px); }
.hlx details[open] > summary::after { background-color: #0d0e10; box-shadow: inset 0 0 0 3px #0d0e10; background-image: radial-gradient(circle at 33px 13px, #fff 10px, transparent 11px); }
.hlx details > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) { .hlx .hl-grid.hl-raumgrid { grid-template-columns: 1fr; } .hlx-pill small { display: none; } .hlx-head, .hlx-steps, .hlx-body, .hlx-foot { padding-left: 12px; padding-right: 12px; } }
.pl-tools { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.pl-tool { display: flex; gap: 14px; align-items: center; background: #0d0e10; color: #fff; border-radius: 18px; padding: 18px 20px; }
.pl-tool b { display: block; font-size: 17px; } .pl-tool .muted { color: #b9b6b0; }
.pl-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #0d0e10; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pl-new { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; align-items: center; }
.pl-new .inp { width: 100%; height: 46px; font-size: 15px; }
.pl-res { position: absolute; left: 16px; right: 16px; top: 64px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 20; max-height: 340px; overflow-y: auto; }
.pl-res a { display: flex; gap: 8px; align-items: baseline; padding: 10px 14px; text-decoration: none; color: var(--ink); border-top: 1px solid #f0eee9; } .pl-res a:hover { background: #fafaf8; }
.pl-go { margin-left: auto; font-size: 12px; color: #2f5fc4; }
@media (max-width: 900px) { .pl-tools { grid-template-columns: 1fr; } }

/* Heizlast – Aufbau wie HEADQUARTER (Hausdaten / Bauteile / Raumerfassung) */
.hlx { background: #f4f3ef; }
.hlx-body > * { max-width: 1000px; }
.hq-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid #e6e3dc; box-shadow: none; }
.hq-card h2 { margin: 0; font-size: 17px; }
.hlx .hq-card .inp, .hlx .hq-card select.inp { height: 46px; border-radius: 10px; font-size: 15.5px; border-color: #d9d6cf; background: #fff; }
.hq-req { color: #6b6e75; }
.hq-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: start; }
.hq-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.hq-col { display: flex; flex-direction: column; gap: 14px; }
.hq-num { text-align: right; }
.hq-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b6e75; margin-top: -8px; flex-wrap: wrap; }
.hlx .hq-hint .inp { height: 32px !important; font-size: 13px !important; padding: 4px 8px; }
.hq-hint .hl-inp:first-child { width: 150px; } .hq-hint .hl-inp:last-child { width: 110px; } .hq-hint .hl-inp:last-child input { padding-right: 32px; }
.hq-note { font-size: 13px; color: #6b6e75; } .hq-note.red { color: #a3321a; }
.hq-box { border: 1px solid #e6e3dc; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.hq-seg { display: inline-flex; align-self: flex-start; border: 1px solid #d9d6cf; border-radius: 8px; overflow: hidden; }
.hq-seg button { border: 0; background: #fff; padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; color: #17181b; }
.hq-seg button.on { background: #0d1626; color: #fff; }
.hq-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #b99a66 var(--p), #2d2f33 var(--p)); outline: none; margin: 6px 0 0; }
.hq-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #b99a66; border: 2px solid #fff; box-shadow: 0 0 0 1px #b99a66; cursor: pointer; }
.hq-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #b99a66; border: 2px solid #fff; cursor: pointer; }
.hq-scale { display: flex; justify-content: space-between; font-size: 12px; color: #6b6e75; } .hq-scale b { color: #b99a66; }
.hq-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece9e3; cursor: pointer; }
.hq-toggle:last-of-type { border-bottom: 0; }
.hq-toggle span { display: flex; flex-direction: column; } .hq-toggle small { color: #6b6e75; font-size: 12px; }
.hq-toggle input { display: none; }
.hq-toggle i { width: 50px; height: 28px; border-radius: 99px; background: #e4e2dc; position: relative; flex: none; transition: .15s; border: 1px solid #d6d3cc; }
.hq-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s; }
.hq-toggle input:checked + i { background: #0d1626; border-color: #0d1626; } .hq-toggle input:checked + i::after { left: 24px; }
.hq-profi { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.hq-count { display: grid; grid-template-columns: repeat(4, 96px); gap: 8px; }
.hq-count button { border: 1px solid #d9d6cf; background: #fff; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; cursor: pointer; font: inherit; }
.hq-count button b { font-size: 18px; } .hq-count button span { font-size: 11px; color: #6b6e75; }
.hq-count button.on { background: #0d1626; color: #fff; border-color: #0d1626; } .hq-count button.on span { color: #c9ccd3; }
.hq-kreis { background: #f7f6f2; border: 1px solid #ece9e3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hq-kreis-h { display: flex; align-items: center; gap: 8px; }
.hq-nr { width: 22px; height: 22px; border-radius: 50%; background: #0d0e10; color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hq-name { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 15px; flex: 1; padding: 4px; border-radius: 6px; } .hq-name:focus { background: #fff; outline: 1px solid #d9d6cf; }
.hq-vl { font-size: 12px; border: 1px solid #d9d6cf; border-radius: 99px; padding: 3px 10px; background: #fff; white-space: nowrap; } .hq-vl input { width: 26px; border: 0; font: inherit; text-align: right; padding: 0; }
.hq-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hq-tiles button { border: 1px solid #d9d6cf; background: #fff; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; color: #17181b; }
.hq-tiles button.on { border: 2px solid #c9a35a; background: #fdf8ec; padding: 7px; }
.hq-u { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-bottom: 1px solid #ece9e3; } .hq-u:last-of-type { border-bottom: 0; }
.hq-u-h { display: flex; align-items: center; gap: 12px; }
.hq-ic { width: 36px; height: 36px; border-radius: 9px; background: #0d1626; color: #e8d5a8; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hq-u-t { flex: 1; display: flex; flex-direction: column; min-width: 0; } .hq-u-t b { font-size: 14.5px; } .hq-u-t small { font-size: 12px; color: #6b6e75; }
.hq-u-t em { font-style: normal; font-weight: 700; color: #17181b; background: #efede8; border-radius: 6px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.hlx .hq-u-sel { width: 260px; height: 40px !important; font-size: 14px !important; }
.hq-uslider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3e9a55, #b9cf5a 30%, #f0c44c 55%, #ea8a3a 78%, #d4452c); outline: none; margin: 0; }
.hq-uslider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid #8a8d93; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.hq-uslider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid #8a8d93; cursor: pointer; }
.hq-sub { background: #f7f6f2; border: 1px solid #ece9e3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hlx .hq-sub .inp, .hlx .hq-sub select.inp { height: 40px; font-size: 14px; }
.hq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hq-chips button { border: 1px solid #d9d6cf; background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.hq-chips button.on { background: #0d1626; color: #fff; border-color: #0d1626; }
.hq-tiles3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px !important; }
.hq-big { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e6e3dc; border-radius: 18px; padding: 22px; cursor: pointer; text-align: left; font: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.hq-big:hover { border-color: #cfcac0; } .hq-big b { font-size: 18px; display: block; } .hq-big small { color: #6b6e75; font-size: 13.5px; line-height: 1.5; display: block; margin-top: 2px; }
.hq-bic { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.hq-bic.gold { background: linear-gradient(135deg, #c9a35a, #9d7c3c); color: #2a2110; } .hq-bic.dark { background: #0d1626; }
.hq-plaene { display: flex; gap: 10px; flex-wrap: wrap; }
.hq-plaene a { width: 150px; height: 110px; border: 1px solid #e6e3dc; border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.hq-plaene img { width: 100%; height: 100%; object-fit: cover; }
.hq-pdf { flex-direction: column; gap: 6px; font-size: 11.5px; color: #17181b; text-decoration: none; padding: 8px; text-align: center; word-break: break-all; }
.hq-etage { display: flex; flex-direction: column; gap: 14px; }
.hq-et-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e6e3dc; flex-wrap: wrap; }
.hq-chev { border: 0; background: transparent; cursor: pointer; padding: 4px; color: #6b6e75; } .hq-chev.zu svg { transform: rotate(-90deg); }
.hq-badge { background: #0d0e10; color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 7px; }
.hq-etname { border: 0; background: transparent; font: inherit; font-size: 21px; font-weight: 700; width: 220px; padding: 2px 4px; border-radius: 6px; } .hq-etname:focus { background: #fff; outline: 1px solid #d9d6cf; }
.hq-pill.red { background: #fbe4de; color: #a3321a; border-radius: 99px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; }
.hq-etbar { margin-left: auto; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #e6e3dc; border-radius: 12px; padding: 4px 8px; }
.hq-etbar .hl-inp { width: 92px; } .hq-etbar .inp, .hq-etbar select.inp { border: 0 !important; height: 32px !important; font-size: 14px !important; background: transparent !important; }
.hq-etbar .hl-inp input { font-weight: 700; padding-right: 26px; } .hq-etbar label { display: flex; align-items: center; gap: 2px; color: #6b6e75; font-size: 14px; }
.hq-etbar select.inp { max-width: 200px; color: #3a3d43; }
.hq-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.hq-room { background: #fff; border: 1px solid #e6e3dc; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.hq-room-h b { font-size: 18px; } .hq-room-k { display: flex; justify-content: space-between; color: #3a3d43; font-weight: 600; } .hq-room-k small { color: #9a968e; font-weight: 400; }
.hq-sk-box { border: 1px dashed #e3e0d9; background: #fbfaf7; border-radius: 10px; padding: 8px; cursor: pointer; }
.hq-sk { width: 100%; height: 130px; display: block; }
.hq-room-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hq-st { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 5px 9px; } .hq-st.ok { background: #e7f4ea; color: #1d5b2e; } .hq-st.bad { background: #fbe4de; color: #a3321a; }
.hq-add { align-items: center; justify-content: center; color: #6b6e75; border-style: dashed; background: transparent; cursor: pointer; font: inherit; min-height: 240px; }
.hq-add:hover { color: #17181b; border-color: #bdb8ae; }
.hq-empty { color: #6b6e75; display: flex; gap: 14px; align-items: center; }
@media (max-width: 760px) { .hq-g2, .hq-g3, .hq-tiles3 { grid-template-columns: 1fr; } .hq-count { grid-template-columns: repeat(4, 1fr); } .hq-etbar { margin-left: 0; flex-wrap: wrap; } .hlx .hq-u-sel { width: 180px; } }
.hlx .hq-card input[type=range] { height: 6px !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; min-height: 0; }
.hlx .hq-card input.hq-range { background: linear-gradient(90deg, #b99a66 var(--p), #2d2f33 var(--p)) !important; }
.hlx .hq-card input.hq-uslider { height: 8px !important; background: linear-gradient(90deg, #3e9a55, #b9cf5a 30%, #f0c44c 55%, #ea8a3a 78%, #d4452c) !important; }
.hq-sub.hq-g2 { display: grid; } .hq-sub select.inp, .hq-sub .hl-inp { width: 100%; }
.hq-u > .hq-sub { margin-left: 48px; }

/* Beratungs-Cockpit */
.bx { position: fixed; inset: 0; z-index: 60; background: #f4f3ef; display: flex; flex-direction: column; }
.bx-head { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid #e6e3dc; flex-wrap: wrap; }
.bx-who { display: flex; flex-direction: column; min-width: 180px; } .bx-who b { font-size: 18px; } .bx-who span { font-size: 12.5px; color: #6b6e75; }
.bx-cfgbar { display: flex; gap: 6px; flex-wrap: wrap; } .bx-cfgbar span { background: #0d1626; color: #e8d5a8; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.bx-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bx-prog { width: 90px; height: 6px; background: #e8e5de; border-radius: 99px; overflow: hidden; } .bx-prog i { display: block; height: 100%; background: #c9a35a; }
.bx-timer { font-variant-numeric: tabular-nums; font-weight: 700; background: #f4f3ef; border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.bx-main { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; min-height: 0; }
.bx-nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; border-right: 1px solid #e6e3dc; }
.bx-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; text-align: left; font: inherit; font-size: 14px; cursor: pointer; color: #3a3d43; }
.bx-nav button:hover { background: #ebe8e1; } .bx-nav button.on { background: #0d1626; color: #fff; }
.bx-nav .bx-ic { width: 26px; height: 26px; border-radius: 8px; background: #fff; border: 1px solid #e3e0d9; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; color: #0d1626; }
.bx-nav button.voll .bx-ic { background: #e7f4ea; border-color: #bfe0c7; color: #1d5b2e; font-weight: 700; }
.bx-nav .bx-nt { flex: 1; } .bx-nav small { color: #9a968e; font-size: 11.5px; } .bx-nav button.on small { color: #c9ccd3; }
.bx-center { overflow-y: auto; padding: 18px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.bx-center > * { max-width: 860px; width: 100%; margin: 0 auto; }
.bx-title h1 { margin: 0; font-size: 24px; }
.bx-say { background: #fdf8ec; border: 1px solid #efe1bd; border-radius: 14px; padding: 12px 16px; } .bx-say span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9d7c3c; font-weight: 700; } .bx-say p { margin: 4px 0 0; font-size: 16.5px; line-height: 1.45; } .bx-say small { color: #6b6e75; }
.bx-hint { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.45; border: 1px solid; }
.bx-hint.rot { background: #fbe9e4; border-color: #f1c4b8; color: #8a2a14; } .bx-hint.gelb { background: #fff6e0; border-color: #f2dc9e; color: #6b4e08; } .bx-hint.info { background: #eef3fa; border-color: #d3e0f0; color: #24406b; } .bx-hint.ok { background: #e7f4ea; border-color: #c4e3cc; color: #1d5b2e; }
.bx-card { background: #fff; border: 1px solid #e6e3dc; border-radius: 16px; padding: 6px 18px; display: flex; flex-direction: column; }
.bx-card h3 { margin: 12px 0 8px; font-size: 16px; }
.bx-q { padding: 12px 0; border-bottom: 1px solid #f0ede7; display: flex; flex-direction: column; gap: 8px; } .bx-q:last-child { border-bottom: 0; }
.bx-ql { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; } .bx-ql span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e3e0d9; margin-right: 8px; vertical-align: 1px; }
.bx-q.ok .bx-ql span::before { background: #3e9a55; }
.bx-cfg { font-style: normal; font-size: 11.5px; font-weight: 600; color: #1d5b2e; background: #e7f4ea; border-radius: 99px; padding: 2px 8px; } .bx-cfg.diff { color: #6b4e08; background: #fff1c9; }
.bx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bx-chips button { border: 1px solid #d9d6cf; background: #fff; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 13.5px; cursor: pointer; color: #17181b; }
.bx-chips button:hover { border-color: #b9b4aa; } .bx-chips button.on { background: #0d1626; border-color: #0d1626; color: #fff; }
.bx-chips button.vor { border-style: dashed; border-color: #c9a35a; background: #fdf8ec; }
.bx-chips.sm button { padding: 4px 10px; font-size: 12.5px; }
.bx-in { position: relative; display: inline-flex; align-items: center; width: 220px; } .bx-in input { width: 100%; height: 40px; border: 1px solid #d9d6cf; border-radius: 10px; padding: 0 56px 0 12px; font: inherit; font-size: 15px; } .bx-in i { position: absolute; right: 12px; font-style: normal; color: #6b6e75; font-size: 13px; }
.bx-in.sm { width: 130px; } .bx-in.sm input { height: 34px; }
.bx-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; background: #f7f6f2; border-radius: 10px; }
.bx-chk { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0ede7; } .bx-chk:last-child { border-bottom: 0; }
.bx-tick { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #c9c6bf; background: #fff; cursor: pointer; flex: none; font-weight: 700; color: #fff; margin-top: 2px; }
.bx-chk.ok .bx-tick { background: #3e9a55; border-color: #3e9a55; }
.bx-chk-t { display: flex; flex-direction: column; gap: 4px; } .bx-chk-t small { color: #6b6e75; font-size: 13px; line-height: 1.45; }
.bx-mini { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 18px; } .bx-mini span { color: #6b6e75; } .bx-mini b { font-size: 20px; } .bx-mini small { color: #6b6e75; }
.bx-speicher { gap: 8px; padding-bottom: 14px; } .bx-speicher h3 { margin-bottom: 0; }
.bx-sp { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bx-spo { display: flex; gap: 8px; align-items: flex-end; border: 1px solid #e3e0d9; background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; text-align: left; font: inherit; }
.bx-spo.on { border: 2px solid #0d1626; padding: 7px 9px; } .bx-spo.empf:not(.on) { border-color: #c9a35a; background: #fffdf6; } .bx-spo.nein { opacity: .6; }
.bx-sv { width: 52px; height: 120px; flex: none; }
.bx-spt { display: flex; flex-direction: column; gap: 2px; } .bx-spt b { font-size: 13.5px; } .bx-spt small { color: #6b6e75; font-size: 12px; }
.bx-spt em { font-style: normal; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.bx-spt em.ok { background: #e7f4ea; color: #1d5b2e; } .bx-spt em.knapp { background: #fff1c9; color: #6b4e08; } .bx-spt em.nein { background: #fbe4de; color: #a3321a; } .bx-spt em.empf { background: #c9a35a; color: #fff; }
.bx-masse summary { cursor: pointer; font-weight: 600; font-size: 13.5px; padding: 6px 0; } .bx-masse table { border-collapse: collapse; font-size: 13px; } .bx-masse td, .bx-masse th { padding: 4px 6px; text-align: left; } .bx-mm { width: 80px; border: 1px solid #d9d6cf; border-radius: 6px; padding: 4px 6px; font: inherit; }
.bx-kpis { display: flex; gap: 12px; margin-bottom: 6px; } .bx-kpis div { background: #f4f3ef; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; } .bx-kpis b { font-size: 20px; } .bx-kpis span { font-size: 12px; color: #6b6e75; }
.bx-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-bottom: 12px; } .bx-sum div { display: flex; flex-direction: column; } .bx-sum span { font-size: 12px; color: #6b6e75; } .bx-sum b { font-size: 14px; }
.bx-erg { padding-bottom: 16px; } .bx-erg-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bx-erg-b button { border: 1px solid #d9d6cf; background: #fff; border-radius: 12px; padding: 12px; text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 3px; }
.bx-erg-b button:hover { border-color: #0d1626; } .bx-erg-b button:first-child { background: #0d1626; color: #fff; border-color: #0d1626; } .bx-erg-b button:first-child small { color: #c9ccd3; }
.bx-erg-b small { font-size: 12px; color: #6b6e75; } .bx-erg-b .grau { background: #f4f3ef; }
.bx-when { margin-top: 10px; font-size: 13px; color: #6b6e75; display: flex; align-items: center; gap: 8px; } .bx-when input { border: 1px solid #d9d6cf; border-radius: 8px; padding: 4px 8px; font: inherit; }
.bx-foot { display: flex; justify-content: space-between; padding-top: 6px; }
.bx-side { border-left: 1px solid #e6e3dc; background: #fff; display: flex; flex-direction: column; min-height: 0; }
.bx-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid #ece9e3; }
.bx-tabs button { border: 0; background: transparent; padding: 8px 12px; font: inherit; font-weight: 600; color: #6b6e75; cursor: pointer; border-bottom: 2px solid transparent; }
.bx-tabs button.on { color: #0d1626; border-bottom-color: #c9a35a; }
.bx-tabbody { flex: 1; overflow-y: auto; padding: 12px 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.bx-search { width: 100%; height: 38px; border: 1px solid #d9d6cf; border-radius: 10px; padding: 0 12px; font: inherit; }
.bx-kb { border: 1px solid #ece9e3; border-radius: 12px; padding: 10px 12px; background: #fbfaf7; } .bx-kb b { font-size: 13.5px; } .bx-kb p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #3a3d43; }
.bx-kbh { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a968e; font-weight: 700; margin-top: 8px; }
.bx-alle summary { cursor: pointer; font-size: 13px; color: #6b6e75; padding: 6px 0; }
.bx-tabbody .bx-say p { font-size: 15px; }
.bx-tabbody textarea { flex: 1; min-height: 300px; border: 1px solid #d9d6cf; border-radius: 12px; padding: 12px; font: inherit; font-size: 14px; resize: none; }
@media (max-width: 1100px) { .bx-main { grid-template-columns: 200px minmax(0, 1fr); } .bx-side { display: none; } .bx-erg-b { grid-template-columns: 1fr 1fr; } }
.bx-nav small { flex: none; }
.tb { margin-bottom: 16px; padding: 12px 16px; } .tb summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; list-style: none; } .tb summary::-webkit-details-marker { display: none; }
.tb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.tb-k { background: #f5f4f1; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; text-decoration: none; color: inherit; } .tb-k b { font-size: 20px; } .tb-k span { font-size: 12px; color: var(--soft); }
.tb-warn { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13.5px; color: #8a4b00; }
.card.tb { background: #fff; } .tb summary { justify-content: flex-start; font-size: 15px; } .tb summary b { font-size: 16px; }
.tb-row { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); }
/* Grundriss → Räume */
.hq-plan { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 160px; } .hq-plan a { width: 100%; }
.hq-erk-bg { position: fixed; inset: 0; background: rgba(13, 14, 16, .45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hq-erk { background: #fff; border-radius: 18px; width: min(1180px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hq-erk-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #ece9e3; } .hq-erk-h b { font-size: 18px; }
.hq-erk-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px; padding: 16px 20px; overflow: hidden; min-height: 0; flex: 1; }
.hq-erk-plan { background: #f4f3ef; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: auto; max-height: 70vh; } .hq-erk-plan img { max-width: 100%; display: block; }
.hq-erk-r { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; max-height: 70vh; }
.hq-erk-k p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.hq-erk-run { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 0; text-align: center; } .hq-erk-run small { color: #6b6e75; }
.hq-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e8e5de; border-top-color: #c9a35a; animation: hqspin 0.9s linear infinite; } @keyframes hqspin { to { transform: rotate(360deg); } }
.hq-erk-t { width: 100%; border-collapse: collapse; font-size: 13.5px; } .hq-erk-t th { text-align: left; font-size: 12px; color: #6b6e75; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid #ece9e3; }
.hq-erk-t td { padding: 5px 6px; border-bottom: 1px solid #f2efe9; vertical-align: middle; } .hq-erk-t tr.weg td { opacity: .45; }
.hq-erk-t .inp { height: 32px; font-size: 13.5px; padding: 0 8px; } .hq-erk-t td:nth-child(2) .inp { width: 140px; } .hq-erk-t select.inp { width: 150px; } .hq-erk-t .hl-inp { width: 100px; } .hq-erk-t .hl-inp input { padding-right: 30px; }
.hq-nsw { display: inline-flex; gap: 3px; } .hq-nsw button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #d9d6cf; background: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: #9a968e; } .hq-nsw button.on { background: #0d0e10; color: #fff; border-color: #0d0e10; }
.hq-erk-f { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid #ece9e3; }
@media (max-width: 900px) { .hq-erk-b { grid-template-columns: 1fr; } }
.hlx-body > .hq-erk-bg { max-width: none; width: auto; margin: 0; }
.hq-erk-scroll { overflow-x: auto; } .hq-erk-b { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr); }
.bx-act { font-size: 12px; color: #9d7c3c; font-weight: 600; }
/* Beratung – Übersicht */
.bl { display: flex; flex-direction: column; gap: 12px; max-width: 1000px; } .bl h1 { margin: 0; } .bl h2 { margin: 12px 0 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.bl-start { gap: 8px; } .bl-start .pl-search { position: relative; }
.bl-list { display: flex; flex-direction: column; gap: 8px; }
.bl-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.bl-t { font-weight: 700; min-width: 120px; font-size: 14px; } .bl-n { flex: 1; display: flex; flex-direction: column; gap: 2px; } .bl-n b { font-size: 15px; }
.bl-start .pl-res { left: 0; right: 0; top: 48px; z-index: 20; }
.bl-n .tag { align-self: flex-start; }
/* Beratung: Leitfaden + haptischer */
.bx-script { background: #0d1626; color: #fff; border-radius: 18px; padding: 16px 20px 10px; display: flex; flex-direction: column; }
.bx-script-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #e8d5a8; font-weight: 700; margin-bottom: 4px; }
.bx-line { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); } .bx-line:first-of-type { border-top: 0; }
.bx-ln { width: 28px; height: 28px; border-radius: 50%; background: #c9a35a; color: #0d1626; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; margin-top: 2px; }
.bx-line p { margin: 0; font-size: 19px; line-height: 1.45; } .bx-line mark { background: transparent; color: #f2cd76; font-weight: 700; }
.bx-line em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: #0d1626; background: #e8d5a8; border-radius: 99px; padding: 2px 10px; font-weight: 700; }
.bx-line small { display: block; margin-top: 4px; color: #aab2c2; font-size: 13px; }
.bx-line.ja p { color: #fff; }
.bx-grp { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9a968e; font-weight: 700; padding: 12px 10px 4px; } .bx-grp:first-child { padding-top: 0; }
.bx-chips button { padding: 10px 16px; font-size: 14.5px; border-radius: 12px; min-height: 42px; transition: transform .05s; } .bx-chips button:active { transform: scale(.97); }
.bx-chips.sm button { padding: 5px 11px; min-height: 30px; font-size: 12.5px; border-radius: 99px; }
.bx-ql { font-size: 15px; }
.bx-note { width: 100%; border: 1px solid #d9d6cf; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; resize: vertical; min-height: 64px; background: #fbfaf7; }
.bx-in input { height: 46px; font-size: 16px; border-radius: 12px; }
.bx-adr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-bottom: 4px; } .bx-adr label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: #3a3d43; } .bx-adr .w2 { grid-column: span 2; }
.bx-adr input { height: 46px; border: 1px solid #d9d6cf; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; }
.bx-nav button { padding: 9px 10px; } .bx-foot .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* ===== Beratung: Navy-Gold-Look mit Verläufen, weich statt eckig ===== */
.bx { --navy: #0d1626; --navy2: #1d2e4d; --gold: #e9c26a; --gold2: #c9a35a; background: radial-gradient(1200px 600px at 70% -10%, #fbf3df 0%, rgba(251,243,223,0) 60%), linear-gradient(180deg, #f5f3ee 0%, #eef1f6 100%); }
.bx-head { background: linear-gradient(120deg, var(--navy) 0%, var(--navy2) 70%, #2a3c5f 100%); border-bottom: 0; color: #fff; box-shadow: 0 6px 24px rgba(13,22,38,.25); padding: 12px 22px; }
.bx-head .hlx-x { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; border-radius: 14px; }
.bx-who span { color: #b9c2d3; } .bx-act { color: var(--gold); }
.bx-cfgbar span { background: linear-gradient(135deg, rgba(233,194,106,.22), rgba(233,194,106,.08)); color: #f6dc9c; border: 1px solid rgba(233,194,106,.35); }
.bx-prog { background: rgba(255,255,255,.15); height: 8px; } .bx-prog i { background: linear-gradient(90deg, var(--gold2), #f2d58a); border-radius: 99px; }
.bx-right .small.muted { color: #b9c2d3; }
.bx-timer { background: rgba(255,255,255,.1); color: #fff; border-radius: 10px; }
.bx-head .btn { border-radius: 14px; } .bx-head .btn:not(.dark) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.bx-head .btn.dark { background: linear-gradient(135deg, #f2cd76, var(--gold2)); color: var(--navy); border: 0; box-shadow: 0 4px 14px rgba(201,163,90,.35); }
/* linke Themenleiste */
.bx-nav { background: linear-gradient(180deg, var(--navy) 0%, #142039 100%); border-right: 0; padding: 16px 12px; gap: 4px; }
.bx-grp { color: #7f8aa0; }
.bx-nav button { color: #d6dbe5; border-radius: 16px; padding: 10px 12px; }
.bx-nav button:hover { background: rgba(255,255,255,.06); }
.bx-nav button.on { background: linear-gradient(135deg, #f2cd76 0%, var(--gold2) 100%); color: var(--navy); box-shadow: 0 6px 18px rgba(201,163,90,.35); font-weight: 600; }
.bx-nav .bx-ic { background: rgba(255,255,255,.08); border: 0; color: #f2d58a; border-radius: 12px; width: 30px; height: 30px; }
.bx-nav button.on .bx-ic { background: rgba(13,22,38,.12); color: var(--navy); }
.bx-nav button.voll .bx-ic { background: linear-gradient(135deg, #4fb36b, #2f8f4e); color: #fff; }
.bx-nav small { color: #7f8aa0; } .bx-nav button.on small { color: rgba(13,22,38,.7); }
/* Mitte */
.bx-title h1 { font-size: 28px; letter-spacing: -.01em; background: linear-gradient(90deg, var(--navy), #3a4f77); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-script { background: radial-gradient(600px 220px at 100% 0%, rgba(233,194,106,.18), rgba(233,194,106,0) 70%), linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); border-radius: 26px; padding: 20px 24px 12px; box-shadow: 0 14px 40px rgba(13,22,38,.22); }
.bx-ln { background: linear-gradient(135deg, #f2cd76, var(--gold2)); box-shadow: 0 3px 10px rgba(201,163,90,.4); }
.bx-say { background: linear-gradient(135deg, #fff8e6, #fdf1d3); border: 0; border-radius: 22px; box-shadow: 0 6px 18px rgba(201,163,90,.15); }
.bx-card { border: 0; border-radius: 26px; background: linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%); box-shadow: 0 10px 30px rgba(13,22,38,.07), 0 1px 0 rgba(13,22,38,.04); padding: 10px 24px; }
.bx-q { border-bottom: 1px dashed #ece7dc; padding: 16px 0; }
.bx-ql span::before { width: 10px; height: 10px; background: #e6e1d6; }
.bx-q.ok .bx-ql span::before { background: linear-gradient(135deg, #4fb36b, #2f8f4e); box-shadow: 0 0 0 3px rgba(79,179,107,.18); }
.bx-chips button { border-radius: 999px; border: 1px solid #e3ddd0; background: linear-gradient(180deg, #ffffff, #f8f6f1); box-shadow: 0 2px 6px rgba(13,22,38,.05); padding: 10px 18px; }
.bx-chips button:hover { border-color: var(--gold2); box-shadow: 0 4px 12px rgba(201,163,90,.18); }
.bx-chips button.on { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(13,22,38,.28); }
.bx-chips button.vor { background: linear-gradient(135deg, #fff8e6, #fcefcf); border: 1px dashed var(--gold2); }
.bx-in input, .bx-note, .bx-adr input, .bx-search, .bx-when input { border-radius: 16px; border: 1px solid #e3ddd0; background: #fff; box-shadow: inset 0 1px 2px rgba(13,22,38,.04); }
.bx-in input:focus, .bx-note:focus, .bx-adr input:focus, .bx-search:focus { outline: none; border-color: var(--gold2); box-shadow: 0 0 0 4px rgba(233,194,106,.22); }
.bx-sub { border-radius: 18px; background: linear-gradient(135deg, #f8f6f1, #f1eee7); }
.bx-hint { border: 0; border-radius: 20px; padding: 12px 16px; box-shadow: 0 4px 14px rgba(13,22,38,.05); }
.bx-hint.rot { background: linear-gradient(135deg, #fdeee9, #fadcd2); } .bx-hint.gelb { background: linear-gradient(135deg, #fff8e3, #fdecc0); } .bx-hint.info { background: linear-gradient(135deg, #f1f5fc, #e2ebf8); } .bx-hint.ok { background: linear-gradient(135deg, #ecf8ef, #d7f0de); }
.bx-chk { border-bottom: 1px dashed #ece7dc; } .bx-tick { border-radius: 10px; width: 30px; height: 30px; } .bx-chk.ok .bx-tick { background: linear-gradient(135deg, #4fb36b, #2f8f4e); border: 0; box-shadow: 0 4px 10px rgba(47,143,78,.3); }
.bx-mini { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; } .bx-mini span, .bx-mini small { color: #b9c2d3; } .bx-mini b { color: #f2d58a; }
.bx-spo { border-radius: 20px; border: 1px solid #ece7dc; background: linear-gradient(180deg, #fff, #faf8f3); box-shadow: 0 4px 12px rgba(13,22,38,.05); }
.bx-spo.empf:not(.on) { border: 1px solid var(--gold2); background: linear-gradient(135deg, #fffaf0, #fcf0d4); box-shadow: 0 6px 18px rgba(201,163,90,.22); }
.bx-spo.on { border: 2px solid var(--navy); box-shadow: 0 8px 22px rgba(13,22,38,.18); }
.bx-spt em.empf { background: linear-gradient(135deg, #f2cd76, var(--gold2)); color: var(--navy); }
.bx-kpis div { border-radius: 18px; background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; } .bx-kpis b { color: #f2d58a; } .bx-kpis span { color: #b9c2d3; }
.bx-erg-b button { border-radius: 20px; border: 1px solid #e3ddd0; background: linear-gradient(180deg, #fff, #f8f6f1); box-shadow: 0 4px 12px rgba(13,22,38,.06); }
.bx-erg-b button:first-child { background: linear-gradient(135deg, #f2cd76, var(--gold2)); color: var(--navy); border: 0; box-shadow: 0 8px 20px rgba(201,163,90,.35); } .bx-erg-b button:first-child small { color: rgba(13,22,38,.7); }
.bx-erg-b button:hover { transform: translateY(-1px); }
.bx-foot .btn { border-radius: 16px; } .bx-foot .btn.dark { background: linear-gradient(135deg, var(--navy), var(--navy2)); border: 0; box-shadow: 0 8px 20px rgba(13,22,38,.25); }
.bx-erg .ask { border-radius: 20px; }
/* rechte Seite */
.bx-side { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.8)); border-left: 0; box-shadow: -8px 0 30px rgba(13,22,38,.06); }
.bx-tabs { border-bottom: 0; padding: 14px 14px 4px; gap: 6px; }
.bx-tabs button { border-radius: 999px; border: 0; padding: 8px 16px; background: #f1eee7; color: #6b6e75; }
.bx-tabs button.on { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; box-shadow: 0 4px 12px rgba(13,22,38,.22); border: 0; }
.bx-kb { border: 0; border-radius: 20px; background: linear-gradient(135deg, #fffdf7, #f8f3e7); box-shadow: 0 3px 10px rgba(13,22,38,.05); padding: 12px 14px; }
.bx-kb b { color: var(--navy); }
.bx-tabbody .bx-say { border-radius: 20px; }
.bx-tabbody textarea { border-radius: 20px; border: 1px solid #e3ddd0; background: linear-gradient(180deg, #fffefb, #faf8f2); }
.bx-masse table input { border-radius: 10px; }
/* Übersicht „Beratung“ */
.bl-card { border: 0; border-radius: 22px; background: linear-gradient(180deg, #fff, #fdfcf9); box-shadow: 0 8px 24px rgba(13,22,38,.07); }
.bl-start { border: 0; border-radius: 24px; background: radial-gradient(500px 200px at 100% 0%, rgba(233,194,106,.25), rgba(233,194,106,0) 70%), linear-gradient(135deg, #0d1626, #1d2e4d); color: #fff; box-shadow: 0 12px 30px rgba(13,22,38,.22); }
.bl-start .inp { border-radius: 16px; height: 48px; font-size: 16px; border: 0; }
.bl-t { color: #9d7c3c; }
.bx .ask { background: linear-gradient(135deg, #fff8e6, #fcefcf); border-radius: 22px; border: 0; }
.bx .ask .btn.dark { background: linear-gradient(135deg, var(--navy), var(--navy2)); border: 0; border-radius: 16px; box-shadow: 0 6px 16px rgba(13,22,38,.25); }
.bx .ask .btn { border-radius: 16px; }
.bx .rescard { border-radius: 22px; } .bx .rescard .chip { border-radius: 999px; }

/* =====================================================================
   AUTARKKRAFT-DESIGN (gesamte Software): Schwarz/Anthrazit + Autarkkraft-Gelb,
   Farbverläufe, weiche runde Formen, Schatten statt harter Rahmen
   ===================================================================== */
:root {
  --ak-k: #17181b; --ak-k2: #2e3037; --ak-y: #ffb71f; --ak-y2: #ffcf5a; --ak-y3: #f29e00; --ak-cream: #fff6e2;
  --g-dark: linear-gradient(135deg, #17181b 0%, #2e3037 100%);
  --g-gold: linear-gradient(135deg, #ffd36b 0%, #ffb71f 55%, #f6a500 100%);
  --g-card: linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
  --g-soft: linear-gradient(135deg, #fffaf0 0%, #fff1d2 100%);
  --sh-1: 0 2px 6px rgba(23,24,27,.05); --sh-2: 0 10px 28px rgba(23,24,27,.08); --sh-3: 0 16px 40px rgba(23,24,27,.16);
  --sh-gold: 0 8px 20px rgba(255,183,31,.38);
  --line: #ebe7dd;
}
body { background: radial-gradient(1100px 520px at 88% -8%, #fff1cc 0%, rgba(255,241,204,0) 62%), linear-gradient(180deg, #f7f6f2 0%, #f0eee8 100%); background-attachment: fixed; }
/* Seitenleiste */
.side { background: linear-gradient(180deg, #17181b 0%, #22242a 60%, #2a2c32 100%); box-shadow: 6px 0 30px rgba(23,24,27,.18); }
.nav a { border-radius: 14px; padding: 11px 12px; transition: background .15s, transform .05s; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.on { background: var(--g-gold); color: var(--ak-k); box-shadow: var(--sh-gold); }
.nav .badge { background: var(--g-gold); box-shadow: 0 2px 8px rgba(255,183,31,.4); }
.nav a.on .badge { background: var(--ak-k); color: var(--ak-y); box-shadow: none; }
.side .me .av { background: var(--g-gold); color: var(--ak-k); }
/* Kopfzeile */
.top { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 0; box-shadow: 0 6px 24px rgba(23,24,27,.06); }
.search input { border-radius: 999px; border: 1px solid transparent; background: #f2f0ea; height: 44px; }
.search input:focus { outline: none; background: #fff; border-color: var(--ak-y); box-shadow: 0 0 0 4px rgba(255,183,31,.2); }
.results { border-radius: 20px; border: 0; box-shadow: var(--sh-3); }
/* Knöpfe */
.btn { border-radius: 14px; border: 1px solid #e6e1d5; background: linear-gradient(180deg, #ffffff, #f8f6f1); box-shadow: var(--sh-1); transition: transform .05s, box-shadow .15s, border-color .15s; }
.btn:hover { border-color: #d9d2c2; box-shadow: 0 6px 16px rgba(23,24,27,.08); }
.btn:active { transform: translateY(1px); }
.btn.dark { background: var(--g-dark); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(23,24,27,.25); }
.btn.gold { background: var(--g-gold); border: 0; color: var(--ak-k); box-shadow: var(--sh-gold); }
.btn.green { background: linear-gradient(135deg, #3fa45e, #2a7a42); border: 0; box-shadow: 0 8px 20px rgba(42,122,66,.28); }
.btn.sm { border-radius: 12px; }
.iconbtn { border-radius: 14px; border: 1px solid #e6e1d5; background: linear-gradient(180deg, #fff, #f8f6f1); box-shadow: var(--sh-1); }
.linkbtn { border-radius: 8px; }
/* Karten */
.card, .callcard, .hz-tile, .lcard, .tb, .bl-card, .hq-card, .hq-room, .hq-big, .pl-tool { border: 0 !important; border-radius: 22px; background: var(--g-card); box-shadow: var(--sh-2); }
.card.dark { background: var(--g-dark); color: #fff; }
.card.warn { background: linear-gradient(135deg, #fff7e3, #fde8b8); }
.callcard { border-left: 0 !important; position: relative; overflow: hidden; }
.callcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--g-gold); }
.callcard.anruf::before { background: linear-gradient(180deg, #4fb36b, #2a7a42); } .callcard.termin::before { background: var(--g-gold); }
.callcard.over::before { background: linear-gradient(180deg, #ff8a5b, #e2552a); }
.hz-tile .hz-ic { border-radius: 14px; }
.hz-tile.mail .hz-ic, .hz-tile.anruf .hz-ic, .hz-tile.termin .hz-ic, .hz-tile.aufgabe .hz-ic { background: var(--g-gold); color: var(--ak-k); box-shadow: var(--sh-gold); }
.kicker { color: #c98a00; }
/* Eingaben */
.inp, .field input, .field select, .field textarea, select.inp, textarea.inp { border-radius: 14px; border: 1px solid #e6e1d5; background: #fff; box-shadow: inset 0 1px 2px rgba(23,24,27,.03); }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ak-y); box-shadow: 0 0 0 4px rgba(255,183,31,.2); }
/* Chips, Pills, Tags, Reiter */
.chip { border-radius: 999px; border: 1px solid #e6e1d5; background: linear-gradient(180deg, #fff, #f8f6f1); box-shadow: var(--sh-1); }
.chip.on, .chip:hover { border-color: var(--ak-y); }
.chip.on { background: var(--g-dark); color: #fff; border-color: transparent; }
.pill { border-radius: 999px; }
.tag { border-radius: 8px; }
.tag.A { background: var(--g-gold); color: var(--ak-k); }
.seg, .tabs, .ctabs, .hl-seg { border-radius: 999px; overflow: hidden; }
.seg button.on, .tabs .on, .ctabs .on, .hl-seg button.on { background: var(--g-dark) !important; color: #fff !important; }
/* Tabellen */
table.t { border-collapse: separate; border-spacing: 0; }
table.t th { color: #8a8478; }
table.t tbody tr:hover td { background: #fffaf0; }
/* Modal */
.modal-bg { background: rgba(23,24,27,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal { border-radius: 28px; box-shadow: 0 30px 80px rgba(23,24,27,.35); }
.toast { border-radius: 16px; background: var(--g-dark); box-shadow: var(--sh-3); }
.caltip { border-radius: 18px; border: 0; box-shadow: var(--sh-3); }
.ddmenu, .dropdown { border-radius: 18px; border: 0; box-shadow: var(--sh-3); }
/* Leads-Board */
.lane { border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.4)); }
.lane-h { border-radius: 18px; }
.lcard { border-radius: 18px; box-shadow: 0 4px 14px rgba(23,24,27,.07); }
.lcard:hover { box-shadow: 0 10px 24px rgba(23,24,27,.12); transform: translateY(-1px); }
.drop { border-radius: 22px; }
/* Kalender */
.cal, .week, .month { border-radius: 24px; overflow: hidden; box-shadow: var(--sh-2); border: 0; }
.cev, .ev { border-radius: 12px; }
.nowline { background: linear-gradient(90deg, #ff6a3d, #ffb71f); height: 2px; }
/* Zeitstrahl / Kundenansicht */
.kd-head, .kd-side .card { border-radius: 24px; }
.timeline .tl, .tl { border-radius: 18px; }
.pin { border-radius: 16px; background: var(--g-soft); border: 0; }
.ptck { border-radius: 999px; }
.ptck.on, .ptck:hover { background: var(--g-gold); border-color: var(--ak-y); }
/* Mail */
.mailapp, .mlist, .mmain, .mside { border-radius: 24px; }
/* Heizlast (Autarkkraft-Farben statt Navy) */
.hlx { background: radial-gradient(900px 420px at 85% -10%, #fff1cc 0%, rgba(255,241,204,0) 60%), linear-gradient(180deg, #f7f6f2, #f0eee8); }
.hlx-head { background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 0; box-shadow: 0 6px 24px rgba(23,24,27,.06); }
.hlx-pill { background: var(--g-dark); box-shadow: 0 8px 22px rgba(23,24,27,.25); }
.hlx-steps { background: var(--g-dark); }
.hlx-steps button.on { background: rgba(255,183,31,.14); border-color: rgba(255,183,31,.45); border-radius: 16px; } .hlx-steps button.on span { background: var(--g-gold); color: var(--ak-k); }
.hlx-foot { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 0; box-shadow: 0 -6px 24px rgba(23,24,27,.06); }
.hlx-foot .btn.dark { background: var(--g-dark); }
.hq-seg button.on, .hq-count button.on, .hq-chips button.on, .hq-toggle input:checked + i { background: var(--g-dark) !important; border-color: transparent !important; }
.hq-tiles button.on { border: 2px solid var(--ak-y); background: var(--g-soft); }
.hq-ic, .hq-nr, .hq-badge { background: var(--g-dark); color: var(--ak-y); }
.hq-bic.gold { background: var(--g-gold); color: var(--ak-k); } .hq-bic.dark { background: var(--g-dark); color: var(--ak-y); }
.hq-range { background: linear-gradient(90deg, #ffb71f var(--p), #2e3037 var(--p)) !important; }
.hq-range::-webkit-slider-thumb { background: #ffb71f; box-shadow: 0 0 0 1px #f29e00; }
.hq-scale b { color: #c98a00; }
.hq-kreis, .hq-sub, .hq-box { border-radius: 20px; border: 0; background: linear-gradient(135deg, #faf8f3, #f3f0e8); }
.hq-etbar { border: 0; border-radius: 999px; box-shadow: var(--sh-1); }
.hq-room { border-radius: 24px; } .hq-sk-box { border-radius: 16px; }
.hq-erk { border-radius: 28px; }
/* Beratung: Autarkkraft-Farben */
.bx { --navy: #17181b; --navy2: #2e3037; --gold: #ffcf5a; --gold2: #ffb71f; background: radial-gradient(1100px 520px at 75% -10%, #fff1cc 0%, rgba(255,241,204,0) 60%), linear-gradient(180deg, #f7f6f2 0%, #f0eee8 100%); }
.bx-line mark { color: #ffc93c; } .bx-nav .bx-ic { color: #ffc93c; } .bx-mini b, .bx-kpis b { color: #ffc93c; }
.bx-cfgbar span { background: linear-gradient(135deg, rgba(255,183,31,.24), rgba(255,183,31,.08)); color: #ffd36b; border-color: rgba(255,183,31,.4); }
.bx-say, .bx-chips button.vor, .bx-spo.empf:not(.on), .bx .ask, .bx-kb { background: var(--g-soft); }
.bx-script { background: radial-gradient(620px 220px at 100% 0%, rgba(255,183,31,.2), rgba(255,183,31,0) 70%), var(--g-dark); }
.bl-start { background: radial-gradient(520px 200px at 100% 0%, rgba(255,183,31,.28), rgba(255,183,31,0) 70%), var(--g-dark); }
.bl-t { color: #c98a00; }
/* Planung / Tageszusammenfassung */
.pl-tool.dark, .pl-tool:first-child { background: var(--g-dark); color: #fff; }
.tb-k { border-radius: 16px; background: var(--g-soft); }
.hz-badge { border-radius: 999px; }
.bx-head { background: linear-gradient(120deg, #17181b 0%, #26282e 60%, #34363d 100%); }
.bx-nav { background: linear-gradient(180deg, #17181b 0%, #22242a 60%, #2a2c32 100%); }
.bx-title h1 { background: linear-gradient(90deg, #17181b, #4a4c53); -webkit-background-clip: text; background-clip: text; }
/* Aktiver Menüpunkt wie HEADQUARTER, aber in Autarkkraft-Orange und etwas kräftiger */
.side { background: radial-gradient(420px 320px at 0% 0%, rgba(255,183,31,.16) 0%, rgba(255,183,31,0) 70%), linear-gradient(180deg, #17181b 0%, #1f2126 55%, #26282e 100%); }
.nav a.on { background: linear-gradient(90deg, rgba(255,183,31,.42) 0%, rgba(255,183,31,.18) 45%, rgba(255,255,255,.05) 100%); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #ffb71f, 0 6px 18px rgba(0,0,0,.25); }
.nav a.on svg { color: #ffc23d; }
.nav a.on .badge { background: var(--g-gold); color: var(--ak-k); box-shadow: 0 2px 8px rgba(255,183,31,.45); }
.nav a:hover:not(.on) { background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.bx-nav { background: radial-gradient(360px 280px at 0% 0%, rgba(255,183,31,.14) 0%, rgba(255,183,31,0) 70%), linear-gradient(180deg, #17181b 0%, #1f2126 55%, #26282e 100%); }
.bx-nav button.on { background: linear-gradient(90deg, rgba(255,183,31,.42) 0%, rgba(255,183,31,.18) 45%, rgba(255,255,255,.05) 100%); color: #fff; box-shadow: inset 3px 0 0 #ffb71f, 0 6px 18px rgba(0,0,0,.25); }
.bx-nav button.on .bx-ic { background: rgba(255,183,31,.2); color: #ffc23d; }
.bx-nav button.on small { color: rgba(255,255,255,.7); }
.bx-grp { color: #c9a24a; }
.hlx-steps button.on { background: linear-gradient(90deg, rgba(255,183,31,.42), rgba(255,183,31,.12)); border-color: transparent; box-shadow: inset 0 -2px 0 #ffb71f; }

/* ===== HEADQUARTER-Look überall: dunkel mit orangem Verlauf von links + oranger Akzent ===== */
:root {
  --g-act: linear-gradient(90deg, rgba(255,183,31,.46) 0%, rgba(255,183,31,.16) 50%, rgba(255,183,31,.04) 100%), linear-gradient(180deg, #24262c 0%, #17181b 100%);
  --g-act-strong: linear-gradient(90deg, rgba(255,183,31,.78) 0%, rgba(255,183,31,.38) 45%, rgba(255,183,31,.12) 100%), linear-gradient(180deg, #2a2c32 0%, #1b1c20 100%);
  --g-darkglow: radial-gradient(480px 260px at 0% 0%, rgba(255,183,31,.2) 0%, rgba(255,183,31,0) 70%), linear-gradient(180deg, #1f2126 0%, #17181b 100%);
  --sh-act: inset 3px 0 0 #ffb71f, 0 8px 20px rgba(23,24,27,.28);
}
/* Haupt-Knöpfe */
.btn.dark, .hlx-foot .btn.dark, .bx-foot .btn.dark { background: var(--g-act); color: #fff; border: 0; box-shadow: var(--sh-act); }
.btn.gold, .bx-head .btn.dark { background: var(--g-act-strong); color: #fff; border: 0; box-shadow: inset 3px 0 0 #ffb71f, 0 8px 22px rgba(255,183,31,.3); }
.btn.dark:hover, .btn.gold:hover { filter: brightness(1.08); }
.bx-erg-b button:first-child { background: var(--g-act-strong); color: #fff; box-shadow: inset 3px 0 0 #ffb71f, 0 8px 22px rgba(255,183,31,.3); } .bx-erg-b button:first-child small { color: rgba(255,255,255,.75); }
.bx .ask .btn.dark { background: var(--g-act); box-shadow: var(--sh-act); }
/* Ausgewählte Zustände: Chips, Reiter, Umschalter, Kacheln */
.chip.on, .seg button.on, .tabs .on, .ctabs .on, .hl-seg button.on, .hq-seg button.on, .hq-count button.on, .hq-chips button.on, .hq-nsw button.on,
.bx-chips button.on, .bx-tabs button.on, .ptabs .on, .tbadges .on { background: var(--g-act) !important; color: #fff !important; border-color: transparent !important; box-shadow: var(--sh-act) !important; }
.hq-count button.on span { color: rgba(255,255,255,.75); }
.hq-toggle input:checked + i { background: var(--g-act-strong) !important; border-color: transparent !important; }
.hq-tiles button.on { background: linear-gradient(90deg, rgba(255,183,31,.32), rgba(255,183,31,.08)), #fff; border: 0; box-shadow: inset 3px 0 0 #ffb71f, 0 6px 16px rgba(23,24,27,.08); padding: 8px; }
.bx-spo.on { border: 0; box-shadow: inset 3px 0 0 #ffb71f, 0 10px 24px rgba(23,24,27,.16); background: linear-gradient(90deg, rgba(255,183,31,.22), rgba(255,183,31,.04)), #fff; }
.bx-nav button.on, .nav a.on { background: linear-gradient(90deg, rgba(255,183,31,.46) 0%, rgba(255,183,31,.18) 45%, rgba(255,255,255,.05) 100%); }
.hlx-steps button.on { background: linear-gradient(90deg, rgba(255,183,31,.46), rgba(255,183,31,.12)); box-shadow: inset 3px 0 0 #ffb71f; }
/* Dunkle Flächen mit orangem Schimmer oben links */
.card.dark, .bl-start, .hlx-pill, .toast, .bx-mini, .bx-kpis div, .pl-tool:first-child, .hlx-steps { background: var(--g-darkglow); }
.bx-script { background: radial-gradient(520px 240px at 0% 0%, rgba(255,183,31,.2) 0%, rgba(255,183,31,0) 70%), linear-gradient(180deg, #24262c 0%, #17181b 100%); box-shadow: inset 3px 0 0 #ffb71f, 0 14px 40px rgba(23,24,27,.22); }
.bx-head { background: radial-gradient(520px 180px at 0% 0%, rgba(255,183,31,.18) 0%, rgba(255,183,31,0) 70%), linear-gradient(120deg, #17181b 0%, #26282e 60%, #34363d 100%); }
/* Hervorgehobene Kacheln / Empfehlungen */
.hz-tile .hz-ic, .hq-ic, .hq-nr, .hq-badge, .hq-bic.dark, .hq-bic.gold { background: var(--g-act-strong) !important; color: #fff !important; box-shadow: inset 2px 0 0 #ffb71f, 0 4px 12px rgba(23,24,27,.2) !important; }
.tag.A { background: linear-gradient(90deg, #ffb71f, #ffd36b); }
.nav .badge { background: linear-gradient(90deg, #ffb71f, #ffd36b); }
/* Fortschritt / Linien */
.bx-prog i, .pc-prog i, .hl-bar i { background: linear-gradient(90deg, #f29e00, #ffb71f 50%, #ffd36b); }
.stepper { gap: 6px; }
.stepper button { border-radius: 14px !important; background: linear-gradient(180deg, #f3f1ec, #ebe8e1); }
.stepper button.done { background: linear-gradient(180deg, #2a2c32, #1b1c20); color: #d8d5ce; }
.stepper button.now { background: var(--g-act-strong); color: #fff; box-shadow: inset 3px 0 0 #ffb71f, 0 6px 16px rgba(255,183,31,.3); }
.vsteps button.on, .vsteps button.now { background: linear-gradient(90deg, rgba(255,183,31,.3), rgba(255,183,31,.05)); box-shadow: inset 3px 0 0 #ffb71f; }
/* ===== Heute zu tun – neu ===== */
.hz-head { align-items: flex-end; margin-bottom: 18px; } .hz-head h1 { font-size: 30px; letter-spacing: -.01em; margin: 2px 0 4px; }
.hz-sub2 { margin: 0; color: #6b6e75; font-size: 14.5px; } .hz-sub2 b { color: var(--ak-k); }
.hz-tile { min-width: 132px; padding: 12px 18px 12px 12px; } .hz-tile.leer { opacity: .55; }
.hz-tile .hz-ic { width: 40px; height: 40px; font-size: 17px; }
.hz { gap: 22px; } .hz-col { gap: 12px; } .hz-colh h2 { font-size: 18px; }
.hz-new { margin-bottom: 16px; background: var(--g-darkglow); } .hz-newrow { border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; }
.hz-over { margin-bottom: 18px; padding: 14px 18px; background: linear-gradient(90deg, rgba(255,138,91,.14), rgba(255,183,31,.06)), #fff; box-shadow: inset 3px 0 0 #f08a3a, var(--sh-2); }
.hz-over summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; list-style: none; } .hz-over summary::-webkit-details-marker { display: none; }
.hz-over-ic { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #ff8a5b, #e2552a); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hz-over[open] summary { margin-bottom: 12px; } .hz-over .callcard, .hz-over .hz-grp { margin-top: 8px; box-shadow: var(--sh-1); }
.hz-plan { display: flex; flex-direction: column; gap: 10px; position: relative; }
.hz-slot { display: grid; grid-template-columns: 58px 1fr; gap: 12px; position: relative; }
.hz-slot::before { content: ''; position: absolute; left: 28px; top: 34px; bottom: -14px; width: 2px; background: linear-gradient(180deg, rgba(255,183,31,.5), rgba(255,183,31,.08)); }
.hz-slot:last-child::before { display: none; }
.hz-slot-t { font-weight: 800; font-size: 15px; padding-top: 14px; text-align: right; color: var(--ak-k); }
.hz-slot.vorbei .hz-slot-t { color: #a9a49a; } .hz-slot.vorbei .callcard { opacity: .75; }
.hz-slot .hz-time { display: none; }
.hz-leer { background: var(--g-card); border-radius: 22px; box-shadow: var(--sh-2); padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.hz-leer span { font-size: 28px; color: #ffb71f; } .hz-leer small { color: #8a8478; }
.hz-mails { padding: 6px 14px; } .hz-mail { border-radius: 14px; padding: 10px 8px; } .hz-mail:hover { background: #fffaf0; }
.hz-grp { padding: 12px 16px; } .hz-grph { font-weight: 700; }
/* Vorschau morgen */
.hz-morgen { margin-top: 26px; padding: 18px 22px; background: radial-gradient(520px 200px at 0% 0%, rgba(255,183,31,.18) 0%, rgba(255,183,31,0) 70%), var(--g-card); }
.hz-morgen-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .hz-morgen-h h2 { margin: 2px 0 0; font-size: 20px; }
.hz-morgen-k { display: flex; gap: 8px; flex-wrap: wrap; } .hz-morgen-k span { background: #f3f0e9; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #55575c; } .hz-morgen-k b { color: var(--ak-k); }
.hz-morgen-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.hz-mg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: var(--sh-1); text-decoration: none; color: inherit; border: 1px solid #f0ece3; transition: transform .05s, box-shadow .15s; }
.hz-mg:hover { box-shadow: 0 8px 20px rgba(23,24,27,.08); transform: translateY(-1px); }
.hz-mg-t { font-weight: 800; font-size: 13.5px; min-width: 42px; }
.hz-mg-ic { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 14px; background: var(--g-act); color: #fff; box-shadow: inset 2px 0 0 #ffb71f; }
.hz-mg.anruf .hz-mg-ic { background: linear-gradient(90deg, rgba(79,179,107,.5), rgba(79,179,107,.15)), #1f2126; box-shadow: inset 2px 0 0 #4fb36b; }
.hz-mg-x { display: flex; flex-direction: column; min-width: 0; } .hz-mg-x b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hz-mg-x small { color: #8a8478; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb { width: 100%; } .tb summary { flex-wrap: wrap; align-items: center; }
.tb-zr { margin-left: auto; display: inline-flex; gap: 4px; background: #f3f0e9; border-radius: 999px; padding: 3px; }
.tb-zr button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: #55575c; }
.tb-zr button.on { background: var(--g-act); color: #fff; box-shadow: inset 2px 0 0 #ffb71f, 0 4px 10px rgba(23,24,27,.2); }
.tb summary > b { font-size: 16px; }
.tb summary { width: 100%; justify-content: flex-start; } .tb-row { width: 100%; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
@media (min-width: 1300px) { .tb-row { grid-template-columns: repeat(8, 1fr); } }
/* Heizlast-Schätzung im Gespräch */
.bx-hl { background: radial-gradient(520px 220px at 0% 0%, rgba(255,183,31,.22) 0%, rgba(255,183,31,0) 70%), linear-gradient(180deg, #24262c 0%, #17181b 100%) !important; color: #fff; padding: 18px 22px !important; box-shadow: inset 3px 0 0 #ffb71f, 0 14px 36px rgba(23,24,27,.22) !important; gap: 12px; }
.bx-hl.leer { flex-direction: row; align-items: baseline; gap: 12px; } .bx-hl.leer small { color: #b9b4aa; }
.bx-hl span, .bx-hl small { color: #c7c2b8; font-size: 12.5px; } .bx-hl-top > div:first-child b { display: block; font-size: 34px; line-height: 1.1; color: #ffc23d; letter-spacing: -.01em; }
.bx-hl-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.bx-hl-cmp { display: flex; gap: 8px; } .bx-hl-cmp div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 96px; } .bx-hl-cmp b { font-size: 16px; color: #fff; }
.bx-hl-bars { display: flex; flex-direction: column; gap: 6px; } .bx-hl-bars div { display: grid; grid-template-columns: 170px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.bx-hl-bars i { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; } .bx-hl-bars em { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f29e00, #ffb71f, #ffd36b); }
.bx-hl-bars b { text-align: right; font-size: 13px; } .bx-hl-hint { color: #a9a49a !important; }
.bx-ql { position: relative; } .bx-info { display: inline-block; margin-left: 8px; }
.bx-info summary { list-style: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: italic 700 12px Georgia, serif; color: #17181b; background: linear-gradient(135deg, #ffd36b, #ffb71f); box-shadow: 0 2px 6px rgba(242,158,0,.35); }
.bx-info summary::-webkit-details-marker { display: none; }
.bx-info > div { position: absolute; z-index: 20; left: 0; right: 0; top: 28px; background: #17181b; color: #eee; font-size: 13.5px; font-weight: 400; line-height: 1.5; padding: 12px 14px; border-radius: 14px; box-shadow: inset 3px 0 0 #ffb71f, 0 12px 30px rgba(0,0,0,.25); }
.bx-info > div b { color: #ffc23d; }
.bx-nat { display: inline-block; margin-left: 12px; color: #8a6a1c; font-weight: 600; font-size: 13px; } .bx-nat.warn { color: #b3261e; }
/* Angebotsbesprechung: Kunde + Angebot nebeneinander */
.ab-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); gap: 18px; align-items: start; }
.ab-links { min-width: 0; }
.ab-rechts { position: sticky; top: 12px; height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #24262c, #17181b); border-radius: 22px; padding: 14px; box-shadow: inset 3px 0 0 #ffb71f, var(--sh-2, 0 12px 30px rgba(0,0,0,.18)); }
.ab-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; } .ab-kopf > div:first-child { display: flex; flex-direction: column; } .ab-kopf b { font-size: 18px; color: #ffc23d; } .ab-kopf .small { color: #c7c2b8; }
.ab-wahl { display: flex; gap: 6px; flex-wrap: wrap; } .ab-rechts iframe { flex: 1; width: 100%; border: 0; border-radius: 14px; background: #fff; }
@media (max-width: 1100px) { .ab-split { grid-template-columns: 1fr; } .ab-rechts { position: static; height: 80vh; } }
/* Neue E-Mail: Gold-Button */
.mside .btn.newmail, .btn.newmail, a.btn.newmail { background: linear-gradient(135deg, #ffd36b 0%, #ffb71f 55%, #f29e00 100%) !important; color: #17181b !important; border: 0 !important; font-weight: 700; box-shadow: 0 8px 20px rgba(242,158,0,.32), inset 0 1px 0 rgba(255,255,255,.45) !important; }
.btn.newmail:hover { filter: brightness(1.05); transform: translateY(-1px); color: #17181b !important; }
/* Termin: Gespräch gestartet / Nicht erreicht */
.gs-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gs-wahl > a, .gs-wahl > button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 18px; border: 0; cursor: pointer; text-decoration: none; font: inherit; transition: transform .12s, box-shadow .12s; }
.gs-wahl b { font-size: 15.5px; } .gs-wahl small { font-size: 12.5px; opacity: .8; }
.gs-ja { background: linear-gradient(135deg, #ffd36b, #ffb71f 55%, #f29e00); color: #17181b; box-shadow: 0 8px 20px rgba(242,158,0,.3); }
.gs-nein { background: linear-gradient(180deg, #2e3037, #17181b); color: #fff; box-shadow: inset 3px 0 0 #e0573e, 0 8px 20px rgba(23,24,27,.2); }
.gs-wahl > a:hover, .gs-wahl > button:hover { transform: translateY(-1px); }
.gs-wahl .gs-falsch { grid-column: 1 / -1; padding: 8px 14px; background: transparent; color: #6b6960; border: 1px dashed #d8d3c7; align-items: center; } .gs-wahl .gs-falsch:hover { color: #17181b; }
.gs-wahl button:disabled { opacity: .5; cursor: wait; }
.tdt.klick { cursor: pointer; } .tdt.klick:hover { text-decoration: underline; text-decoration-color: #ffb71f; text-underline-offset: 3px; }
.fo-liste { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.fo-z { display: flex; gap: 12px; align-items: flex-start; background: #f7f4ec; border-radius: 16px; padding: 12px 14px; } .fo-z.warn { background: #fdf0e8; box-shadow: inset 3px 0 0 #e0573e; }
.fo-z > div { display: flex; flex-direction: column; gap: 2px; } .fo-z span { font-size: 13px; color: #6b6960; }
.fo-i { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffd36b, #ffb71f); color: #17181b !important; font-weight: 700; font-size: 14px !important; }
.fo-frame { width: 100%; height: 420px; border: 1px solid #e6e1d6; border-radius: 14px; background: #fff; margin-bottom: 12px; }
/* Telefonnummer nur anzeigen (kein Wählen aus der Software) */
.telnr { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: inherit; user-select: all; letter-spacing: .01em; }
.calcust .telnr { margin-top: 8px; font-size: 18px; padding: 8px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #ece6d8; }
.bx-head .telnr, .bx-right .telnr { color: #ffc23d; font-size: 16px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
/* Popup: Mail prüfen & senden */
.fo-mail { background: #fff; border-radius: 18px; padding: 14px; box-shadow: inset 0 0 0 1px #ece6d8, inset 3px 0 0 #ffb71f; display: flex; flex-direction: column; gap: 10px; }
.fo-mk { display: flex; gap: 12px; align-items: flex-start; } .fo-mk > div { display: flex; flex-direction: column; gap: 2px; } .fo-mk span { font-size: 13px; color: #6b6960; }
.fo-subj { width: 100%; font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 12px; border: 1px solid #e3ddd0; background: #fbfaf6; }
.fo-ed { min-height: 160px; max-height: 340px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid #e3ddd0; background: #fff; font-size: 14px; line-height: 1.55; outline: none; }
.fo-ed:focus { border-color: #ffb71f; box-shadow: 0 0 0 3px rgba(255,183,31,.2); } .fo-ed img { max-width: 100%; height: auto; }
.fo-act { gap: 8px; align-items: center; flex-wrap: wrap; } .fo-act select { margin-left: 6px; padding: 5px 8px; border-radius: 10px; border: 1px solid #e3ddd0; }
.modal:has(.fo-mail), .mbox:has(.fo-mail) { width: min(760px, 94vw); }
.am-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; margin-top: 8px; } .am-z { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.hq-nat { margin-top: 8px; font-size: 14px; color: #3a3a3a; } .hq-nat b { color: #8a6a1c; font-size: 16px; } .hq-nat span { color: #8b877c; font-size: 13px; }
.hq-etwahl { border: 1px solid #e3ddd0; background: #fbfaf6; border-radius: 10px; padding: 4px 8px; font: inherit; font-size: 13px; color: #6b6960; cursor: pointer; margin-right: 6px; }
.hq-etwahl { width: auto !important; max-width: 160px; }
/* Etagen als eigene Karten – „Raum anlegen“ gehört sichtbar zur Etage */
.hq-etage { background: linear-gradient(180deg, #fff, #fcfbf7); border-radius: 22px; padding: 16px 20px 18px; margin-bottom: 18px; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 10px 26px rgba(23,24,27,.06); border: 1px solid #efeadf; }
.hq-etage .hq-empty { padding: 4px 2px 0; }
/* Heizlast-Ergebnis: übersichtlicher */
.hl-rtab td.r, .hl-rtab th.r { text-align: right; white-space: nowrap; } .hl-rtab .hl-trh td { background: #f5f2ea; font-weight: 700; padding-top: 10px; }
.hl-wm2 { display: inline-block; min-width: 38px; text-align: center; padding: 1px 8px; border-radius: 99px; background: #e9f3e4; color: #2e6b1f; font-weight: 600; font-size: 13px; }
.hl-wm2.mittel { background: #fdf1d8; color: #8a5a00; } .hl-wm2.hoch { background: #fbe3dc; color: #b3261e; }
.hl-einst { background: radial-gradient(520px 200px at 0% 0%, rgba(255,183,31,.18), rgba(255,183,31,0) 70%), linear-gradient(180deg, #24262c, #17181b) !important; color: #fff; box-shadow: inset 3px 0 0 #ffb71f, 0 14px 36px rgba(23,24,27,.2) !important; }
.hl-einst h2 { color: #fff; } .hl-einst .muted { color: #b9b4aa !important; }
.hl-einst-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.hl-ek { background: rgba(255,255,255,.06); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .hl-ek > b { color: #ffc23d; margin-bottom: 2px; }
.hl-ew { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .hl-ew span { color: #c7c2b8; } .hl-ew em { font-style: normal; font-weight: 700; font-size: 16px; }
.hq-natman { margin-top: 6px; max-width: 420px; } .hq-nat .linkbtn { margin-left: 6px; }
.hl-schr { background: #f7f4ec; border-radius: 16px; padding: 12px 14px; margin: 8px 0 4px; }
.hl-stufe { display: inline-block; min-width: 30px; text-align: center; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: linear-gradient(135deg, #ffd36b, #ffb71f); color: #17181b; }
.hl-sp { align-items: flex-end; flex-wrap: wrap; }
.hl-imber { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; cursor: pointer; font-weight: 700; font-size: 14px; background: #fff; border: 1px solid #e3ddd0; margin-bottom: 2px; }
.hl-imber input { display: none; } .hl-imber.on { background: linear-gradient(135deg, #ffd36b, #ffb71f 55%, #f29e00); border-color: transparent; color: #17181b; box-shadow: 0 6px 16px rgba(242,158,0,.3); }
.hl-h2row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; } .hl-h2row h2 { margin: 0; }
.hl-tausch { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ece6d8; }
.hl-bwl { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.hl-bw { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: #f7f4ec; cursor: pointer; } .hl-bw input { width: 20px; height: 20px; margin-top: 2px; accent-color: #f29e00; }
.hl-bw span { display: flex; flex-direction: column; gap: 2px; } .hl-bw small { color: #6b6960; font-size: 13px; } .hl-bw:has(input:checked) { background: #fff4d6; box-shadow: inset 3px 0 0 #ffb71f; }
.modal-bg { z-index: 100; }
.okbox { background: #eaf6ec; border: 1px solid #b9dfc0; color: #1d5b2a; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.testbar { background: #e8f1ff; border-bottom-color: #b8cff5; color: #183a6b; }
.testhint { background: #fff4d6; border: 1px solid #f3d27a; color: #5a4300; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 6px 0 10px; }
.bx-sec { margin-bottom: 26px; scroll-margin-top: 10px; } .bx-sec > h2 { font-size: 18px; margin: 0 0 10px; }
/* Heizlast-Karte klein rechts über Wissen/Einwände/Notiz */
.bx-hl.klein { padding: 12px 14px !important; margin-bottom: 10px; gap: 8px !important; }
.bx-hl.klein .bx-hl-top { flex-direction: column; align-items: stretch; gap: 8px; }
.bx-hl.klein .bx-hl-top > div:first-child b { font-size: 24px; }
.bx-hl.klein .bx-hl-cmp { gap: 6px; } .bx-hl.klein .bx-hl-cmp div { min-width: 0; flex: 1; padding: 6px 8px; border-radius: 10px; }
.bx-hl.klein .bx-hl-cmp small { font-size: 10.5px; } .bx-hl.klein .bx-hl-cmp b { font-size: 13px; }
.bx-hl.klein .bx-hl-bars div { grid-template-columns: 92px 1fr 48px; gap: 6px; font-size: 11.5px; } .bx-hl.klein .bx-hl-bars b { font-size: 11.5px; }
.bx-hl.klein span, .bx-hl.klein small { font-size: 11px; }
.bx-hl.klein.leer { flex-wrap: wrap; }
.bx-fr { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; } .bx-fr div { flex: 1; min-width: 110px; background: #f7f5f0; border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; } .bx-fr small { font-size: 11.5px; color: #6b6960; } .bx-fr b { font-size: 16px; } .bx-fr .gold { background: linear-gradient(135deg, #ffd36b, #ffb71f 55%, #f29e00); }
.bx-kbl { margin: 4px 0 6px; padding-left: 18px; } .bx-kbl li { margin: 2px 0; }

.bx-chips button.aus { border-style: dashed; color: #8a8478; text-decoration: line-through; background: #faf8f3; }
.bx-nr { display:inline-flex; width:24px; height:24px; border-radius:50%; background:var(--gold2,#c9a35a); color:#fff; font-size:13px; align-items:center; justify-content:center; margin-right:8px; vertical-align:2px; }
.bx-kach { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; margin-bottom:14px; }
.bx-kach > div { background:#f7f4ec; border-radius:12px; padding:10px 12px; } .bx-kach span { display:block; font-size:12px; color:#8a8478; } .bx-kach b { font-size:14px; }
.bx-subt { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#8a8478; margin:4px 0 8px; font-weight:600; }
.bx-adrchk { margin-top:12px; font-size:13.5px; color:#55524b; } .bx-adrchk .ok { color:#2e7d4f; } .bx-adrchk .warn { color:#b5641b; font-weight:600; }
.bx-offen { margin-top:10px; font-size:13px; color:#8a8478; } .bx-offen summary { cursor:pointer; }
.bxk-nav { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; } .bxk-nav b { font-size:14px; }
.bxk-chips { margin-left:auto; display:flex; gap:6px; } .bxk-chips button { border:1px solid #e3ddd0; background:#fff; border-radius:99px; padding:6px 12px; font:inherit; font-size:13px; cursor:pointer; } .bxk-chips button.on { background:#0d1626; color:#fff; border-color:#0d1626; }
.bxk { display:grid; grid-template-columns:46px repeat(5,1fr); gap:2px; font-size:11.5px; }
.bxk-h { text-align:center; font-weight:600; padding:4px 0 6px; border-radius:8px; } .bxk-h small { display:block; font-weight:400; color:#8a8478; } .bxk-h.hl { background:#fdf3dc; }
.bxk-z { color:#8a8478; text-align:right; padding-right:6px; line-height:20px; height:20px; }
.bxk-c { height:20px; border:0; border-radius:4px; background:#f6f4ef; font:inherit; font-size:11px; padding:0 4px; text-align:left; overflow:hidden; white-space:nowrap; }
button.bxk-c { cursor:pointer; } button.bxk-c:hover { background:#efe3c4; } .bxk-c.hl { background:#fcf2d9; }
.bxk-c.busy { background:#0d1626; color:#fff; } .bxk-c.alt { background:repeating-linear-gradient(45deg,#f3f1ec,#f3f1ec 3px,#ebe8e1 3px,#ebe8e1 6px); }
.bxk-c.sel { background:linear-gradient(135deg,#c9a35a,#a8823c); color:#fff; font-weight:700; }
.bx-fertig { width:100%; border:0; border-radius:16px; padding:16px 20px; background:linear-gradient(135deg,#0d1626 0%,#2a2620 100%); color:#fff; font:inherit; font-size:17px; font-weight:700; cursor:pointer; box-shadow:0 8px 20px rgba(13,22,38,.25); border-left:4px solid #c9a35a; text-align:left; }
.bx-fertig small { display:block; font-size:12.5px; font-weight:400; color:#d8cfbd; margin-top:3px; }
.bx-ausn { text-align:center; font-size:13px; color:#8a8478; margin:12px 0 4px; }

/* Telefonie – Heute anrufen */
.tel-row { display:flex; align-items:center; gap:14px; padding:12px 10px; border-top:1px solid #eee8dc; border-radius:12px; }
.tel-row:first-of-type { border-top:0; } .tel-row.jetzt { background:#fdf3dc; border-top-color:transparent; }
.tel-row.klein { padding:6px 10px; font-size:13.5px; }
.tel-zeit { width:56px; font-weight:700; font-size:15px; text-align:right; line-height:1.15; } .tel-row.klein .tel-zeit { font-size:13px; }
.tel-art { font-size:12px; font-weight:600; padding:4px 10px; border-radius:99px; white-space:nowrap; background:#eef1f6; color:#2b3a55; min-width:150px; text-align:center; }
.tel-art.bg { background:#0d1626; color:#fff; } .tel-art.ab { background:#fcefd2; color:#7a5310; } .tel-art.st { background:#e6f1ea; color:#235c37; }
.tel-wer { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.tel-win { background:#e9f6ee; border:1px solid #b9e0c6; display:flex; flex-direction:column; gap:6px; font-weight:600; color:#1d5b2e; } .tel-win .btn { align-self:flex-start; }
.tel-zeit { width:92px; flex:none; }

.tel-gf summary { display:flex; align-items:center; gap:12px; cursor:pointer; flex-wrap:wrap; } .tel-gf summary .btn { margin-left:auto; }
.tel-gf-z { display:flex; gap:6px; font-size:12.5px; } .tel-gf-z span { background:#f3f0e8; border-radius:99px; padding:3px 10px; } .tel-gf-z .ok { background:#e6f1ea; color:#235c37; } .tel-gf-z .warn { background:#fde4d6; color:#9a3d12; }
.tel-row.erl { opacity:.6; }
.av.av-tel { background:#2f6f4f !important; color:#fff !important; }

.cvdel, .tddel { border:0; background:none; cursor:pointer; opacity:.35; font-size:12px; padding:0 2px; } .cvdel:hover, .tddel:hover { opacity:1; }
.td { position:relative; } .td .tddel { position:absolute; right:6px; top:6px; } .td:not(:hover) .tddel { display:none; }
.vorschaubar { background:#2f6f4f !important; color:#fff !important; } .vorschaubar .btn { margin-left:10px; }

/* Mitarbeiter – Live-Ansicht */
.mit-wrap { display:grid; grid-template-columns:260px 1fr; gap:16px; align-items:start; }
@media(max-width:820px){ .mit-wrap{ grid-template-columns:1fr; } }
.mit-list { display:flex; flex-direction:column; gap:6px; }
.mit-tab { display:flex; align-items:center; gap:10px; text-align:left; border:1px solid #e9e4d8; background:#fff; border-radius:12px; padding:10px 12px; font:inherit; cursor:pointer; }
.mit-tab:hover { border-color:#d6cdb8; } .mit-tab.on { border-color:#0d1626; box-shadow:inset 0 0 0 1px #0d1626; }
.mit-tab-main { flex:1; display:flex; flex-direction:column; min-width:0; } .mit-tab-main b { font-weight:600; }
.mit-dot { width:9px; height:9px; border-radius:50%; background:#c3bdb0; flex:none; } .mit-dot.on { background:#2e9e56; box-shadow:0 0 0 3px rgba(46,158,86,.2); }
.mit-head { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid #eee8dc; flex-wrap:wrap; } .mit-head b { font-weight:600; }
.mit-live { display:inline-flex; align-items:center; gap:7px; font-size:13px; padding:3px 11px; border-radius:99px; background:#f1efe8; color:#6b6456; }
.mit-live.on { background:#e6f1ea; color:#1d5b2e; }
.mit-open { padding:11px 16px; background:#faf8f3; border-bottom:1px solid #eee8dc; }
.mit-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:14px 16px; } @media(max-width:560px){ .mit-stats{ grid-template-columns:repeat(2,1fr);} }
.mit-stats > div { background:#f7f4ec; border-radius:10px; padding:10px 12px; } .mit-stats span { display:block; font-size:12px; color:#8a8478; } .mit-stats b { font-size:22px; font-weight:600; } .mit-stats small { font-weight:400; color:#8a8478; font-size:13px; }
.mit-verlauf { padding:4px 16px 14px; } .mit-sub { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#8a8478; font-weight:600; margin:6px 0 8px; }
.mit-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #f0ece2; } .mit-row:last-child{ border-bottom:0; }
.mit-zeit { width:46px; color:#8a8478; font-size:13px; } .mit-row .flex1 { flex:1; }
.mit-erg { font-size:12px; padding:2px 9px; border-radius:7px; background:#f1efe8; color:#6b6456; white-space:nowrap; } .mit-erg.ok { background:#e6f1ea; color:#1d5b2e; } .mit-erg.no { background:#f3f1ec; color:#8a8478; }

.hz-todos { background:transparent; border:0; padding:0; gap:0; } .hz-todos .hz-colh { margin:4px 2px 12px; } .todos-frame { width:100%; min-height:300px; border:0; background:transparent; display:block; }

/* Kalender – Zuständigkeit sichtbar */
.callegend { display:flex; flex-wrap:wrap; gap:6px; padding:10px 2px 0; width:100%; order:9; }
.callegend .cl-item { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); text-decoration:none; border:1px solid var(--line); background:#fff; border-radius:99px; padding:3px 10px; }
.callegend .cl-item i { width:9px; height:9px; border-radius:50%; flex:none; }
.callegend .cl-item.on { border-color:var(--ink); color:var(--ink); font-weight:600; }
.cev .av { color:#fff !important; }

.seg.kalseg { margin-left: 0; }

/* Anruf-Fenster (Kalenderklick) */
.am { font-family: Poppins, system-ui, sans-serif; }
.am-hd { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.am-anl { font-size:19px; font-weight:700; color:#c9a35a; display:flex; align-items:center; gap:8px; }
.am-x { width:30px; height:30px; font-size:16px; }
.am-nm { font-size:23px; font-weight:700; letter-spacing:-.01em; margin-top:6px; color:var(--ink); }
.am-tel { color:var(--soft); font-size:14px; margin-top:4px; }
.am-tiles { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin:16px 0 4px; }
.am-t { border-radius:13px; padding:16px 12px; text-align:center; border:1.5px solid; cursor:pointer; text-decoration:none; color:var(--ink); display:block; background:#fff; }
.am-ic { width:32px; height:32px; border-radius:50%; display:grid; place-items:center; margin:0 auto 8px; font-size:17px; }
.am-t b { display:block; font-size:14px; font-weight:600; } .am-t small { display:block; color:var(--soft); font-size:11.5px; margin-top:3px; line-height:1.3; }
.am-t.ok { border-color:#bfe0cb; background:#f1f9f4; } .am-t.ok .am-ic { background:#2e7d45; color:#fff; } .am-t.ok:hover { background:#e7f4ec; }
.am-t.no { border-color:#e9e4d8; background:#faf8f3; } .am-t.no .am-ic { background:#efe8da; color:#8a8478; } .am-t.no:hover { background:#f3efe6; }
.am-foot { display:flex; align-items:center; gap:14px; margin-top:12px; flex-wrap:wrap; }
.am-link { font-size:13px; font-weight:600; color:var(--ink); text-decoration:none; } .am-link:hover { text-decoration:underline; }
.am-link2 { background:none; border:0; color:var(--soft); font-size:13px; cursor:pointer; padding:0; } .am-link2:hover { color:var(--ink); text-decoration:underline; } .am-foot .am-link2:last-child { margin-left:auto; }


/* Heute neu: Mein Tag / Im Blick */
.hz-main .hz-colh h2, .hz-watch .hz-colh h2 { font-size: 18px; }
.hz-wh { font-size: 15px; margin: 0; font-weight: 600; }
.hz-watch { gap: 14px; }
.hz-watch .card { margin: 0; }
.hz-fold summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.hz-fold summary::-webkit-details-marker { display: none; }
.hz-fold summary b::before { content: '▸ '; } .hz-fold[open] summary b::before { content: '▾ '; }
.hz-fold-in { margin-top: 10px; }
.hz-fold-in .card, .hz-fold-in > div { box-shadow: none !important; padding: 0 !important; background: transparent !important; }
.hz-tile.over .hz-ic { }
/* Mitarbeiter-Zugänge: sperren/löschen/übertragen */
.btn.sm.danger { color: #a23b3b; border-color: #e9cccc; }
.btn.sm.danger:hover { background: #a23b3b; color: #fff; border-color: #a23b3b; }
.urow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); margin: -5px 0; }
.urow-main { flex: 1; min-width: 0; }
.urow-name { font-weight: 600; }
.urow-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.urow.gesperrt { opacity: .68; }
.pill.lock { background: #f3e2e2; color: #a23b3b; }
.uziel-l { display: inline-flex; align-items: center; gap: 6px; }
.uziel { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; max-width: 150px; }
@media (max-width: 620px) { .urow { flex-direction: column; align-items: stretch; } .urow-act { justify-content: flex-start; } }
/* „Noch zu erledigen" zweispaltig: Anrufe & Termine | Aufgaben */
.todo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.todo-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.todo-col .hz-sub { margin: 0 0 2px; }
.todo-leer { color: var(--muted); font-size: 13px; padding: 6px 2px; }
@media (max-width: 900px) { .todo-split { grid-template-columns: 1fr; } }
/* Anruf planen: Tagesübersicht des zuständigen Mitarbeiters */
.pcday { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; background: #fcfbf8; }
.pcday-h { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.pcslots { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow: auto; }
.pcslot { display: flex; gap: 10px; align-items: baseline; font-size: 13px; padding: 3px 0; border-bottom: 1px solid #efece5; }
.pcslot:last-child { border-bottom: 0; }
.pcslot .pct { font-weight: 700; white-space: nowrap; color: #3a4f68; }
.pcslot .pcl { color: #2b2d33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcfrei { color: #2e7d45; font-size: 13px; padding: 4px 0; }
.pcfixl { margin-top: 10px; }
#pcTime { margin-top: 6px; }
/* Anruf planen: kleiner Tageskalender */
.pcday { padding: 8px 10px; }
.pcgrid { position: relative; cursor: crosshair; }
.pch { position: absolute; left: 0; right: 0; border-top: 1px solid #ebe7df; }
.pch span { position: absolute; left: 0; top: -8px; font-size: 11px; color: var(--muted); background: #fcfbf8; padding-right: 4px; }
.pcgrid .pcev { position: absolute; left: 50px; right: 4px; cursor: default; font-size: 12px; padding: 2px 6px 2px 8px; }
.pcpick { position: absolute; left: 50px; right: 4px; height: 18px; border-radius: 6px; background: #1f1d1a; color: #fff; font-size: 11.5px; font-weight: 600; padding: 1px 8px; pointer-events: none; }
.pcscroll { max-height: 300px; overflow: auto; padding-top: 8px; }
.am-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
/* Lange Notizen: Pfeile oben rechts zum Auf-/Zuklappen (wie Pipedrive) */
.cvh { position: relative; }
.cvtog { margin-left: auto; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.cvtog:hover { background: rgba(0,0,0,.06); color: #2b2d33; }
.cvtog .i-zu { display: none; }
.cvb.open .cvtog .i-auf { display: none; }
.cvb.open .cvtog .i-zu { display: inline; }
.cvt-full { display: none; }
.cvb.open .cvt-full { display: block; }
.cvb.open .cvt-short { display: none; }
.bx-pre { white-space: pre-wrap; margin-top: 8px; }

.sysm{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:4px 0 6px}

.search .qbox { width: 100%; min-height: 44px; line-height: 44px; border-radius: 999px; border: 1px solid transparent; background: #f2f0ea; padding: 0 14px 0 36px; white-space: nowrap; overflow: hidden; cursor: text; }
.search .qbox:empty::before { content: attr(data-ph); color: #8a8780; pointer-events: none; }
.search .qbox:focus { outline: none; background: #fff; border-color: var(--ak-y); box-shadow: 0 0 0 4px rgba(255,183,31,.2); }
.search .qbox br { display: none; }

/* Baustart später */
.bs-band { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(100deg, #16171a, #2b2a26); color: #fff; border-radius: 18px; padding: 14px 18px; margin-top: 12px; }
.bs-band b { font-weight: 700; font-size: 15px; }
.bs-sub { font-size: 12.5px; color: #c9c4b6; margin-top: 5px; }
.bs-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 12px; background: #ffb71f; color: #16171a; }
.bs-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bs-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 6px 10px; }
.bs-chip b { display: block; font-size: 12.5px; color: #ffcf5c; }
.bs-chip.red b { color: #ff8a7a; }
.bs-chip span { font-size: 11.5px; color: #e8e3d6; }
.bs-band .inp { background: #fff; color: #16171a; }
.bs-band .btn:not(.gold) { background: #fff; color: #16171a; }
.pill.bs-p1 { background: #fff3d6; color: #8a6110; }
.pill.bs-p2 { background: #16171a; color: #ffcf5c; }
.pill.bs-p3 { background: #fdecea; color: #a3271b; }

.abgl.abgl-fehlt { outline: 2px solid #e0533f; outline-offset: 4px; border-radius: 12px; }

.cvf .cvsearch { margin-left: auto; min-width: 240px; height: 34px; }
.cvf .cvtreffer { white-space: nowrap; }
.cv mark { background: #ffd66b; color: inherit; border-radius: 3px; padding: 0 1px; }

.dt-ruht { font-size: 12px; font-weight: 600; color: #8a867c; white-space: nowrap; }
.dt-row.ruht .dt-l { color: #8a867c; }

.dt-bs { background: linear-gradient(100deg, #16171a, #2b2a26); color: #fff; border-radius: 12px; padding: 9px 14px; margin: 10px 0; font-size: 13px; }
.dt-bs b { color: #ffcf5c; margin-right: 4px; }

.dt-sub { font-size: 12px; font-weight: 700; color: #5b5e66; margin: 10px 0 2px; padding-top: 8px; border-top: 1px dashed #e6e2d8; }

.cev.info, .cev.info.free { background: #eceae5 !important; color: #55575c !important; border-color: #b9b6af !important; font-weight: 500; }
.cev.info b, .cev.info .ct { color: #55575c; }
.cinfo { font-size: 12px; color: #8a867c; margin-right: 4px; }

.hz-msub { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a8478; padding: 12px 8px 4px; } .hz-msub ~ .hz-msub { border-top: 1px solid #f0eee9; margin-top: 6px; }
.hz-mail { align-items: center; } .hz-mail .hz-upt { text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; } .hz-mail .btn.sm { flex: none; }
.cev.ol { cursor: pointer; }

.vpop { position: fixed; inset: 0; background: rgba(23,24,27,.55); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.vpop-box { background: #fff; border-radius: 22px; width: min(760px, 100%); height: min(92vh, 1100px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.vpop-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0eee9; }
.vpop iframe { flex: 1; width: 100%; border: 0; background: #f4f3ef; }
