/* Persönliche Anmeldung und mobile App-Auslieferung. */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: minmax(290px, .92fr) minmax(420px, 1.08fr); background: var(--paper); }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: clamp(34px, 7vw, 112px); overflow: hidden; color: #fffaf0; background: radial-gradient(circle at 16% 18%, rgba(221, 176, 87, .28), transparent 30%), linear-gradient(140deg, #361112, var(--wine) 58%, #8c4f25); }
.auth-brand-panel::after { content: ""; position: absolute; right: -20%; bottom: -36%; width: min(480px, 68vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.045), 0 0 0 72px rgba(255,255,255,.035); }
.auth-brand-lockup { position: relative; z-index: 1; width: 92px; height: 92px; overflow: hidden; border: 1px solid rgba(234, 207, 145, .7); border-radius: 23px; background: #1c1d18; box-shadow: 0 13px 32px rgba(17, 6, 6, .34); }.auth-brand-lockup img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-brand-copy { position: relative; z-index: 1; margin-top: 28px; }.auth-brand-copy > span { color: #eed4a0; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.auth-brand-copy h1 { margin: 8px 0 12px; color: #fffaf0; font-family: Georgia, serif; font-size: clamp(36px, 4.8vw, 58px); font-weight: 500; line-height: 1; }.auth-brand-copy p { max-width: 450px; margin: 0; color: #f2e5d0; font-size: 16px; line-height: 1.6; }.auth-brand-footer { position: relative; z-index: 1; margin-top: 52px; color: #ead7b9; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.auth-form-panel { display: grid; place-items: center; padding: clamp(24px, 6vw, 86px); }.auth-card { width: min(100%, 520px); padding: clamp(25px, 4vw, 46px); border: 1px solid var(--line); border-radius: 19px; background: #fffdf9; box-shadow: var(--shadow); }.auth-card h2 { margin: 8px 0 10px; color: var(--wine-dark); font-family: Georgia, serif; font-size: clamp(29px, 3vw, 39px); font-weight: 500; line-height: 1.08; }.auth-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }.auth-form { gap: 17px; }.auth-submit { width: 100%; min-height: 46px; margin-top: 3px; }.auth-note { margin: 19px 0 0 !important; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; }.auth-error { margin: 0 0 17px; padding: 11px 13px; border: 1px solid #d9a7a3; border-radius: 9px; color: #851f25; background: #fff3f2; font-size: 13px; line-height: 1.45; }.auth-identity { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #e3dacd; border-radius: 9px; color: var(--wine-dark); background: #fbf7ee; }.auth-identity span { color: var(--muted); font-size: 11px; font-weight: 700; }.auth-identity b { font-size: 13px; overflow-wrap: anywhere; }
.password-meter { display: grid; gap: 8px; padding: 12px; border: 1px solid #e4dacb; border-radius: 10px; background: #fbf8f0; }.password-meter-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }.password-meter-head b { color: var(--wine-dark); }.password-meter-head .is-match { color: var(--green); font-weight: 750; }.password-meter-head .is-mismatch { color: var(--red); font-weight: 750; }.password-meter-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e5ddd0; }.password-meter-track span { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--red); transition: width .16s ease, background .16s ease; }.password-meter-track span[data-score="2"] { background: var(--amber); }.password-meter-track span[data-score="3"], .password-meter-track span[data-score="4"] { background: var(--green); }.password-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; line-height: 1.35; }.password-checks li::before { content: "○"; margin-right: 5px; color: #a59884; }.password-checks li.valid { color: #1e6548; }.password-checks li.valid::before { content: "✓"; color: var(--green); font-weight: 850; }
.user-menu { display: flex; align-items: center; gap: 8px; }.logout-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--wine); background: transparent; font-size: 11px; font-weight: 750; }.logout-button:hover { background: #fff8ed; }
.mobile-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }.mobile-app-card { display: flex; flex-direction: column; min-height: 100%; }.mobile-app-card .card-head { align-items: flex-start; gap: 11px; }.mobile-app-card-body { display: grid; gap: 15px; padding: 20px; }.mobile-app-card-body > p { min-height: 70px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.mobile-url { display: grid; gap: 6px; }.mobile-url > label { color: var(--wine-dark); font-size: 11px; font-weight: 800; }.mobile-url > div { display: flex; gap: 7px; }.mobile-url input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid #cec5b5; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; }.mobile-url .secondary { flex: 0 0 auto; padding: 8px 10px; }.mobile-install-help { display: grid; gap: 5px; padding: 12px 13px; border: 1px solid #e4d4bb; border-radius: 10px; background: #fff9ee; color: var(--muted); font-size: 12px; line-height: 1.45; }.mobile-install-help b { color: var(--wine-dark); }.mobile-release-meta { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid #c7dfcf; border-radius: 10px; color: #1e6548; background: #f0f8f2; }.mobile-release-meta b { overflow-wrap: anywhere; font-size: 12px; }.mobile-release-meta span, .mobile-status-note { color: var(--muted); font-size: 11px; line-height: 1.4; }.mobile-status-note { display: block; margin-top: auto; }.mobile-security-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; color: var(--muted); font-size: 12px; }.mobile-security-list span:first-letter { color: var(--green); }
@media (max-width: 1120px) { .mobile-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.mobile-app-grid > :last-child { grid-column: 1 / -1; }.mobile-app-card-body > p { min-height: auto; } }
@media (max-width: 760px) { .auth-page { display: block; min-height: 100svh; }.auth-brand-panel { min-height: 245px; padding: 30px 24px; }.auth-brand-lockup { width: 64px; height: 64px; border-radius: 16px; }.auth-brand-copy { margin-top: 17px; }.auth-brand-copy h1 { font-size: 35px; }.auth-brand-copy p { font-size: 13px; }.auth-brand-footer { display: none; }.auth-form-panel { display: block; padding: 18px; }.auth-card { width: 100%; padding: 25px 20px; box-shadow: 0 8px 25px rgba(54, 35, 20, .08); }.password-checks { grid-template-columns: 1fr; }.user-menu { gap: 5px; }.logout-button { padding: 7px; font-size: 0; }.logout-button::before { content: "↪"; font-size: 17px; line-height: 1; }.mobile-app-grid { grid-template-columns: 1fr; }.mobile-app-grid > :last-child { grid-column: auto; }.mobile-app-card .card-head { padding: 16px; }.mobile-app-card-body { padding: 16px; }.mobile-url > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }.mobile-security-list { display: grid; gap: 7px; }.topbar { gap: 10px; }.topbar h1 { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (max-width: 400px) { .mobile-url > div { grid-template-columns: 1fr; }.mobile-url .secondary { width: 100%; justify-content: center; }.user-chip { padding: 5px 7px; }.user-chip .avatar { width: 27px; height: 27px; } }

:root {
  --wine: #792424;
  --wine-dark: #4c1114;
  --gold: #d3aa6d;
  --ivory: #e3dac7;
  --paper: #f7f3ea;
  --ink: #21201d;
  --muted: #6b6860;
  --line: #d8d0c0;
  --green: #24724f;
  --amber: #a46516;
  --red: #a82929;
  --shadow: 0 16px 45px rgba(54, 35, 20, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(211, 170, 109, .65); outline-offset: 2px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { background: var(--wine); color: #fffaf0; padding: 25px 16px 18px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 14px; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand-lockup { width: 62px; height: 62px; flex: 0 0 62px; padding: 0; border-radius: 15px; overflow: hidden; background: #151816; box-shadow: 0 7px 18px rgba(21, 8, 8, .28); }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-copy b { font-size: 16px; display: block; letter-spacing: .02em; }
.brand-copy span { font-size: 11px; color: #ead7b9; text-transform: uppercase; letter-spacing: .13em; }
.brand-copy { margin-top: 0; }
.nav { display: grid; gap: 4px; }
.nav button { color: #f9eee0; background: transparent; border: 0; border-radius: 9px; padding: 11px 12px; text-align: left; display: flex; align-items: center; gap: 11px; font-weight: 600; transition: background .15s ease, color .15s ease; }
.nav button:hover, .nav button.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-icon { width: 20px; display: inline-block; text-align: center; color: var(--gold); }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); padding: 14px 10px 2px; font-size: 12px; color: #e8d8c1; }
.sidebar-foot strong { display: block; color: #fffaf0; margin-bottom: 4px; }

.main { min-width: 0; }
.topbar { height: 86px; display: flex; justify-content: space-between; align-items: center; padding: 0 42px; background: rgba(247,243,234,.93); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; color: var(--wine-dark); }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.user-chip { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; }
.avatar { width: 31px; height: 31px; background: var(--wine); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.user-chip b { display: block; font-size: 12px; }
.user-chip span { font-size: 11px; color: var(--muted); }
.content { padding: 30px 42px 52px; max-width: 1680px; margin: 0 auto; }

.eyebrow { color: var(--wine); text-transform: uppercase; font-weight: 800; letter-spacing: .11em; font-size: 11px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-weight: 500; font-size: 30px; color: var(--wine-dark); }
.page-heading p { color: var(--muted); max-width: 660px; margin: 8px 0 0; line-height: 1.5; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.button-link { display: inline-flex; align-items: center; text-decoration: none; }
.primary, .secondary, .danger { border-radius: 8px; padding: 10px 15px; border: 1px solid transparent; font-size: 13px; font-weight: 750; }
.primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.primary:hover { background: var(--wine-dark); }
.secondary { background: #fffdf9; color: var(--wine); border-color: var(--line); }
.danger { background: #fff4f2; color: var(--red); border-color: #efcbc6; }

.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fffdf9; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 4px 16px rgba(74, 43, 21,.035); overflow: hidden; }
.card-pad { padding: 20px; }
.metric { position: relative; padding: 19px; min-height: 132px; }
.metric::after { content: ""; width: 52px; height: 4px; display: block; margin-top: 16px; border-radius: 99px; background: var(--gold); }
.metric.wine::after { background: var(--wine); }.metric.alert::after { background: var(--red); }.metric.dark::after { background: #2f2a25; }.metric.green::after { background: var(--green); }
.metric span { display: block; color: var(--muted); font-weight: 650; font-size: 13px; }
.metric b { font-family: Georgia, serif; color: var(--wine-dark); font-size: 42px; line-height: 1.1; display: block; margin-top: 9px; }
.metric b.metric-money { font-size: 29px; margin-top: 18px; }
.card h3 { font-size: 15px; margin: 0; color: var(--wine-dark); }.card h4 { font-size: 13px; margin: 0; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); line-height: 1.5; font-size: 13px; }
.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; }
.calc-input { width: 55px; border: 1px solid var(--line); padding: 5px 6px; border-radius: 5px; text-align: right; background: #fffdf9; }
.card-head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.card-head a { color: var(--wine); font-size: 12px; font-weight: 700; text-decoration: none; }
.stack { display: grid; gap: 12px; }
.list-row { padding: 13px 20px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #ede7db; }
.list-row:last-child { border-bottom: 0; }
.list-row .row-main { min-width: 0; flex: 1; }.list-row strong { display: block; font-size: 13px; }.list-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }.list-row time { font-size: 12px; color: var(--wine); font-weight: 700; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 100%; flex: 0 0 auto; background: var(--gold); }.dot.green { background: var(--green); }.dot.amber { background: var(--amber); }.dot.red { background: var(--red); }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #f5ede2; color: var(--wine); font-size: 11px; font-weight: 750; white-space: nowrap; }.tag.green { background: #e5f4eb; color: #17623f; }.tag.amber { background: #fff0d7; color: #91570c; }.tag.gray { background: #efede9; color: #605c54; }.tag.wine { background: #f6e1e1; color: var(--wine); }

.table-wrap { overflow: auto; }.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }.data-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 13px 17px; border-bottom: 1px solid var(--line); }.data-table td { padding: 15px 17px; border-bottom: 1px solid #eee7dc; vertical-align: middle; }.data-table tr:last-child td { border-bottom: 0; }.data-table tr:hover td { background: #fffaf2; }
.number { text-align: right; font-variant-numeric: tabular-nums; }.data-table .number { text-align: right; }.data-table th.number { text-align: right; }
.positive { color: var(--green); }.negative { color: var(--red); }

.split-detail { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.5fr); min-height: 560px; }.side-list { border-right: 1px solid var(--line); background: #fbf8f1; }.side-list button { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #ede7dc; background: transparent; text-align: left; }.side-list button:hover, .side-list button.active { background: #f6ede1; }.side-list button b { display: block; font-size: 13px; color: var(--wine-dark); }.side-list button span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }.detail { padding: 26px; }.detail-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }.detail-title h3 { font-family: Georgia, serif; font-size: 27px; font-weight: 500; margin: 0; color: var(--wine-dark); }.detail-title p { margin: 5px 0 0; color: var(--muted); }
.key-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 23px 0; }.key-values div { padding: 14px; border-bottom: 1px solid var(--line); }.key-values div:nth-child(odd) { border-right: 1px solid var(--line); }.key-values div:nth-last-child(-n + 2) { border-bottom: 0; }.key-values span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }.key-values b { display: block; margin-top: 5px; font-size: 13px; }
.timeline { display: grid; gap: 0; }.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 0 0 17px; }.timeline-line { display: grid; justify-items: center; }.timeline-line::after { content: ""; height: 100%; border-left: 1px solid var(--line); }.timeline-item:last-child .timeline-line::after { display: none; }.timeline-item strong { display: block; font-size: 13px; }.timeline-item p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }.filter-pill { border: 1px solid var(--line); color: var(--muted); background: #fffdf9; padding: 7px 11px; border-radius: 999px; font-size: 12px; }.filter-pill.active { border-color: var(--wine); color: var(--wine); background: #f9eded; font-weight: 700; }
.sync-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }.sync-summary div { padding: 11px 13px; border-right: 1px solid var(--line); }.sync-summary div:last-child { border-right: 0; }.sync-summary span { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }.sync-summary b { display: block; margin-top: 4px; font-size: 12px; color: var(--wine-dark); }
.rental-card-head { align-items: flex-start; }.rental-card-head small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }.rental-gantt-card { overflow: hidden; }.rental-gantt { overflow: auto; }.rental-gantt-inner { min-width: 1040px; }.rental-gantt-head { display: grid; grid-template-columns: 260px repeat(6, minmax(130px, 1fr)); border-bottom: 1px solid var(--line); background: #f6efe5; }.rental-gantt-head > div { padding: 12px 9px; border-right: 1px solid var(--line); color: var(--wine-dark); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; text-align: center; }.rental-gantt-head > div:first-child { text-align: left; }.rental-gantt-row { display: grid; grid-template-columns: 260px minmax(780px, 1fr); min-height: 78px; border-bottom: 1px solid #ece5d9; }.rental-gantt-row:last-child { border-bottom: 0; }.rental-lane-label { padding: 12px 14px; background: #fbf8f1; border-right: 1px solid var(--line); display: grid; align-content: center; gap: 3px; }.rental-lane-label b { color: var(--wine-dark); font-size: 14px; }.rental-lane-label span { font-size: 12px; font-weight: 650; }.rental-lane-label small { font-size: 10px; color: var(--muted); }.rental-track { position: relative; min-width: 780px; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(16.666% - 1px), #eee7dc calc(16.666% - 1px), #eee7dc 16.666%); }.rental-track-empty { color: #8a857b; font-size: 11px; position: absolute; top: 31px; left: 14px; }.rental-bar { position: absolute; top: 18px; min-height: 41px; border: 0; border-radius: 6px; padding: 7px 10px; color: #fff; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 4px 11px rgba(44, 33, 23, .16); font-size: 11px; font-weight: 800; }.rental-bar:hover { filter: brightness(.94); }.rental-bar.confirmed { background: var(--green); }.rental-bar.reserved { background: #1d91c0; }.rental-bar.option { background: #d98d18; }.rental-bar.maintenance { background: var(--wine); }.rental-bar.tentative { background: #8a857b; }.rental-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.rental-legend span { font-size: 10px; font-weight: 800; padding: 4px 7px; border-radius: 999px; color: #fff; }.rental-legend .confirmed { background: var(--green); }.rental-legend .reserved { background: #1d91c0; }.rental-legend .option { background: #d98d18; }.rental-legend .maintenance { background: var(--wine); }.rental-list-card { overflow: hidden; }.rental-assignment-list { max-height: 505px; overflow: auto; }.rental-assignment-row { width: 100%; border: 0; border-bottom: 1px solid #eee7dc; padding: 13px 15px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; background: #fffdf9; }.rental-assignment-row:hover, .rental-assignment-row.active { background: #fff7ee; }.rental-assignment-row b { display: block; color: var(--wine-dark); font-size: 13px; }.rental-assignment-row small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }.rental-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a857b; }.rental-status-dot.confirmed { background: var(--green); }.rental-status-dot.reserved { background: #1d91c0; }.rental-status-dot.option { background: #d98d18; }.rental-status-dot.maintenance { background: var(--wine); }
.callout { border-left: 4px solid var(--gold); background: #fbf5e9; padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.45; }.callout strong { color: var(--wine-dark); }
.callout.alert { border-color: var(--red); background: #fff2f0; }.callout.success { border-color: var(--green); background: #eef8f1; }
.quality-list { display: grid; gap: 8px; }.quality-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; padding: 10px 0; border-bottom: 1px solid #eee7dc; }.quality-row:last-child { border-bottom: 0; }.quality-row > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #edf1f5; color: #496072; font-weight: 800; font-size: 12px; }.quality-row.warning > span { background: #fff0d7; color: #91570c; }.quality-row b { display: block; color: var(--wine-dark); font-size: 12px; }.quality-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.form { display: grid; gap: 14px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.field { display: grid; gap: 6px; }.field label { font-size: 12px; font-weight: 750; color: var(--wine-dark); }.field input, .field select, .field textarea { width: 100%; border: 1px solid #cec5b5; background: #fffdf9; border-radius: 7px; padding: 10px; color: var(--ink); }.field textarea { min-height: 90px; resize: vertical; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 5px; }
.tender-intake .field textarea { min-height: 160px; }.inline-fields { display: grid; grid-template-columns: 1fr .8fr; gap: 8px; }.calc-pair { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }.calc-pair span { color: var(--muted); font-size: 11px; }.calc-parent-row td { background: #fffdf9; }.calc-sub-row td { background: #fbf8f1; }.calc-sub-indent { color: var(--wine); margin-right: 7px; }.calculation-table .calc-input { max-width: 100%; padding: 5px; font-size: 12px; }.calculation-actions { display: flex; gap: 16px; justify-content: space-between; align-items: center; }.calculation-actions small { color: var(--muted); line-height: 1.45; max-width: 760px; }
.calculation-table-expanded { min-width: 1280px; }.calc-stack { display: grid; gap: 4px; justify-items: end; font-size: 10px; color: var(--muted); }.calc-stack > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; white-space: nowrap; }.calc-stack i { font-style: normal; color: var(--muted); font-size: 10px; }.calc-extras { min-width: 95px; }.calculation-table td small { color: var(--muted); font-size: 10px; }.work-package-list { display: grid; gap: 8px; }.work-package { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }.work-package.matched { border-color: #d9ba78; background: #fff9ee; }.work-package strong { color: var(--wine-dark); font-size: 12px; }.work-package small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.35; }.button-row, .inline-action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }.small-button { padding: 6px 8px; font-size: 11px; }.secondary:disabled, .primary:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.25); }
.billing-status-grid .metric b { font-size: clamp(27px, 2.4vw, 34px); }
.checkbox-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--muted); }.checkbox-line input { width: auto; margin-top: 2px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 400px; background: #29251f; color: #fff; padding: 13px 16px; border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; z-index: 40; }.toast.error { background: var(--red); }.toast.success { background: var(--green); }

.access-card { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); min-height: 550px; }
.access-user-list { background: #fbf8f1; border-right: 1px solid var(--line); }
.access-list-title { padding: 18px; border-bottom: 1px solid var(--line); color: var(--wine-dark); font-size: 13px; font-weight: 800; }.access-list-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.access-user-list button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid #ede7dc; background: transparent; color: var(--ink); }
.access-user-list button:hover, .access-user-list button.active { background: #f6ede1; }.access-user-list button b { display: block; font-size: 13px; color: var(--wine-dark); }.access-user-list button small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.access-detail { padding: 26px; min-width: 0; }.access-detail .detail-title { margin-bottom: 20px; }
.access-permission-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.permission-heading { min-height: 55px; }.permission-heading h4 { margin: 0; color: var(--wine-dark); font-size: 13px; }.permission-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.permission-grid.compact { grid-template-columns: 1fr; max-height: 500px; overflow: auto; padding-right: 5px; }
.permission-group { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fffdf9; }.permission-group h4 { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8f3eb; color: var(--wine-dark); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.permission-check { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid #eee7dc; cursor: pointer; }.permission-check:last-child { border-bottom: 0; }.permission-check:hover { background: #fff8ed; }.permission-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--wine); }.permission-check input:disabled { cursor: not-allowed; opacity: .52; }.permission-check b { display: block; color: var(--ink); font-size: 12px; line-height: 1.28; }.permission-check small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.permission-deny .permission-check input { accent-color: var(--red); }.permission-deny .permission-check:hover { background: #fff4f1; }

.week { display: grid; grid-template-columns: 144px repeat(5, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: #fffdf9; }.week > div { min-height: 72px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px; }.week > div:nth-child(6n) { border-right: 0; }.week .head { min-height: 38px; background: #f6efe5; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--wine-dark); }.week .person { font-weight: 700; font-size: 12px; background: #fbf8f1; }.event { padding: 6px; background: #f8e9e4; border-left: 3px solid var(--wine); border-radius: 4px; font-size: 11px; }.event strong { display: block; color: var(--wine-dark); }
.status-list { display: grid; gap: 11px; }.integration { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }.integration-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.integration h3 { margin: 0; font-size: 15px; color: var(--wine-dark); }.integration p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 13px; }.integration small { color: var(--muted); }.integration-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; }.integration-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; padding: 12px; border: 1px solid #e4dbcb; border-radius: 9px; background: #fbf8f1; }.compact-form { padding: 14px; border: 1px dashed #d8cab3; border-radius: 9px; background: #fcfaf6; }.danger-button { border: 1px solid #9f3131; border-radius: 6px; padding: 8px 12px; background: #fff7f5; color: #8d2424; font-weight: 750; cursor: pointer; }.danger-button:hover { background: #f9e0dc; }.role-badge-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }.role-badge-list .tag { font-size: 9px; padding: 2px 5px; }
.portal-card { background: linear-gradient(135deg, var(--wine-dark), var(--wine)); color: #fff9ef; padding: 28px; border-radius: 13px; overflow: hidden; position: relative; }.portal-card::after { content: "MSB"; position: absolute; right: -15px; bottom: -50px; color: rgba(211,170,109,.18); font-family: Georgia, serif; font-size: 180px; font-weight: bold; }.portal-card h3 { color: #fff9ef; position: relative; }.portal-card p, .portal-card ul { position: relative; color: #f2dec3; font-size: 13px; line-height: 1.5; }.portal-card .primary { position: relative; background: var(--gold); color: var(--wine-dark); border-color: var(--gold); }
.source-strip { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); background: #fbf8f1; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.guide-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fffdf9; }.guide-card h4 { color: var(--wine-dark); }.guide-card p { color: var(--muted); font-size: 12px; line-height: 1.45; min-height: 52px; margin: 8px 0 12px; }.guide-card small { color: var(--muted); font-size: 11px; }.guide-links { display: grid; gap: 6px; }.guide-links button { appearance: none; border: 0; padding: 0; color: var(--wine); font-size: 12px; font-weight: 750; background: transparent; text-align: left; line-height: 1.35; }.guide-links button:hover { text-decoration: underline; }
.document-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }.document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #eee7dc; }.document-row:last-child { border-bottom: 0; }.document-row b { display: block; font-size: 12px; color: var(--ink); }.document-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }.document-view { white-space: nowrap; padding: 7px 10px; }
.document-modal { position: fixed; z-index: 50; inset: 22px 28px; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 1px solid rgba(211, 170, 109, .7); background: #161512; border-radius: 14px; overflow: hidden; box-shadow: 0 28px 80px rgba(0, 0, 0, .45); }.document-modal::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255, 255, 255, .1); border-radius: inherit; }.document-modal-head { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 19px; color: #fff9ef; background: linear-gradient(100deg, #311416, #5d1d21); border-bottom: 1px solid rgba(211, 170, 109, .35); }.document-modal-head .eyebrow { color: #efcf91; }.document-modal-head h3 { margin: 4px 0 0; color: #fff9ef; font-size: 16px; }.document-modal-head .secondary { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .1); color: #fff9ef; }.document-frame { width: 100%; height: 100%; min-height: 0; border: 0; background: #292824; }.document-view-unavailable { display: grid; align-content: center; gap: 12px; max-width: 650px; padding: 48px; color: #fff9ef; }.document-view-unavailable .eyebrow { color: #efcf91; }.document-view-unavailable h3 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }.document-view-unavailable p { margin: 0; line-height: 1.55; color: #eee1d0; }.document-view-unavailable .muted { color: #c9bbab; }
.remote-monitoring-modal { position: fixed; z-index: 62; inset: 14px 18px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(211, 170, 109, .78); border-radius: 15px; color: var(--ink); background: #f6f2e9; box-shadow: 0 28px 85px rgba(0, 0, 0, .48); }.remote-monitoring-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 18px 22px; color: #fff9ef; background: linear-gradient(110deg, #291315, #682126 65%, #4e1c1f); border-bottom: 1px solid rgba(211, 170, 109, .42); }.remote-monitoring-head .eyebrow { color: #efcf91; }.remote-monitoring-head h3 { margin: 4px 0 0; color: #fff9ef; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }.remote-monitoring-head p { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 7px 0 0; color: #efe2d0; font-size: 12px; }.remote-monitoring-head .secondary { flex: 0 0 auto; border-color: rgba(255, 255, 255, .25); color: #fff9ef; background: rgba(255, 255, 255, .1); }.remote-monitoring-body { overflow: auto; padding: 19px 22px 28px; }.remote-monitoring-loading { display: grid; place-content: center; min-height: 280px; padding: 25px; color: var(--muted); text-align: center; }.remote-monitoring-loading .callout { max-width: 610px; text-align: left; }.remote-monitoring-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }.remote-monitoring-meta > div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); }.remote-monitoring-meta > div:last-child { border-right: 0; }.remote-monitoring-meta span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.remote-monitoring-meta b { display: block; margin-top: 5px; overflow: hidden; color: var(--wine-dark); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.remote-observation-line { margin-top: 14px; padding: 12px 15px; border: 1px solid #d1a95f; border-radius: 9px; color: #4d3114; background: #fff4dc; font-size: 13px; font-weight: 850; text-align: center; }.remote-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }.remote-status-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-top: 4px solid #aaa196; border-radius: 10px; background: #fffdf9; }.remote-status-card.green { border-top-color: var(--green); }.remote-status-card.amber { border-top-color: #d8941c; }.remote-status-card.wine { border-top-color: var(--red); }.remote-status-card > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }.remote-status-card > div > span:first-child { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.remote-status-card .tag { flex: 0 0 auto; font-size: 9px; }.remote-status-card > b { display: block; margin-top: 13px; color: var(--wine-dark); font-size: 14px; }.remote-status-card p { min-height: 49px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.remote-status-card small { display: block; margin-top: 9px; color: #81776a; font-size: 10px; }.remote-monitoring-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }.remote-session-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.remote-hmi-frame-wrap { display: grid; grid-template-rows: auto minmax(380px, 1fr); gap: 10px; min-height: 520px; margin-top: 16px; padding: 13px; border: 1px solid #38332d; border-radius: 11px; background: #191816; }.remote-hmi-frame-wrap > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: #fff9ef; }.remote-hmi-frame-wrap .eyebrow { color: #efcf91; }.remote-hmi-frame-wrap b { color: #fff9ef; font-size: 12px; }.remote-hmi-frame { width: 100%; height: 100%; min-height: 380px; border: 0; background: #25231f; pointer-events: none; }.remote-telemetry { margin-top: 17px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }.remote-telemetry .card-head { margin-bottom: 12px; }.remote-telemetry h4 { margin: 4px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.remote-telemetry small { color: var(--muted); font-size: 11px; line-height: 1.4; }.remote-telemetry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e4dbce; border-radius: 8px; overflow: hidden; }.remote-telemetry-value { min-width: 0; padding: 11px 12px; border-right: 1px solid #e4dbce; border-bottom: 1px solid #e4dbce; background: #fff; }.remote-telemetry-value:nth-child(4n) { border-right: 0; }.remote-telemetry-value:nth-last-child(-n + 4) { border-bottom: 0; }.remote-telemetry-value span, .remote-telemetry-value small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.remote-telemetry-value span { color: var(--muted); font-size: 10px; }.remote-telemetry-value b { display: block; margin: 5px 0 3px; overflow: hidden; color: var(--wine-dark); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.remote-telemetry-value small { font-size: 9px; }.remote-telemetry-empty { grid-column: 1 / -1; padding: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.control-card { margin-top: 12px; padding: 13px; border-radius: 9px; background: #f8f3eb; border: 1px solid var(--line); }.control-card b { color: var(--wine-dark); font-size: 13px; }.control-card p { color: var(--muted); margin: 7px 0; font-size: 12px; line-height: 1.45; }.control-card small { color: var(--muted); font-size: 11px; }
.portal-actions { position: relative; margin: 18px 0 12px; }.portal-card > small { position: relative; display: block; color: #f2dec3; line-height: 1.45; font-size: 11px; }
.customer-asset-list, .checklist-selector { display: grid; gap: 9px; }.customer-asset-list button, .checklist-card { width: 100%; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf9; padding: 12px; text-align: left; color: var(--ink); }.customer-asset-list button:hover, .customer-asset-list button.active, .checklist-card:hover, .checklist-card.active { border-color: var(--wine); background: #fff6ec; }.customer-asset-list b, .checklist-card b { color: var(--wine-dark); font-size: 13px; }.customer-asset-list small, .checklist-card small { color: var(--muted); font-size: 11px; }.checklist-card span { color: var(--wine); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.checklist-form { max-width: 960px; }.checklist-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 18px; }.checklist-grid section { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fffdf9; }.checklist-grid h4 { color: var(--wine-dark); margin-bottom: 12px; }.checklist-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eee7dc; color: var(--ink); font-size: 12px; line-height: 1.4; }.checklist-check:last-child { border-bottom: 0; }.checklist-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); flex: 0 0 auto; }.signature-field { align-content: start; }.signature-pad { width: 100%; min-height: 138px; display: block; border: 1px dashed var(--wine); border-radius: 8px; background: #fffdf9; cursor: crosshair; touch-action: none; }.clear-signature { justify-self: start; padding: 7px 10px; font-size: 11px; }
.empty { text-align: center; padding: 35px; color: var(--muted); }

/* Hauptlogin und Erstzugang */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .92fr) minmax(440px, 1.08fr); background: #f7f3ea; }
.auth-brand-panel { position: relative; display: grid; align-content: center; gap: 22px; padding: clamp(36px, 7vw, 100px); overflow: hidden; color: #fffaf0; background: radial-gradient(circle at 14% 18%, rgba(220, 177, 95, .3), transparent 31%), radial-gradient(circle at 92% 88%, rgba(243, 218, 168, .16), transparent 38%), linear-gradient(145deg, #351215, #792424 58%, #491317); }
.auth-brand-panel::after { content: "MSB"; position: absolute; right: -36px; bottom: -75px; color: rgba(244, 226, 192, .11); font-family: Georgia, serif; font-size: clamp(150px, 20vw, 310px); font-weight: 700; line-height: 1; pointer-events: none; }
.auth-brand-lockup { width: 90px; height: 90px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: #171817; box-shadow: 0 13px 34px rgba(18, 5, 6, .34); }.auth-brand-lockup img { width: 100%; height: 100%; object-fit: cover; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 520px; }.auth-brand-copy > span { color: #f0d79f; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.auth-brand-copy h1 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 68px); font-weight: 500; letter-spacing: -.03em; }.auth-brand-copy p { max-width: 460px; margin: 14px 0 0; color: #f2dfc5; font-size: 15px; line-height: 1.6; }
.auth-brand-footer { position: relative; z-index: 1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: #e8c88c; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.auth-form-panel { display: grid; place-items: center; padding: 36px; background: linear-gradient(135deg, #fcfaf5, #f3ebdd); }.auth-card { width: min(100%, 500px); padding: clamp(26px, 4vw, 46px); border: 1px solid #ded4c3; border-radius: 20px; background: rgba(255,253,249,.95); box-shadow: 0 21px 58px rgba(74, 43, 21, .1); }.auth-card h2 { margin: 7px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: clamp(29px, 3.2vw, 39px); font-weight: 500; }.auth-card > p { margin: 10px 0 23px; color: var(--muted); line-height: 1.55; font-size: 13px; }.auth-form { gap: 15px; }.auth-submit { width: 100%; min-height: 46px; margin-top: 4px; font-size: 14px; }.auth-error { margin: 0 0 16px; padding: 11px 13px; border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; color: #821d1d; background: #fff0ed; font-size: 13px; line-height: 1.42; }.auth-note { margin: 18px 0 0 !important; padding-top: 15px; border-top: 1px solid var(--line); font-size: 11px !important; }.auth-identity { display: grid; gap: 4px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fbf7ef; }.auth-identity span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.auth-identity b { color: var(--wine-dark); font-size: 13px; overflow-wrap: anywhere; }
.password-meter { display: grid; gap: 8px; padding: 12px; border: 1px solid #e4dccf; border-radius: 9px; background: #fbf8f1; }.password-meter-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 11px; }.password-meter-head b { color: var(--wine-dark); }.password-meter-head .is-match { color: var(--green); font-weight: 750; }.password-meter-head .is-mismatch { color: var(--red); font-weight: 750; }.password-meter-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e7dfd1; }.password-meter-track span { display: block; width: 8%; height: 100%; border-radius: inherit; background: var(--red); transition: width .17s ease, background .17s ease; }.password-meter-track span[data-score="1"] { background: #c36b27; }.password-meter-track span[data-score="2"] { background: var(--amber); }.password-meter-track span[data-score="3"] { background: #4a8a5d; }.password-meter-track span[data-score="4"] { background: var(--green); }.password-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 10px; line-height: 1.35; }.password-checks li::before { content: "○"; display: inline-block; width: 15px; color: #8a857b; font-weight: 900; }.password-checks li.valid { color: #17623f; }.password-checks li.valid::before { content: "✓"; color: var(--green); }
.user-menu { display: flex; align-items: center; gap: 9px; }.logout-button { border: 0; color: var(--wine); background: transparent; font-size: 11px; font-weight: 800; }.logout-button:hover { text-decoration: underline; }
.auth-admin-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px; border: 1px solid #d9c6a9; border-radius: 13px; background: linear-gradient(115deg, #fffaf1, #f6ecdf); }.auth-admin-summary h3 { margin: 5px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }.auth-admin-summary p { max-width: 700px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.auth-onboarding-steps { display: grid; gap: 11px; margin-top: 15px; }.auth-onboarding-steps > div { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; align-items: start; }.auth-onboarding-steps span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: var(--wine); font-size: 12px; font-weight: 850; }.auth-onboarding-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.auth-onboarding-steps b { color: var(--wine-dark); }

/* Projektakte: Status, Unterlagen und Übergaben bleiben in einem Arbeitsbereich. */
.project-layout { display: grid; grid-template-columns: minmax(245px, .48fr) minmax(0, 1.52fr); gap: 18px; align-items: start; }
.project-selector { position: sticky; top: 106px; max-height: calc(100vh - 132px); overflow: hidden; }
.project-selector-list { max-height: calc(100vh - 205px); overflow: auto; }
.project-selector-list button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 4px; border: 0; border-bottom: 1px solid #eee7dc; background: transparent; padding: 13px 15px; color: var(--ink); text-align: left; }
.project-selector-list button:hover, .project-selector-list button.active { background: #fff4e8; box-shadow: inset 4px 0 0 var(--wine); }
.project-selector-list button > span { grid-row: span 2; align-self: start; }
.project-selector-list b { color: var(--wine-dark); font-size: 12px; line-height: 1.35; }
.project-selector-list small { grid-column: 2; color: var(--muted); font-size: 10px; line-height: 1.35; }
.project-status-panel { padding: 0; }
.project-status-title { display: flex; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbf8f1; color: var(--wine-dark); font-size: 12px; font-weight: 800; }
.project-status-title small { color: var(--muted); font-weight: 650; }
.project-status-list { display: grid; gap: 0; }
.project-status-list div { padding: 14px 18px; border-bottom: 1px solid #eee7dc; }
.project-status-list div:last-child { border-bottom: 0; }
.project-status-list span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.project-status-list b { display: block; margin-top: 5px; color: var(--wine-dark); font-size: 13px; }
.project-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-workspace-grid > section { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbf8f1; }
.project-workspace-grid h4 { margin: 0 0 12px; color: var(--wine-dark); font-size: 13px; }
.project-document-section { margin-top: 20px; }
.project-document-section h4 { margin: 0 0 9px; color: var(--wine-dark); font-size: 13px; }
.file-dropzone { display: grid; gap: 5px; min-height: 108px; align-content: center; justify-items: center; padding: 16px; border: 2px dashed #c9b9a1; border-radius: 10px; background: #fffdf9; color: var(--muted); text-align: center; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.file-dropzone:hover, .file-dropzone.drag-active { border-color: var(--wine); background: #fff6ec; transform: translateY(-1px); }
.file-dropzone strong { color: var(--wine-dark); font-size: 13px; }
.file-dropzone span { max-width: 500px; font-size: 11px; line-height: 1.4; }
.file-drop-summary { color: var(--wine); font-size: 11px; font-weight: 750; }
.document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.danger-link { appearance: none; border: 0; padding: 6px 4px; color: var(--red); background: transparent; font-size: 11px; font-weight: 800; }
.danger-link:hover { text-decoration: underline; }
.handover-options { display: grid; gap: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; }
.handover-list { display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fffdf9; }
.handover-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px; border-bottom: 1px solid #eee7dc; }
.handover-row:last-child { border-bottom: 0; }
.handover-row b { display: block; color: var(--wine-dark); font-size: 12px; }
.handover-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.handover-row > div:last-child { display: grid; justify-items: end; gap: 4px; }

@media (max-width: 1180px) { .project-layout { grid-template-columns: 1fr; }.project-selector { position: static; max-height: none; }.project-selector-list { max-height: 230px; }.project-workspace-grid { grid-template-columns: 1fr; } }

/* Anlagenvermietung: direkte Disposition statt einer breiten, unübersichtlichen Gesamttabelle. */
.rental-sync-strip { margin-top: -5px; justify-content: flex-start; }
.rental-sync-strip .secondary { margin-left: auto; }
.rental-workbench-card { overflow: visible; }
.rental-workbench { display: grid; grid-template-columns: minmax(220px, 250px) minmax(520px, 1fr) minmax(300px, 350px); min-height: 550px; }
.rental-asset-rail { background: #fbf8f1; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.rental-asset-rail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.rental-asset-rail-head h3, .rental-planning-head h3, .rental-editor-head h3 { margin: 4px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.rental-circle-add { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--wine); color: #fff; font-size: 23px; line-height: 1; box-shadow: 0 4px 10px rgba(82, 24, 29, .2); }
.rental-circle-add:hover { background: var(--wine-dark); transform: translateY(-1px); }
.rental-asset-choices { overflow: auto; }
.rental-asset-choice { width: 100%; display: grid; gap: 4px; padding: 14px 16px; border: 0; border-bottom: 1px solid #eee7dc; background: transparent; color: var(--ink); text-align: left; }
.rental-asset-choice:hover, .rental-asset-choice.active { background: #fff4e8; box-shadow: inset 4px 0 0 var(--wine); }
.rental-asset-choice-top { display: flex; align-items: center; justify-content: space-between; }
.rental-asset-choice-top b { color: var(--wine); font-size: 12px; letter-spacing: .04em; }
.rental-asset-choice-top em { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #ede5d8; color: var(--wine-dark); font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.rental-asset-choice strong { color: var(--wine-dark); font-size: 13px; line-height: 1.25; }
.rental-asset-choice small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.rental-planning-panel { min-width: 0; padding: 20px; background: #fffdf9; }
.rental-planning-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; }
.rental-planning-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.rental-month-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; overflow: hidden; background: #f6efe5; }
.rental-month-strip span { padding: 10px 4px; border-right: 1px solid var(--line); color: var(--wine-dark); text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.rental-month-strip span:last-child { border-right: 0; }
.rental-timeline-track { position: relative; height: 164px; min-height: 164px; overflow: hidden; border: 1px solid var(--line); border-radius: 0 0 9px 9px; background-color: #fffefa; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(16.666% - 1px), #e8e0d5 calc(16.666% - 1px), #e8e0d5 16.666%); }
.rental-timeline-bar { position: absolute; min-height: 44px; display: grid; grid-template-columns: 17px minmax(0, 1fr) 24px 17px; align-items: stretch; overflow: hidden; border-radius: 7px; color: #fff; box-shadow: 0 5px 12px rgba(44, 33, 23, .16); touch-action: none; }
.rental-timeline-bar.confirmed { background: var(--green); }.rental-timeline-bar.reserved { background: #1d91c0; }.rental-timeline-bar.option { background: #d98d18; }.rental-timeline-bar.maintenance { background: var(--wine); }.rental-timeline-bar.tentative { background: #8a857b; }
.rental-timeline-bar:hover { z-index: 2; filter: brightness(.97); }.rental-timeline-bar:focus-within { z-index: 3; outline: 3px solid rgba(211, 170, 109, .6); outline-offset: 2px; }
.rental-bar-main, .rental-resize-handle, .rental-drag-handle { min-width: 0; border: 0; color: inherit; background: transparent; }
.rental-bar-main { display: grid; align-content: center; gap: 2px; padding: 5px 4px; overflow: hidden; text-align: left; }
.rental-bar-main span, .rental-bar-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.rental-bar-main span { font-size: 11px; font-weight: 800; }.rental-bar-main small { font-size: 9px; opacity: .88; }
.rental-resize-handle, .rental-drag-handle { display: grid; place-items: center; padding: 0; cursor: ew-resize; font-size: 16px; opacity: .75; touch-action: none; }.rental-drag-handle { cursor: grab; font-size: 15px; letter-spacing: -2px; }.rental-drag-handle:active { cursor: grabbing; }
.rental-resize-handle:hover, .rental-drag-handle:hover { background: rgba(0, 0, 0, .15); opacity: 1; }
.rental-timeline-empty { min-height: 164px; display: grid; align-content: center; justify-items: center; gap: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.rental-direct-help { display: flex; flex-wrap: wrap; gap: 10px 17px; padding: 12px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.rental-direct-help b { color: var(--wine-dark); }
.rental-editor-panel { display: grid; align-content: start; gap: 14px; padding: 18px; border-left: 1px solid var(--line); background: #fffaf3; }
.rental-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.rental-editor-head h3 { font-size: 18px; }
.rental-quick-actions { display: flex; flex-wrap: wrap; gap: 7px; }.rental-quick-actions .secondary { padding: 7px 9px; font-size: 11px; }
.rental-editor-form { gap: 10px; }.rental-editor-form .field textarea { min-height: 65px; }.rental-editor-form .field input, .rental-editor-form .field select, .rental-editor-form .field textarea { padding: 8px; font-size: 12px; }.rental-editor-form .form-grid { gap: 9px; }.rental-editor-form .form-actions { justify-content: stretch; }.rental-editor-form .form-actions button { flex: 1; padding: 9px 8px; font-size: 11px; }
.rental-selected-list { display: grid; gap: 5px; padding-top: 3px; border-top: 1px solid var(--line); }.rental-selected-list > span { padding-top: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rental-selected-assignment { width: 100%; display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; }.rental-selected-assignment:hover, .rental-selected-assignment.active { border-color: var(--line); background: #fff; }.rental-selected-assignment b { display: block; overflow: hidden; color: var(--wine-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.rental-selected-assignment small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.rental-overview-choice { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; padding: 14px 16px; border: 0; border-bottom: 1px solid #eee7dc; background: #f4ede2; color: var(--wine-dark); text-align: left; }.rental-overview-choice span { grid-row: span 2; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: var(--wine); color: #fff; font-size: 14px; }.rental-overview-choice strong { font-size: 13px; }.rental-overview-choice small { color: var(--muted); font-size: 10px; }.rental-overview-choice:hover, .rental-overview-choice.active { background: #fff4e8; box-shadow: inset 4px 0 0 var(--wine); }
.rental-overview-timelines { display: grid; gap: 10px; max-height: 650px; overflow: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; padding: 10px; background: #fdfaf5; }.rental-overview-lane { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: stretch; gap: 8px; }.rental-overview-lane-label { display: grid; align-content: center; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #fffdf9; color: var(--ink); text-align: left; }.rental-overview-lane-label:hover { border-color: var(--gold); background: #fff8ec; }.rental-overview-lane-label b { color: var(--wine); font-size: 11px; letter-spacing: .05em; }.rental-overview-lane-label strong { color: var(--wine-dark); font-size: 12px; line-height: 1.25; }.rental-overview-lane-label small { color: var(--muted); font-size: 10px; line-height: 1.35; }.rental-overview-track { min-height: 104px; height: var(--rental-track-height, 104px); border-radius: 8px; }.rental-overview-track .rental-timeline-empty { min-height: 104px; grid-template-columns: auto auto; justify-content: center; }.rental-drop-target { outline: 3px solid rgba(36, 114, 79, .65); outline-offset: 2px; box-shadow: inset 0 0 0 999px rgba(36, 114, 79, .08); }
.company-manual { margin-top: 18px; padding: 17px; border: 1px solid #d3aa6d; border-radius: 12px; background: linear-gradient(135deg, #fffaf2, #f7f0e5); }.company-manual.unavailable { border-color: var(--line); }.company-manual-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }.company-manual h4 { margin: 4px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 20px; }.company-manual p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.company-manual-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }.company-manual-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); gap: 14px; margin-top: 15px; }.company-manual-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.65); }.company-manual-grid strong { color: var(--wine-dark); font-size: 13px; }.manual-chapter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }.manual-chapter-list button { min-height: 38px; padding: 7px 8px; border: 1px solid #e8dfd2; border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; line-height: 1.25; text-align: left; }.manual-chapter-list button:hover, .manual-chapter-list button.active { border-color: var(--wine); background: #fff0e3; color: var(--wine-dark); }.manual-chapter-detail { display: grid; align-content: start; gap: 8px; }.manual-chapter-detail p { margin: 0; }.manual-related { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }.manual-related span { width: 100%; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.manual-related button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--wine); font-size: 11px; font-weight: 750; }
.asset-quick-access { margin-top: 20px; padding: 18px; border: 1px solid #d8c2a0; border-radius: 12px; background: linear-gradient(135deg, #fff9ef, #f6ecde); }.asset-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }.asset-section-head h4 { margin: 3px 0 0; color: var(--wine-dark); font-size: 18px; }.asset-section-head p { max-width: 640px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.asset-section-head > small { max-width: 240px; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: right; }.asset-section-head.compact { display: block; }.asset-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }.asset-quick-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px; border: 1px solid #ddcfbc; border-radius: 9px; background: #fffdfa; }.asset-quick-card.available { border-left: 4px solid #28754f; }.asset-quick-card.missing { border-left: 4px solid #bc8226; background: #fffaf2; }.asset-quick-card span, .asset-quick-card b, .asset-quick-card p, .asset-quick-card small { display: block; }.asset-quick-card span { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.asset-quick-card b { margin-top: 3px; color: var(--wine-dark); font-size: 13px; }.asset-quick-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }.asset-quick-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }.asset-quick-links { display: grid; align-content: start; gap: 6px; min-width: 105px; }.asset-quick-links .secondary { padding: 7px 8px; font-size: 10px; white-space: nowrap; }.asset-supplemental-guides { margin-top: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf9; }.asset-supplemental-guides summary { padding: 12px 14px; color: var(--wine-dark); cursor: pointer; font-size: 12px; font-weight: 800; }.asset-supplemental-guides .guide-grid { padding: 0 14px 14px; }.asset-record-grid { margin-top: 22px; }.asset-purpose-list { display: grid; gap: 8px; margin-top: 12px; }.asset-purpose-group { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fffdf9; }.asset-purpose-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; cursor: pointer; list-style: none; }.asset-purpose-group summary::-webkit-details-marker { display: none; }.asset-purpose-group summary > span { display: grid; gap: 2px; }.asset-purpose-group summary b { color: var(--wine-dark); font-size: 12px; }.asset-purpose-group summary small { color: var(--muted); font-size: 10px; line-height: 1.35; }.asset-purpose-group .document-list { border-top: 1px solid var(--line); }.asset-purpose-group .document-row { padding: 10px 12px; }.asset-purpose-empty, .asset-group-more { padding: 11px 12px; color: var(--muted); font-size: 11px; line-height: 1.4; }.asset-group-more { border-top: 1px solid var(--line); background: #faf5ed; }.manual-purpose-note { margin-bottom: 10px !important; }
.service-monitor-list { display: grid; }.service-monitor-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-bottom: 1px solid #eee7dc; }.service-monitor-row:last-child { border-bottom: 0; }.service-monitor-row b, .service-monitor-row small { display: block; }.service-monitor-row b { color: var(--wine-dark); font-size: 13px; }.service-monitor-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }.service-monitor-row > div:last-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.formblatt-panel .guide-card { min-height: 144px; }.formblatt-panel .guide-card strong { color: var(--wine-dark); font-size: 15px; }

@media (max-width: 1440px) { .rental-workbench { grid-template-columns: minmax(210px, 245px) minmax(0, 1fr); }.rental-editor-panel { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }.rental-editor-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.rental-editor-form .form-grid, .rental-editor-form .form-actions, .rental-editor-form .field:has(textarea) { grid-column: 1 / -1; }.rental-selected-list { grid-column: 1 / -1; } }
@media (max-width: 900px) { .rental-workbench { grid-template-columns: 1fr; }.rental-asset-rail { border-right: 0; border-bottom: 1px solid var(--line); }.rental-asset-choices { display: flex; overflow-x: auto; }.rental-asset-choice, .rental-overview-choice { min-width: 200px; border-bottom: 0; border-right: 1px solid #eee7dc; }.rental-planning-panel, .rental-editor-panel { grid-column: 1; }.rental-editor-panel { border-left: 0; }.rental-planning-head { display: block; }.rental-legend { margin-top: 12px; justify-content: flex-start; }.rental-editor-form { grid-template-columns: 1fr; }.company-manual-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rental-month-strip span { padding: 8px 2px; font-size: 8px; }.rental-timeline-track { overflow-x: auto; }.rental-timeline-bar { min-width: 74px; }.rental-bar-main small { display: none; }.rental-direct-help { display: grid; }.rental-sync-strip .secondary { margin-left: 0; }.rental-overview-timelines { padding: 7px; gap: 8px; }.rental-overview-lane { grid-template-columns: 1fr; }.rental-overview-track { min-width: 520px; }.rental-overview-lane-label { grid-template-columns: auto 1fr; column-gap: 8px; }.rental-overview-lane-label b { grid-row: span 2; }.company-manual { padding: 13px; }.company-manual-head { display: block; }.company-manual-head .tag { margin-top: 10px; }.manual-chapter-list { grid-template-columns: 1fr; }.service-monitor-row { display: grid; }.service-monitor-row > div:last-child { justify-content: flex-start; } }

@media (max-width: 900px) { .asset-quick-grid { grid-template-columns: 1fr; }.asset-section-head { display: block; }.asset-section-head > small { display: block; max-width: none; margin-top: 8px; text-align: left; }.asset-quick-card { grid-template-columns: 1fr; }.asset-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; } }
@media (max-width: 560px) { .asset-quick-access { padding: 13px; }.asset-quick-links { grid-template-columns: 1fr; }.asset-purpose-group summary { align-items: flex-start; }.asset-purpose-group summary .tag { white-space: nowrap; } }

@media (max-width: 1080px) { .shell { grid-template-columns: 76px minmax(0, 1fr); }.sidebar { padding: 20px 10px; }.brand-copy, .nav-label, .sidebar-foot { display: none; }.brand { display: flex; justify-content: center; padding: 0 0 10px; }.brand-lockup { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }.nav button { justify-content: center; padding: 12px; }.grid.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content, .topbar { padding-left: 25px; padding-right: 25px; }.permission-grid, .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { display: block; }.sidebar { position: fixed; z-index: 30; bottom: 0; top: auto; width: 100%; height: 66px; padding: 7px; display: block; }.brand { display: none; }.nav { display: flex; gap: 1px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }.nav::-webkit-scrollbar { display: none; }.nav button { flex: 0 0 52px; min-width: 52px; padding: 8px 4px; font-size: 0; }.nav-icon { font-size: 18px; }.topbar { height: auto; min-height: 76px; padding: 15px 18px; }.topbar h1 { font-size: 22px; }.topbar p { display: none; }.user-chip span { display: none; }.content { padding: 22px 18px 98px; }.page-heading { display: block; }.page-heading h2 { font-size: 26px; }.page-heading .primary { margin-top: 15px; }.page-actions { justify-content: flex-start; margin-top: 15px; }.grid.cards, .grid.two, .grid.three, .form-grid, .access-permission-columns, .checklist-grid, .integration-switches { grid-template-columns: 1fr; }.split-detail, .access-card { grid-template-columns: 1fr; }.side-list, .access-user-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 210px; overflow: auto; }.key-values { grid-template-columns: 1fr; }.key-values div, .key-values div:nth-child(odd) { border-right: 0; }.key-values div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }.key-values div:last-child { border-bottom: 0; }.week { grid-template-columns: 112px repeat(5, minmax(104px, 1fr)); }.sync-summary { grid-template-columns: 1fr; }.sync-summary div { border-right: 0; border-bottom: 1px solid var(--line); }.sync-summary div:last-child { border-bottom: 0; }.rental-legend { justify-content: flex-start; margin-top: 9px; }.table-wrap { margin: 0 -2px; }.document-row { align-items: flex-start; }.document-view { flex: 0 0 auto; }.document-modal { inset: 8px; border-radius: 10px; }.document-modal-head { padding: 12px; }.document-modal-head h3 { font-size: 14px; } }

/* Milo: dauerhaftes, rollenbewusstes Leitstand-Tutorial. */
.milo-nav-launch { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(239, 207, 145, .38); border-radius: 11px; color: #fff8ed; background: rgba(34, 17, 15, .3); text-align: left; transition: transform .15s ease, background .15s ease; }
.milo-nav-launch:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }.milo-nav-launch img { width: 39px; height: 39px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }.milo-nav-launch b { display: block; font-size: 12px; }.milo-nav-launch small { display: block; margin-top: 2px; color: #efcf91; font-size: 10px; }.milo-heading-launch { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }.milo-heading-launch span { color: var(--gold); font-weight: 900; }.milo-floating-launch { display: none; }
.milo-tutorial-backdrop { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(28, 19, 15, .62); backdrop-filter: blur(7px); animation: milo-fade-in .18s ease-out; }
.milo-tutorial { width: min(1120px, 100%); max-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); overflow: hidden; border: 1px solid rgba(225, 194, 133, .58); border-radius: 20px; background: #fffdf9; box-shadow: 0 34px 100px rgba(10, 6, 4, .48); outline: none; animation: milo-slide-in .22s ease-out; }
.milo-tutorial-rail { display: grid; align-content: start; gap: 15px; padding: 22px 17px 17px; overflow: auto; color: #fff8ef; background: radial-gradient(circle at 18% 8%, rgba(224, 178, 86, .28), transparent 29%), linear-gradient(150deg, #311316, #74272a 72%, #4e1518); }.milo-tutorial-character { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; }.milo-tutorial-character img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 9px 13px rgba(0,0,0,.24)); }.milo-tutorial-character span { display: block; color: #f0d89f; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }.milo-tutorial-character b { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }.milo-tutorial-rail > p { margin: 0; color: #f5e7d4; font-size: 12px; line-height: 1.55; }.milo-tutorial-index { display: grid; gap: 4px; }.milo-tutorial-index button { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; align-items: center; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: #f9eee0; background: transparent; text-align: left; }.milo-tutorial-index button:hover, .milo-tutorial-index button.active { border-color: rgba(244, 218, 165, .38); background: rgba(255,255,255,.14); }.milo-tutorial-index button span { color: #efcf91; text-align: center; font-size: 14px; }.milo-tutorial-index button b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.milo-tutorial-content { min-width: 0; overflow: auto; padding: 27px clamp(24px, 5vw, 62px) 28px; background: linear-gradient(135deg, #fffdf9, #fbf5e9); }.milo-tutorial-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.milo-close { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: #fffdf9; font-size: 22px; line-height: 1; }.milo-close:hover { color: #fff; background: var(--wine); border-color: var(--wine); }.milo-progress { height: 5px; margin: 14px 0 28px; overflow: hidden; border-radius: 999px; background: #e9dfcf; }.milo-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), var(--gold)); transition: width .22s ease; }.milo-step-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 16px; color: var(--wine); background: #f3e6ce; box-shadow: inset 0 0 0 1px rgba(151, 104, 47, .15); font-size: 24px; }.milo-tutorial-content h2 { max-width: 620px; margin: 5px 0 10px; color: var(--wine-dark); font-family: Georgia, serif; font-size: clamp(29px, 4vw, 43px); font-weight: 500; line-height: 1.08; }.milo-step-summary { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }.milo-do-card { max-width: 680px; margin-top: 24px; padding: 18px 20px; border: 1px solid #e2d5c0; border-radius: 13px; background: #fffdf9; }.milo-do-card h3 { margin: 0; color: var(--wine-dark); font-size: 14px; }.milo-do-card ol { display: grid; gap: 10px; margin: 13px 0 0; padding-left: 22px; color: var(--ink); font-size: 13px; line-height: 1.45; }.milo-do-card li::marker { color: var(--wine); font-weight: 850; }.milo-tip { max-width: 680px; display: grid; gap: 4px; margin-top: 14px; padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 0 9px 9px 0; background: #f6eddf; }.milo-tip strong { color: var(--wine-dark); font-size: 12px; }.milo-tip span { color: var(--muted); font-size: 12px; line-height: 1.45; }.milo-tutorial-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 27px; }.milo-tutorial-actions > div:empty { display: none; }
@keyframes milo-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes milo-slide-in { from { opacity: 0; transform: translateY(10px) scale(.987); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1080px) { .milo-nav-launch span { display: none; }.milo-nav-launch { justify-content: center; padding: 7px; }.milo-nav-launch img { width: 38px; height: 38px; } }
@media (max-width: 760px) { .milo-nav-launch { display: none; }.milo-heading-launch { margin-top: 14px; }.milo-floating-launch { position: fixed; z-index: 26; right: 17px; bottom: 83px; width: 52px; height: 52px; display: grid; place-items: center; padding: 2px; border: 1px solid rgba(239,207,145,.7); border-radius: 50%; background: var(--wine); box-shadow: 0 9px 22px rgba(56,17,19,.34); }.milo-floating-launch img { width: 55px; height: 55px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }.milo-tutorial-backdrop { align-items: end; padding: 8px; }.milo-tutorial { max-height: calc(100vh - 16px); grid-template-columns: 1fr; border-radius: 17px; }.milo-tutorial-rail { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 13px 15px 10px; }.milo-tutorial-character { grid-template-columns: 54px minmax(0, 1fr); }.milo-tutorial-character img { width: 54px; height: 54px; }.milo-tutorial-character b { font-size: 19px; }.milo-tutorial-rail > p { display: none; }.milo-tutorial-index { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }.milo-tutorial-index::-webkit-scrollbar { display: none; }.milo-tutorial-index button { flex: 0 0 auto; grid-template-columns: 1fr; justify-items: center; min-width: 55px; padding: 6px 7px; }.milo-tutorial-index button b { display: none; }.milo-tutorial-content { padding: 20px 20px 22px; }.milo-progress { margin: 11px 0 19px; }.milo-step-icon { width: 43px; height: 43px; margin-bottom: 11px; font-size: 20px; }.milo-tutorial-content h2 { font-size: 29px; }.milo-step-summary { font-size: 14px; }.milo-do-card { margin-top: 18px; padding: 14px 15px; }.milo-do-card ol { gap: 8px; margin-top: 10px; font-size: 12px; }.milo-tutorial-actions { align-items: stretch; flex-direction: column; margin-top: 19px; }.milo-tutorial-actions > div, .milo-tutorial-actions .button-row { width: 100%; }.milo-tutorial-actions .secondary, .milo-tutorial-actions .primary { flex: 1; }.milo-tutorial-actions > div:first-child .secondary { width: 100%; } }

/* Vereinfachte produktive MSB-Einrichtung. */
.setup-overview { margin: 0 0 18px; padding: 22px; border: 1px solid #dfcfb4; border-radius: 14px; background: linear-gradient(135deg, #fffdf9, #f8f0e3); box-shadow: 0 5px 18px rgba(74, 43, 21, .045); }
.setup-overview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }.setup-overview-head h3 { margin: 5px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }.setup-overview-head p { max-width: 750px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.setup-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 19px; overflow: hidden; border: 1px solid #e1d7c6; border-radius: 10px; background: #fffdf9; }.setup-status-grid > div { min-width: 0; padding: 13px 14px; border-right: 1px solid #e8dfd1; }.setup-status-grid > div:last-child { border-right: 0; }.setup-status-grid span, .setup-status-grid b, .setup-status-grid small { display: block; }.setup-status-grid span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.setup-status-grid b { margin-top: 5px; color: var(--wine-dark); font-size: 14px; }.setup-status-grid small { min-height: 36px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }.setup-status-grid .green b { color: var(--green); }.setup-status-grid .amber b { color: var(--amber); }
.setup-details { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }.setup-details summary { color: var(--wine); cursor: pointer; font-weight: 750; }.setup-details p { max-width: 900px; margin: 9px 0 0; }.delivery-error { display: block; max-width: 320px; margin-top: 6px; color: var(--red); font-size: 10px; line-height: 1.35; }
@media (max-width: 1050px) { .setup-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.setup-status-grid > div:nth-child(2) { border-right: 0; }.setup-status-grid > div:nth-child(-n + 2) { border-bottom: 1px solid #e8dfd1; } }
@media (max-width: 580px) { .setup-overview { padding: 17px; }.setup-overview-head { display: block; }.setup-overview-head .tag { margin-top: 11px; }.setup-status-grid { grid-template-columns: 1fr; }.setup-status-grid > div, .setup-status-grid > div:nth-child(2) { border-right: 0; border-bottom: 1px solid #e8dfd1; }.setup-status-grid > div:last-child { border-bottom: 0; }.setup-status-grid small { min-height: 0; } }

/* Milo KI-Assistent: bewusst angehängte Inhalte, keine operative Steuerung. */
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(275px, .58fr); gap: 18px; align-items: start; }
.assistant-main { overflow: hidden; }.assistant-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 23px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fffdf9, #f8f1e5); }.assistant-head h3 { margin: 5px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }.assistant-head p { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }.assistant-speech-toggle { display: inline-flex; flex: 0 0 auto; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; color: var(--wine); font-size: 11px; font-weight: 750; white-space: nowrap; }.assistant-speech-toggle input { accent-color: var(--wine); }
.assistant-status { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 11px 23px; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.35; }.assistant-status.ready { background: #f0f8f2; }.assistant-status.pending { background: #fff7ec; }.assistant-status > span { color: var(--muted); }
.assistant-conversation { display: grid; gap: 12px; min-height: 350px; max-height: min(55vh, 690px); overflow: auto; padding: 21px 23px; background: #fbf8f1; }.assistant-message { width: min(92%, 740px); padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 9px rgba(74,43,21,.035); font-size: 13px; line-height: 1.55; }.assistant-message.milo { justify-self: start; border-top-left-radius: 3px; background: #fffdf9; }.assistant-message.user { justify-self: end; border-color: #d4b37c; border-top-right-radius: 3px; background: #fff5e7; }.assistant-message.pending { opacity: .74; }.assistant-message-label { margin-bottom: 5px; color: var(--wine); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.assistant-message.user .assistant-message-label { color: #7a5018; text-align: right; }.assistant-message-text { color: var(--ink); white-space: normal; }.assistant-message-files { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }.assistant-message-files span { padding: 3px 7px; border: 1px solid #ddceb7; border-radius: 999px; color: #735224; background: #fffaf2; font-size: 10px; font-weight: 700; }.assistant-transcript { margin-top: 11px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; }.assistant-transcript summary { cursor: pointer; color: var(--wine); font-weight: 750; }.assistant-transcript p { margin: 8px 0 0; line-height: 1.45; }
.assistant-compose { display: grid; gap: 10px; padding: 16px 20px 19px; border-top: 1px solid var(--line); background: #fffdf9; }.assistant-compose textarea { width: 100%; min-height: 98px; resize: vertical; padding: 12px; border: 1px solid #cec5b5; border-radius: 10px; color: var(--ink); background: #fff; line-height: 1.45; }.assistant-compose textarea:disabled { color: var(--muted); background: #f4efe7; }.assistant-compose-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.assistant-file-button { display: inline-flex; align-items: center; cursor: pointer; }.assistant-file-button.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }.assistant-compose input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.assistant-side { display: grid; gap: 18px; }.assistant-side .card-head { margin-bottom: 13px; }.assistant-side .card-head h3, .assistant-side h3 { margin: 0; color: var(--wine-dark); font-size: 14px; }.assistant-dropzone { display: grid; gap: 4px; min-height: 104px; place-content: center; padding: 14px; border: 1.5px dashed #c9aa77; border-radius: 10px; background: #fffaf2; color: var(--wine-dark); text-align: center; transition: border-color .15s ease, background .15s ease; }.assistant-dropzone.dragging, .assistant-dropzone:hover { border-color: var(--wine); background: #fff2e0; }.assistant-dropzone b { font-size: 12px; }.assistant-dropzone span { color: var(--muted); font-size: 11px; }.assistant-dropzone small { color: #81776a; font-size: 10px; line-height: 1.35; }.assistant-attachment-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }.assistant-attachment-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid #e6dccb; border-radius: 8px; background: #fffdf9; }.assistant-file-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #f5e8d1; color: var(--wine); font-size: 13px; }.assistant-attachment-list b, .assistant-attachment-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.assistant-attachment-list b { color: var(--wine-dark); font-size: 11px; }.assistant-attachment-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }.assistant-empty-attachments { margin: 13px 0 0; color: var(--muted); font-size: 11px; }.assistant-feature-list { display: grid; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.35; }.assistant-feature-list span:first-letter { color: var(--green); }.assistant-guardrail { border-color: #dbc08f; background: #fffaf1; }.assistant-guardrail p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.assistant-guardrail code { color: var(--wine); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
@media (max-width: 1100px) { .assistant-layout { grid-template-columns: 1fr; }.assistant-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }.assistant-guardrail { grid-column: 1 / -1; } }
@media (max-width: 620px) { .assistant-head { display: grid; padding: 17px; }.assistant-head h3 { font-size: 24px; }.assistant-status { padding: 10px 17px; }.assistant-conversation { min-height: 300px; max-height: none; padding: 15px; }.assistant-message { width: 96%; }.assistant-compose { padding: 13px; }.assistant-compose-actions { align-items: stretch; flex-direction: column; }.assistant-compose-actions > .button-row { width: 100%; }.assistant-compose-actions > .primary { width: 100%; }.assistant-side { grid-template-columns: 1fr; }.assistant-guardrail { grid-column: auto; }.assistant-attachment-list li { grid-template-columns: 24px minmax(0, 1fr); }.assistant-attachment-list button { grid-column: 2; justify-self: start; } }

/* Milo 2.0: Der Guide wandert mit der Tour, beleuchtet den Zielbereich und zeigt sichtbar dorthin. */
.milo-tutorial-backdrop { position: fixed; z-index: 70; inset: 0; display: block; padding: 0; overflow: hidden; background: rgba(17, 24, 21, .68); backdrop-filter: blur(4px); animation: milo-fade-in .18s ease-out; }
.milo-tutorial { position: fixed; z-index: 2; right: clamp(16px, 2.7vw, 44px); bottom: clamp(18px, 3.2vh, 34px); width: min(448px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 36px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(225, 194, 133, .7); border-radius: 19px; background: #fffdf9; box-shadow: 0 28px 90px rgba(6, 12, 9, .46); outline: none; animation: milo-guide-arrive .42s cubic-bezier(.2, .82, .24, 1); transition: top .35s ease, right .35s ease, bottom .35s ease, left .35s ease; }
.milo-tutorial.milo-placement-top-right { top: clamp(18px, 3.2vh, 34px); bottom: auto; }
.milo-tutorial.milo-placement-bottom-right { top: auto; bottom: clamp(18px, 3.2vh, 34px); }
.milo-guide-head { display: grid; grid-template-columns: 66px minmax(0, 1fr) 34px; gap: 11px; align-items: center; min-height: 83px; padding: 12px 15px; border-bottom: 1px solid #e9dfcf; background: radial-gradient(circle at 3% 22%, rgba(218, 177, 89, .22), transparent 40%), linear-gradient(135deg, #fffdf9, #f8f0e2); }
.milo-guide-avatar { position: relative; z-index: 2; width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(177, 128, 46, .45); border-radius: 17px; background: #17332a; box-shadow: 0 7px 17px rgba(55, 31, 17, .18); }
.milo-guide-avatar::after { content: ""; position: absolute; right: -8px; top: 25px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid #d3aa6d; filter: drop-shadow(1px 0 1px rgba(83, 47, 20, .28)); }
.milo-guide-avatar img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .3)); animation: milo-mascot-hop .7s cubic-bezier(.28, .9, .34, 1); }
.milo-guide-copy { min-width: 0; }.milo-guide-copy span { display: block; color: #1b6d58; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }.milo-guide-copy b { display: block; margin-top: 4px; overflow: hidden; color: var(--wine-dark); font-family: Georgia, serif; font-size: 18px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.milo-tutorial .milo-close { width: 32px; height: 32px; align-self: start; }
.milo-tutorial-content { min-width: 0; overflow: auto; padding: 18px 21px 17px; background: linear-gradient(135deg, #fffdf9, #fbf5e9); }
.milo-target-status { display: flex; align-items: center; gap: 7px; color: #6a6258; font-size: 11px; line-height: 1.3; }.milo-target-status span { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #e1b75f; box-shadow: 0 0 0 4px rgba(225, 183, 95, .16); animation: milo-target-pulse 1.25s infinite; }.milo-target-status b { color: var(--wine-dark); }
.milo-tutorial .milo-progress { height: 5px; margin: 12px 0 16px; }.milo-tutorial .milo-progress span { transition: width .28s ease; }
.milo-tutorial-step-head { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }.milo-tutorial .milo-step-icon { width: 42px; height: 42px; margin: 0; border-radius: 13px; font-size: 20px; }.milo-tutorial .milo-tutorial-content h2 { margin: 4px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: clamp(25px, 2.2vw, 33px); font-weight: 500; line-height: 1.08; }.milo-tutorial .milo-step-summary { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.48; }
.milo-tutorial .milo-do-card { margin-top: 16px; padding: 14px 16px; border-radius: 11px; }.milo-tutorial .milo-do-card h3 { font-size: 13px; }.milo-tutorial .milo-do-card ol { gap: 7px; margin-top: 9px; font-size: 12px; }.milo-tutorial .milo-tip { margin-top: 11px; padding: 11px 13px; }.milo-tutorial .milo-tip span { font-size: 11px; }.milo-tutorial .milo-tutorial-actions { align-items: center; margin-top: 16px; }.milo-tutorial .milo-tutorial-actions .secondary, .milo-tutorial .milo-tutorial-actions .primary { min-height: 36px; padding: 8px 11px; font-size: 12px; }
.milo-step-dots { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 14px; }.milo-step-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #d8d1c5; transition: width .16s ease, background .16s ease, transform .16s ease; }.milo-step-dots button:hover { transform: scale(1.24); background: #b0853e; }.milo-step-dots button.active { width: 23px; border-radius: 999px; background: #1b6d58; }
.milo-spotlight-beam { position: fixed; z-index: 1; top: 0; left: 0; height: 4px; transform-origin: 0 50%; border-radius: 999px; pointer-events: none; background: linear-gradient(90deg, rgba(239, 207, 145, .98), rgba(239, 207, 145, .76) 64%, rgba(239, 207, 145, 0)); box-shadow: 0 0 10px rgba(239, 207, 145, .8); }.milo-spotlight-marker { position: fixed; z-index: 72; top: 0; left: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #efcf91; border-radius: 50%; color: #fffdf9; background: #1b6d58; box-shadow: 0 0 0 6px rgba(239, 207, 145, .2), 0 5px 16px rgba(0, 0, 0, .26); font-size: 21px; font-weight: 900; line-height: 1; pointer-events: none; }.milo-spotlight-beam[hidden], .milo-spotlight-marker[hidden] { display: none; }
.milo-spotlight-target { position: relative !important; z-index: 71 !important; pointer-events: none !important; isolation: isolate; }.sidebar.milo-spotlight-navigation { box-shadow: 0 0 0 3px #efcf91, 0 0 0 8px rgba(239, 207, 145, .18), 0 0 40px rgba(239, 207, 145, .44); animation: milo-spotlight-pulse 1.45s ease-in-out infinite; }.nav button.milo-spotlight-nav { color: #fff !important; background: rgba(255,255,255,.19) !important; box-shadow: 0 0 0 2px #efcf91, 0 0 22px rgba(239, 207, 145, .55); animation: milo-spotlight-pulse 1.45s ease-in-out infinite; }.page-heading.milo-spotlight-heading { margin: -10px -13px 14px; padding: 10px 13px; border-radius: 13px; background: #fffdf9; box-shadow: 0 0 0 3px #efcf91, 0 0 0 8px rgba(239, 207, 145, .18), 0 0 38px rgba(239, 207, 145, .42); animation: milo-spotlight-pulse 1.45s ease-in-out infinite; }.page-heading.milo-spotlight-heading::after { content: "Milo erklärt diesen Bereich"; position: absolute; right: 12px; top: -12px; padding: 4px 8px; border-radius: 999px; color: #fffdf9; background: #1b6d58; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 11px rgba(0,0,0,.16); }
.milo-workflow-card { margin-top: 12px; overflow: hidden; border: 1px solid #ddd5c7; border-radius: 12px; background: #fffdf9; box-shadow: 0 5px 14px rgba(67, 47, 27, .05); }
.milo-workflow-card summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 10px; align-items: center; padding: 12px 14px; color: var(--wine-dark); cursor: pointer; list-style: none; user-select: none; }.milo-workflow-card summary::-webkit-details-marker { display: none; }.milo-workflow-card summary span { grid-column: 1; color: #1b6d58; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }.milo-workflow-card summary b { grid-column: 1; font-size: 13px; line-height: 1.25; }.milo-workflow-card summary i { grid-column: 2; grid-row: 1 / span 2; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fffdf9; background: #1b6d58; font-size: 16px; font-style: normal; line-height: 1; transition: transform .18s ease, background .18s ease; }.milo-workflow-card:not([open]) summary i { transform: rotate(-90deg); background: #95794f; }.milo-workflow-card summary:hover { background: #fff8eb; }
.milo-workflow-list { display: grid; gap: 9px; margin: 0; padding: 12px 14px 14px; border-top: 1px solid #eee5d8; list-style: none; counter-reset: milo-workflow; }.milo-workflow-list li { position: relative; min-height: 28px; padding-left: 35px; color: var(--muted); font-size: 11px; line-height: 1.42; counter-increment: milo-workflow; }.milo-workflow-list li::before { content: counter(milo-workflow); position: absolute; top: 0; left: 0; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #fffdf9; background: var(--wine); font-size: 11px; font-weight: 850; }.milo-workflow-list strong, .milo-workflow-list span { display: block; }.milo-workflow-list strong { margin-bottom: 2px; color: var(--wine-dark); font-size: 12px; }.milo-workflow-list span { color: var(--muted); }
.milo-practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }.milo-guardrail, .milo-outcome { display: grid; gap: 5px; min-width: 0; padding: 11px 12px; border: 1px solid #e5d9c6; border-radius: 11px; font-size: 11px; line-height: 1.42; }.milo-guardrail { background: #fff9ef; border-color: #ecd5b4; }.milo-outcome { background: #f1f8f3; border-color: #cce0d1; }.milo-guardrail strong, .milo-outcome strong { color: var(--wine-dark); font-size: 11px; }.milo-outcome strong { color: #176349; }.milo-guardrail span, .milo-outcome span { color: var(--muted); }

@keyframes milo-guide-arrive { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes milo-mascot-hop { 0% { transform: translate(-10px, 8px) rotate(-6deg); } 42% { transform: translate(3px, -7px) rotate(4deg); } 76% { transform: translate(-1px, 2px) rotate(-1deg); } 100% { transform: translate(0, 0) rotate(0); } } @keyframes milo-spotlight-pulse { 0%, 100% { box-shadow: 0 0 0 3px #efcf91, 0 0 0 8px rgba(239, 207, 145, .16), 0 0 28px rgba(239, 207, 145, .36); } 50% { box-shadow: 0 0 0 3px #fff1b1, 0 0 0 11px rgba(239, 207, 145, .28), 0 0 48px rgba(239, 207, 145, .58); } } @keyframes milo-target-pulse { 0%, 100% { transform: scale(.87); opacity: .65; } 50% { transform: scale(1.13); opacity: 1; } }
@media (max-width: 840px) { .milo-tutorial-backdrop { background: rgba(17, 24, 21, .75); }.milo-tutorial, .milo-tutorial.milo-placement-top-right, .milo-tutorial.milo-placement-bottom-right { top: auto; right: 8px; bottom: 76px; left: 8px; width: auto; max-height: calc(100vh - 86px); border-radius: 16px; }.milo-spotlight-beam, .milo-spotlight-marker { display: none !important; }.page-heading.milo-spotlight-heading::after { display: none; }.milo-spotlight-target { pointer-events: none !important; }.milo-guide-head { min-height: 72px; grid-template-columns: 54px minmax(0, 1fr) 32px; padding: 9px 12px; }.milo-guide-avatar { width: 52px; height: 52px; border-radius: 14px; }.milo-guide-avatar img { width: 63px; height: 63px; }.milo-guide-avatar::after { right: -7px; top: 20px; }.milo-guide-copy b { font-size: 16px; }.milo-tutorial-content { padding: 14px 15px 13px; }.milo-tutorial .milo-do-card { margin-top: 13px; }.milo-tutorial .milo-tip { display: none; }.milo-step-dots { margin-top: 11px; } }
@media (max-width: 560px) { .milo-tutorial .milo-tutorial-actions { align-items: stretch; flex-direction: column; gap: 8px; }.milo-tutorial .milo-tutorial-actions > div, .milo-tutorial .milo-tutorial-actions .button-row { width: 100%; }.milo-tutorial .milo-tutorial-actions .secondary, .milo-tutorial .milo-tutorial-actions .primary { flex: 1; }.milo-tutorial .milo-tutorial-actions > div:first-child .secondary { width: 100%; }.milo-tutorial .milo-do-card ol { display: none; }.milo-tutorial .milo-do-card::after { content: "Details werden beim Durchklicken direkt in der jeweils markierten Ansicht gezeigt."; display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; } }
@media (max-width: 560px) { .milo-practice-grid { grid-template-columns: 1fr; }.milo-workflow-card { margin-top: 10px; }.milo-workflow-card summary { padding: 10px 12px; }.milo-workflow-list { gap: 8px; padding: 10px 12px 12px; }.milo-workflow-list li { padding-left: 32px; }.milo-workflow-list li::before { width: 23px; height: 23px; } }
@media (min-width: 761px) and (max-height: 820px) { .sidebar { gap: 10px; padding: 14px 16px 12px; }.brand { padding-bottom: 8px; }.brand-lockup { width: 52px; height: 52px; flex-basis: 52px; }.brand-copy b { font-size: 16px; }.brand-copy span { font-size: 10px; }.nav { gap: 1px; }.nav button { padding: 7px 10px; font-size: 13px; }.milo-nav-launch { padding: 7px 9px; }.milo-nav-launch img { width: 34px; height: 34px; }.milo-nav-launch small { font-size: 9px; }.sidebar-foot { padding-top: 8px; font-size: 10px; } }
@media (min-width: 841px) and (max-height: 800px) { .milo-tutorial, .milo-tutorial.milo-placement-top-right, .milo-tutorial.milo-placement-bottom-right { top: auto; bottom: 18px; max-height: calc(100vh - 280px); }.milo-guide-head { min-height: 70px; padding: 8px 13px; }.milo-guide-avatar { width: 50px; height: 50px; border-radius: 14px; }.milo-guide-avatar img { width: 61px; height: 61px; }.milo-guide-avatar::after { top: 18px; }.milo-guide-copy b { font-size: 16px; }.milo-tutorial-content { padding: 12px 16px; }.milo-tutorial .milo-progress { margin: 9px 0 11px; }.milo-tutorial .milo-step-summary { margin-top: 10px; }.milo-tutorial .milo-do-card { margin-top: 11px; padding: 11px 13px; }.milo-tutorial .milo-do-card ol { gap: 5px; margin-top: 7px; font-size: 11px; }.milo-tutorial .milo-tip { margin-top: 8px; padding: 9px 11px; }.milo-tutorial .milo-tutorial-actions { margin-top: 11px; }.milo-step-dots { margin-top: 9px; } }

@media (max-width: 760px) { .auth-page { display: block; min-height: 100dvh; }.auth-brand-panel { min-height: 235px; padding: 30px 24px; align-content: center; gap: 12px; }.auth-brand-lockup { width: 58px; height: 58px; border-radius: 15px; }.auth-brand-copy h1 { font-size: 36px; }.auth-brand-copy p { margin-top: 7px; font-size: 12px; }.auth-brand-footer { display: none; }.auth-form-panel { min-height: calc(100dvh - 235px); padding: 18px; align-items: start; }.auth-card { margin-top: -16px; padding: 27px 22px; border-radius: 17px; }.password-checks { grid-template-columns: 1fr; }.user-menu { gap: 4px; }.logout-button { padding: 5px; }.auth-admin-summary { display: block; }.auth-admin-summary .tag { margin-top: 12px; } }

@media (max-width: 1100px) { .remote-status-grid, .remote-telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.remote-telemetry-value:nth-child(4n) { border-right: 1px solid #e4dbce; }.remote-telemetry-value:nth-child(2n) { border-right: 0; }.remote-telemetry-value:nth-last-child(-n + 4) { border-bottom: 1px solid #e4dbce; }.remote-telemetry-value:nth-last-child(-n + 2) { border-bottom: 0; } }
@media (max-width: 700px) { .remote-monitoring-modal { inset: 7px; border-radius: 11px; }.remote-monitoring-head { padding: 14px; }.remote-monitoring-head h3 { font-size: 20px; }.remote-monitoring-body { padding: 14px 13px 20px; }.remote-monitoring-meta { grid-template-columns: 1fr; }.remote-monitoring-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }.remote-monitoring-meta > div:last-child { border-bottom: 0; }.remote-status-grid, .remote-telemetry-grid { grid-template-columns: 1fr; }.remote-status-card p { min-height: auto; }.remote-telemetry-value, .remote-telemetry-value:nth-child(4n), .remote-telemetry-value:nth-child(2n), .remote-telemetry-value:nth-last-child(-n + 4) { border-right: 0; border-bottom: 1px solid #e4dbce; }.remote-telemetry-value:last-child { border-bottom: 0; }.remote-hmi-frame-wrap { min-height: 330px; grid-template-rows: auto minmax(270px, 1fr); }.remote-hmi-frame { min-height: 270px; } }

/* Technician-first commissioning layer: it keeps missing handoff material
   visible without implying a live or controllable monitoring connection. */
.time-date-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 13px 15px; border: 1px solid #dfd5c4; border-radius: 12px; background: #fffdf9; }
.time-date-bar label { display: grid; gap: 5px; color: var(--wine-dark); font-size: 11px; font-weight: 800; }
.time-date-bar input { min-height: 37px; }
.time-action-card { border-color: #dac6a1; background: linear-gradient(135deg, #fffdf9, #fbf4e8); }
.time-action-card.active { border-color: #9ac6ac; background: linear-gradient(135deg, #f7fcf8, #edf7ef); }
.time-entry-list { display: grid; gap: 8px; }
.time-entry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ebe2d5; }
.time-entry-row:last-child { border-bottom: 0; }
.time-entry-row > div { display: grid; gap: 3px; min-width: 0; }
.time-entry-row > div:last-child { justify-items: end; flex: 0 0 auto; }
.time-entry-row b { color: var(--wine-dark); font-size: 12px; }
.time-entry-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.time-manual-details { overflow: hidden; border: 1px solid #e2d8c9; border-radius: 10px; background: #fffdf9; }
.time-manual-details summary { display: block; padding: 14px 16px; color: var(--wine-dark); cursor: pointer; list-style: none; }
.time-manual-details summary::-webkit-details-marker { display: none; }
.time-manual-details summary span { display: grid; gap: 4px; }
.time-manual-details summary b { font-size: 13px; }
.time-manual-details summary small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.time-manual-details[open] summary { border-bottom: 1px solid #e2d8c9; background: #fff8ec; }
.time-manual-details form { padding: 0 16px 16px; }
.time-overview-table td { vertical-align: top; }
.time-overview-table .tag { margin-bottom: 3px; }
.time-site-summary { min-width: 142px; }
.time-site-summary summary { color: var(--wine); cursor: pointer; font-size: 11px; font-weight: 800; }
.time-site-summary ul { display: grid; gap: 4px; margin: 7px 0 0; padding: 0; list-style: none; }
.time-site-summary li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.time-site-summary li b { color: var(--wine-dark); white-space: nowrap; }
.time-approval-list { display: grid; gap: 0; }
.time-approval-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #ebe2d5; }
.time-approval-row > div { display: grid; gap: 4px; min-width: 0; }
.time-approval-row b { color: var(--wine-dark); font-size: 12px; }
.time-approval-row small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.remote-readiness { margin-top: 16px; padding: 16px; border: 1px solid #d8c38e; border-radius: 11px; background: #fffaf0; }.remote-readiness h4 { margin: 4px 0 0; color: var(--wine-dark); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.remote-readiness .card-head small { display: block; max-width: 650px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.45; }.remote-readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }.remote-readiness-grid article { min-width: 0; padding: 12px; border: 1px solid #e4dbce; border-radius: 8px; background: rgba(255,255,255,.72); }.remote-readiness-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }.remote-readiness-grid b { display: block; margin-top: 6px; color: var(--wine-dark); font-size: 13px; }.remote-readiness-grid p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }.remote-handoff { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 13px; padding: 12px 13px; border-left: 4px solid #a56817; border-radius: 0 8px 8px 0; background: #fff0d8; }.remote-handoff b { color: var(--wine-dark); font-size: 13px; }.remote-handoff p { margin: 4px 0 0; color: #664d2b; font-size: 11px; line-height: 1.45; }.remote-handoff .secondary { flex: 0 0 auto; }.remote-handoff-list, .remote-missing-inputs ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }.remote-handoff-list li, .remote-missing-inputs li { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid #eadfce; }.remote-handoff-list li:last-child, .remote-missing-inputs li:last-child { border-bottom: 0; }.remote-handoff-list b, .remote-missing-inputs b { color: var(--wine-dark); font-size: 12px; }.remote-handoff-list span, .remote-missing-inputs span { color: var(--muted); font-size: 11px; line-height: 1.4; }.remote-missing-inputs { margin-top: 13px; }.remote-missing-inputs summary { cursor: pointer; color: var(--wine); font-size: 12px; font-weight: 800; }
@media (max-width: 760px) { .time-date-bar { align-items: stretch; }.time-date-bar label, .time-date-bar .secondary { width: 100%; }.time-entry-row, .time-approval-row { align-items: flex-start; }.time-entry-row > div:last-child { min-width: 64px; }.time-overview-table { min-width: 760px; }.remote-readiness-grid { grid-template-columns: 1fr; }.remote-handoff { display: grid; }.remote-handoff .secondary { justify-self: start; } }
/* Access dialogs remain usable on narrow Android screens and desktop. */
.access-dialog { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #ded4c5; border-radius: 18px; padding: 24px; color: #342b25; background: #fffcf7; }
.access-dialog::backdrop { background: #211714aa; }
.access-dialog p { line-height: 1.55; }
.access-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.access-dialog [role="status"] { white-space: pre-line; font-weight: 600; }
