:root { --ink:#1f2124; --surface:#f5f3ef; --line:#dedbd5; }
.portal-preview { display:flex; justify-content:space-between; align-items:center; gap:18px; min-height:38px; padding:5px 26px; background:#252523; color:#fff; font-size:13px; position:relative; z-index:40; }
.portal-preview summary { padding:6px 0; cursor:pointer; }
.portal-preview details { position:relative; }
.preview-menu { position:absolute; right:0; top:34px; width:340px; padding:20px; background:#fff; border:1px solid var(--line); box-shadow:0 12px 28px #0002; color:var(--ink); display:grid; gap:12px; border-radius:6px; }
.preview-menu .field { margin:0; }
.portal-layout { display:grid; grid-template-columns:244px minmax(0,1fr); min-height:calc(100dvh - 38px); }
.portal-sidebar { background:#fff; border-right:1px solid var(--line); padding:26px 16px 18px; display:flex; flex-direction:column; position:sticky; top:0; height:100dvh; overflow:auto; }
.portal-brand { display:flex; align-items:flex-start; flex-direction:column; color:var(--ink); text-decoration:none; margin:0 12px 30px; gap:9px; }
.portal-brand .logo { width:175px; height:27px; }
.portal-brand > span { font-size:14px; color:var(--muted); }
.nav-group { margin-bottom:20px; }
.nav-group h2 { font-size:12px; letter-spacing:.7px; text-transform:uppercase; color:var(--muted); margin:0 12px 8px; font-weight:600; }
.portal-nav-item { width:100%; border:0; background:transparent; padding:11px 12px; min-height:46px; display:flex; align-items:center; text-align:left; gap:11px; border-radius:5px; font-size:15px; margin-bottom:3px; }
.portal-nav-item .ico { width:19px; height:19px; }
.portal-nav-item > span:first-of-type { flex:1; }
.portal-nav-item.selected { background:var(--orange-tint); color:#713704; font-weight:650; }
.nav-count { min-width:23px; text-align:center; padding:0 5px; border-radius:3px; background:var(--orange); color:var(--ink); font-size:13px; font-weight:700; }
.nav-count.neutral { background:var(--surface); border:1px solid var(--line); color:var(--ink); }
.portal-user { margin-top:auto; padding:20px 10px 0; border-top:1px solid var(--line); }
.portal-user .row { gap:9px; }
.portal-user b { font-size:13px; display:block; }
.portal-user small { display:block; color:var(--muted); }
.portal-user .avatar { width:36px; height:36px; font-size:13px; }
.portal-user .btn { margin-top:12px; border:0; padding:4px 0; min-height:36px; font-size:13px; font-weight:400; }
.portal-body { min-width:0; }
.portal-header { min-height:72px; padding:18px 36px; background:white; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; font-size:13px; gap:16px; }
.portal-header .ico { width:15px; height:15px; }
.portal-header .row { color:var(--muted); gap:10px; }
.portal-header b { color:var(--ink); font-weight:500; }
.header-date { color:var(--muted); }
.portal-content { max-width:1750px; padding:38px 36px 22px; margin:auto; }
.portal-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:30px; }
.eyebrow { font-size:12px; font-weight:650; letter-spacing:1px; color:var(--muted); }
.portal-heading h1 { margin-top:8px; font-size:30px; }
.portal-heading p:not(.eyebrow) { margin-top:10px; color:var(--muted); font-size:15px; }
.portal-heading .data-stamp { align-self:flex-end; }
.portal-foot { margin-top:36px; border-top:1px solid var(--line); padding-top:16px; display:flex; justify-content:space-between; color:var(--muted); font-size:12px; gap:12px; }
.portal-content .btn { font-size:14px; min-height:44px; padding:10px 14px; font-weight:550; }
.portal-content .btn .ico { width:20px; height:20px; }
.portal-content .btn.primary { font-weight:650; }
.panel { background:#fff; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.panel-heading { padding:23px 24px; display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:1px solid var(--line); }
.panel-heading h2 { font-size:19px; }
.panel-heading p { font-size:13px; color:var(--muted); margin-top:4px; }
.panel-pad { padding:24px; }
.panel-pad > h2 { font-size:20px; }
.home-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; }
.home-tasks { border-left:3px solid var(--orange); align-self:start; }
.task-row { display:flex; width:100%; align-items:center; gap:20px; text-align:left; border:0; border-bottom:1px solid var(--line); background:white; padding:26px 24px; }
.task-row:last-child { border-bottom:0; }
.task-row > .ico { width:18px; height:18px; color:var(--muted); }
.task-symbol { height:44px; width:44px; border:1px solid var(--line); border-radius:6px; display:grid; place-items:center; background:#faf9f7; flex-shrink:0; }
.task-symbol .ico { width:22px; height:22px; }
.task-copy { flex:1; min-width:0; }
.task-copy b { display:block; font-size:16px; }
.task-copy > span { display:block; color:var(--muted); font-size:14px; margin-top:5px; }
.task-number { font-size:23px; font-weight:700; min-width:27px; text-align:right; }
.backup-summary { padding:25px; border-top:3px solid var(--orange); }
.backup-summary h2 { font-size:20px; margin:22px 0 10px; }
.backup-summary p { font-size:14px; }
.backup-summary small { display:block; color:var(--muted); margin:5px 0 23px; }
.backup-summary .btn { width:100%; }
.quiet-note { margin-top:25px; padding:0 8px; }
.quiet-note h3 { font-size:15px; }
.quiet-note p { font-size:14px; color:var(--muted); margin-top:8px; }
.quiet-note .btn { margin-top:14px; padding-left:0; border:0; }
.home-links { display:flex; align-items:center; gap:12px; margin-top:30px; flex-wrap:wrap; }
.home-links > span { margin-right:8px; color:var(--muted); font-size:13px; }
.data-stamp { font-size:12px; color:var(--muted); white-space:nowrap; }
.filterbar { display:flex; align-items:center; gap:18px; margin-bottom:20px; flex-wrap:wrap; font-size:14px; }
.filterbar label:not(.checklabel) { display:flex; gap:8px; align-items:center; }
.filterbar input,.filterbar select { padding:9px 11px; min-height:44px; border:1px solid var(--line); border-radius:5px; background:white; font-size:14px; }
.filterbar .data-stamp { margin-left:auto; }
.checklabel { display:flex; align-items:center; gap:9px; font-size:14px; min-height:44px; }
.checklabel input { accent-color:var(--orange-deep); width:18px; height:18px; }
.invoice-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr); gap:22px; align-items:start; }
.table-scroll { overflow:auto; max-width:100%; }
.invoice-list .table-scroll { max-height:70vh; }
.portal-table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
.portal-table th { position:sticky; top:0; z-index:1; background:#f8f7f4; color:var(--muted); font-size:12px; font-weight:650; white-space:nowrap; border-bottom:1px solid var(--line); padding:14px 16px; }
.portal-table td { padding:18px 16px; border-bottom:1px solid var(--line); vertical-align:top; }
.portal-table tr:last-child td { border-bottom:0; }
.portal-table small { display:block; color:var(--muted); font-size:12px; line-height:1.5; margin-top:6px; }
.portal-table .selected { background:#fff7ed; }
.portal-table .selected td:first-child { box-shadow:inset 3px 0 var(--orange); }
.portal-table .pill { font-size:12px; white-space:nowrap; }
.portal-table .numeric { white-space:nowrap; font-variant-numeric:tabular-nums; }
.portal-content .table-sort { border:0; background:transparent; min-height:28px; padding:0; font-size:12px; color:var(--muted); }
.row-select { display:block; text-align:left; border:0; padding:0; background:none; width:100%; min-height:44px; }
.row-select span { display:block; color:var(--muted); font-size:13px; margin-top:3px; }
.invoice-detail { border-top:3px solid var(--orange); }
.detail-title { padding:24px; display:flex; justify-content:space-between; align-items:start; gap:12px; }
.detail-title h2 { margin:9px 0 5px; font-size:23px; }
.detail-title p { font-size:14px; color:var(--muted); }
.detail-section { padding:24px; border-top:1px solid var(--line); }
.detail-section h3 { margin-bottom:12px; font-size:16px; }
.detail-section p { font-size:14px; }
.detail-section .btn.wide { margin-top:14px; }
.detail-section .btn.quiet { margin-top:6px; }
.detail-list { display:grid; grid-template-columns:100px minmax(0,1fr); font-size:13px; margin:14px 0; gap:10px 14px; }
.detail-list dt { color:var(--muted); }
.detail-list dd { margin:0; overflow-wrap:anywhere; }
.project-card { padding:17px; background:var(--surface); border:1px solid var(--line); display:grid; gap:8px; border-radius:5px; margin-top:16px; font-size:14px; }
.project-card .pill { justify-self:start; }
.project-card small { color:var(--muted); }
.project-card.suggested { background:#fff8ef; border-color:#f2d8b8; }
.notice { display:flex; gap:13px; align-items:center; justify-content:space-between; border-left:3px solid var(--orange); background:var(--orange-tint); padding:18px 20px; border-radius:4px; margin-bottom:20px; font-size:14px; }
.notice .ico { flex-shrink:0; }
.notice > div { flex:1; }
.notice.warning { background:var(--yellow-tint); border-color:#aa8110; }
.notice.compact { margin-top:12px; padding:14px 18px; }
.invoice-detail > .notice { margin:0 20px 20px; }
.notice ul { margin:6px 0 0; padding-left:19px; }
.pill.yellow { background:var(--yellow-tint); color:#705500; }
.system-links { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:22px; }
.system-link { display:flex; align-items:center; gap:7px; font-size:13px; padding:10px 8px; background:white; border:1px solid var(--line); border-radius:5px; min-height:44px; }
.system-link > span:last-child { margin-left:auto; }
.system-mark { width:20px; height:20px; display:grid; place-items:center; font-size:18px; font-weight:750; }
.system-mark.gmail { color:#4a4a46; }.system-mark.drive { color:#4a4a46; }.system-mark.hero { color:var(--orange-deep); }
.subnav { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:24px; border-bottom:1px solid var(--line); padding-bottom:13px; }
.subnav .btn { background:none; border-color:transparent; }
.subnav .active,.inline-tabs .active { background:var(--orange-tint); border-color:#d8ab7b; color:#713704; }
.subnav .data-stamp { margin-left:auto; }
.inline-tabs { margin:0; }
.approval-strip { display:flex; align-items:center; gap:20px; padding:15px 18px; background:#fff; border:1px solid var(--line); border-radius:5px; margin-bottom:24px; font-size:13px; }
.approval-strip div { display:flex; gap:10px; align-items:center; }
.approval-strip b { white-space:nowrap; }
progress { accent-color:var(--orange); height:7px; width:150px; border:0; border-radius:10px; overflow:hidden; }
progress::-webkit-progress-bar { background:#e7e4dd; }
progress::-webkit-progress-value { background:var(--orange); }
.portal-content .review-layout { grid-template-columns:210px minmax(0,1fr); gap:20px; }
.portal-content .report-choice { padding:20px 16px; }
.portal-content .report-head { padding:23px 26px; }
.portal-content .report-body { padding:0 26px 24px; }
.portal-content .report-footer { padding:20px 26px; }
.portal-content .approve-button { min-height:52px; padding:13px 25px; font-size:16px; }
.portal-content .office-section { grid-template-columns:145px minmax(0,1fr); gap:18px; padding:19px 0; }
.portal-content .office-section-time b { font-size:14px; }
.portal-content .office-section p { font-size:14px; }
.portal-content .office-section b { font-size:15px; }
.portal-content .office-section.pause { padding:19px 12px; }
.portal-content .queue .section-title h2 { font-size:19px; }
.portal-content .queue .tabs { margin-bottom:20px; }
.day-panel .person-row { display:flex; gap:12px; padding:20px; border-bottom:1px solid var(--line); }
.day-panel .person-row p { font-size:13px; color:var(--muted); margin-top:5px; }
.portal-content .planner { min-width:1120px; grid-template-columns:155px repeat(7,minmax(135px,1fr)); }
.portal-content .plan-cell { padding:10px; }
.portal-content .plan-cell.person { position:sticky; left:0; background:white; z-index:2; font-size:13px; gap:8px; }
.portal-content .plan-cell.person .avatar { display:none; }
.portal-content .plan-cell.heading { position:sticky; top:0; z-index:3; background:#f8f7f4; min-height:66px; font-size:13px; }
.portal-content .plan-cell.today { background:#fff7ed; }
.portal-content .plan-project { margin-bottom:9px; padding:12px 9px; width:100%; }
.portal-content .plan-project .plan-time { font-size:14px; }
.portal-content .plan-project > b { font-size:13px; }
.portal-content .plan-project > span,.portal-content .plan-project small { font-size:12px; }
.planner-scroll { max-height:72vh; }
.conflict { font-size:12px; display:block; color:var(--red); }
.disclosure > summary { display:flex; align-items:center; justify-content:space-between; padding:22px 24px; cursor:pointer; gap:20px; list-style:none; }
.disclosure > summary::after { content:'+'; font-size:23px; }
.disclosure[open] > summary::after { content:'−'; }
.disclosure > summary > div:first-child { flex:1; }
.disclosure > summary span { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.disclosure[open] > summary { border-bottom:1px solid var(--line); }
.hours-total { text-align:right; font-variant-numeric:tabular-nums; }
.rule-row { padding:24px; display:flex; justify-content:space-between; gap:20px; align-items:center; border-bottom:1px solid var(--line); }
.rule-row:last-child { border-bottom:0; }
.rule-row h3 { font-size:16px; }
.rule-row p { margin:6px 0; font-size:14px; }
.rule-row small { color:var(--muted); }
.backup-search { display:flex; align-items:flex-end; gap:14px; max-width:820px; }
.backup-search .field { margin:0; flex:1; }
.folder-path { padding:14px 0; font-size:14px; color:var(--muted); border-bottom:1px solid var(--line); }
.folder-row { display:flex; align-items:center; gap:13px; min-height:62px; width:100%; padding:15px 4px; background:none; border:0; border-bottom:1px solid var(--line); text-align:left; }
.folder-row span { flex:1; }
.restore-panel { max-width:780px; }
.restore-panel > p { color:var(--muted); margin-top:12px; }
.project-choice { border:1px solid var(--line); background:white; border-radius:5px; padding:17px; display:grid; text-align:left; gap:7px; min-height:90px; }
.project-choice .pill { justify-self:start; }
.project-choice:hover { border-color:var(--orange-deep); }
.access-field { margin:24px 0; padding:20px; border:1px solid var(--line); border-radius:5px; }
.access-field legend { padding:0 8px; font-weight:700; }
.access-field .btn { font-size:13px; }
.wrap { flex-wrap:wrap; }
.sample-code { padding:25px; margin:25px 0; background:var(--surface); text-align:center; font-size:30px; letter-spacing:5px; font-weight:700; }
.document-preview { padding:35px; border:1px solid var(--line); min-height:320px; box-shadow:0 3px 12px #0001; }
.document-preview h2 { margin:16px 0; }
.document-preview strong { display:block; text-align:right; margin-top:70px; font-size:24px; }
.component-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.component-grid progress { margin:18px 0; width:100%; }
.state-card { padding:55px 30px; text-align:center; }
.state-card > .ico { width:40px; height:40px; color:var(--green); margin-bottom:20px; }
.state-card h2 { margin-bottom:12px; }
.state-card .btn { margin-top:22px; }
.all-done { padding:55px 25px; text-align:center; }
.all-done .ico { width:40px; height:40px; color:var(--green); margin-bottom:20px; }
.all-done p { color:var(--muted); margin-top:10px; }
.portal-login { min-height:calc(100dvh - 38px); display:grid; place-items:center; padding:30px 16px; }
.login-card { padding:40px; max-width:440px; width:100%; border-top:4px solid var(--orange); }
.login-card h1 { margin:12px 0; }
.login-card form { margin:28px 0 20px; }
.login-card .field { margin:18px 0; }
.app-return { padding:12px 24px; background:white; }
.menu-toggle,.nav-backdrop { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1700px){.portal-content{padding:44px 56px;}.home-layout{grid-template-columns:minmax(0,1fr) 350px;gap:30px;}.home-tasks .task-row{padding:30px;}.invoice-layout{grid-template-columns:minmax(0,1.65fr) minmax(400px,1fr);}}
@media(max-width:1200px){.portal-layout{grid-template-columns:220px minmax(0,1fr);}.portal-content{padding:28px 24px;}.portal-header{padding:18px 24px;}.invoice-layout{grid-template-columns:1fr;}.invoice-detail{max-width:none;}.home-layout{grid-template-columns:1fr;}.home-side{display:grid;grid-template-columns:1fr 1fr;gap:25px;}.quiet-note{margin-top:10px;}.approval-strip{flex-wrap:wrap;}.portal-content .review-layout{grid-template-columns:180px minmax(0,1fr);}.portal-content .office-section{grid-template-columns:1fr;gap:8px;}.portal-content .office-section-time{display:flex;gap:10px;align-items:center;}.header-date{display:none;}}
@media(max-width:850px){.portal-layout{display:block;}.portal-sidebar{display:none;position:fixed;inset:38px auto 0 0;z-index:60;width:260px;height:calc(100dvh - 38px);box-shadow:10px 0 40px #0002;}.menu-open .portal-sidebar{display:flex;}.menu-toggle{display:flex;}.portal-header .menu-toggle .ico{width:22px;height:22px;}.menu-open .nav-backdrop{display:block;position:fixed;inset:38px 0 0;z-index:50;background:#0005;border:0;}.portal-content .review-layout{grid-template-columns:1fr;}.portal-content .report-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}.portal-heading{flex-wrap:wrap;}.portal-nav-item{min-height:48px;}.portal-content .btn{min-height:48px;}.component-grid{grid-template-columns:1fr;}.three-cols{grid-template-columns:1fr;}.portal-content .data-table{min-width:700px;}.portal-content .office-section{grid-template-columns:145px minmax(0,1fr);}.portal-content .office-section-time{display:grid;}}
@media(max-width:560px){.portal-preview{padding:7px 14px;font-size:11px;gap:10px;}.portal-preview>span{max-width:220px;}.preview-menu{width:min(320px,calc(100vw - 28px));}.portal-header{padding:12px 16px;min-height:65px;}.portal-header .row>span,.portal-header .row>.ico{display:none;}.portal-content{padding:26px 16px;}.portal-heading h1{font-size:27px;}.portal-heading p:not(.eyebrow){font-size:14px;}.home-side{grid-template-columns:1fr;}.task-row{padding:22px 16px;gap:12px;}.task-symbol{display:none;}.task-copy b{font-size:16px;}.task-copy>span{font-size:13px;}.panel-heading{padding:20px 16px;}.home-links{align-items:stretch;}.home-links>span{width:100%;}.home-links .btn{flex:1;}.filterbar{gap:12px;}.filterbar .data-stamp{margin:0;width:100%;}.portal-table{min-width:620px;}.invoice-list .portal-table{min-width:0;}.invoice-list th:first-child,.invoice-list td:first-child,.invoice-list th:last-child,.invoice-list td:last-child{display:none;}.invoice-list .portal-table td,.invoice-list .portal-table th{padding:13px 12px;}.invoice-list .portal-table td{font-size:13px;}.invoice-list .selected td:nth-child(2){box-shadow:inset 3px 0 var(--orange);}.detail-title,.detail-section{padding:20px;}.detail-title{flex-wrap:wrap;}.detail-list{grid-template-columns:85px minmax(0,1fr);}.portal-content .report-list{grid-template-columns:1fr;}.portal-content .report-choice{padding:15px;}.portal-content .office-section{grid-template-columns:1fr;}.portal-content .office-section-time{display:flex;flex-wrap:wrap;}.portal-content .report-head,.portal-content .report-body,.portal-content .report-footer{padding:20px 16px;}.approval-strip{gap:12px;}.approval-strip div{display:block;}.approval-strip div span{display:block;}.subnav{gap:3px;}.subnav .data-stamp{width:100%;}.notice{flex-wrap:wrap;}.rule-row{align-items:stretch;flex-direction:column;}.rule-row .row{flex-wrap:wrap;}.backup-search{align-items:stretch;flex-direction:column;}.disclosure>summary{padding:18px 16px;gap:12px;}.disclosure>summary b{font-size:15px;}.hours-total{min-width:85px;}.hours-total span{font-size:11px!important;}.access-field{padding:14px;}.login-card{padding:28px 22px;}.portal-foot{font-size:11px;}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;}}

/* Trefferliste der Pendelordner-Suche bei verschwundenen Rechnungen (12.10.2026) */
.treffer-liste { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:10px; }
.treffer-liste li { display:grid; gap:6px; padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:5px; font-size:14px; }
.treffer-liste li form { margin:0; }

/* Aktionen im Reiter Avise nur als Icon mit Hover-Text, Drive als Logo (Fabian 12.10.2026) */
.btn.nur-icon { padding:10px; min-width:44px; justify-content:center; }
.btn.nur-icon .ico { margin:0; }
.aktionen { display:inline-flex; gap:6px; align-items:center; }
.aktionen form.inline { display:inline; margin:0; }
.drive-link { display:inline-flex; vertical-align:middle; }
.drive-link img { width:16px; height:16px; }
