/*
 * Abgleich Pro · ruhige Arbeitsoberfläche · 01.09.2026
 * Darstellung, keine fachlichen Zustandsänderungen.
 * Eingaben, Hinweise und Pflichtprüfungen bleiben sichtbar.
 */

/* Rahmen: Navigation ist Orientierung, der Inhalt ist die Arbeitsfläche. */
.topbar {
  min-height: 64px;
  padding: 8px 28px;
  background: #fff;
  backdrop-filter: none;
  box-shadow: none;
  gap: 20px;
}
.brand { gap: 10px; }
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
  background: #243B60;
  box-shadow: none;
  font-size: 19px;
  font-weight: 700;
}
.brand b { font-size: 15px; font-weight: 650; }
.brand small { font-size: 10px; letter-spacing: .01em; }
.user-menu { gap: 18px; font-size: 12px; }
.user-menu b { font-weight: 600; }
.user-menu small { font-size: 10px; letter-spacing: 0; }
.link-button { font-size: 13px; font-weight: 500; text-decoration: none; color: var(--muted); }
.link-button:hover { color: var(--blue); }
.app-frame { width: min(1440px, 100%); margin: 0 auto; }
.app-frame-project { display: grid; grid-template-columns: 206px minmax(0, 1fr); }
.shell { width: auto; min-width: 0; margin: 0; padding: 32px 36px 64px; }
.app-frame:not(.app-frame-project) > .shell { max-width: 1220px; margin: auto; }
.project-sidebar { padding: 24px 16px; border-right: 1px solid var(--line); background: #F1F3F6; }
.sidebar-back { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; margin-bottom: 26px; color: var(--muted); font-size: 13px; text-decoration: none; }
.sidebar-back:hover { color: var(--ink); }
.sidebar-label { margin: 0 12px 10px; color: #677486; font-size: 10px; font-weight: 650; letter-spacing: .11em; }
.project-nav { display: grid; gap: 5px; }
.project-nav a { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 11px 12px; border: 1px solid transparent; border-radius: 8px; color: #4F5D70; font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background-color .15s, color .15s; }
.project-nav a:hover { color: var(--ink); background: #E8ECF2; }
.project-nav a[aria-current] { color: #234F9C; background: #fff; border-color: #DAE1EB; font-weight: 650; box-shadow: 0 1px 3px #202B3C05; }
.nav-icon { display: flex; flex-shrink: 0; color: #738094; }
.nav-icon svg { width: 19px; height: 19px; }
[aria-current] > .nav-icon { color: var(--blue); }
.sidebar-note { display: flex; gap: 9px; align-items: flex-start; margin: 48px 12px 0; color: #657287; font-size: 11px; line-height: 1.65; }
.sidebar-note-mark { width: 5px; height: 5px; margin-top: 6px; background: #8999B0; border-radius: 50%; flex-shrink: 0; }
.site-footer { width: auto; max-width: 1440px; padding: 18px 36px; font-size: 11px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; background: #fff; color: var(--blue); border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* Wenige feste Schriftrollen statt einer Überschriftengröße pro Komponente. */
h1, .shell > .page-head h1, .monteur-hero h1 { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; }
h3 { font-weight: 650; }
.eyebrow { color: #61728A; font-size: 10px; font-weight: 650; letter-spacing: .1em; margin-bottom: 8px; }
.shell > .back-link { min-height: 44px; margin: -13px 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.shell > .page-head { margin: 0 0 26px; }
.page-head > p:last-child { margin: 10px 0 0; font-size: 15px; line-height: 1.6; }
.project-heading { align-items: center; position: relative; }
.project-heading h1 { font-size: 32px; }
.project-heading .eyebrow { margin-bottom: 7px; }
.project-state { display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.project-state-dot { width: 5px; height: 5px; background: #8390A2; border-radius: 50%; }
.view-project_show > .app-frame .shell > .back-link { margin-bottom: 8px; }
.identity-editor { margin: 0; max-width: 100%; }
.identity-editor > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #CFD7E2; border-radius: 8px; background: #fff; color: #465773; font-size: 12px; font-weight: 550; list-style: none; }
.identity-editor > summary::-webkit-details-marker { display: none; }
.identity-editor > summary::after { content: "+"; font-size: 18px; line-height: 1; color: #718199; }
.identity-editor[open] > summary::after { content: "−"; }
.identity-editor[open] { width: 100%; }
.project-heading:has(.identity-editor[open]) { flex-wrap: wrap; }
.identity-editor form { padding: 20px; gap: 16px; border-radius: 10px; background: #fff; }
.identity-editor small { font-size: 12px; line-height: 1.5; }

/* Klare nächste Aktion, darunter kompakte, vollständig klickbare Arbeitsbereiche. */
.monteur-dashboard { display: grid; gap: 24px; min-width: 0; }
.monteur-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-width: 0; padding: 20px 22px; border: 1px solid #D6E0F0; border-left: 3px solid var(--blue); border-radius: 10px; background: #F0F4FB; }
.monteur-next > div { min-width: 0; }
.monteur-next .eyebrow { color: #345B97; font-size: 10px; margin-bottom: 5px; }
.monteur-next h2 { font-size: 19px; line-height: 1.3; }
.monteur-next p:not(.eyebrow) { max-width: 620px; margin: 7px 0 0; font-size: 13px; color: #4F6280; line-height: 1.5; }
.monteur-next > .button { flex-shrink: 0; }
.monteur-dashboard > .section-head-inline { margin: 2px 0 -8px; gap: 20px; }
.section-head-inline h2 { font-size: 19px; }
.monteur-dashboard > .section-head-inline p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.context-link { font-size: 13px; font-weight: 550; text-underline-offset: 3px; }
.monteur-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.monteur-task { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 21px; border: 1px solid #DCE2EA; border-radius: 11px; background: #fff; color: var(--ink); text-align: left; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 1px 2px #202B3C04; }
a.monteur-task, button.monteur-task { cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
a.monteur-task:hover, button.monteur-task:hover { border-color: #9AAFCF; background: #FDFEFF; box-shadow: 0 4px 12px #243B600B; }
a.monteur-task:active, button.monteur-task:active { background: #F2F5FB; }
.monteur-task h2, .monteur-task h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.monteur-task p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.task-heading { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; }
.task-heading h2 { flex: 1; min-width: 0; }
.system-symbol { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #E1E7F0; border-radius: 9px; background: #F4F6FA; color: #536B91; font-size: 24px; }
.system-symbol svg { width: 23px; height: 23px; stroke-width: 1.6; }
.task-chevron { flex-shrink: 0; color: #7F8EA4; font-size: 24px; line-height: 1; font-weight: 400; transition: color .15s; }
.monteur-task:hover .task-chevron { color: var(--blue); }
.project-task-grid .monteur-task { min-height: 198px; }
.project-task-grid .task-status { margin-top: auto; }
.view-plant .monteur-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.view-plant .monteur-task { min-height: 182px; }
.view-plant .task-status { margin-top: auto; }
.task-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 3px 7px; border-radius: 5px; background: #F0F3F7; color: #53637B; font-size: 11px; font-weight: 550; line-height: 1.45; }
.is-done .task-status { background: #EDF5F0; color: #236446; }
.is-blocked .task-status { background: #FFF4E4; color: #80541C; }
.is-open .task-status { background: #F0F3F7; color: #53637B; }
.monteur-task > svg { width: 28px; height: 28px; color: #536B91; }
.monteur-task .button { margin-top: auto; }
.monteur-task > .task-action { display: flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--blue); font-size: 13px; font-weight: 550; }

/* Untergeordnete Schritte bleiben horizontal, deutlich von der Projektnavigation getrennt. */
.monteur-nav, .workflow-tabs { display: flex; gap: 4px; padding: 4px; margin: 24px 0; border: 1px solid #DCE2EA; border-radius: 9px; background: #EDEFF3; min-width: 0; }
.monteur-nav > a, .monteur-nav > span, .workflow-tabs > a { display: flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 48px; padding: 9px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #57657B; font-size: 13px; font-weight: 550; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.monteur-nav > a:hover, .workflow-tabs > a:hover { color: var(--ink); background: #F7F8FB; }
.monteur-nav > [aria-current], .workflow-tabs > [aria-current] { border-color: #D7DFEB; background: #fff; color: #234F9C; box-shadow: 0 1px 2px #202B3C07; }
.monteur-nav svg, .monteur-choice svg { width: 22px; height: 22px; flex-shrink: 0; }
.monteur-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 24px; min-width: 0; }
.monteur-hero > div { min-width: 0; }
.monteur-hero p:not(.eyebrow) { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.monteur-section { min-width: 0; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.monteur-section > h2 { margin-bottom: 16px; }
.monteur-section > p { max-width: 820px; color: var(--muted); }
.monteur-section > :last-child { margin-bottom: 0; }
.monteur-step-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.monteur-step-heading h2 { font-size: 21px; }
.monteur-step-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.monteur-step-heading > .step-number { width: 36px; height: 36px; flex-shrink: 0; }

/* Eingabe = weiße, klare Kontur. Berechnung = ruhige Fläche ohne Eingabekontur. */
.required-indicator { display: inline-block; margin-left: 7px; color: #596779; font-size: 10px; line-height: 1.4; font-weight: 500; letter-spacing: 0; }
.field-legend { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.monteur-form { width: min(100%, 900px); min-width: 0; }
.form-grid, .monteur-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.monteur-form label, .workflow-setting label, .workflow-note label { font-size: 14px; line-height: 1.5; font-weight: 600; }
.monteur-form label > small, .monteur-form .field-hint { margin-top: 7px; font-size: 13px; line-height: 1.55; font-weight: 400; }
.monteur-form .fineprint, .workflow-note .fineprint, .workflow-setting .fineprint { font-size: 13px; line-height: 1.6; }
.monteur-form input:not([type="checkbox"]):not([type="radio"]), .monteur-form select { min-height: 48px; font-size: 16px; }
textarea { width: 100%; border: 1px solid #8692A3; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; padding: 12px; }
textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px #285CC421; }
input::placeholder, textarea::placeholder { color: #657287; opacity: 1; }
input[readonly], textarea[readonly] { background: #F0F2F5; border-color: #C9D1DD; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.monteur-form fieldset:not(.monteur-choices):not(.choice-field) { min-width: 0; margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 9px; }
.monteur-form fieldset > legend { max-width: 100%; padding: 0 7px; font-size: 15px; font-weight: 650; }
.monteur-form .wide-label { grid-column: 1 / -1; margin: 0; }
.monteur-form .check-label, .workflow-setting .check-label, .workflow-note .check-label { align-items: flex-start; gap: 12px; min-height: 48px; margin: 18px 0; padding: 14px; border: 1px solid #C8D2E0; border-radius: 8px; background: #fff; font-size: 14px; line-height: 1.6; font-weight: 500; }
.check-label input { flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--blue); }
.monteur-form .check-label input { margin-top: 2px; }
.check-label:has(input:checked) { border-color: #829ED0; background: #F6F9FE; }
.monteur-form .form-note { font-size: 14px; line-height: 1.6; }
.form-note-success { border-left-color: #3C815C; background: #EFF7F2; color: #2D6546; }
.simple-result { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: #F2F4F7; border: 0; border-radius: 8px; margin: 20px 0; }
.simple-result > span { padding: 18px; border-color: #DCE2EA; }
.simple-result small { font-size: 10px; letter-spacing: .055em; }
.simple-result b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.workflow-target { padding: 20px; margin: 20px 0; background: #F1F4F8; border: 0; border-left: 3px solid #8DA0BB; border-radius: 8px; }
.workflow-target > small { color: #52647E; font-size: 11px; letter-spacing: .06em; }
.workflow-target > strong { color: #253D62; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.workflow-target .simple-result { margin-bottom: 8px; }
.workflow-target p { font-size: 14px; line-height: 1.6; }
.monteur-help, .workflow-inline-help { margin: 22px 0; padding: 18px 20px; border: 1px solid #E0E5EB; border-radius: 8px; background: #F6F7F9; color: #526176; font-size: 14px; line-height: 1.65; }
.monteur-help h3 { margin: 0 0 7px; color: #3B4A60; font-size: 15px; }
.monteur-help p { margin: 7px 0; }
.monteur-help p:first-child { margin-top: 0; }
.monteur-help p:last-child { margin-bottom: 0; }
.monteur-help ol, .monteur-help ul { margin: 8px 0; padding-left: 22px; }
.monteur-help li + li { margin-top: 8px; }
.monteur-help a { color: var(--blue); text-underline-offset: 3px; }
.monteur-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 18px 0; padding: 0; border: 0; }
.monteur-choices > legend { margin-bottom: 12px; color: #344154; font-size: 15px; font-weight: 650; }
.monteur-choice { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; padding: 16px; border: 1px solid #AEBCCD; border-radius: 9px; background: #fff; color: var(--ink); line-height: 1.55; cursor: pointer; }
.monteur-choice > input { width: 21px; min-height: 21px; height: 21px; flex: 0 0 21px; margin: 0; accent-color: var(--blue); }
.monteur-choice:has(input:checked) { border-color: var(--blue); background: #F3F7FE; box-shadow: inset 0 0 0 1px var(--blue); }
.monteur-choice b, .monteur-choice strong { display: block; font-size: 14px; }
.monteur-choice small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.monteur-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 8px; }
.monteur-actions > p { flex-basis: 100%; margin: 0 0 4px; color: var(--muted); }
.monteur-expert, .workflow-details { margin: 20px 0 0; padding: 4px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.monteur-expert > summary, .workflow-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0; list-style: none; color: #506079; font-size: 13px; font-weight: 550; cursor: pointer; }
.monteur-expert > summary::-webkit-details-marker, .workflow-details > summary::-webkit-details-marker { display: none; }
.monteur-expert > summary::after, .workflow-details > summary::after { content: "+"; flex-shrink: 0; font-size: 19px; color: #7A889D; font-weight: 400; }
.monteur-expert[open] > summary::after, .workflow-details[open] > summary::after { content: "−"; }
.monteur-expert a { color: var(--blue); }
.monteur-expert p { max-width: 820px; line-height: 1.65; }
.monteur-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; color: #53647C; font-size: 13px; }
.monteur-progress progress { width: 180px; max-width: 100%; height: 7px; accent-color: var(--blue); }

/* Wiederkehrende Listen, Auswahlkarten und Protokollflächen. */
.system-picker { gap: 16px; margin: 28px 0; }
.system-choice-content { min-height: 196px; padding: 24px; gap: 15px; border: 1px solid #AAB9CE; border-radius: 11px; box-shadow: none; }
.system-choice-content strong { font-size: 20px; font-weight: 650; }
.system-choice > input:checked + .system-choice-content { border-color: var(--blue); background: #F5F8FE; box-shadow: inset 0 0 0 1px var(--blue); }
.system-choice > input:checked + .system-choice-content .system-symbol { background: #E9F0FD; border-color: #C9D8F2; color: var(--blue); }
.workflow-card, .workflow-note, .workflow-setting { border-radius: 12px; background: #fff; }
.workflow-card { padding: 22px; border: 1px solid #DCE2EA; }
.workflow-card:not(:has(> .system-symbol)) { display: flex; }
.workflow-card h3 { font-size: 20px; }
.workflow-card p { font-size: 14px; }
.workflow-card > strong { font-size: 13px; font-weight: 600; }
.workflow-card:hover, .workflow-system:hover, .system-choice:hover .system-choice-content { box-shadow: 0 3px 10px #243B6008; border-color: #8BA3C8; }
.workflow-footer { margin: 26px 0; padding-top: 18px; border-top: 1px solid var(--line); gap: 20px; }
.workflow-footer p, .workflow-footer > span { font-size: 13px; }
.workflow-note > summary { font-size: 14px; font-weight: 550; }
.workflow-note h2, .workflow-setting h2 { font-size: 21px; }
.workflow-temperature { border-radius: 9px; }
.room-list { display: grid; gap: 8px; }
.room-row { border-radius: 9px; padding: 17px 20px; box-shadow: none; transition: background-color .15s, border-color .15s; }
.room-row:hover { background: #FDFEFF; border-color: #9AAFCF; transform: none; }
.room-row b { font-size: 15px; font-weight: 600; }
.room-row small { margin-top: 4px; font-size: 12px; }
.room-row i { color: #6C7F9D; background: transparent; }
.floor-title { margin: 24px 0 6px; color: #62718A; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.coverage-strip { box-shadow: none; border-radius: 10px; }
.emitter-card, .add-emitter { border-radius: 11px; box-shadow: none; }
.emitter-icon { background: #F0F3F8; border-radius: 9px; }
.emitter-icon svg { width: 28px; height: 28px; }
.emitter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.emitter-actions .button { min-height: 48px; }
.view-room_show .workflow-tabs { display: grid; grid-template-columns: 1fr 1.55fr .8fr; }
.room-hero .heat-load { margin-top: 14px; padding: 20px; border: 0; border-left: 3px solid #8DA0BB; border-radius: 8px; background: #F0F3F8; box-shadow: none; }
.room-hero .heat-load strong { color: #253D62; font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.emitter-result b { color: #253D62; font-variant-numeric: tabular-nums; }
.choice-field label > span { border-radius: 8px; }
.choice-field input:checked + span { box-shadow: inset 0 0 0 1px var(--blue); background: #F3F7FE; }
.choice-field input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.status { font-size: 11px; font-weight: 550; letter-spacing: 0; border-radius: 5px; }
.metric-row { gap: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.metric { min-height: 0; padding: 0 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric strong { margin-top: 5px; font-size: 20px; font-weight: 600; }
.metric small { font-size: 10px; letter-spacing: .06em; }
.project-card { display: flex; flex-direction: column; min-height: 220px; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.project-card:hover { transform: none; border-color: #9AAFCF; box-shadow: 0 4px 12px #243B600B; }
.project-card h2 { margin: 25px 0 4px; font-size: 21px; }
.project-card p { font-size: 13px; margin: 5px 0 20px; }
.card-action { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 550; }
.card-action i { width: 28px; height: 28px; border-radius: 7px; background: #F0F4FA; color: var(--blue); }
.readiness-card { border-left-width: 3px; }
.readiness-card > div > strong { font-size: 20px; }
.readiness-metrics span { background: #F3F5F8; border-radius: 7px; }
.view-completion .monteur-section > .monteur-grid { display: block; }
.view-completion .monteur-task { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 1.4fr) auto; align-items: start; gap: 20px; padding: 20px 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.view-completion .monteur-task:last-child { border-bottom: 0; }
.view-completion .monteur-task:hover { background: #F5F8FC; box-shadow: none; }
.view-completion .monteur-task h3 { font-size: 15px; line-height: 1.5; }
.view-completion .monteur-task ul { margin: 0; padding-left: 17px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.view-completion .monteur-task li + li { margin-top: 5px; }
.view-completion .monteur-task .task-action { margin: 0; align-self: center; font-size: 12px; white-space: nowrap; }
.report-list a, .instruction-steps li, .information-jumps a { border-radius: 9px; box-shadow: none; }
.instruction-icon { background: #36567F; border-radius: 9px; }
.flash { border-radius: 8px; }
.auth-copy h1 { font-size: clamp(38px, 4.5vw, 60px); line-height: 1.08; }
.auth-stage { gap: 56px; }
.auth-card { border-radius: 14px; box-shadow: 0 8px 30px #243B6009; }

/* Fokus und Bewegung: sichtbar, stabil, ohne springende Klickflächen. */
.monteur-task:focus-visible, .project-nav a:focus-visible, .monteur-nav a:focus-visible,
.monteur-choice:focus-within, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
@media (min-width: 901px) {
  .view-project_show .shell > .back-link { display: none; }
  .project-sidebar { position: sticky; top: 64px; align-self: start; min-height: calc(100vh - 64px); }
}
@media (min-width: 1500px) {
  .app-frame-project { grid-template-columns: 226px minmax(0, 1fr); }
  .shell { padding-left: 44px; padding-right: 44px; }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .app-frame-project { grid-template-columns: 180px minmax(0, 1fr); }
  .shell { padding: 28px 26px 56px; }
  .project-sidebar { padding-inline: 10px; }
  .monteur-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-picker { gap: 10px; }
  .system-choice-content { padding: 20px; }
}
@media (max-width: 900px) {
  .app-frame-project { display: block; }
  .project-sidebar { padding: 10px 24px; border-right: 0; border-bottom: 1px solid var(--line); background: #fff; }
  .sidebar-back, .sidebar-label, .sidebar-note { display: none; }
  .project-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .project-nav a { justify-content: center; padding: 10px 7px; gap: 7px; font-size: 12px; }
  .project-nav a[aria-current] { background: #EDF3FF; border-color: #D6E2F7; box-shadow: none; }
  .shell { padding: 26px 24px 48px; }
  .monteur-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-heading { align-items: flex-start; }
  .monteur-next { gap: 18px; }
  .monteur-next > .button { flex-shrink: 1; }
}
@media (max-width: 700px) {
  .topbar { padding: 7px 16px; gap: 12px; min-height: 60px; }
  .user-menu { gap: 9px; }
  .user-menu > span { display: none; }
  .brand small { display: none; }
  .brand b { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .link-button { font-size: 12px; }
  .project-sidebar { padding: 7px 12px; }
  .project-nav a { flex-direction: column; gap: 4px; min-height: 56px; padding: 7px 2px; font-size: 11px; }
  .nav-icon svg { width: 18px; height: 18px; }
  .shell { padding: 22px 16px 40px; }
  .site-footer { padding: 18px 16px; }
  .shell > .back-link { margin: -10px 0 8px; font-size: 12px; }
  .shell > .page-head { margin-bottom: 22px; }
  h1, .shell > .page-head h1, .monteur-hero h1 { font-size: 27px; }
  .project-heading { gap: 12px; }
  .project-heading .identity-editor { align-self: flex-start; }
  .identity-editor > summary { font-size: 12px; }
  .identity-editor form { grid-template-columns: 1fr; }
  .monteur-dashboard { gap: 20px; }
  .monteur-next { display: grid; gap: 16px; padding: 18px; }
  .monteur-next h2 { font-size: 19px; }
  .monteur-next > .button { width: 100%; min-height: 48px; }
  .monteur-dashboard > .section-head-inline { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: -6px; }
  .monteur-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .view-plant .monteur-grid { grid-template-columns: minmax(0, 1fr); }
  .view-completion .monteur-task { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 18px 0; }
  .view-completion .monteur-task h3 { font-size: 16px; }
  .view-completion .monteur-task .task-action { min-height: 32px; }
  .monteur-task, .project-task-grid .monteur-task { min-height: 0; gap: 12px; padding: 19px; }
  .task-heading h2 { font-size: 18px; }
  .project-task-grid .task-status { margin-top: 3px; }
  .monteur-hero { display: block; margin-bottom: 20px; }
  .monteur-hero > .button { margin-top: 18px; }
  .monteur-nav, .workflow-tabs { margin: 20px 0; gap: 3px; padding: 3px; }
  .monteur-nav > a, .monteur-nav > span, .workflow-tabs > a { min-height: 48px; padding: 8px 5px; font-size: 12px; }
  .monteur-section { padding: 20px; }
  .monteur-step-heading h2, .workflow-note h2, .workflow-setting h2 { font-size: 20px; }
  .monteur-choices { grid-template-columns: minmax(0, 1fr); }
  .monteur-help, .workflow-inline-help { padding: 16px; }
  .monteur-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .monteur-actions .button { width: 100%; white-space: normal; }
  .form-grid, .monteur-form .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .monteur-form fieldset:not(.monteur-choices):not(.choice-field) { padding: 16px; }
  .monteur-form .check-label { padding: 12px; }
  .simple-result { grid-template-columns: 1fr; }
  .simple-result > span { border-right: 0; border-bottom: 1px solid #DCE2EA; padding: 15px; }
  .system-choice-content { min-height: 118px; padding: 19px 48px 19px 19px; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .system-choice-content .system-symbol { width: 40px; height: 40px; }
  .system-choice-content strong { font-size: 18px; }
  .system-choice-content small { font-size: 13px; }
  .workflow-card { padding: 20px; }
  .workflow-footer { gap: 16px; }
  .metric-row { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .metric { padding: 0 16px; }
  .metric:last-child { grid-column: 1 / -1; padding-left: 0; }
  .metric:nth-child(2) { border-right: 0; }
  .auth-copy h1 { font-size: 38px; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 12px; }
  .user-menu { gap: 5px; }
  .shell { padding-inline: 12px; }
  .monteur-section, .monteur-task { padding: 16px; }
  .system-choice-content .system-symbol { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Detailansichten gehören zur selben Oberfläche – auch im geöffneten Zustand. */
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) {
  min-width: 0; margin: 18px 0 0; padding: 0 20px; border: 1px solid #D6DDE7;
  border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.6;
}
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > summary {
  display: flex; align-items: center; gap: 14px; justify-content: space-between; min-height: 56px;
  margin: 0 -20px; padding: 15px 20px; list-style: none; border-radius: 10px;
  color: #394D69; font-size: 14px; line-height: 1.5; font-weight: 600; cursor: pointer;
}
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > summary::-webkit-details-marker { display: none; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > summary::after {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin: 0 3px 4px auto;
  border-right: 1.5px solid #657792; border-bottom: 1.5px solid #657792; transform: rotate(45deg);
}
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage)[open] { padding-bottom: 20px; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage)[open] > summary { border-bottom: 1px solid #E1E6ED; border-radius: 10px 10px 0 0; background: #F8F9FB; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage)[open] > summary::after { transform: rotate(225deg); margin-top: 6px; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > summary:hover { background: #F3F6FA; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > :not(summary) { min-width: 0; margin-top: 18px; }
details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > :last-child:not(summary) { margin-bottom: 0; }
.workflow-details > p, .monteur-expert > p, .practice-rule > p { color: #526176; font-size: 14px; line-height: 1.65; }
.workflow-details > a, .monteur-expert > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); text-underline-offset: 4px; overflow-wrap: anywhere; }
details.circuit-card { margin: 0; }
.circuit-card > summary { justify-content: flex-start; }
.circuit-card > summary > span { flex: 1; min-width: 0; }
.circuit-card > summary strong { margin-left: auto; font-size: 16px; color: #354D70; white-space: normal; }
.circuit-card > summary small { font-size: 11px; letter-spacing: .035em; }
.circuit-card > form { padding-top: 0; border-top: 0; }
.rating-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.form-grid, .rating-grid { align-items: end; }
.rating-entry .fineprint, .calculation-note, .choice-help { font-size: 12px; line-height: 1.6; }
.network-grid, .special-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.network-card, .special-card { border-radius: 10px; padding: 22px; }
.network-card .card-top, .special-card .card-top { margin-bottom: 20px; gap: 16px; }
.network-card .card-top small, .special-card .card-top small { font-size: 11px; letter-spacing: .04em; }

/* Projektunterlagen: ein klarer Kopf, getrennte Inhalte und ganze Linkzeilen. */
.resource-panel { margin: 14px 0 0; padding: 0; border: 1px solid #D6DDE7; border-radius: 11px; background: #fff; min-width: 0; }
.monteur-dashboard > .resource-panel { margin-top: 0; }
.resource-panel > summary { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 20px 22px; list-style: none; border-radius: 11px; cursor: pointer; }
.resource-panel > summary::-webkit-details-marker { display: none; }
.resource-panel > summary:hover { background: #F8FAFD; }
.resource-panel > summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid #657792; border-bottom: 1.5px solid #657792; transform: rotate(45deg); margin: 0 3px 5px 6px; }
.resource-panel[open] > summary { border-bottom: 1px solid #E1E6ED; border-radius: 11px 11px 0 0; }
.resource-panel[open] > summary::after { transform: rotate(225deg); margin-top: 7px; }
.resource-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 8px; background: #F0F3F8; color: #586D8B; }
.resource-icon svg { width: 22px; height: 22px; }
.resource-heading { flex: 1; min-width: 0; }
.resource-heading strong, .resource-heading small { display: block; }
.resource-heading strong { color: #283B57; font-size: 16px; line-height: 1.45; font-weight: 600; }
.resource-heading small { margin-top: 4px; color: #64748B; font-size: 13px; line-height: 1.5; }
.resource-meta { padding: 6px 10px; border-radius: 6px; background: #F1F4F8; color: #4E607B; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.resource-body { padding: 22px; min-width: 0; }
.resource-intro { max-width: 740px; margin: 0 0 18px; color: #526176; font-size: 14px; line-height: 1.65; }
.resource-links { display: grid; gap: 0; }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 14px 12px; border-top: 1px solid #E5E9EF; color: #2E4D7A; text-decoration: none; }
.resource-link:hover { background: #F4F7FC; border-radius: 7px; }
.resource-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 7px; }
.resource-link strong { display: block; font-size: 14px; font-weight: 600; }
.resource-link small { display: block; margin-top: 5px; color: #64748B; font-size: 13px; line-height: 1.5; }
.resource-link > span:last-child { color: #6D809E; font-size: 23px; }
.temperature-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); gap: 32px; align-items: start; }
.temperature-current .eyebrow { margin: 0 0 18px; }
.temperature-values { display: flex; gap: 36px; margin: 0; }
.temperature-values dt { color: #5C6C83; font-size: 13px; margin-bottom: 5px; }
.temperature-values dd { margin: 0; font-size: 30px; font-weight: 600; color: #263E62; font-variant-numeric: tabular-nums; line-height: 1.25; }
.temperature-values dd span { font-size: 17px; font-weight: 400; color: #667994; }
.temperature-scope { max-width: 400px; margin: 18px 0 0; color: #64748B; font-size: 13px; line-height: 1.65; }
.inline-editor { min-width: 0; border: 1px solid #BCC9DC; border-radius: 8px; background: #fff; }
.inline-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 13px 16px; color: #315586; font-size: 14px; font-weight: 550; list-style: none; cursor: pointer; }
.inline-editor > summary::-webkit-details-marker { display: none; }
.inline-editor > summary::after { content: "+"; font-size: 19px; line-height: 1; }
.inline-editor[open] > summary::after { content: "−"; }
.inline-editor > summary:hover { background: #F4F7FC; border-radius: 8px; }
.inline-editor[open] > summary { border-bottom: 1px solid #E1E6ED; }
.inline-editor form { padding: 18px 16px; }
.inline-editor .form-grid { gap: 16px; }
.inline-editor .button { margin-top: 18px; width: 100%; }
.temperature-comparison { margin: 24px 0 0; padding: 20px; background: #F3F5F8; border-radius: 8px; border-left: 3px solid #9BAEC8; }
.temperature-comparison h3 { margin: 0; color: #344B6B; font-size: 14px; font-weight: 600; }
.temperature-comparison p { margin: 8px 0 0; color: #53647C; font-size: 14px; line-height: 1.65; }
.temperature-comparison .comparison-note { color: #64748B; font-size: 12px; }
.resource-rooms { padding-top: 8px; }
.resource-rooms .room-list { gap: 0; }
.resource-rooms .floor-title { margin: 20px 12px 8px; font-size: 12px; letter-spacing: .035em; }
.resource-rooms .room-row { border: 0; border-top: 1px solid #E5E9EF; border-radius: 0; padding: 16px 12px; }
.resource-rooms .room-row:hover { border-radius: 7px; background: #F4F7FC; }

/* Wiederkehrende Formulare: Feldgruppen statt aneinanderklebender Einzelteile. */
.monteur-form:not(.checklist) > label, .monteur-form > .form-grid, .monteur-form > fieldset { margin-top: 20px; }
.monteur-form:not(.checklist) > label:first-child, .monteur-form > .form-grid:first-child { margin-top: 0; }
.monteur-form:not(.checklist) > .button, .rating-entry form > .button, .add-emitter form > .button { margin-top: 22px; }
.form-grid > .button { align-self: end; justify-self: start; }
.form-grid label, .rating-grid label { min-width: 0; }
.monteur-form textarea, textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.confirm-check { min-height: 44px; padding-block: 8px; }
input[type="file"] { height: auto; min-height: 48px; padding: 6px; font-size: 13px; line-height: 1.5; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 12px; border: 1px solid #C3CDDC; border-radius: 5px; background: #F1F4F9; color: #315586; font: inherit; font-weight: 550; cursor: pointer; }
.file-drop input { min-height: 0; }
.file-drop { border-radius: 10px; border-color: #93A5BF; background: #F8FAFD; }
.file-drop:hover { border-color: var(--blue); background: #F1F6FD; }
.file-drop:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.file-drop span { font-size: 17px; font-weight: 600; }
.file-drop small { font-size: 13px; }
.checklist { gap: 12px; }
.check-row { grid-template-columns: minmax(0, 1.1fr) minmax(170px, .65fr) minmax(0, 1fr); gap: 22px; align-items: end; padding: 20px; border-radius: 9px; }
.check-item { align-self: center; }
.check-item b { font-size: 14px; line-height: 1.55; font-weight: 600; }
.check-item small { margin-top: 5px; font-size: 12px; }
.check-row .check-field-label { display: block; margin-bottom: 8px; color: #526176; font-size: 12px; font-weight: 550; }
.checklist > .button { justify-self: start; margin-top: 10px; }

/* PDF-Prüfung: lesbare Quellen und eindeutige editierbare Felder. */
.review-section { padding: 24px; }
.review-global-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.review-field { min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.review-field.required { border-left: 0; }
.review-field label { font-size: 13px; line-height: 1.5; }
.input-with-unit { min-width: 0; }
.input-with-unit:not(.has-unit) { grid-template-columns: minmax(0, 1fr); }
.input-with-unit:not(.has-unit) > small { display: none; }
.input-with-unit small { min-width: 32px; padding-left: 8px; font-size: 12px; }
.review-unit-choice { display: block; margin-top: 14px; }
.review-unit-choice select { margin-top: 6px; }
.source-details { margin-top: 6px; color: #596B84; font-size: 12px; }
.source-details > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 40px; padding: 7px 0; list-style: none; cursor: pointer; font-size: 12px; font-weight: 500; }
.source-details > summary::-webkit-details-marker { display: none; }
.source-details > summary > small { margin-left: auto; font-size: 11px; color: #65758B; }
.source-details > summary::after { content: "+"; font-size: 17px; line-height: 1; color: #76869C; }
.source-details[open] > summary::after { content: "−"; }
.source-details > summary:hover { color: var(--blue); }
.source-detail-body { padding: 12px; background: #EEF2F7; border-radius: 6px; }
.source-reference { margin: 0 0 10px; line-height: 1.6; overflow-wrap: anywhere; }
.source-details .source-detail-body label { justify-content: space-between; margin: 0; gap: 8px; font-size: 12px; font-weight: 500; }
.source-details .page-input { width: 76px; flex: 0 0 76px; min-height: 44px; font-size: 14px; margin: 0; }
.floor-name-field label { display: block; font-size: 13px; }
.floor-name-field input { min-width: 0; width: 100%; min-height: 48px; margin-top: 8px; font-size: 17px; font-weight: 550; }
.floor-review .review-section-head > div { width: min(100%, 460px); }
.floor-review .review-section-head > span { flex-shrink: 0; padding-top: 4px; }
.room-review-list { gap: 0; }
.room-review-card { grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 24px 0; border: 0; border-top: 1px solid #DFE5EE; border-radius: 0; background: transparent; }
.room-review-number { width: 30px; height: 30px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.room-review-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 22px; align-items: start; }
.room-review-field { grid-column: span 2; }
.room-review-field:nth-child(2) { grid-column: span 4; }
.room-review-field input { min-height: 48px; }
.confirm-box { padding: 20px; border-radius: 9px; }
.confirm-box > b { font-size: 14px; font-weight: 600; }
.confirm-box p { line-height: 1.65; }
.sticky-confirm { padding: 14px; border-radius: 9px; box-shadow: 0 3px 14px #243B6010; }

/* Zugang, Hilfen und Betreiberansichten verwenden dieselben Rollen. */
.auth-fields { display: grid; gap: 22px; }
.auth-fields label { margin: 0; }
.auth-actions { margin-top: 28px; }
.auth-account-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-account-note .fineprint { margin: 0; font-size: 12px; line-height: 1.65; color: #64748B; }
.auth-card-heading { margin-bottom: 24px; }
.information-topic-icon svg, .instruction-icon svg { width: 24px; height: 24px; }
.instruction-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
.instruction-timeline li { grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.instruction-timeline li:first-child { padding-top: 2px; }
.instruction-timeline li:last-child { border-bottom: 0; padding-bottom: 2px; }
.instruction-timeline li > span { width: 30px; height: 30px; border-radius: 6px; background: #EDF2F8; color: #486282; font-size: 13px; font-weight: 600; }
.instruction-timeline h3 { font-size: 16px; }
.instruction-timeline p { max-width: 860px; font-size: 14px; line-height: 1.65; }
.information-summary { gap: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.information-summary > div { padding: 0 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.information-summary > div:first-child { padding-left: 0; }
.information-summary > div:last-child { padding-right: 0; border-right: 0; }
.information-summary small { font-size: 11px; letter-spacing: .035em; }
.information-summary b { font-weight: 600; font-size: 15px; }
.information-summary p { line-height: 1.65; }
.backoffice-head h3 { font-size: 19px; }
.backoffice-head > div { min-width: 0; overflow-wrap: anywhere; }
.compact-metrics { gap: 0; margin: 22px 0; background: #F3F5F8; border-radius: 8px; }
.compact-metrics > span { padding: 16px; background: transparent; border-radius: 0; border-right: 1px solid #DFE5EE; }
.compact-metrics > span:last-child { border-right: 0; }
.compact-metrics small { font-size: 10px; letter-spacing: .04em; }
.compact-metrics b { font-size: 20px; font-weight: 600; margin-top: 5px; }
.backoffice-forms { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.backoffice-forms form, .backoffice-forms form + form { display: block; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.backoffice-form-heading { margin-bottom: 18px; }
.backoffice-form-heading h3, .backoffice-users h3 { margin: 0; color: #3E526E; font-size: 15px; font-weight: 600; }
.backoffice-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.backoffice-actions { margin-top: 20px; }
.backoffice-forms form > label { max-width: 520px; }
.user-lines p { flex-wrap: wrap; align-items: baseline; gap: 5px 18px; padding: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
.backoffice-empty { padding: 24px; border-radius: 10px; }
.data-table .table-empty { padding: 26px; }
.data-table th { font-size: 11px; letter-spacing: .035em; }
.data-table td { font-size: 13px; }

/* Status und Betreiber bleiben getrennt – auch bei wenig Platz. */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; margin: 0 auto; border-top: 1px solid #DFE4EB; color: #66758A; line-height: 1.6; }
.footer-state { display: inline-flex; align-items: center; gap: 8px; }
.footer-state-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #8D9AB0; }
.footer-company { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .rating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-global-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .check-item { grid-column: 1 / -1; }
  .temperature-workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .information-summary { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .information-summary > div, .information-summary > div:first-child, .information-summary > div:last-child { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
  .information-summary > div:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 700px) {
  details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) { padding-inline: 16px; }
  .rating-grid { grid-template-columns: minmax(0, 1fr); }
  .circuit-card > summary { flex-wrap: wrap; }
  .circuit-card > summary > span { flex-basis: 100%; }
  .circuit-card > summary strong { margin-left: 0; font-size: 14px; }
  details:is(.monteur-expert, .workflow-details, .workflow-note, .advanced-fields, .practice-rule, .rating-entry, .add-emitter, .circuit-card, .backoffice-manage) > summary { margin-inline: -16px; padding: 15px 16px; }
  .resource-panel > summary { display: grid; grid-template-columns: 32px minmax(0, 1fr) 12px; gap: 10px 12px; padding: 18px 16px; }
  .resource-panel > summary::after { grid-column: 3; grid-row: 1; margin-left: 0; }
  .resource-icon { width: 32px; height: 32px; }
  .resource-icon svg { width: 20px; height: 20px; }
  .resource-heading strong { font-size: 15px; }
  .resource-heading small { font-size: 12px; }
  .resource-meta { grid-column: 2; justify-self: start; }
  .resource-body { padding: 18px 16px; }
  .resource-link { padding-inline: 4px; }
  .temperature-values { gap: 32px; }
  .temperature-values dd { font-size: 28px; }
  .temperature-comparison { padding: 16px; }
  .inline-editor .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .resource-rooms .floor-title { margin-left: 4px; }
  .resource-rooms .room-row { padding-inline: 4px; }
  .network-card, .special-card { padding: 18px; }
  .form-grid > .button, .checklist > .button { width: 100%; justify-self: stretch; }
  .check-row { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .review-section { padding: 20px 16px; }
  .review-global-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .room-review-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .room-review-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .room-review-field { grid-column: span 1; }
  .room-review-field:nth-child(1), .room-review-field:nth-child(2) { grid-column: 1 / -1; }
  .review-section-head { flex-wrap: wrap; }
  .source-details > summary > small { font-size: 11px; }
  .room-review-field .input-with-unit { grid-template-columns: minmax(0, 1fr) auto; }
  .room-review-field .input-with-unit:not(.has-unit) { grid-template-columns: minmax(0, 1fr); }
  .room-review-field:has(.source-details[open]) { grid-column: 1 / -1; }
  .backoffice-field-grid { grid-template-columns: minmax(0, 1fr); }
  .backoffice-actions .button { width: 100%; }
  .backoffice-head { flex-direction: column; gap: 12px; }
  .compact-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-metrics > span { border-bottom: 1px solid #DFE5EE; }
  .compact-metrics > span:nth-child(2) { border-right: 0; }
  .compact-metrics > span:nth-last-child(-n+2) { border-bottom: 0; }
  .information-summary { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .information-summary > div, .information-summary > div:first-child, .information-summary > div:last-child { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
  .information-summary > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .instruction-timeline li { gap: 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding: 18px 16px; }
}
@media (max-width: 480px) {
  .backoffice-actions .button { white-space: normal; height: auto; }
}

/* Übersicht und Profil: Arbeit im Mittelpunkt, Kontodaten im Kopfbereich. */
.view-dashboard .shell > .dashboard-hero {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px;
  margin: 8px 0 30px; padding: 36px 32px 36px 38px; border: 1px solid #D8E2EF; border-radius: 14px;
  background: linear-gradient(110deg, #fff 30%, #EFF4FC); isolation: isolate;
}
.dashboard-hero::before { content: ""; position: absolute; left: -1px; top: 30px; bottom: 30px; width: 4px; border-radius: 0 4px 4px 0; background: #3A66B5; }
.dashboard-heading { min-width: 0; }
.dashboard-heading .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #5E7291; font-size: 10px; letter-spacing: .11em; }
.dashboard-heading .eyebrow > span { width: 6px; height: 6px; border: 1px solid #87A1C9; border-radius: 2px; }
.view-dashboard .shell > .dashboard-hero h1 { font-size: clamp(30px, 3.1vw, 43px); letter-spacing: -.045em; line-height: 1.16; color: #233D64; }
.dashboard-hero h1 > span { font-size: inherit; font-weight: 400; color: #61758F; }
.dashboard-heading > p:last-child { max-width: 650px; margin: 14px 0 0; color: #5E6F86; font-size: 15px; line-height: 1.65; }
.dashboard-create { flex-shrink: 0; min-height: 50px; padding-inline: 20px; border-radius: 9px; }
.dashboard-create > span { font-size: 22px; font-weight: 400; line-height: 1; }
.header-profile { position: relative; min-width: 0; text-align: left; }
.header-profile > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px 6px 7px; border: 1px solid #D5DEEB; border-radius: 9px; background: #F8FAFD; color: #344E74; font-size: 13px; font-weight: 600; line-height: 1.4; list-style: none; white-space: nowrap; cursor: pointer; }
.header-profile > summary::-webkit-details-marker { display: none; }
.header-profile > summary:hover, .header-profile[open] > summary { border-color: #A8BBD7; background: #EEF3FC; }
.profile-symbol { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #CCD9EB; border-radius: 7px; background: #fff; color: #5276AD; }
.profile-chevron { width: 6px; height: 6px; margin: -3px 1px 0 3px; border-right: 1.5px solid #7087A9; border-bottom: 1.5px solid #7087A9; transform: rotate(45deg); }
.header-profile[open] .profile-chevron { transform: rotate(225deg); margin-top: 3px; }
.profile-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 340px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 88px); overflow-y: auto; padding: 22px; border: 1px solid #D5DEEB; border-radius: 12px; background: #fff; box-shadow: 0 12px 38px #1F355D20, 0 2px 6px #1F355D08; color: var(--ink); }
.profile-identity { padding-bottom: 18px; border-bottom: 1px solid #E3E8F0; }
.profile-identity .eyebrow { margin-bottom: 7px; font-size: 10px; }
.profile-identity > strong { display: block; font-size: 17px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.profile-facts { display: grid; gap: 16px; margin: 20px 0; }
.profile-facts > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 16px; font-size: 13px; line-height: 1.55; }
.profile-facts dt { color: #6A7B92; }
.profile-facts dd { margin: 0; color: #344C6F; font-weight: 550; overflow-wrap: anywhere; }
.profile-links { display: grid; padding-top: 8px; border-top: 1px solid #E3E8F0; }
.profile-links > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; color: #3D5E8E; font-size: 13px; text-decoration: none; }
.profile-links > a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.user-menu .profile-logout { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid #E3E8F0; }
.profile-logout .button { width: 100%; min-height: 44px; background: #F7F9FC; border-color: #D4DDEA; color: #536580; font-weight: 500; }
@media (max-width: 900px) {
  .view-dashboard .shell > .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 22px; padding: 28px; }
}
@media (max-width: 700px) {
  .view-dashboard .shell > .dashboard-hero { margin: 0 0 24px; padding: 25px 22px; }
  .dashboard-hero::before { top: 24px; bottom: 24px; }
  .view-dashboard .shell > .dashboard-hero h1 { font-size: 31px; }
  .dashboard-heading > p:last-child { font-size: 14px; }
  .dashboard-create { width: 100%; }
  .header-profile { position: static; }
  .header-profile > summary { min-height: 44px; gap: 7px; padding: 5px 9px 5px 5px; font-size: 12px; }
  .profile-symbol { width: 28px; height: 28px; flex-basis: 28px; }
  .profile-panel { top: calc(100% + 8px); right: 12px; left: 12px; width: auto; max-width: none; max-height: calc(100dvh - 88px); padding: 20px; }
}
@media (max-width: 360px) {
  .header-profile > summary { gap: 5px; padding-right: 7px; }
  .profile-symbol { display: none; }
  .view-dashboard .shell > .dashboard-hero h1 { font-size: 28px; }
}
.permission-readonly-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.permission-readonly-fields:disabled button { cursor: not-allowed; opacity: .55; }
.practice-related { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 24px; }
.practice-related .button { white-space:normal; text-align:left; max-width:100%; overflow-wrap:anywhere; }
.practice-page { max-width:880px; margin:0 auto; }
.practice-page .help-steps { margin:18px 0 0; }
.practice-page .help-steps p { line-height:1.7; }
.practice-page .help-takeaway { margin-bottom:24px; }
.practice-page .monteur-help { margin:24px 0; }
.practice-page details > summary { cursor:pointer; font-weight:700; }
.practice-page .help-definition-list { margin-top:22px; }
.practice-page .panel { overflow-wrap:anywhere; }
.valve-family-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:24px 0; }
.valve-family-card { display:flex; flex-direction:column; gap:12px; padding:18px; color:var(--text,#20334b); text-decoration:none; border:1px solid var(--line,#dce4e5); border-radius:16px; background:#fff; min-width:0; }
.valve-family-card:hover, .valve-family-card:focus-visible { border-color:#3568c0; box-shadow:0 0 0 2px #3568c033; }
.valve-family-card img { width:100%; height:150px; object-fit:contain; border-radius:8px; }
.valve-family-card > b { font-size:18px; line-height:1.3; }
.valve-family-card > span { line-height:1.6; }
.valve-family-card > strong { margin-top:auto; padding-top:8px; font-size:14px; color:#285aaf; }
.valve-recognition-overview { display:grid; grid-template-columns:minmax(220px,1fr) 2fr; gap:24px; align-items:start; }
.valve-reference { margin:16px 0 24px; text-align:center; }
.valve-reference img { width:100%; max-width:380px; height:240px; object-fit:contain; background:#fff; border-radius:12px; }
.valve-reference figcaption { font-size:12px; line-height:1.5; margin-top:12px; color:#52637a; }
.valve-checks { border:1px solid var(--line,#dce4e5); padding:16px; border-radius:12px; margin:16px 0; }
.valve-checks legend { font-weight:700; padding:0 6px; }
.valve-checks .check-label { margin:12px 0; }
.valve-instructions, .valve-recognition ol, .valve-recognition ul, .valve-unclear ol { padding-left:24px; }
.valve-instructions li, .valve-recognition li, .valve-unclear li, .valve-family-help li { margin:12px 0; line-height:1.7; }
.valve-setting-guide { padding:20px; margin:24px 0; border-left:4px solid #3568c0; background:#f2f6fc; border-radius:0 12px 12px 0; }
.valve-setting-figure { margin:24px 0; padding:12px; border-radius:12px; background:white; }
.valve-setting-figure img { display:block; width:auto; max-width:100%; max-height:430px; margin:auto; object-fit:contain; }
.valve-setting-figure figcaption { margin-top:12px; font-size:12px; line-height:1.6; color:#52637a; }
.valve-recognition, .valve-unclear, .valve-family-help, .valve-setting-guide { overflow-wrap:anywhere; min-width:0; }
.valve-unclear > summary { font-weight:700; cursor:pointer; }
@media (max-width:1000px) { .valve-family-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
  .valve-family-grid, .valve-recognition-overview { grid-template-columns:1fr; }
  .valve-family-card { display:grid; grid-template-columns:90px minmax(0,1fr); gap:8px 14px; padding:14px; }
  .valve-family-card img { grid-row:1 / 4; width:90px; height:110px; align-self:center; }
  .valve-family-card > b, .valve-family-card > span, .valve-family-card > strong { grid-column:2; }
  .valve-family-card > span { font-size:13px; }
  .valve-family-card > strong { padding-top:4px; }
  .valve-recognition-overview { gap:0; }
  .valve-reference img { height:200px; }
}
.view-collaboration_project .panel,
.view-collaboration_detail .panel,
.view-collaboration_inbox .panel,
.view-collaboration_error .panel { overflow-wrap:anywhere; }
.view-collaboration_project .button-row,
.view-collaboration_detail .button-row { display:flex; flex-wrap:wrap; gap:10px; }
.view-collaboration_project .button-row .button,
.view-collaboration_detail .button-row .button { white-space:normal; }
.view-collaboration_project select { width:100%; min-width:0; }
.view-collaboration_project details { margin:16px 0; }
.view-collaboration_project details > summary { font-weight:700; cursor:pointer; }
.view-collaboration_detail .panel > article + article,
.view-collaboration_inbox .panel > article + article { border-top:1px solid var(--line,#dce4e5); padding-top:16px; margin-top:16px; }
