/* Reiter „Home“ im Posteingang (js/06p-home.js, docs/HOME.md) */
.home-greet { background: linear-gradient(120deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.home-hello { margin: 0; font-size: 26px; font-weight: 600; }
.home-date { margin-top: 4px; font-size: 15px; color: var(--text-2); }
.tabs.home-subtabs { border-bottom: 0; margin: 4px 0 14px; gap: 6px; flex-wrap: wrap; }
.tabs.home-subtabs .tab { border: 1px solid var(--border); border-radius: 16px; padding: 4px 14px; background: var(--surface); margin: 0; }
.tabs.home-subtabs .tab.active { background: var(--accent-soft); border-color: var(--accent); }
.pagewrap.home-wrap { max-width: 1100px; }

/* Abfragen (js/06q-abfragen.js) */
.polls-new { margin-bottom: 12px; }
.pollcard.flash { outline: 2px solid var(--accent); }
.pollhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pollhead-main { flex: 1; min-width: 0; }
.pollq { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pollmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-2); align-items: center; }
.pollchip { display: inline-block; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 8px; background: var(--surface-2); color: var(--text-2); }
.pollchip.warn { border-color: var(--warn); color: var(--warn); }
.pollopt { position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; margin-top: 6px; cursor: pointer; overflow: hidden; background: var(--surface-2); }
.pollopt:focus-visible { outline: 2px solid var(--accent); }
.pollopt.locked { cursor: default; }
.pollopt > * { position: relative; z-index: 1; }
.pollopt > .pollbar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); z-index: 0; transition: width .2s; }
.pollopt.mine { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pollopt.lead .polltext { font-weight: 600; }
.pollmark { width: 18px; height: 18px; border: 2px solid var(--border-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pollmark.round { border-radius: 50%; } .pollmark.box { border-radius: 4px; }
.pollopt.mine .pollmark { background: var(--accent); border-color: var(--accent); }
.polltext { overflow-wrap: anywhere; }
.pollvoters { display: flex; gap: 3px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pollcount { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-2); min-width: 28px; text-align: right; }
.pollnote { margin-top: 8px; }
.pollreplies { margin-top: 12px; border-top: 1px dashed var(--border-strong); padding-top: 8px; }
.pollreply { display: flex; gap: 8px; margin: 6px 0; }
.pollreply-body { background: var(--bg-subtle); border-radius: 8px; padding: 5px 9px; overflow-wrap: anywhere; }
.pollreply-form { display: flex; gap: 8px; margin-top: 8px; }
.pollreply-form input { flex: 1; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.pollform { display: flex; flex-direction: column; gap: 10px; }
.pollform textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); resize: vertical; }
.pollform .row2 select { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.pollform-actions { display: flex; gap: 8px; }

/* Prozesslandkarte Klimafreundlicher Neubau im Querformat (js/06r-prozesse.js) */
.kfnhome-title { margin: 0 0 4px; font-size: 17px; }
.kfnhome-desc { margin: 0 0 10px; font-size: 13px; }
.kfnbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.kfnbar-title { margin: 0; font-size: 17px; }
.pl-progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; flex: 1; min-width: 120px; max-width: 260px; }
.pl-progress i { display: block; height: 100%; background: var(--ok); }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); align-items: center; }
.pl-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.kfnscroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 14px; }
.kfnkarte { min-width: 1300px; }
.kfnstep { overflow-wrap: anywhere; }
.pagewrap.home-wrap:has(.kfnhome) { max-width: none; }
.kfngrid { display: grid; grid-template-columns: 1fr 2fr 1fr 2fr; gap: 34px; align-items: start; } /* Phasen mit mehr als 4 Schritten haben zwei Spalten, daher doppelt so breit */
.kfncol { position: relative; min-width: 0; }
.kfncol:not(:last-child) > .kfnphase::after { content: '→'; position: absolute; right: -27px; top: 22px; width: 20px; text-align: center; color: var(--text-3); font-size: 18px; }
.kfnphase { position: relative; border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.kfnphase-code { font-size: 11px; font-weight: 600; color: var(--accent); }
.kfnphase-title { font-size: 16px; font-weight: 600; margin: 2px 0; }
.kfnphase-sub { font-size: 12px; color: var(--text-2); }
.kfnphase.done { border-color: var(--ok); background: var(--accent-soft); }
.kfnphase.prog { border-color: #2f6fa8; }
.kfnphase.none { opacity: .55; border-style: dashed; }
/* Schritte hängen an einer kurzen Linie unter der Phase; breite Phasen laufen in zwei Spalten (erst runter, dann nach rechts) */
.kfnsteps { position: relative; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.kfnsteps::before { content: ''; position: absolute; left: 24px; top: -14px; height: 14px; border-left: 2px solid var(--border-strong); }
.kfnsteps.cols2 { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.kfnstep { position: relative; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.kfnstep[role=button] { cursor: pointer; }
.kfnstep[role=button]:hover { box-shadow: 0 0 0 1px var(--accent); }
.kfnstep:focus-visible { outline: 2px solid var(--accent); }
.kfnstep.done { border-left-color: var(--ok); background: var(--accent-soft); }
.kfnstep.prog { border-left-color: #2f6fa8; }
.kfnstep.none { border-style: dashed; border-left-style: dashed; opacity: .55; }
.kfnstep-code { font-size: 10.5px; letter-spacing: .3px; color: var(--text-2); }
.kfnstep-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; margin: 1px 0; }
.kfnstep-sub { font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.kfnstep-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.kfnstep-wz { font-size: 11.5px; color: var(--accent); margin-top: 4px; }
.kfnstep-wz.muted { color: var(--text-2); }
button.kfnstep-wz { font: inherit; font-size: 11.5px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
button.kfnstep-wz::after { content: ' ▸'; }
button.kfnstep-wz.open::after { content: ' ▾'; }
button.kfnstep-wz:hover { text-decoration: underline; }
.kfnstep-wzbox { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; cursor: default; }
.kfnstep-wzbox[hidden] { display: none; }
.kfnstep-wzbox .wzchips { flex-direction: column; align-items: flex-start; }
.kfnstep-wzbox .wzchip { text-align: left; max-width: 100%; }
.wz-tool { font-size: 12px; }
.wz-produkt { margin-bottom: 8px; }
/* Skills und Tools je Leistung (js/06r-prozesse.js): Chips im Aufgabenfenster und Tabelle Home › Leistungen */
.wzchips { display: flex; flex-wrap: wrap; gap: 4px; }
.wzchip { font: inherit; font-size: 12px; line-height: 1.3; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
button.wzchip { cursor: pointer; }
button.wzchip:hover { box-shadow: 0 0 0 1px var(--accent); }
.wzchip.ok { border-color: var(--ok); background: var(--accent-soft); }
.wzchip.set { border-color: #2f6fa8; }
.wzchip.prog { border-style: dashed; opacity: .8; }
.wzchip.tool { border-radius: 4px; }
.wz-schritt, .wz-vorschlag { margin: 2px 0 6px; }
.wzscroll { overflow-x: auto; }
.produkttab { border-collapse: collapse; width: 100%; font-size: 13px; }
.produkttab th, .produkttab td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.produkttab th { position: sticky; top: 0; background: var(--surface); font-size: 12px; color: var(--text-2); }
.produkttab .nowrap { white-space: nowrap; }
.produkttab td:nth-child(2), .produkttab td:nth-child(3) { min-width: 260px; }
.produkt-ablauf { margin: 8px 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); }
.produkt-ablauf h4 { margin: 0 0 8px; font-size: 14px; }
.produkt-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.produkt-schritte li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.produkt-nr { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.wztab { border-collapse: collapse; width: 100%; font-size: 13px; }
.wztab th, .wztab td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.wztab th { position: sticky; top: 0; background: var(--surface); font-size: 12px; color: var(--text-2); }
.wztab .nowrap { white-space: nowrap; }
.wztab .wzchips { flex-direction: column; align-items: flex-start; }
.wztab .wzchip { text-align: left; max-width: 100%; }
.wztab td:nth-child(6) { min-width: 240px; }
.wztab td:nth-child(4), .wztab td:nth-child(5) { min-width: 200px; }
.kfnband { margin-top: 14px; max-width: 420px; }
.kfnband .kfnstep { border-style: dashed; }
.kfnmark { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: #fff; flex: none; box-sizing: border-box; }
.kfnmark.done { background: var(--ok); border-color: var(--ok); }
.kfnmark.prog { border-color: #2f6fa8; background: linear-gradient(90deg, #2f6fa8 50%, var(--surface) 50%); }
.kfnmark.none { border-style: dashed; opacity: .6; }

/* Wiki-Infos (js/06s-wikiinfos.js) */
.wiki-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.wiki-tools input[type=search] { max-width: 320px; flex: 1; min-width: 180px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
details.wi { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; }
details.wi > summary { cursor: pointer; padding: 10px 14px; display: flex; align-items: baseline; gap: 10px; list-style: none; }
details.wi > summary::-webkit-details-marker { display: none; }
details.wi > summary::before { content: '▸'; color: var(--text-2); transition: transform .15s; }
details.wi[open] > summary::before { transform: rotate(90deg); }
details.wi[open] > summary { border-bottom: 1px solid var(--border); }
.wi-title { font-weight: 600; }
.wi-teaser { font-size: 12px; color: var(--text-2); }
.wi-body { padding: 8px 14px 12px; }
.wi-row { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 4px 16px; padding: 6px 0; border-bottom: 1px dotted var(--border); overflow-wrap: anywhere; }
.wi-row:last-of-type { border-bottom: 0; }
.wi-p { margin: 6px 0; overflow-wrap: anywhere; }
.wi-edit { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 8px; }
.wi-edit input, .wi-edit textarea { width: 100%; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.wi-edit textarea { resize: vertical; font: inherit; }
.wi-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
mark { background: #fff4c9; color: #5b4a00; border-radius: 2px; }
:root[data-theme="dark"] mark { background: #3a3210; color: #f1e3a0; }
@media (max-width: 700px) { .wi-row { grid-template-columns: 1fr; } }

/* Chat (js/06u-chat.js): ein Kanal fuer alle, neueste Nachricht unten */
.chat { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.chat-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chat-list { height: clamp(240px, calc(100vh - 430px), 560px); overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.chat-day { display: flex; justify-content: center; margin: 10px 0 4px; }
.chat-day span { font-size: 12px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 1px 12px; }
.chat-older { align-self: center; margin: 4px 0 8px; }
.chat-note.error { color: var(--warn, #b3261e); padding: 6px 0; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; padding: 4px 6px; border-radius: 8px; position: relative; }
.chat-msg:hover { background: var(--surface-2); }
.chat-msg.same { padding-top: 0; padding-bottom: 0; }
.chat-avatar-gap { width: 32px; flex: none; }
.chat-main { flex: 1; min-width: 0; }
.chat-head { display: flex; gap: 8px; align-items: baseline; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.chat-mention { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.chat-actions { display: none; gap: 2px; position: absolute; right: 6px; top: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.chat-msg:hover .chat-actions { display: inline-flex; }
.chat-editbox { display: flex; flex-direction: column; gap: 6px; }
.chat-edit-in, .chat-in { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font: inherit; resize: vertical; }
.chat-editbtns { display: flex; gap: 6px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; }
.chat-hint { margin: 0; }
@media (max-width: 700px) { .chat-list { height: 50vh; } .chat-actions { display: inline-flex; position: static; border: 0; } }

/* Team (js/06t-team.js): Karten wie auf www.reving.de/karriere */
.team-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.team-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; background: var(--surface-2); }
.team-photo.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 52px; font-weight: 600; letter-spacing: 2px; }
.team-body { padding: 14px 14px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.team-name { font-size: 16px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.team-pos { color: var(--accent); font-weight: 500; min-height: 1.3em; }
.team-phone { color: var(--text-2); font-size: 13px; }
.team-icons { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: auto; padding-top: 10px; min-height: 40px; }
.team-ic { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-2); text-decoration: none; }
.team-ic:hover { background: var(--accent-soft); color: var(--accent); }
.team-table td { vertical-align: middle; }
.team-in { width: 100%; min-width: 120px; padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font: inherit; }
.team-edit-photo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.team-thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; object-position: top center; }
.team-thumb.ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.team-actions { white-space: nowrap; }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .team-photo.ph { font-size: 40px; } }
.team-others { margin-top: 28px; }
.team-others h3 { margin: 0 0 4px; }

/* Büro (js/06y-buero.js, docs/BUERO.md) */
.buero { display: flex; flex-direction: column; gap: 12px; }
.bu-formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0; }
.bu-formrow .bu-komm { grid-column: span 2; }
.bu-doppelt { border: 1px solid var(--warn); background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.bu-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bu-joinmenge { max-width: 200px; }
.bu-tools { display: flex; justify-content: flex-end; }
.bu-artrow { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.bu-artrow input { flex: 1; min-width: 0; }
.bu-card { display: flex; flex-direction: column; gap: 6px; }
.bu-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bu-name { font-size: 15px; }
.bu-komment { overflow-wrap: anywhere; }
.bu-mit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bu-status.offen { border-color: var(--warn); color: var(--warn); }
.bu-status.bestellt { border-color: var(--accent); color: var(--accent); }
.bu-status.erledigt { opacity: .8; }
.bu-tabs .segbtn.on { background: var(--accent-soft); color: var(--text); }
@media (max-width: 640px) { .bu-formrow .bu-komm { grid-column: auto; } }

/* iSFP-Karte in Home: Produktauswahl auf schmalen Bildschirmen innerhalb der Seite halten (19.10.2026). */
.wz-produkt .toggle { min-width: 0; max-width: 100%; }
.wz-produktsel { min-width: 0; max-width: 100%; flex: 1 1 auto; }


/* Home wieder kompakt und linksbündig; breite Prozesskarten behalten ihre Ausnahme oben. */
.pagewrap.home-wrap { max-width: 1100px; width: 100%; }
.home-wrap .chat { max-width: none; width: 100%; }
.chat-msg { max-width: min(82%, 820px); margin-right: auto; border-radius: 12px; background: var(--surface-2); padding: 10px 12px; }
.chat-msg.mine { margin-left: auto; margin-right: 0; flex-direction: row-reverse; background: var(--accent-soft); }
.chat-msg.mine .chat-head { justify-content: flex-end; }
.chat-msg .chat-main { flex: 1; min-width: 0; }
.chat-msg.same { padding: 8px 12px; }
.chat-msg:focus-within .chat-actions { display: inline-flex; }
.pollcard > summary { cursor: pointer; list-style: none; }
.pollcard > summary::before { content: '▸'; font-size: 17px; }
.pollcard[open] > summary::before { content: '▾'; }
.pollcard > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .chat-msg { max-width: 94%; } }

.process-services { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.process-services .card-box { min-width: 0; padding: 10px; }
.process-services h3 { font-size: 14px; }
.service-disclosure > summary { cursor: pointer; list-style: none; }
.service-disclosure > summary::after { content: 'Leistungen anzeigen ▸'; display: block; color: var(--accent); font-size: 12px; margin-top: 6px; }
.service-disclosure[open] > summary::after { content: 'Leistungen zuklappen ▾'; }
.service-disclosure > summary::-webkit-details-marker { display: none; }
.service-disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.service-disclosure > .process-services { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 8px; }
.service-catalog { display: grid; gap: 8px; }
.service-catalog > details { border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.process-services h3 { margin: 4px 0 8px; }
.service-choices { display: flex; flex-direction: column; gap: 9px; max-height: 55vh; overflow-y: auto; margin-top: 12px; }
.kfnstep[role=button]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }


/* Projektkarten: Aufgabenbelege und Auswahl, ohne Änderung der Home-Übersichten. */
.projekt-prozesse { min-width: 0; }
.projekt-prozesse > .toolbar { margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.projekt-prozess-view > .kfnbar { flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; }
.projekt-prozess-view > .muted { margin-bottom: 18px; }
.project-process-tasks { margin-bottom: 18px; }
.project-process-task { display: grid; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.project-process-task .linkbtn { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.projekt-prozess-view progress { width: 160px; max-width: 100%; accent-color: var(--accent); }
