/* DSS-Portal: gemeinsames Stylesheet aller Seiten (früher inline in HtmlRenderer.htmlKopf). */

* { box-sizing: border-box; }
body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 30px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6fb 48%, #e8f0f6 100%);
    color: #0f172a;
    font-size: 16px;
    line-height: 1.45;
}
h1 {
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #0f172a;
}
h2 {
    margin-top: 25px;
    letter-spacing: -0.02em;
    color: #0f172a;
}
input, select {
    padding: 11px 12px;
    width: 300px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: white;
    color: #0f172a;
    font: inherit;
    outline: none;
}
input:focus, select:focus {
    border-color: #0f5f8f;
    box-shadow: 0 0 0 3px rgba(15,95,143,0.16);
}
select[multiple] { height: auto; }
button {
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 12px;
    border: none;
    background: #0f5f8f;
    color: #ffffff;
    font-weight: 700;
    font: inherit;
    box-shadow: 0 7px 16px rgba(15,95,143,0.18);
}
button:hover { background: #0b4d73; color: #ffffff; }
.chatAnhang { display:block; width:auto; max-width:min(100%,420px); max-height:460px; border-radius:12px; object-fit:contain; }
.chatPending { opacity:.7; }
.chatBildAuswahl { display:grid; gap:5px; font-size:13px; }
.chatBildAuswahl input { max-width:100%; }
.birthdayGreeting { display:flex; align-items:center; gap:18px; margin:18px 0; padding:24px; border:1px solid #e1ca93; border-radius:16px; background:#fff7e4; color:#5f4618; }
.birthdayGreeting>span { font-size:38px; }
.birthdayGreeting p { margin:0; font-size:18px; font-weight:700; }
.birthdayCalendar { margin:20px 0; padding:20px; border:1px solid #ccdce6; border-radius:14px; background:#fff; }
.birthdayCalendar summary { cursor:pointer; color:#175a7d; font-size:18px; font-weight:800; }
.birthdayCalendarGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px; }
.birthdayCalendarGrid form { display:flex; gap:10px; align-items:end; padding:12px; background:#f1f7fa; border-radius:10px; }
.birthdayCalendarGrid label { flex:1; min-width:0; }
.birthdayCalendarGrid input { width:100%; margin-top:6px; }
.birthdayCalendarGrid button { width:auto; margin:0; }
button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
table { border-collapse: separate; border-spacing: 0; width: 100%; background: white; }
th, td {
    border-right: 1px solid #d6e0ea;
    border-bottom: 1px solid #d6e0ea;
    padding: 11px 12px;
    text-align: center;
    min-width: 120px;
    vertical-align: top;
}
tr:first-child th { border-top: 1px solid #d6e0ea; }
th:first-child, td:first-child { border-left: 1px solid #d6e0ea; }
th { background: #e7f1f7; color: #0f2f49; font-weight: 800; }
th small { font-weight: normal; }
th.feiertagKopf {
    background: #f59e0b;
    color: #3b2200;
    border-color: #d97706;
}
.feiertagName { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; }
td.feiertagSpalte { background: #fff7e6; }
.feiertagTagLink { background: #f59e0b !important; color: #3b2200 !important; }
.feiertagHinweis {
    background: #fff1cc;
    border: 1px solid #f59e0b;
    color: #6b3d00;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}
textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; }
td:first-child { background: #f3f4f6; font-weight: bold; text-align: left; }
.loginSeite {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loginBox {
    width: 420px;
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.loginBox h1 { margin-top: 0; }
.loginLogo { display: block; width: min(100%, 310px); height: 170px; margin: 0 auto 18px; object-fit: contain; }
.loginBox label {
    display: block;
    margin-top: 18px;
    margin-bottom: 6px;
    font-weight: bold;
}
.loginBox input { width: 100%; }
.loginBox label.rememberDevice { display:flex; align-items:center; gap:10px; margin:16px 0 6px; }
.loginBox .rememberDevice input { width:20px; height:20px; margin:0; flex:none; }
.loginBox button { margin-top: 22px; width: 100%; padding: 12px; }
.loginFehler {
    background: #ffe1e1;
    color: #b00020;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
}
.loginInfo {
    background: #e9f1ff;
    color: #174ea6;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
}
.loginHinweis { margin-top: 18px; font-size: 13px; color: #777; }
.appHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0b1728 0%, #10243a 55%, #0f5f8f 140%);
    color: white;
    padding: 26px 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.20);
}
.appHeader h1 { margin: 0; color: #f8fbff; }
.appHeader p { margin-bottom: 0; color: #d7e7f5; }
.userBox { text-align: right; line-height: 1.8; }
.userBox a {
    color: white;
    margin-left: 12px;
    text-decoration: none;
    font-weight: bold;
}
.dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.dashboardCard {
    background: #ffffff;
    padding: 25px;
    border-radius: 18px;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow: 0 8px 24px rgba(24,50,74,0.08);
    transition: 0.2s;
}
.dashboardCard:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.14);
}
.dashboardCard h2 { margin-top: 0; }
.profilKarte, .tableCard, .formular, .listenBox, .exportInfo, .exportKarte {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow: 0 10px 28px rgba(24,50,74,0.09);
    margin-bottom: 25px;
}
.tableCard { overflow-x: auto; }
.formular { max-width: 560px; }
.formular label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: bold;
}
.formular input, .formular select { width: 100%; }
.formular button { margin-top: 15px; }
.standardPasswortBox {
    background: #fff7d6;
    border: 1px solid #f1c232;
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    line-height: 1.5;
}
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.toolbar a {
    background: white;
    color: #0f5f8f;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(15,95,143,0.10);
    box-shadow: 0 5px 18px rgba(0,0,0,0.06);
}
.toolbar a:hover { background: #0f5f8f; color: white; }
.fertigButton { background: #10b981 !important; color: white !important; }
.planZelle {
    background: #fffdf1;
    min-height: 40px;
    cursor: pointer;
}
.planZelle:hover { background: #fff7cb; }
.schichtEintrag {
    background: #f2f8fc;
    border-left: 5px solid #0f5f8f;
    padding: 9px 10px;
    margin-bottom: 7px;
    border-radius: 12px;
    text-align: left;
    font-size: 13px;
    line-height: 1.38;
    box-shadow: 0 4px 12px rgba(15,95,143,0.10);
}
.schichtEintrag.korrekturSchicht {
    background: #f7edff !important;
    border-left-color: #8b3fc6 !important;
    box-shadow: 0 4px 14px rgba(139,63,198,0.15);
}
.korrekturPerson, .korrekturMarke {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ead7fb;
    color: #68229b;
    font-weight: 800;
}
.korrekturPerson small { color: inherit; font-size: 10px; }
.hinweis { color: #4b5563; font-weight: bold; }
.checkboxZeile {
    display: flex !important;
    gap: 8px;
    align-items: center;
    font-weight: normal !important;
}
.checkboxZeile input { width: auto; }
.modalBox .checkboxZeile input {
    width: auto !important;
    flex: 0 0 auto;
    margin: 0;
    transform: scale(1.1);
}
.optionKarte {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}
.checkboxKarte {
    background: #f8fafc;
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    padding: 12px 14px;
    align-items: flex-start;
    line-height: 1.25;
}
.checkboxKarte span {
    display: block;
}
.checkboxKarte small {
    display: block;
    margin-top: 4px;
    color: #5b6b7e;
    font-weight: 650;
    line-height: 1.35;
}
.objektErklaerung {
    background: #eef7ff;
    border: 1px solid #c9e4fb;
    border-left: 5px solid #0f5f8f;
    color: #12344f;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.45;
    font-weight: 650;
}
.objektUntertext {
    margin: 6px 0 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
}
.modalInfo {
    margin-top: 14px;
    line-height: 1.4;
}

.objektRegelBlock {
    margin-top: 14px;
}
.objektRegelBlock h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #12344f;
}
.objektModalBox {
    width: 600px;
}
.aktionBearbeiten, .aktionLoeschen, .aktionAbbrechen, .aktionWhatsapp { background: #16a34a; padding: 10px 14px; border-radius: 12px; color: white !important; border: none; text-decoration: none; font-weight: 800; display: inline-block; box-shadow: 0 7px 16px rgba(15,95,143,0.16); }
.aktionBearbeiten { background: #0f5f8f; }
.aktionBearbeiten:hover { background: #0b4d73; }
.aktionLoeschen { background: #dc4a46; }
.aktionLoeschen:hover { background: #bf3531; }
.aktionAbbrechen { background: #64748b; }
.aktionAbbrechen:hover { background: #475569; }
.aktionWhatsapp { background: #16a34a; padding: 10px 14px; border-radius: 10px; color: white; border: none; text-decoration: none; font-weight: bold; }
.aktionAssistent { background: #0f5f8f; padding: 10px 14px; border-radius: 10px; color: white; }
.aktionReset { background: #b42318; padding: 10px 14px; border-radius: 10px; color: white; }
.grossButton { font-size: 17px; padding: 14px 18px !important; box-shadow: 0 8px 18px rgba(22,163,74,0.20); }
.schmalButton { min-width: 48px; text-align: center; padding: 10px 12px !important; }
.aktionsSpalte { white-space: nowrap; }
.inlineForm { display: inline-block; margin: 0; }
.versandTabelle th, .versandTabelle td {
    text-align: left;
    vertical-align: middle;
}
.versandTabelle th:first-child,
.versandTabelle td:first-child {
    width: 60px;
    text-align: center;
}
.versandTabelle td:first-child {
    background: transparent;
}
.gesendetZeile {
    opacity: 0.70;
    background: #f5faf7;
}
.korrekturZeile td {
    background: #f7edff !important;
    color: #52206f;
}
.aktionWeiter {
    background: #0f5f8f;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
}
.aktionWeiter:disabled {
    background: #9aaaba;
    cursor: not-allowed;
}
.aktivWeiter {
    background: #0f5f8f !important;
    box-shadow: 0 8px 18px rgba(15,95,143,0.18);
}
.kleinHinweis {
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}
.okHinweis {
    color: #0f766e;
    font-weight: bold;
}
small {
    color: #60758a;
}
.inlineForm button { vertical-align: middle; }
.exportKarte {
    border-left-color: #0f5f8f !important;
}
.exportButtons {
    align-items: center;
}
.exportKarte h2, .exportInfo h2 {
    color: #0f172a;
}
.aktuelleZeile { background: #eaf7f1; }
.brandBadge {
    display: inline-block;
    background: rgba(232,242,255,0.95);
    color: #0f5f8f;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.4px;
}
.siteFooter {
    margin-top: 30px;
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid #d9e6f3;
    color: #496786;
    font-size: 14px;
}
.siteFooter a {
    color: #0f5f8f;
    font-weight: bold;
    text-decoration: none;
}
.siteFooter a:hover { text-decoration: underline; }
.brandSubline {
    color: #54779a;
    margin-top: 6px;
}
.exportKarte {
    border-left: 6px solid #1f5eff;
    max-width: 980px;
}
.exportKopf {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.exportText {
    background: #f8fafc;
    border: 1px solid #d6dbe6;
    padding: 22px 24px;
    border-radius: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    white-space: pre-wrap;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #111827;
}
.exportButtons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.exportHinweis {
    color: #b45309;
    background: #fff7d6;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: bold;
}
.gesendetBox {
    background: #eef2ff;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: bold;
}
.gesendetBox input { width: auto; }
.statusGesendet {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: bold;
}
.statusOffen {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: bold;
}
.druckTitel { display: none; }
.druckTabelle td, .druckTabelle th { font-size: 12px; }
@media print {
    body { background: white; padding: 0; }
    .noPrint, .appHeader { display: none !important; }
    .druckTitel { display: block; margin-bottom: 15px; }
    table { box-shadow: none; }
}

.modalHintergrund {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 12000;
}
.modalBox {
    background: white;
    padding: 28px;
    border-radius: 22px;
    width: 520px;
    max-height: 90vh;
    max-height: calc(100dvh - 36px);
    margin: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(148,163,184,0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
}
.modalBox h2 { margin-top: 0; }
.modalBox label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: bold;
}
.modalBox input, .modalBox select { width: 100%; }
.modalButtons { margin-top: 20px; }
.modalButtons button { margin-right: 8px; }
.feldInfo {
    background: #f3f4f6;
    padding: 8px;
    border-radius: 10px;
    font-weight: bold;
}
.personenListe {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #ccd3df;
    border-radius: 10px;
    padding: 10px;
    background: #f9fafb;
}
.personOption {
    display: block;
    padding: 5px;
    font-weight: normal !important;
}
.personOption input {
    width: auto;
    margin-right: 6px;
}
.nachtInfo {
    background: #e9f1ff;
    color: #174ea6;
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
}
.nachtInfo.aktiv {
    background: #fff7d6;
    color: #92400e;
}

.tageKopie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: #f8fafc;
    border: 1px solid #d6e0ea;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.tageKopie label {
    margin: 0 !important;
    font-weight: normal !important;
}

.tageKopie input {
    width: auto;
    margin-right: 6px;
}
.miniButton, .miniLink {
    display: inline-block;
    border: none;
    padding: 4px 7px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    margin-top: 5px;
    cursor: pointer;
}
.miniButton { background: #0f5f8f; }
.miniLink { background: #d9534f; }

.aktionBearbeiten:hover, .aktionLoeschen:hover, .aktionWhatsapp:hover, .aktionWeiter:hover, button:hover {
    transform: translateY(-1px);
}
.miniButton:hover, .miniLink:hover { filter: brightness(0.92); }
a { transition: background 0.18s, color 0.18s, transform 0.18s; }
button, .aktionBearbeiten, .aktionLoeschen, .aktionAbbrechen, .aktionWhatsapp, .miniButton, .miniLink { transition: background 0.18s, transform 0.18s, box-shadow 0.18s; }
@media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
    .appHeader { display: block; }
    .userBox { text-align: left; margin-top: 15px; }
}

.sollWocheTabelle input, .sollWocheTabelle select {
    width: 100%;
    min-width: 95px;
}
.pruefungPflicht td {
    background: #ffe7e7 !important;
    color: #8a1020;
    font-weight: bold;
}
.pruefungWarnung td {
    background: #fff6d7 !important;
    color: #6b4a00;
}
.objektModalBox {
    max-width: 1050px;
    width: 95%;
}
:root {
    --pi-navy-950: #0c1b2a;
    --pi-navy-900: #10263a;
    --pi-navy-800: #173b57;
    --pi-blue-700: #245f84;
    --pi-blue-600: #2e739c;
    --pi-blue-100: #eaf3f8;
    --pi-blue-50: #f4f8fb;
    --pi-surface: #ffffff;
    --pi-surface-soft: #f8fafc;
    --pi-border: #dbe4ea;
    --pi-border-strong: #c8d5de;
    --pi-text: #17212b;
    --pi-text-soft: #5f6f7d;
    --pi-success: #2f7d5c;
    --pi-success-soft: #e9f5ef;
    --pi-warning: #b86b18;
    --pi-warning-soft: #fff3df;
    --pi-danger: #b94b4b;
    --pi-danger-soft: #fbecec;
    --pi-radius-sm: 8px;
    --pi-radius: 12px;
    --pi-radius-lg: 18px;
    --pi-shadow-sm: 0 3px 12px rgba(20, 45, 65, 0.07);
    --pi-shadow: 0 12px 30px rgba(20, 45, 65, 0.10);
    --pi-focus: 0 0 0 3px rgba(46, 115, 156, 0.16);
    --pi-app-max-width: 1560px;
    --pi-page-gutter: 20px;
}

html { background: #edf3f7; }
body {
    width: min(100%, var(--pi-app-max-width));
    max-width: var(--pi-app-max-width);
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    background: #edf3f7;
    color: var(--pi-text);
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
h1, h2, h3 { color: var(--pi-text); line-height: 1.2; }
h1 { font-size: clamp(28px, 2.4vw, 38px); margin: 0 0 16px; }
h2 { font-size: 23px; margin: 24px 0 14px; }
h3 { font-size: 18px; }
p { color: var(--pi-text-soft); }
a { color: var(--pi-blue-700); }

input, select, textarea {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--pi-border-strong);
    border-radius: var(--pi-radius);
    background: var(--pi-surface);
    color: var(--pi-text);
    box-shadow: inset 0 1px 2px rgba(15, 35, 50, 0.03);
    transition: border-color .16s, box-shadow .16s, background .16s;
}
textarea { min-height: 92px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #aebfca; }
input:focus, select:focus, textarea:focus {
    border-color: var(--pi-blue-600);
    box-shadow: var(--pi-focus);
}

button,
.aktionBearbeiten, .aktionLoeschen, .aktionAbbrechen,
.aktionWhatsapp, .aktionAssistent, .aktionReset,
.aktionWeiter, .miniButton, .miniLink {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: none;
    font-weight: 700;
    letter-spacing: 0;
    transform: none;
}
button, .aktionBearbeiten, .aktionAssistent, .aktionWeiter, .miniButton {
    background: var(--pi-blue-700);
    color:#ffffff !important;
}
button:hover, .aktionBearbeiten:hover, .aktionAssistent:hover,
.aktionWeiter:hover, .miniButton:hover {
    background: var(--pi-navy-800);
    transform: none;
    box-shadow: var(--pi-shadow-sm);
}
.aktionLoeschen, .aktionReset, .miniLink {
    background: var(--pi-danger-soft);
    border-color: #efcaca;
    color: #943b3b !important;
}
.aktionLoeschen:hover, .aktionReset:hover, .miniLink:hover {
    background: #f5dcdc;
    color: #7e3030 !important;
    transform: none;
}
.aktionAbbrechen {
    background: #eef2f5;
    border-color: var(--pi-border);
    color: #465764 !important;
}
.aktionAbbrechen:hover { background: #e1e8ed; transform: none; }
.aktionWhatsapp {
    background: var(--pi-success-soft);
    border-color: #cce8d9;
    color: #246448 !important;
}
button:disabled { background: #dce4e9; color: #81909a !important; opacity: 1; }
.grossButton { font-size: 15px; padding: 11px 16px !important; box-shadow: none; }

.appHeader {
    background: var(--pi-navy-900);
    padding: 24px 28px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--pi-radius-lg);
    margin-bottom: 22px;
    box-shadow: var(--pi-shadow);
}
.appHeader h1 { font-size: clamp(27px, 2.2vw, 36px); }
.appHeader p { color: #bfd0dc; }
.userBox { color: #d6e1e8; }
.userBox a {
    display: inline-block;
    margin: 4px 0 4px 14px;
    padding: 6px 0;
    color: #f5f8fa;
    font-size: 14px;
}
.userBox a:hover { color: #b9dced; }
.brandBadge {
    background: #e8f2f7;
    color: var(--pi-navy-800);
    padding: 5px 10px;
    font-size: 11px;
    box-shadow: none;
}

.dashboard { gap: 15px; }
.dashboardCard,
.profilKarte, .tableCard, .formular, .listenBox,
.exportInfo, .exportKarte {
    background: var(--pi-surface);
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-lg);
    box-shadow: var(--pi-shadow-sm);
}
.dashboardCard { padding: 22px; }
.dashboardCard:hover {
    transform: translateY(-2px);
    border-color: #bfd0db;
    box-shadow: var(--pi-shadow);
}
.dashboardCard h2 { font-size: 21px; margin: 0 0 10px; }
.dashboardCard p { margin: 0; }
.profilKarte, .tableCard, .formular, .listenBox, .exportInfo, .exportKarte {
    padding: 22px;
    margin-bottom: 20px;
}

.toolbar { gap: 8px; margin-bottom: 18px; }
.toolbar a {
    background: var(--pi-surface);
    color: var(--pi-navy-800);
    padding: 9px 13px;
    border: 1px solid var(--pi-border);
    border-radius: 10px;
    box-shadow: none;
}
.toolbar a:hover {
    background: var(--pi-blue-50);
    color: var(--pi-navy-900);
    border-color: #bccdd7;
}
.fertigButton { background: var(--pi-success) !important; }

table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}
th, td {
    padding: 11px 12px;
    border-color: var(--pi-border);
}
th {
    background: #eaf1f5;
    color: #203747;
    font-size: 14px;
    font-weight: 750;
}
td:first-child { background: #f5f8fa; }
tr:hover td { background-color: #f9fbfc; }
tr:hover td:first-child { background-color: #eef3f6; }
.planZelle { background: #fff; }
.planZelle:hover { background: #f1f7fa; }
.schichtEintrag {
    background: #f4f8fa;
    border-left: 4px solid var(--pi-blue-600);
    border-radius: 9px;
    box-shadow: none;
}

.loginSeite { min-height: calc(100vh - 120px); }
.loginBox {
    width: min(430px, 100%);
    padding: 32px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-lg);
    box-shadow: var(--pi-shadow);
}
.loginFehler, .loginInfo, .feiertagHinweis, .nachtInfo,
.standardPasswortBox, .objektErklaerung {
    border-radius: 10px;
    box-shadow: none;
}
.loginFehler { background: var(--pi-danger-soft); color: #903b3b; }
.loginInfo, .nachtInfo { background: var(--pi-blue-100); color: #285b78; }
.standardPasswortBox { background: var(--pi-warning-soft); border-color: #eccb9e; }

.modalHintergrund {
    background: rgba(12, 27, 42, .48);
    backdrop-filter: blur(5px);
    padding: 18px;
}
.modalBox {
    width: min(620px, 96vw);
    padding: 26px;
    border-radius: var(--pi-radius-lg);
    border: 1px solid var(--pi-border);
    box-shadow: 0 28px 70px rgba(12,27,42,.24);
}
.modalBox h2 { font-size: 24px; margin-bottom: 18px; }
.modalButtons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--pi-border);
}
.modalButtons button { margin: 0; }
.personenListe {
    max-height: 310px;
    border-color: var(--pi-border);
    background: #fbfcfd;
}

.checkboxKarte, .tageKopie, .feldInfo, .exportText {
    background: var(--pi-surface-soft);
    border-color: var(--pi-border);
    box-shadow: none;
}
.checkboxKarte:hover { background: #f2f6f8; }

.feiertagKopf, th.feiertagKopf {
    background: #d9913d;
    color: #3f2b14;
    border-color: #c47f30;
}
td.feiertagSpalte { background: #fff7eb; }
.feiertagTagLink { background: #d9913d !important; color: #3f2b14 !important; }
.feiertagHinweis { background: #fff3df; border-color: #e5b779; color: #704818; }

.statusGesendet { background: var(--pi-success-soft); color: #286248; }
.statusOffen { background: var(--pi-danger-soft); color: #923c3c; }
.pruefungPflicht td { background: #faeded !important; color: #8a3535; }
.pruefungWarnung td { background: #fff5e5 !important; color: #75501e; }

.siteFooter {
    color: #6c7e8b;
    border-color: #d7e1e7;
}

@media (max-width: 1100px) {
    body { padding: 18px; }
    .dashboard { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    body { padding: 10px; }
    .dashboard { grid-template-columns: 1fr; }
    .appHeader { padding: 20px; border-radius: 14px; }
    .userBox a { margin-left: 0; margin-right: 12px; }
    .profilKarte, .tableCard, .formular, .listenBox, .exportInfo, .exportKarte { padding: 15px; }
    .modalBox { padding: 20px; }
}
body { padding-top: 104px; }
body.hatUnterNavigation { padding-top: 148px; }
.globalNav {
    position: fixed; top: 14px; left: 20px; right: 20px; z-index: 9000;
    min-height: 70px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 22px;
    padding: 11px 16px; border: 1px solid rgba(148,163,184,.35);
    border-radius: 18px; background: rgba(255,255,255,.94);
    box-shadow: 0 12px 35px rgba(15,23,42,.10); backdrop-filter: blur(14px);
}
.globalBrand { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 9px; min-width: 172px; color: #102a43; text-decoration: none; }
.globalBrand img { width: 48px; height: 42px; flex: 0 0 auto; border-radius: 8px; object-fit: contain; background: #fff; }
.globalBrand strong, .globalBrand small, .globalNavUser strong, .globalNavUser small { display: block; }
.globalBrand strong { font-size: 18px; letter-spacing: -.02em; }
.globalBrand small, .globalNavUser small { color: #64748b; font-size: 12px; }
.globalNavLinks { display: flex; align-items: center; gap: 4px; }
.globalNavMain { grid-column: 2; grid-row: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.globalNavLink { padding: 9px 12px; border-radius: 10px; color: #475569; text-decoration: none; font-weight: 650; white-space: nowrap; }
.globalNavLink:hover { background: #eef4f8; color: #123a5a; }
.globalNavLink.aktiv { background: #dceaf3; color: #0d4d73; }
.globalNavBereich { font-weight: 760; }
.globalNavUser { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 12px; }
.globalNavUser > a:first-child { color: #1e293b; text-decoration: none; text-align: right; }
.globalLogout { padding: 9px 12px; border-radius: 10px; background: #f1f5f9; color: #334155; text-decoration: none; font-weight: 700; }
.globalLogout:hover { background: #e2e8f0; }
.globalNavSub { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 5px; min-width: 0; padding-top: 8px; overflow-x: auto; border-top: 1px solid #e2e8f0; scrollbar-width: thin; }
.globalNavSubTitel { margin-right: 5px; padding: 0 8px; color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.globalNavSub .globalNavLink { padding: 7px 11px; font-size: 13px; }
.appHeader .userBox { display: none; }
.dashboardPage { max-width: 1320px; margin: 0 auto; }
.dashboardWelcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 22px; color: #f8fafc; background: linear-gradient(125deg, #102a43 0%, #174d70 100%); box-shadow: 0 18px 46px rgba(15,42,67,.20); }
.dashboardWelcomeBrand { display: inline-flex; align-items: center; gap: 12px; color: #cfe6f3; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.dashboardWelcomeBrand img { width: 78px; height: 62px; padding: 3px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.dashboardWelcome h1 { color: white; margin: 5px 0 8px; font-size: clamp(30px, 4vw, 46px); }
.dashboardWelcome p { margin: 0; color: #d5e4ee; max-width: 680px; }
.eyebrow { color: #9fc7dd; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.dashboardUser { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(255,255,255,.08); }
.dashboardUser strong, .dashboardUser span { display: block; }
.dashboardUser div span { color: #c7dce9; font-size: 13px; }
.dashboardAvatar { display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e6f1f7; color: #123a5a; font-weight: 800; }
.dashboardSectionHeader { display: flex; align-items: end; justify-content: space-between; margin: 30px 2px 14px; }
.dashboardSectionHeader h2 { margin: 0 0 4px; }
.dashboardSectionHeader p { margin: 0; color: #64748b; }
.dashboardGroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.dashboardGroup { padding: 18px; border: 1px solid #d8e2e8; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(15,42,67,.08); }
.dashboardGroupHeader { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; padding: 0 2px 13px; border-bottom: 1px solid #e3ebef; }
.dashboardGroupHeader strong, .dashboardGroupHeader span { display: block; }
.dashboardGroupHeader strong { color: #102a43; font-size: 20px; }
.dashboardGroupHeader div span { margin-top: 3px; color: #6b7f8d; font-size: 13px; }
.dashboardGroupCount { display: grid !important; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; color: #14577e; background: #e6f1f7; font-weight: 850; }
.dashboardGroupLinks { display: grid; gap: 9px; }
.dashboardCardModern { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 0; padding: 13px; border: 1px solid #e0e8ed; border-radius: 14px; color: #1e293b; background: #fbfcfd; box-shadow: none; }
.dashboardCardModern:hover { border-color: #b9cfdb; background: #f3f8fa; box-shadow: 0 5px 15px rgba(15,42,67,.08); }
.dashboardCardIcon { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 14px; background: #eaf2f6; color: #14577e; font-weight: 800; font-size: 12px; }
.dashboardCardContent, .dashboardCardContent > span, .dashboardCardContent > strong { display: block; }
.dashboardCardContent strong { margin: 3px 0 4px; font-size: 17px; color: #102a43; }
.dashboardCardContent > span:last-child { color: #64748b; font-size: 13px; line-height: 1.42; }
.dashboardCardMeta { color: #0f6a92; font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .04em; }
.dashboardCardArrow { color: #7890a3; font-size: 22px; transition: transform .18s ease; }
.dashboardCardModern:hover .dashboardCardArrow { transform: translateX(4px); }
.abwesenheitenAuswahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 980px) {
    body { padding-top: 138px; }
    body.hatUnterNavigation { padding-top: 182px; }
    .globalNav { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; }
    .globalBrand { grid-column: 1; grid-row: 1; }
    .globalNavUser { grid-column: 2; grid-row: 1; }
    .globalNavMain { grid-column: 1 / -1; grid-row: 2; }
    .globalNavSub { grid-column: 1 / -1; grid-row: 3; }
}

.revierSeitenAktionen { max-width: 1180px; margin: 0 auto 12px; display: flex; justify-content: flex-start; }
.revierZurueckButton { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid #cfdbe2; border-radius: 10px; background: #fff; color: #174d70 !important; text-decoration: none; font-weight: 750; box-shadow: 0 2px 8px rgba(20,45,62,.05); }
.revierZurueckButton:hover { background: #edf4f7; border-color: #b8cad4; color: #123a5a !important; }
.revierForm { max-width: 1180px; margin: 0 auto; padding: 24px; }
.revierTagNavigation { max-width: 1180px; margin: 0 auto 16px; padding: 7px; gap: 5px; background: #eef3f6; border: 1px solid #d7e1e7; border-radius: 14px; }
.revierTagNavigation a { flex: 1; min-width: 105px; text-align: center; padding: 10px 12px; border-radius: 9px; color: #516575; text-decoration: none; font-weight: 700; }
.revierTagNavigation a:hover { background: rgba(255,255,255,.75); color: #123a5a; }
.revierTagNavigation a.aktiveWoche { background: #174d70; color: #fff !important; box-shadow: 0 4px 12px rgba(23,77,112,.20); }
.revierTagNavigation a.feiertagTagLink { background: #f5e5d0 !important; color: #76512a !important; }
.revierUebersicht { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 22px; }
.revierUebersicht > div { padding: 14px 16px; border: 1px solid #dbe4e9; border-radius: 12px; background: #f7f9fa; }
.revierUebersichtLabel { display: block; margin-bottom: 3px; color: #70818d; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
.revierUebersicht strong { color: #243b4a; font-size: 16px; }
.revierKartenRaster { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.revierKarte { padding: 18px; border: 1px solid #d9e3e8; border-radius: 15px; background: #fff; box-shadow: 0 4px 15px rgba(20,45,62,.045); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.revierKarte:hover { border-color: #bdcdd6; box-shadow: 0 8px 24px rgba(20,45,62,.08); transform: translateY(-1px); }
.revierKarte.revierBelegt { border-left: 4px solid #5a8f78; }
.revierKarte.revierOffen { border-left: 4px solid #c8a16d; }
.revierKarteKopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.revierKarteKopf h3 { margin: 2px 0 0; color: #203747; font-size: 20px; }
.revierTyp { color: #788894; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.revierStatus { padding: 5px 9px; border-radius: 999px; background: #f3f5f6; color: #60717d; font-size: 12px; font-weight: 750; }
.revierBelegt .revierStatus { background: #e8f2ed; color: #3f705a; }
.revierOffen .revierStatus { background: #f7efe4; color: #82613b; }
.revierPersonButton { width: 100%; min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 11px 13px; border: 1px solid #d8e2e8; border-radius: 11px; background: #f8fafb !important; color: #293f4e !important; text-align: left; box-shadow: none; }
.revierPersonButton:hover { background: #f0f5f7 !important; border-color: #bfcfd8; color: #183f59 !important; transform: none; }
.revierPersonButton .revierPersonName { color: #293f4e !important; opacity: 1 !important; }
.revierPersonButton:hover .revierPersonName { color: #183f59 !important; }
.revierPersonIcon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e7eef2; font-size: 15px; }
.revierPersonName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.revierPersonPfeil { color: #82939e; font-size: 24px; font-weight: 400; }
.revierSonderfeld { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2e9ed; }
.revierSonderfeld textarea { resize: vertical; min-height: 92px; }
.revierEinstellungenForm { max-width: none; }
.revierTagesEinstellungen { grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); }
.revierTagesEinstellungen .dashboardCard { min-width: 0; }
.revierSpeicherLeiste { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 13px 15px; border: 1px solid #d4dfe5; border-radius: 13px; background: rgba(255,255,255,.95); box-shadow: 0 10px 28px rgba(18,48,67,.12); backdrop-filter: blur(10px); }
.revierSpeicherLeiste span { color: #657884; font-size: 13px; }
.revierPersonModalBox { width: min(720px,96vw); padding: 0; overflow: hidden; }
.revierPersonModalBox > h2, .revierPersonModalBox > label, .revierPersonModalBox > input { margin-left: 24px; margin-right: 24px; }
.revierPersonModalBox > h2 { margin-top: 24px; margin-bottom: 15px; }
.revierPersonModalBox > input { width: calc(100% - 48px); }
.revierPersonListe { max-height: min(50vh,470px); overflow: auto; margin-top: 14px; padding: 6px 14px 14px; border-top: 1px solid #e3e9ed; }
.revierPersonListenEintrag { width: 100%; display: flex; align-items: center; min-height: 48px; margin: 0; padding: 10px 12px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 8px; background: transparent !important; color: #283e4d !important; text-align: left; box-shadow: none !important; font-weight: 650; }
.revierPersonListenEintrag:hover { background: #edf4f7 !important; color: #173f59 !important; transform: none; }
.revierPersonListenEintrag.istBelegt { color: #87949d !important; background: #fafbfb !important; }
.revierPersonListenEintrag.istBelegt::after { content: 'bereits eingeteilt'; margin-left: auto; color: #a0aab0; font-size: 12px; font-weight: 600; }
.revierAuswahlEntfernen { margin-bottom: 8px; color: #7a4d4d !important; border-bottom: 1px solid #e6dede; }
.revierPersonModalBox .modalButtons { margin: 0; padding: 14px 24px 20px; background: #f8fafb; }
@media print {
    .revierSeitenAktionen, .revierTagNavigation, .revierSpeicherLeiste, .globalNav, .siteFooter, .revierPersonModalBox { display:none !important; }
    .revierForm { max-width:none; padding:0; border:0; box-shadow:none; }
    .revierKartenRaster { grid-template-columns: repeat(2,1fr); gap:8px; }
    .revierKarte { break-inside: avoid; box-shadow:none; padding:10px; }
    .revierPersonButton { border:0; padding:4px 0; min-height:auto; background:transparent; }
    body { padding:0 !important; background:white; }
}

@media (max-width: 680px) {
    body { padding-top: 138px; }
    body.hatUnterNavigation { padding-top: 182px; }
    .globalNav { left: 8px; right: 8px; top: 8px; border-radius: 14px; }
    .globalBrand { min-width: auto; }
    .globalBrand small, .globalNavUser > a:first-child { display: none; }
    .dashboardWelcome { align-items: flex-start; flex-direction: column; padding: 24px; }
    .dashboardGroups, .abwesenheitenAuswahl { grid-template-columns: 1fr; }
    .dashboardCardModern { grid-template-columns: auto 1fr; }
    .dashboardCardArrow { display: none; }
}
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
body > * { animation: piPageIn .24s ease-out both; }
@keyframes piPageIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(46,115,156,.28);
    outline-offset: 2px;
}
button, .aktionBearbeiten, .aktionLoeschen, .aktionAbbrechen,
.aktionWhatsapp, .aktionAssistent, .aktionReset, .aktionWeiter,
.dashboardCard, .dashboardCardModern, .revierKarte, .personSuchEintrag {
    will-change: transform;
}
.modalHintergrund[style*="flex"] { animation: piBackdropIn .16s ease-out both; }
.modalHintergrund[style*="flex"] .modalBox { animation: piDialogIn .20s ease-out both; }
@keyframes piBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes piDialogIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tableCard { overscroll-behavior-x: contain; scrollbar-gutter: stable; }
.tableCard table { min-width: max-content; }

/* Personalverwaltung: volle Tabellenbreite und sichtbare Aktionen */
.personalTableCard {
    width: 100%;
    max-width: none;
    overflow-x: auto;
    padding: 16px;
}
.personalTable {
    width: 100%;
    min-width: 1240px !important;
    table-layout: fixed;
}
.personalTable th,
.personalTable td {
    padding: 11px 10px;
    vertical-align: middle;
}
.personalTable th:nth-child(1), .personalTable td:nth-child(1) { width: 12%; }
.personalTable th:nth-child(2), .personalTable td:nth-child(2) { width: 12%; }
.personalTable th:nth-child(3), .personalTable td:nth-child(3) { width: 18%; }
.personalTable th:nth-child(4), .personalTable td:nth-child(4) { width: 9%; }
.personalTable th:nth-child(5), .personalTable td:nth-child(5) { width: 9%; }
.personalTable th:nth-child(6), .personalTable td:nth-child(6) { width: 10%; }
.personalTable th:nth-child(7), .personalTable td:nth-child(7) { width: 7%; }
.personalTable th:nth-child(8), .personalTable td:nth-child(8) { width: 9%; }
.personalTable th:last-child,
.personalTable td:last-child {
    width: 190px;
    min-width: 190px;
    white-space: nowrap;
}
.personalAktionen { display: flex; align-items: center; gap: 6px; }
.aktionMenue { position: relative; }
.aktionMenueKnopf {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 12px;
    border: 1px solid #c9dfe9; border-radius: 12px; background: #edf5f9; color: #175a7d;
    font-weight: 800; cursor: pointer; list-style: none; user-select: none;
}
.aktionMenueKnopf::-webkit-details-marker { display: none; }
.aktionMenueKnopf::after { content: "▾"; font-size: 12px; }
.aktionMenue[open] .aktionMenueKnopf { background: #dcebf3; border-color: #9cc4d8; }
.aktionMenueKnopf:focus-visible { outline: 3px solid rgba(15,95,143,.35); outline-offset: 2px; }
.aktionMenueListe {
    position: fixed; z-index: 8000; display: grid; min-width: 210px; padding: 6px;
    background: #fff; border: 1px solid #d4e1e8; border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 40, 60, .2);
}
.aktionMenueListe form { display: contents; }
.aktionMenueListe[hidden] { display: none; }
.aktionMenueListe button,
.aktionMenueListe a {
    display: block; width: 100%; min-height: 38px; margin: 0; padding: 9px 12px; border: none; border-radius: 8px;
    background: transparent; color: #17384c !important; box-shadow: none; text-align: left; text-decoration: none;
    font: inherit; font-weight: 650; cursor: pointer; transform: none;
}
.aktionMenueListe button:hover, .aktionMenueListe a:hover,
.aktionMenueListe button:focus-visible, .aktionMenueListe a:focus-visible { background: #edf5f9; transform: none; box-shadow: none; }
.aktionMenueGefahr { border-top: 1px solid #e3ecf1; margin-top: 4px; padding-top: 4px; display: block !important; }
.aktionMenueListe .aktionMenueGefahr .personalArchivieren { color: #8a5a00 !important; }
.aktionMenueListe .aktionMenueGefahr .personalArchivieren:hover { background: #fff6e2; }
.aktionMenueListe .aktionMenueGefahr .personalLoeschen { color: #b23b3b !important; }
.aktionMenueListe .aktionMenueGefahr .personalLoeschen:hover { background: #fbecec; }
.aktionMenueListe .aktionMenueGefahr form button { color: #b23b3b !important; }
.aktionMenueListe .aktionMenueGefahr form button:hover { background: #fbecec; }
.personalTable td:last-child .inlineForm {
    display: inline-flex;
    margin: 2px 4px 2px 0;
}
.personalTable td:last-child button {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}
@media (min-width: 1500px) {
    body:has(#personalTabelle) {
        --pi-app-max-width: 1760px;
    }
}

.globalNav { z-index: 9000; }
.globalNavLinks { scrollbar-width: thin; }
.globalNavLinks a { white-space: nowrap; }
.siteFooter { content-visibility: auto; contain-intrinsic-size: 90px; }
img, svg { max-width: 100%; }
.revierSpeicherleiste { backdrop-filter: blur(10px); }
.dashboardZurueckButton {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px !important;
    border: 1px solid #bfd0dc !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #173b57 !important;
    font-weight: 750 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(16, 38, 58, 0.06);
}

.dashboardZurueckButton:hover {
    background: #edf5f9 !important;
    border-color: #91adbf !important;
    transform: translateY(-1px);
}

.seitenRuecknavigation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 20px;
}

.planToolbar {
    align-items: stretch;
}

.revierSeitenAktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .planToolbar > a,
    .dashboardZurueckButton {
        width: 100%;
    }
}
#modalHintergrund .modalBox {
    width: min(720px, 96vw);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
#schichtForm > label { margin: 14px 0 6px; }
#schichtForm input[type="time"],
#schichtForm input[type="text"] { width: 100%; }
#schichtForm .personenListe {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d5e0e6;
    border-radius: 12px;
    background: #fbfcfd;
    scrollbar-gutter: stable;
}
#schichtForm .personOption {
    display: flex !important;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 10px;
    border-radius: 8px;
    color: #293b47;
    font-weight: 500;
    cursor: pointer;
}
#schichtForm .personOption:hover { background: #eef4f7; }
#schichtForm .personOption.personenFilterVersteckt { display: none !important; }
#schichtForm .personOption input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    min-width: 18px;
    margin: 0 !important;
    padding: 0;
    accent-color: #245f82;
}
#schichtForm .tageKopie {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 18px;
    padding: 12px;
    border: 1px solid #d5e0e6;
    border-radius: 12px;
    background: #f8fafb;
}
#schichtForm .tageKopie label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0 !important;
    padding: 7px 8px;
    border-radius: 8px;
    color: #354854;
    font-weight: 500;
    cursor: pointer;
}
#schichtForm .tageKopie label:hover { background: #edf3f6; }
#schichtForm .tageKopie input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    min-width: 18px;
    margin: 0 !important;
    padding: 0;
    accent-color: #245f82;
}
#schichtForm .modalButtons {
    position: sticky;
    bottom: -1px;
    z-index: 4;
    display: flex;
    gap: 10px;
    margin: 18px -4px -4px;
    padding: 14px 4px 4px;
    border-top: 1px solid #e0e7eb;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
}
#schichtForm .modalButtons button { margin: 0; }
@media (pointer: coarse) {
    button, .aktionBearbeiten, .aktionLoeschen, .aktionAbbrechen,
    .aktionWhatsapp, .aktionAssistent, .aktionReset, .aktionWeiter,
    .globalNavLinks a, .revierPersonButton { min-height: 46px; }
    input, select, textarea { font-size: 16px; }
}

@media (max-width: 1100px) {
    body { padding: 138px 18px 18px; }
    body.hatUnterNavigation { padding-top: 182px; }
    .globalNav { top: 6px; }
    .globalNavInner { gap: 12px; }
    .globalNavLinks { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .appHeader { padding: 21px 22px; }
    .dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body { padding: 138px 10px 10px; }
    body.hatUnterNavigation { padding-top: 182px; }
    h1 { font-size: 27px; }
    h2 { font-size: 21px; }
    .globalNav {
        top: 0;
        border-radius: 14px;
    }
    .globalNavInner { display: block; padding: 11px 12px; }
    .globalNavBrand { margin-bottom: 8px; }
    .globalNavLinks {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        padding: 2px 0 6px;
    }
    .globalNavLinks a { scroll-snap-align: start; flex: 0 0 auto; }
    .globalNavBenutzer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-top: 5px;
        text-align: left;
    }
    .appHeader { display: block; padding: 19px; border-radius: 15px; }
    .appHeader h1 { font-size: 27px; }
    .userBox { display: none; }
    .dashboard { grid-template-columns: 1fr; }
    .dashboardCard, .dashboardCardModern,
    .profilKarte, .tableCard, .formular, .listenBox,
    .exportInfo, .exportKarte { border-radius: 14px; padding: 17px; }
    .toolbar { display: grid; grid-template-columns: 1fr; }
    .toolbar > *, .toolbar form, .toolbar button, .toolbar a { width: 100%; }
    .modalHintergrund { padding: 8px; align-items: flex-end; }
    .modalBox {
        width: 100%;
        max-width: none;
        max-height: 92dvh;
        border-radius: 18px 18px 8px 8px;
        padding: 20px 16px;
    }
    .modalButtons { position: sticky; bottom: -20px; background: white; padding-bottom: 12px; }
    .modalButtons button { flex: 1 1 100%; width: 100%; }
    .formular { max-width: none; }
    input, select, textarea { width: 100%; }
    .revierTagesNavigation { overflow-x: auto; flex-wrap: nowrap; }
    .revierTagesNavigation a { flex: 0 0 auto; white-space: nowrap; }
    .revierRaster { grid-template-columns: 1fr; }
    .revierKarte { padding: 15px; }
    .revierPersonDialog { width: 100%; max-width: none; }
    .revierSpeicherleiste {
        bottom: 0;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 14px 14px 0 0;
        padding: 12px;
    }
    .revierSpeicherleiste button { width: 100%; }
    .exportKopf { align-items: flex-start; flex-direction: column; }
    .exportButtons > * { width: 100%; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .loginBox { padding: 24px 18px; }
    th, td { padding: 9px 8px; min-width: 105px; }
    .dashboardCardIcon { display: none; }
    .dashboardCardModern { grid-template-columns: 1fr; }
    .personSuchEintrag { padding: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Schritt 3.10: breiter und vollständig nutzbarer Objekt-Dialog */
.modalBox.objektModalBox {
    width: min(1180px, 96vw) !important;
    max-width: 1180px !important;
    max-height: 92vh;
    padding: 26px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}
.objektModalBox #objektForm {
    min-width: 0;
}
.objektModalBox .tableCard {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 14px;
    scrollbar-gutter: stable;
}
.objektModalBox .sollWocheTabelle {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
    margin: 0;
}
.objektModalBox .sollWocheTabelle th,
.objektModalBox .sollWocheTabelle td {
    padding: 10px 9px;
    vertical-align: middle;
    white-space: nowrap;
}
.objektModalBox .sollWocheTabelle th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--pi-blue-100);
}
.objektModalBox .sollWocheTabelle th:nth-child(1),
.objektModalBox .sollWocheTabelle td:nth-child(1) { width: 190px; }
.objektModalBox .sollWocheTabelle th:nth-child(2),
.objektModalBox .sollWocheTabelle td:nth-child(2) { width: 105px; }
.objektModalBox .sollWocheTabelle th:nth-child(3),
.objektModalBox .sollWocheTabelle td:nth-child(3),
.objektModalBox .sollWocheTabelle th:nth-child(4),
.objektModalBox .sollWocheTabelle td:nth-child(4) { width: 145px; }
.objektModalBox .sollWocheTabelle th:nth-child(5),
.objektModalBox .sollWocheTabelle td:nth-child(5) { width: 145px; }
.objektModalBox .sollWocheTabelle th:nth-child(6),
.objektModalBox .sollWocheTabelle td:nth-child(6) { width: 190px; }
.objektModalBox .sollWocheTabelle input[type="time"],
.objektModalBox .sollWocheTabelle input[type="number"],
.objektModalBox .sollWocheTabelle select {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}
.objektModalBox .sollWocheTabelle input[type="checkbox"] {
    width: 22px !important;
    height: 22px;
    margin: 0;
}
.objektModalBox .sollWocheTabelle .checkboxZeile {
    justify-content: flex-start;
    min-height: 34px;
    margin: 0;
}
.objektModalBox .modalButtons {
    position: sticky;
    bottom: -26px;
    z-index: 4;
    margin: 18px -28px -26px;
    padding: 16px 28px 18px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 24px rgba(12,27,42,.08);
}
@media (max-width: 900px) {
    .modalBox.objektModalBox {
        width: 100% !important;
        max-width: none !important;
        padding: 20px 16px;
    }
    .objektModalBox .modalButtons {
        bottom: -20px;
        margin: 16px -16px -20px;
        padding: 14px 16px 16px;
    }
}

/* Schritt 3.13: modernes Steuerelement-Design nur im Objekt-Dialog */
.objektModalBox .sollWocheTabelle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    border: 1.5px solid #aebdca;
    border-radius: 5px;
    background: #ffffff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.objektModalBox .sollWocheTabelle input[type="checkbox"]::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform .12s ease;
    margin-top: -2px;
}
.objektModalBox .sollWocheTabelle input[type="checkbox"]:checked {
    background: #245f83;
    border-color: #245f83;
    box-shadow: 0 0 0 3px rgba(36,95,131,.12);
}
.objektModalBox .sollWocheTabelle input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}
.objektModalBox .sollWocheTabelle input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(52,132,176,.25);
    outline-offset: 2px;
}
.objektModalBox .sollWocheTabelle tbody tr {
    transition: background-color .14s ease;
}
.objektModalBox .sollWocheTabelle tbody tr:hover {
    background: #f7fafc;
}
.objektModalBox .sollWocheTabelle .checkboxZeile {
    gap: 9px !important;
    align-items: center;
    font-weight: 500;
}
.objektModalBox .modalButtons {
    justify-content: flex-end;
    gap: 10px;
}
.objektModalBox .modalButtons button {
    min-height: 40px;
    padding: 9px 17px;
    border-radius: 9px;
    font-weight: 700;
    box-shadow: none;
}
.objektModalBox .modalButtons button[type="submit"] {
    background: #174f72;
    border-color: #174f72;
    color: #ffffff;
}
.objektModalBox .modalButtons button[type="submit"]:hover {
    background: #123f5b;
    border-color: #123f5b;
}
.objektModalBox #objektAbbrechenButton {
    background: #174f72;
    color: #314556;
    border: 1px solid #ced9e1;
}
.objektModalBox #objektAbbrechenButton:hover {
    background: #123f5b;
    border-color: #bccbd5;
}

/* Schritt 3.11: Objekt-Dialog kompakt ohne unnötigen Innen-Scroll */
@media (min-width: 901px) and (min-height: 760px) {
    .modalBox.objektModalBox {
        width: min(1240px, calc(100vw - 48px)) !important;
        max-width: 1240px !important;
        max-height: calc(100vh - 32px) !important;
        padding: 18px 24px 0 !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }
    .objektModalBox h2 {
        margin: 0 0 10px !important;
        font-size: 25px !important;
        line-height: 1.15;
    }
    .objektModalBox #objektForm {
        display: flex;
        flex-direction: column;
        min-height: 0;
        flex: 1;
    }
    .objektModalBox #objektForm > label {
        margin: 0 0 5px !important;
    }
    .objektModalBox #objektName {
        min-height: 40px !important;
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
    }
    .objektModalBox #objektEintragsbeschreibung {
        height: 88px !important;
        min-height: 72px;
        margin-bottom: 5px;
        resize: vertical;
    }
    .objektModalBox #objektForm > .hinweis {
        margin: 0 0 8px;
        line-height: 1.35;
    }
    .objektModalBox .standardPasswortBox {
        margin: 0 0 8px !important;
        padding: 10px 12px !important;
        line-height: 1.3;
    }
    .objektModalBox h3 {
        margin: 2px 0 8px !important;
        font-size: 18px !important;
    }
    .objektModalBox .tableCard {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: auto !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        border-radius: 12px;
        scrollbar-gutter: stable;
    }
    .objektModalBox .sollWocheTabelle {
        min-width: 0 !important;
    }
    .objektModalBox .sollWocheTabelle th,
    .objektModalBox .sollWocheTabelle td {
        padding: 6px 8px !important;
        height: 46px;
    }
    .objektModalBox .sollWocheTabelle th {
        height: 34px;
        font-size: 13px;
    }
    .objektModalBox .sollWocheTabelle input[type="time"],
    .objektModalBox .sollWocheTabelle input[type="number"],
    .objektModalBox .sollWocheTabelle select {
        height: 38px !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
    }
    .objektModalBox .sollWocheTabelle input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
    }
    .objektModalBox .sollWocheTabelle .checkboxZeile {
        min-height: 28px !important;
        gap: 8px;
    }
    .objektModalBox .modalButtons {
        position: static !important;
        flex: 0 0 auto;
        margin: 10px -24px 0 !important;
        padding: 10px 24px 12px !important;
        min-height: 58px;
    }
}
@media (max-height: 759px) and (min-width: 901px) {
    .modalBox.objektModalBox {
        max-height: calc(100vh - 20px) !important;
        padding-top: 16px !important;
    }
    .objektModalBox .sollWocheTabelle th,
    .objektModalBox .sollWocheTabelle td {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
}

/* Schritt 3.17: Full-HD-Layout mit genau 10 px Außenrand */
html {
    width: 100%;
    min-height: 100%;
}
body {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 104px 10px 10px !important;
    box-sizing: border-box !important;
}
body.hatUnterNavigation { padding-top: 148px !important; }
.dashboardPage,
.revierForm,
.revierTagNavigation,
.revierSeitenAktionen {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}
.tableCard,
.tableScroll,
table {
    max-width: 100%;
}
.tableCard,
.tableScroll {
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 980px) {
    body { padding: 138px 10px 10px !important; }
    body.hatUnterNavigation { padding-top: 182px !important; }
}

/* Schritt 3.18: Wochenplan – feste Objekt-/Bereichsspalte */
.wochenplanTabelle {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
}
.wochenplanTabelle th:first-child,
.wochenplanTabelle td:first-child {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}
.wochenplanTabelle th:not(:first-child),
.wochenplanTabelle td:not(:first-child) {
    width: auto;
    min-width: 0;
}

/* Schritt 4.0: mobile Mitarbeiter-App */
.mitarbeiterPortal, .rueckmeldungenPage {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.portalHero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px 30px;
    border-radius: 22px;
    color: #f8fafc;
    background: linear-gradient(135deg, #103550 0%, #176488 100%);
    box-shadow: 0 18px 46px rgba(15, 58, 83, .19);
}
.portalHero .eyebrow { color: #bee0ee; }
.portalHero h1 { margin: 5px 0 6px; color: #fff; font-size: clamp(29px, 5vw, 43px); }
.portalHero p { margin: 0; color: #d8eaf2; }
.portalSekundaer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 13px;
    color: #fff !important;
    background: rgba(255,255,255,.11);
    font-weight: 800;
    white-space: nowrap;
}
.portalWochenNav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #d4e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 56, 76, .06);
}
.portalWochenNav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 11px;
    background: #eef5f8;
    color: #17577a;
    font-weight: 800;
}
.portalWochenNav a:last-child { justify-content: flex-end; }
.portalWochenNav strong { color: #29495d; text-align: center; }
.portalStatus {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    margin: 16px 0;
    padding: 17px 19px;
    border: 1px solid;
    border-radius: 16px;
}
.portalStatus::before {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    content: "i";
    font-family: Georgia, serif;
    font-weight: 800;
}
.portalStatus strong, .portalStatus span { display: block; }
.portalStatus span { color: #536b79; }
.portalStatusOk { border-color: #acd7c1; background: #effaf4; color: #18603b; }
.portalStatusOk::before { content: "✓"; background: #ccebd9; }
.portalStatusOffen { border-color: #b8d4e4; background: #f0f7fb; color: #1c5e80; }
.portalStatusOffen::before { background: #d7eaf4; }
.portalStatusWarten { border-color: #d7dce1; background: #f7f8f9; color: #53616b; }
.portalStatusWarten::before { content: "…"; background: #e5e9ec; }
.portalStatusAchtung { border-color: #e7c789; background: #fff8e9; color: #7a5212; }
.portalStatusAchtung::before { content: "!"; background: #f7e2b9; }
.dienstTage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 18px 0;
}
.dienstTagKarte {
    display: grid;
    grid-template-columns: 108px 1fr;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #cbdce6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 23px rgba(24, 58, 78, .07);
}
.dienstTagKopf {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 18px;
    color: #fff;
    background: #19658b;
}
.dienstTagKopf span { font-weight: 850; }
.dienstTagKopf strong { margin-top: 5px; color: #d8edf7; font-size: 14px; }
.dienstTagInhalt { display: grid; align-content: center; gap: 8px; padding: 15px 17px; }
.dienstEintrag {
    padding: 11px 13px;
    border-left: 4px solid #2580a8;
    border-radius: 9px;
    background: #eef7fb;
    color: #193d52;
    font-weight: 720;
    line-height: 1.45;
}
.dienstTagFrei { border-color: #dde4e8; box-shadow: none; }
.dienstTagFrei .dienstTagKopf { background: #708391; }
.dienstFrei { color: #71808a; font-weight: 650; }
.portalBestaetigen, .portalFormular {
    margin: 18px 0;
    padding: 23px;
    border: 1px solid #c7dbe6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(23, 57, 78, .08);
}
.portalBestaetigen { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portalBestaetigen p { margin: 0; color: #526977; }
.portalBestaetigen button, .portalFormular > button { width: auto; min-height: 48px; white-space: nowrap; }
.portalLeer {
    padding: 42px 24px;
    border: 1px dashed #bfcfd8;
    border-radius: 18px;
    background: #f8fafb;
    color: #607684;
    text-align: center;
}
.portalLeer h2 { margin: 7px 0; }
.portalLeer p { margin: 0; }
.portalLeerSymbol { font-weight: 850; color: #2a6f94; }
.wunschfreiLayout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.portalFormular { margin: 0; position: sticky; top: 86px; }
.portalFormular h2 { margin-top: 0; }
.portalFormular label { display: grid; gap: 6px; margin: 14px 0; font-weight: 750; }
.portalFormular input, .portalFormular textarea { width: 100%; }
.datumFelder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wunschfreiListe { display: grid; gap: 11px; }
.portalAbschnittKopf { margin: 4px 0 13px; }
.portalAbschnittKopf h2 { margin: 0 0 4px; }
.portalAbschnittKopf p { margin: 0; color: #647987; }
.wunschfreiKarte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #d2dfe6;
    border-radius: 16px;
    background: #fff;
}
.wunschfreiKarte h3 { margin: 8px 0 4px; }
.wunschfreiKarte p { margin: 5px 0; color: #516978; }
.wunschfreiKarte small { color: #778a95; }
.wunschfreiAuswahlLeiste {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 16px 0 9px;
    padding: 15px;
    border: 1px solid #c7dbe6;
    border-radius: 15px;
    background: #edf7fb;
}
.wunschfreiFristHinweis {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 14px;
    padding: 13px 15px;
    border: 1px solid #e5c887;
    border-radius: 13px;
    color: #6f4b16;
    background: #fff6df;
}
.wunschfreiFristHinweis span { font-weight: 800; }
.wunschfreiAuswahlLeiste label { display: grid; gap: 5px; margin: 0; font-weight: 750; }
.wunschfreiAuswahlLeiste label span { color: #536b79; font-size: 13px; }
.wunschfreiAuswahlLeiste input { width: 100%; min-height: 43px; margin: 0; }
.wunschfreiAuswahlLeiste button { width: auto; min-height: 43px; margin: 0; white-space: nowrap; }
.wunschfreiAuswahlLeiste button:disabled { cursor: not-allowed; opacity: .48; }
.wunschfreiTabellenHinweis { margin: 0 0 11px; }
.wunschfreiMonatsTabelleRahmen {
    overflow: hidden;
    border: 1px solid #bfcfd8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(24, 58, 78, .08);
}
.wunschfreiMonatsTabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wunschfreiMonatsTabelle thead th {
    padding: 11px 9px;
    border-bottom: 2px solid #aac4d2;
    color: #f8fafc;
    background: #175b7d;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}
.wunschfreiMonatsTabelle thead th:first-child { width: 54px; text-align: center; }
.wunschfreiMonatsTabelle thead th:nth-child(2) { width: 90px; text-align: center; }
.wunschfreiMonatsTabelle thead th:last-child { width: 105px; text-align: center; }
.wunschfreiMonatsTabelle tbody th, .wunschfreiMonatsTabelle tbody td {
    padding: 10px;
    border-right: 1px solid #d7e1e6;
    border-bottom: 1px solid #d7e1e6;
    vertical-align: middle;
}
.wunschfreiMonatsTabelle tbody tr:last-child th,
.wunschfreiMonatsTabelle tbody tr:last-child td { border-bottom: 0; }
.wunschfreiMonatsTabelle tbody td:last-child { border-right: 0; }
.wunschfreiAuswahlZelle { text-align: center; }
.wunschfreiTagCheckbox { width: 24px; height: 24px; margin: 0; accent-color: #176488; cursor: pointer; }
.wunschfreiDatum { color: #3d5968; background: #f6f9fa; text-align: center; }
.wunschfreiDatum span, .wunschfreiDatum strong { display: block; }
.wunschfreiDatum span { margin-bottom: 2px; color: #6b7f8b; font-size: 11px; text-transform: uppercase; }
.wunschfreiDatum strong { font-size: 15px; }
.wunschfreiStatusZelle { color: #526977; }
.wunschfreiVerfuegbar { color: #39708b; font-size: 13px; font-weight: 720; }
.wunschfreiNichtVerfuegbar { color: #87959d; font-size: 13px; }
.wunschfreiTagAntrag { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 5px 0; }
.wunschfreiTagAntrag + .wunschfreiTagAntrag { border-top: 1px dashed #d4dfe5; }
.wunschfreiTagAntrag small { color: #667c89; font-weight: 750; }
.wunschfreiTagAntrag > span:last-child:not(.statusPille) { color: #526977; }
.wunschfreiAktionZelle { text-align: center; }
.wunschfreiAktionZelle form { margin: 0; }
.wunschfreiAktionZelle .portalLoeschen { width: 100% !important; margin: 0; }
.wunschfreiWochenende .wunschfreiDatum { background: #eef3f5; }
.wunschfreiWochenende > td { background: #fbfcfd; }
.wunschfreiHeute { box-shadow: inset 4px 0 0 #1f80a8; }
.wunschfreiHeute .wunschfreiDatum { color: #124f6d; background: #dff1f8; }
.wunschfreiVergangen { opacity: .62; }
.portalLoeschen { width: auto !important; min-height: 38px !important; padding: 8px 12px !important; background: #fff !important; color: #9c3333 !important; border: 1px solid #dfbaba !important; box-shadow: none !important; }
.statusPille { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.status-offen { color: #805817; background: #fff1cf; }
.status-beruecksichtigt { color: #17613d; background: #d9f1e4; }
.status-nicht_moeglich { color: #922f38; background: #f9dde0; }
.portalKennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 17px 0; }
.portalKennzahlen div { padding: 18px; border: 1px solid #d4e1e8; border-radius: 16px; background: #fff; }
.portalKennzahlen strong { display: block; color: #155c82; font-size: 30px; }
.portalKennzahlen span { color: #657b89; }
.portalVerwaltungAbschnitt { margin-top: 28px; }
.statusForm { display: flex; align-items: center; gap: 8px; }
.statusForm select { min-width: 150px; }
.statusForm button { width: auto; min-height: 38px; padding: 8px 12px; white-space: nowrap; }
.antragListe { display: grid; gap: 12px; }
.antragKarte {
    padding: 18px;
    border: 1px solid #d2dfe6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(24, 58, 78, .06);
}
.antragKarte h3 { margin: 9px 0 5px; }
.antragKarte p { margin: 5px 0; color: #516978; }
.entscheidungsNotiz { padding: 10px 12px; border-left: 4px solid #4185a6; background: #f0f7fa; }
.status-genehmigt { color: #17613d; background: #d9f1e4; }
.status-abgelehnt { color: #922f38; background: #f9dde0; }
.urlaubLegende { display: flex; flex-wrap: wrap; gap: 14px; margin: 13px 0; color: #526977; }
.urlaubLegende span { display: inline-flex; align-items: center; gap: 6px; }
.urlaubLegende i { width: 13px; height: 13px; border-radius: 4px; }
.legendeGenehmigt { background: #ccebd9; }
.legendeOffen { background: #ffe5a7; }
.legendeWunschfrei { background: #d9eaf5; }
.wochenPdfExport {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(460px, 1.35fr);
    align-items: center;
    gap: 20px;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #bfd4df;
    border-radius: 18px;
    color: #eaf5fa;
    background: linear-gradient(125deg, #103550 0%, #176488 100%);
    box-shadow: 0 12px 30px rgba(15, 58, 83, .14);
}
.wochenPdfInfo .eyebrow { color: #bfe2f1; }
.wochenPdfInfo h2 { margin: 5px 0 4px; color: #fff; font-size: 21px; }
.wochenPdfInfo p { margin: 0; color: #d5e9f2; font-size: 13px; }
.wochenPdfAktionen { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.wochenPdfAktionen a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 10px;
    color: #eef8fc !important;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}
.wochenPdfAktionen a:hover { background: rgba(255,255,255,.16); }
.wochenPdfAktionen .wochenPdfDownload {
    border-color: #fff;
    color: #123f5b !important;
    background: #fff;
    font-weight: 850;
}
.wochenPdfAktionen .wochenPdfDownload:hover { background: #eaf5fa; }
.urlaubKalenderScroll { overflow-x: auto; padding-bottom: 5px; }
.urlaubKalenderKopf, .urlaubKalender {
    display: grid;
    grid-template-columns: repeat(7, minmax(128px, 1fr));
    min-width: 896px;
}
.urlaubKalenderKopf b { padding: 9px; color: #5e7380; font-size: 12px; font-weight: 850; text-align: center; text-transform: uppercase; }
.urlaubKalender { border-top: 1px solid #d4e1e8; border-left: 1px solid #d4e1e8; }
.urlaubKalenderTag {
    min-height: 126px;
    padding: 8px;
    border-right: 1px solid #d4e1e8;
    border-bottom: 1px solid #d4e1e8;
    background: #fff;
}
.kalenderAusserhalb { background: #f3f6f7; }
.kalenderHeute { box-shadow: inset 0 0 0 2px #217ca4; }
.kalenderDatum { display: block; margin-bottom: 7px; color: #365465; font-weight: 850; }
.kalenderUrlaub { display: block; margin: 4px 0; padding: 5px 7px; border-radius: 7px; font-size: 12px; font-weight: 760; line-height: 1.25; }
.kalender-genehmigt { color: #16583a; background: #d9f1e4; }
.kalender-offen { color: #765014; background: #fff1cf; }
.kalenderWunschfrei { color: #174f70; background: #dceef8; }
.urlaubsEntscheidungForm { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(190px, 1.2fr) auto; gap: 8px; align-items: center; }
.urlaubsEntscheidungForm button { width: auto; min-height: 40px; white-space: nowrap; }
.stundenMonatSumme, .berichtGesamt {
    padding: 18px;
    border: 1px solid #c7dbe6;
    border-radius: 16px;
    color: #164e6c;
    background: #edf7fb;
    font-size: 18px;
    font-weight: 850;
}
.stundenTabelleKopf { display: flex; align-items: center; gap: 18px; margin: 17px 0; }
.stundenTabelleKopf .stundenMonatSumme { display: grid; grid-template-columns: auto auto; gap: 2px 18px; min-width: 285px; }
.stundenMonatSumme span, .stundenMonatSumme small { color: #58707e; }
.stundenMonatSumme strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: #155c82; font-size: 27px; text-align: right; }
.stundenTabelleKopf .hinweis { margin: 0; }
.stundenTabellenAbschnitt { margin-top: 12px; }
.stundenTabelleCard { overflow-x: auto; }
.stundenzettelTabelle { min-width: 1240px; table-layout: auto; }
.stundenzettelTabelle th { white-space: nowrap; }
.stundenzettelTabelle td { padding: 9px 7px; vertical-align: middle; }
.stundenzettelTabelle input, .stundenzettelTabelle select {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 9px;
    border: 1px solid #bdccd5;
    border-radius: 8px;
    background: #fff;
}
.stundenzettelTabelle input[type="date"] { min-width: 145px; }
.stundenzettelTabelle input[type="time"] { min-width: 105px; }
.stundenzettelTabelle input[type="number"] { width: 74px; min-width: 74px; }
.stundenzettelTabelle select { min-width: 155px; }
.stundenzettelTabelle input[name="notiz"] { min-width: 180px; }
.stundenEinheit { margin-left: 3px; color: #657b89; font-size: 12px; }
.stundenErgebnis { display: block; min-width: 94px; color: #174f6d; line-height: 1.25; }
.stundenNeuZeile td { background: #edf8fc; border-top: 2px solid #2580a8; border-bottom: 2px solid #bddde9; }
.stundenNeuZeile td:first-child { border-left: 2px solid #bddde9; }
.stundenNeuZeile td:last-child { border-right: 2px solid #bddde9; }
.stundenDatenZeile:hover td { background: #f7fafb; }
.stundenAktionen { min-width: 126px; }
.stundenAktionen button { width: 100%; min-height: 38px; padding: 7px 10px; white-space: normal; }
.stundenSpeichern, .stundenNeuSpeichern { margin-bottom: 6px; background: #176488 !important; color: #fff !important; }
.stundenNeuSpeichern { min-width: 118px; }
.stundenLeerZeile td { padding: 25px; color: #647987; text-align: center; }
.stundenVerwaltungFilter { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; margin: 18px 0; padding: 20px; background: #fff; border: 1px solid #d4e1e8; border-radius: 16px; }
.stundenVerwaltungFilter label { display: grid; gap: 7px; min-width: 180px; font-size: 13px; font-weight: 750; color: #36556a; }
.stundenVerwaltungFilter input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdccd5; border-radius: 9px; font: inherit; background: #fff; }
.stundenVerwaltungFilter button { width: auto; min-height: 44px; margin: 0; }
.stundenVerwaltungFilter .stundenSuche { flex: 1; min-width: 200px; margin-left: auto; }
.stundenVerwaltungFilter > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border-radius: 9px; box-sizing: border-box; font-size: 13px; font-weight: 750; text-decoration: none; }
.stundenVerwaltungAktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stundenVerwaltungAktionen a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border-radius: 9px; font-size: 13px; font-weight: 750; text-decoration: none; box-sizing: border-box; }
.stundenOeffnen { color: #fff; background: #176488; }
.stundenPdfLink { color: #175a7d; background: #edf5f9; border: 1px solid #c9dfe9; }
.stundenVerwaltungSumme { font-weight: 850; color: #175a7d; white-space: nowrap; }
.stundenMitarbeiterTabelle td { padding-top: 16px; padding-bottom: 16px; }
.stundenMitarbeiterTabelle tr[hidden] { display: none !important; }
.stundenVerwaltungAktionen a:focus-visible { outline: 3px solid #3c9fca; outline-offset: 3px; }
@media (max-width: 600px) {
    .stundenVerwaltungFilter { gap: 12px; padding: 15px; }
    .stundenVerwaltungFilter label, .stundenVerwaltungFilter .stundenSuche { width: 100%; min-width: 0; }
    .stundenVerwaltungFilter button { width: 100%; }
}

.stundenMonatPage { width: 100%; }
.stundenMonatsKopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 16px 0;
    padding: 17px 20px;
    border: 1px solid #c7dbe6;
    border-radius: 16px;
    background: #edf7fb;
}
.stundenMonatsKopf > div { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.stundenMonatsKopf span { color: #58707e; font-weight: 750; }
.stundenMonatsKopf strong { color: #155c82; font-size: 28px; }
.stundenMonatsKopf p { max-width: 720px; margin: 0; color: #536b79; line-height: 1.45; }
.stundenMonatsTabelleRahmen {
    overflow: hidden;
    border: 1px solid #bfcfd8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(24, 58, 78, .08);
}
.stundenMonatsTabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.stundenMonatsTabelle thead th {
    padding: 11px 10px;
    border-bottom: 2px solid #aac4d2;
    color: #f8fafc;
    background: #175b7d;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}
.stundenMonatsTabelle thead th:first-child { width: 88px; text-align: center; }
.stundenMonatsTabelle thead th:last-child { width: 105px; text-align: center; }
.stundenSummeKurz { display: none; }
.stundenMonatsTabelle tbody th, .stundenMonatsTabelle tbody td {
    border-right: 1px solid #d7e1e6;
    border-bottom: 1px solid #d7e1e6;
    vertical-align: top;
}
.stundenMonatsTabelle tbody tr:last-child th,
.stundenMonatsTabelle tbody tr:last-child td { border-bottom: 0; }
.stundenMonatsTabelle tbody td:last-child { border-right: 0; }
.stundenDatum { padding: 13px 7px; color: #3d5968; background: #f6f9fa; text-align: center; }
.stundenDatum span, .stundenDatum strong { display: block; }
.stundenDatum span { margin-bottom: 3px; color: #6b7f8b; font-size: 12px; text-transform: uppercase; }
.stundenDatum strong { font-size: 17px; }
.stundenSchichtenZelle { padding: 8px; }
.stundenTagSchichten { display: grid; gap: 7px; }
.stundenSchicht {
    display: grid;
    grid-template-columns: minmax(190px, 240px) 85px minmax(150px, 1fr) minmax(140px, 1fr) 120px;
    align-items: end;
    gap: 8px;
    padding: 9px;
    border: 1px solid #cad9e1;
    border-radius: 10px;
    background: #fff;
}
.stundenSchichtGespeichert { border-left: 4px solid #4f91ad; }
.stundenSchichtNeu { border-style: dashed; border-color: #8db8ca; background: #f2f9fc; }
.stundenSchicht > form, .stundenSchicht > input[type="hidden"] { display: none; }
.stundenSchichtZeiten { display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); align-items: end; gap: 5px; }
.stundenSchichtZeiten i { padding-bottom: 11px; color: #70838e; font-style: normal; text-align: center; }
.stundenSchicht label, .stundenSchichtDauer { min-width: 0; margin: 0; }
.stundenSchicht label > span, .stundenSchichtDauer > span {
    display: block;
    margin: 0 0 4px;
    color: #667c89;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.stundenSchicht input, .stundenSchicht select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px;
    border: 1px solid #bdccd5;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}
.stundenSchicht.stundenSchichtFehler { border-color: var(--pi-danger); background: var(--pi-danger-soft); }
.stundenSchicht input.stundenFeldFehler, .stundenSchicht select.stundenFeldFehler {
    border: 2px solid var(--pi-danger);
    background: #fff;
    color: var(--pi-danger);
    font-weight: 700;
}
.stundenSchichtDauer { align-self: center; color: #174f6d; }
.stundenSchichtDauer b { display: block; font-size: 14px; line-height: 1.2; }
.stundenSchichtAktionen { display: grid; gap: 5px; }
.stundenSchichtAktionen form { margin: 0; }
.stundenSchichtAktionen button { width: 100%; min-height: 37px; margin: 0 !important; padding: 7px 8px !important; font-size: 12px; white-space: normal; }
.stundenAutoStatus { display: flex; align-items: center; justify-content: center; min-height: 35px; padding: 5px 7px; border: 1px solid #c5d9e3; border-radius: 8px; color: #4f6b7a; background: #edf5f8; font-size: 11px; font-weight: 800; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.stundenAutoStatus[data-zustand="offen"] { border-color: #e3c27a; color: #79520e; background: #fff6dc; }
.stundenAutoStatus[data-zustand="speichert"] { border-color: #87b7ca; color: #155c82; background: #e4f3f9; }
.stundenAutoStatus[data-zustand="gespeichert"] { border-color: #99c8aa; color: #216a40; background: #e8f5ec; }
.stundenAutoStatus[data-zustand="fehler"] { border-color: #e0a4a4; color: #a12f2f; background: #fdecec; }
.stundenKopieren { color: #fff !important; background: #175a7d; border: 1px solid #175a7d; border-radius: 8px; cursor: pointer; }
.stundenKopierDialog { width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 22px; border: 1px solid #c5d9e3; border-radius: 16px; color: #193b50; box-shadow: 0 20px 65px #1238; overflow-y: auto; }
.stundenKopierDialog::backdrop { background: #102d4266; backdrop-filter: blur(3px); }
.stundenKopierDialog h2 { margin-top: 0; }
.stundenKopierDialog p { font-size: 14px; }
.stundenKopierTage { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; }
.stundenKopierTage label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px; border: 1px solid #d2e0e7; border-radius: 8px; background: #f2f7fa; font-size: 13px; cursor: pointer; }
.stundenKopierTage input { width: 18px; height: 18px; margin: 0; }
.stundenKopierTage label:has(input:disabled) { opacity: .45; }
.stundenKopierDialog .modalButtons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stundenKopierDialog .modalButtons button { width: auto; margin: 0; }
#stundenKopierStatus { color: #a12f2f; }
.stundenTagesSumme { padding: 14px 7px; color: #155c82; font-size: 13px; font-weight: 850; text-align: center; vertical-align: middle !important; }
.stundenWochenende .stundenDatum { background: #eef3f5; }
.stundenWochenende > td { background: #fbfcfd; }
.stundenHeute { box-shadow: inset 4px 0 0 #1f80a8; }
.stundenHeute .stundenDatum { color: #124f6d; background: #dff1f8; }
.stundenZukunft { opacity: .64; }
.stundenTagGesperrt { padding: 13px; border: 1px dashed #cbd7dd; border-radius: 9px; color: #778b96; background: #f7f9fa; font-size: 13px; text-align: center; }
.berichtFilter { display: grid; grid-template-columns: 190px minmax(220px, 1fr) auto; gap: 12px; align-items: end; margin: 17px 0; padding: 17px; border: 1px solid #d4e1e8; border-radius: 16px; background: #fff; }
.berichtFilter label { display: grid; gap: 6px; font-weight: 750; }
.berichtFilter button { width: auto; }
.stundenSummen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; margin: 15px 0; }
.stundenSummen div { padding: 15px; border: 1px solid #d4e1e8; border-radius: 13px; background: #fff; }
.stundenSummen strong, .stundenSummen span { display: block; }
.stundenSummen span { margin-top: 4px; color: #176488; font-size: 21px; font-weight: 850; }
@media (max-width: 760px) {
    .portalHero { align-items: flex-start; flex-direction: column; padding: 22px 19px; }
    .portalSekundaer { width: 100%; }
    .portalWochenNav { grid-template-columns: 1fr 1fr; }
    .portalWochenNav strong { grid-column: 1 / -1; grid-row: 1; }
    .portalWochenNav a { grid-row: 2; font-size: 14px; }
    .dienstTage { grid-template-columns: 1fr; }
    .dienstTagKarte { grid-template-columns: 92px 1fr; min-height: 102px; }
    .dienstTagKopf { padding: 14px; }
    .dienstTagInhalt { padding: 12px; }
    .portalBestaetigen { align-items: stretch; flex-direction: column; }
    .portalBestaetigen button { width: 100%; white-space: normal; }
    .wunschfreiLayout { grid-template-columns: 1fr; }
    .portalFormular { position: static; }
    .portalKennzahlen { grid-template-columns: 1fr 1fr; }
    .portalKennzahlen div:last-child { grid-column: 1 / -1; }
    .portalTabelle, .portalTabelle tbody, .portalTabelle tr, .portalTabelle td { display: block; width: 100%; }
    .portalTabelle thead, .portalTabelle th { display: none; }
    .portalTabelle tr { padding: 12px; border-bottom: 1px solid #dbe4e9; }
    .portalTabelle td { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 7px !important; border: 0 !important; }
    .portalTabelle td::before { content: attr(data-label); color: #6b7f8c; font-size: 12px; font-weight: 850; text-transform: uppercase; }
    .statusForm { align-items: stretch; flex-direction: column; }
    .statusForm select, .statusForm button { width: 100%; }
    .urlaubsEntscheidungForm, .berichtFilter { grid-template-columns: 1fr; }
    .wochenPdfExport { grid-template-columns: 1fr; padding: 17px; }
    .wochenPdfAktionen { grid-template-columns: 1fr 1fr; }
    .wochenPdfAktionen .wochenPdfDownload { grid-column: 1 / -1; grid-row: 1; }
    .urlaubsEntscheidungForm button, .berichtFilter button { width: 100%; }
    .stundenTabelleKopf { align-items: stretch; flex-direction: column; }
    .stundenTabelleKopf .stundenMonatSumme { min-width: 0; }
    .stundenTabelleCard { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .stundenzettelTabelle { min-width: 0; }
    .stundenzettelTabelle tr { margin-bottom: 14px; padding: 10px; overflow: hidden; border: 1px solid #d2dfe6; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(24, 58, 78, .06); }
    .stundenzettelTabelle .stundenNeuZeile { border: 2px solid #78b6d0; background: #edf8fc; }
    .stundenzettelTabelle .stundenNeuZeile td { background: transparent; border: 0; }
    .stundenzettelTabelle td { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
    .stundenzettelTabelle input, .stundenzettelTabelle select { min-width: 0 !important; width: 100% !important; }
    .stundenzettelTabelle .stundenEinheit { grid-column: 2; margin: -4px 0 0; }
    .stundenzettelTabelle .stundenAktionen button, .stundenzettelTabelle .stundenAktionen form { grid-column: 2; width: 100%; }
    .stundenzettelTabelle .stundenLeerZeile td { display: block; text-align: center; }
    .stundenzettelTabelle .stundenLeerZeile td::before { display: none; }
    .stundenMonatsKopf { align-items: stretch; flex-direction: column; gap: 8px; }
    .stundenSchicht { grid-template-columns: minmax(180px, 1fr) 80px minmax(135px, 1fr); }
    .stundenSchichtAktionen { grid-column: 3; }
    .stundenNotizFeld { grid-column: 1 / 3; }
}
@media (max-width: 480px) {
    .datumFelder { grid-template-columns: 1fr; gap: 0; }
    .dienstTagKarte { grid-template-columns: 1fr; }
    .dienstTagKopf { flex-direction: row; justify-content: space-between; align-items: center; }
    .dienstTagKopf strong { margin: 0; }
    .portalStatus { grid-template-columns: auto 1fr; padding: 14px; }
    .wunschfreiKarte { align-items: stretch; flex-direction: column; }
    .wunschfreiKarte form, .portalLoeschen { width: 100% !important; }
    .wunschfreiAuswahlLeiste { grid-template-columns: 1fr; padding: 12px; }
    .wunschfreiAuswahlLeiste button { width: 100%; white-space: normal; }
    .wunschfreiTabellenHinweis { font-size: 12px; }
    .wunschfreiMonatsTabelleRahmen { border-radius: 12px; }
    .wunschfreiMonatsTabelle thead th { padding: 8px 3px; font-size: 9px; letter-spacing: 0; }
    .wunschfreiMonatsTabelle thead th:first-child { width: 34px; }
    .wunschfreiMonatsTabelle thead th:nth-child(2) { width: 58px; }
    .wunschfreiMonatsTabelle thead th:last-child { width: 61px; }
    .wunschfreiMonatsTabelle tbody th, .wunschfreiMonatsTabelle tbody td { padding: 7px 4px; }
    .wunschfreiTagCheckbox { width: 22px; height: 22px; }
    .wunschfreiDatum span { font-size: 9px; }
    .wunschfreiDatum strong { font-size: 12px; }
    .wunschfreiVerfuegbar, .wunschfreiNichtVerfuegbar { font-size: 11px; }
    .wunschfreiTagAntrag { align-items: flex-start; flex-direction: column; gap: 4px; }
    .wunschfreiTagAntrag .statusPille { padding: 4px 6px; font-size: 10px; }
    .wunschfreiTagAntrag small, .wunschfreiTagAntrag > span { font-size: 10px; }
    .wunschfreiAktionZelle .portalLoeschen { min-height: 34px !important; padding: 5px 3px !important; font-size: 10px; }
    .stundenzettelMonatPage { width: 100%; }
    .stundenMonatsKopf { margin: 12px 0; padding: 13px; }
    .stundenMonatsKopf > div { justify-content: space-between; }
    .stundenMonatsKopf strong { font-size: 23px; }
    .stundenMonatsKopf p { font-size: 12px; }
    .stundenMonatsTabelleRahmen { border-radius: 12px; }
    .stundenMonatsTabelle thead th { padding: 8px 4px; font-size: 9px; letter-spacing: 0; }
    .stundenMonatsTabelle thead th:first-child { width: 59px; }
    .stundenMonatsTabelle thead th:last-child { width: 57px; }
    .stundenSummeLang { display: none; }
    .stundenSummeKurz { display: inline; }
    .stundenDatum { width: 59px; padding: 9px 3px; }
    .stundenDatum span { font-size: 10px; }
    .stundenDatum strong { font-size: 13px; }
    .stundenSchichtenZelle { padding: 5px; }
    .stundenTagesSumme { width: 57px; padding: 8px 3px; font-size: 10px; overflow-wrap: anywhere; }
    .stundenSchicht { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 7px; border-radius: 8px; }
    .stundenSchichtZeiten { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); }
    .stundenSchichtZeiten i { padding-bottom: 10px; }
    .stundenSchicht input, .stundenSchicht select { min-height: 38px; padding: 7px 6px; font-size: 13px; }
    .stundenSchichtDauer { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px; }
    .stundenSchichtDauer > span { margin: 0; }
    .stundenNotizFeld { grid-column: auto; }
    .stundenSchichtAktionen { grid-column: auto; grid-template-columns: 1fr 1fr; }
    .stundenSchichtNeu .stundenSchichtAktionen { grid-template-columns: 1fr; }
    .stundenSchichtAktionen form, .stundenSchichtAktionen .portalLoeschen { width: 100% !important; }
    .stundenTagGesperrt { padding: 10px 5px; font-size: 11px; }
}
.globalNavLink { position: relative; }
.globalNavBadge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c93c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}
.chatPortalPage {
    width: min(1440px, 100%);
    margin: 0 auto;
}
.chatPortalHero { margin-bottom: 14px; }
.chatPortalGesamt {
    display: grid;
    place-items: center;
    min-width: 100px;
    padding: 13px 17px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
}
.chatPortalGesamt strong { color: #fff; font-size: 28px; line-height: 1; }
.chatPortalGesamt span { margin-top: 5px; color: #d8eaf2; font-size: 12px; font-weight: 750; }
.chatPortalGesamt.aktiv {
    border-color: rgba(255,220,220,.65);
    background: rgba(179,45,45,.38);
}
.chatPortalErfolg, .chatPortalFehler {
    margin: 0 0 12px;
    padding: 12px 15px;
    border-radius: 13px;
    font-weight: 700;
}
.chatPortalErfolg { border: 1px solid #9fd3b8; background: #edf9f2; color: #17633c; }
.chatPortalFehler { border: 1px solid #efb0b0; background: #fff1f1; color: #8b2525; }
.chatPortalLayout {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid #d6e1e8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15,52,73,.10);
}
.chatPortalKontakte {
    min-width: 0;
    padding: 16px;
    border-right: 1px solid #dbe5eb;
    background: #f7fafc;
}
.chatPortalSuche { display: block; margin-bottom: 13px; }
.chatPortalSuche span {
    display: block;
    margin-bottom: 6px;
    color: #415c6e;
    font-size: 13px;
    font-weight: 800;
}
.chatPortalSuche input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: 1px solid #bdcfd9;
    border-radius: 12px;
    background: #fff;
}
.chatPortalKontaktListe {
    display: grid;
    gap: 8px;
    max-height: 572px;
    overflow: auto;
    padding-right: 3px;
}
.chatPortalKontakt {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #1c3444;
    text-decoration: none;
}
.chatPortalKontakt:hover { border-color: #bfd3df; background: #edf5f9; }
.chatPortalKontakt.aktiv { border-color: #75abc6; background: #e3f1f8; }
.chatPortalKontakt.ungelesen { background: #eef6ff; }
.chatPortalAvatar {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d8ebf6;
    color: #175b80;
    font-weight: 900;
}
.chatPortalKontaktText { min-width: 0; }
.chatPortalKontaktText strong,
.chatPortalKontaktText small,
.chatPortalKontaktText span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatPortalKontaktText strong { font-size: 15px; }
.chatPortalKontaktText small { margin: 2px 0 4px; color: #617887; font-size: 11px; }
.chatPortalKontaktText span { color: #667c89; font-size: 13px; }
.chatPortalKontakt.ungelesen .chatPortalKontaktText strong,
.chatPortalKontakt.ungelesen .chatPortalKontaktText span { color: #102f45; font-weight: 850; }
.chatPortalBadge {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #c93c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}
.chatPortalKontaktLeer, .chatPortalKeineKontakte {
    padding: 22px 12px;
    color: #607886;
    text-align: center;
}
.chatPortalThread {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    background: #f4f7fa;
}
.chatPortalThreadKopf {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #d7e2e8;
    background: #fff;
}
.chatPortalThreadKopf > div { min-width: 0; }
.chatPortalThreadKopf h2 { margin: 0; color: #173247; font-size: 20px; }
.chatPortalThreadKopf p { margin: 3px 0 0; color: #667d8c; font-size: 13px; }
.chatPortalUngelesenForm { margin: 0 0 0 auto; }
.chatPortalUngelesenForm button {
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #adc3d0;
    border-radius: 10px;
    background: #fff;
    color: #31586e;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none;
}
.chatPortalVerlauf {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 400px;
    max-height: 514px;
    overflow: auto;
    padding: 20px;
}
.chatPortalNachricht {
    width: min(76%, 720px);
    padding: 11px 13px;
    border: 1px solid #cfdee6;
    border-radius: 15px 15px 15px 4px;
    background: #fff;
    color: #203c4d;
    box-shadow: 0 4px 12px rgba(20,55,75,.06);
}
.chatPortalNachricht.eigen {
    align-self: flex-end;
    border-color: #a8cfe2;
    border-radius: 15px 15px 4px 15px;
    background: #dff0f9;
}
.chatPortalNachricht > div { display: flex; justify-content: space-between; gap: 15px; }
.chatPortalNachricht strong { font-size: 12px; }
.chatPortalNachricht time, .chatPortalNachricht small { color: #607887; font-size: 11px; }
.chatPortalNachricht p { margin: 6px 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chatPortalNachricht small { display: block; text-align: right; }
.chatPortalNochLeer {
    margin: auto;
    padding: 28px;
    color: #637b89;
    text-align: center;
}
.chatPortalComposer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin: 0;
    padding: 15px 18px;
    border-top: 1px solid #d6e2e8;
    background: #fff;
}
.chatPortalComposer label { grid-column: 1 / -1; color: #405b6b; font-size: 12px; font-weight: 800; }
.chatPortalComposer textarea {
    width: 100%;
    min-height: 64px;
    max-height: 160px;
    margin: 0;
    resize: vertical;
    border: 1px solid #b9cbd5;
    border-radius: 13px;
}
.chatPortalComposer button { min-width: 105px; min-height: 50px; margin: 0; }
.chatPortalLeerauswahl { place-items: center; align-content: center; padding: 30px; text-align: center; }
.chatPortalLeerauswahl h2 { margin: 12px 0 5px; color: #25475b; }
.chatPortalLeerauswahl p { max-width: 390px; margin: 0; color: #667f8e; }
.chatPortalLeerIcon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #dcecf5;
    color: #226487;
    font-size: 32px;
}
@media (max-width: 820px) {
    .chatPortalLayout { grid-template-columns: 1fr; min-height: 0; overflow: visible; }
    .chatPortalKontakte { border-right: 0; border-bottom: 1px solid #dbe5eb; }
    .chatPortalKontaktListe { max-height: 390px; }
    .chatPortalThread { min-height: 580px; }
    .chatPortalNachricht { width: min(88%, 720px); }
}
@media (max-width: 560px) {
    .chatPortalHero { align-items: flex-start; }
    .chatPortalGesamt { min-width: 76px; padding: 10px; }
    .chatPortalGesamt strong { font-size: 23px; }
    .chatPortalThreadKopf { align-items: flex-start; flex-wrap: wrap; }
    .chatPortalUngelesenForm { width: 100%; margin-left: 56px; }
    .chatPortalComposer { grid-template-columns: 1fr; }
    .chatPortalComposer button { width: 100%; }
}
/* Schritt 3.20: Moderner Kopierdialog der Revierplanung */
.revierKopierModalBox {
    width: min(720px, calc(100vw - 32px)) !important;
    max-height: min(92vh, 860px);
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #cbd9e2 !important;
    border-radius: 24px !important;
    background: #ffffff;
    box-shadow: 0 32px 90px rgba(13, 38, 56, .30) !important;
}
.revierKopierKopf {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 14px;
    padding: 24px 26px 20px;
    background: linear-gradient(135deg, #f6fafc 0%, #edf5f9 100%);
    border-bottom: 1px solid #d8e3ea;
}
.revierKopierSymbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #1f678f;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(31,103,143,.22);
}
.revierKopierTitelblock { min-width: 0; }
.revierKopierEyebrow {
    display: block;
    margin-bottom: 3px;
    color: #60798a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.revierKopierModalBox .revierKopierKopf h2 {
    margin: 0 !important;
    color: #173247;
    font-size: 25px;
    line-height: 1.2;
}
.revierKopierSchliessen {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0 !important;
    border: 1px solid #c8d7e0 !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.82) !important;
    color: #536d7d !important;
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none !important;
}
.revierKopierSchliessen:hover {
    background: #ffffff !important;
    color: #173247 !important;
    border-color: #94adbd !important;
    transform: none !important;
}
.revierKopierQuelle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 26px 14px;
    padding: 13px 15px;
    border: 1px solid #cbdce7;
    border-radius: 14px;
    background: #f7fafc;
    color: #5b7485;
}
.revierKopierQuelle span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.revierKopierQuelle strong {
    padding: 6px 11px;
    border-radius: 999px;
    background: #dcecf5;
    color: #184d6c;
    font-size: 14px;
}
.revierKopierQuelle small {
    margin-left: auto;
    color: #6d8391;
    font-weight: 700;
}
.revierKopierHinweis {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    margin: 0 26px 22px;
    padding: 13px 14px;
    border: 1px solid #d8e4eb;
    border-radius: 14px;
    background: #fbfcfd;
    color: #526978;
}
.revierKopierHinweisIcon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e0edf4;
    color: #28688c;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 800;
}
.revierKopierHinweis p {
    margin: 1px 0 0;
    font-size: 14px;
    line-height: 1.5;
}
.revierKopierModalBox form { margin: 0; }
.revierKopierAuswahlKopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 26px 12px;
}
.revierKopierAuswahlKopf strong {
    display: block;
    color: #233e51;
    font-size: 16px;
}
.revierKopierAuswahlKopf small {
    display: block;
    margin-top: 2px;
    color: #718795;
    font-size: 13px;
}
.revierKopierAlle {
    min-height: 36px;
    padding: 7px 11px !important;
    border: 1px solid #bfd0db !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #28678b !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: none !important;
    white-space: nowrap;
}
.revierKopierAlle:hover {
    background: #eef6fa !important;
    border-color: #8eafc1 !important;
    transform: none !important;
}
.revierKopierTage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 26px 24px;
    padding: 0;
    border: 0;
    background: transparent;
}
.revierKopierModalBox .revierKopierTag {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid #d4e0e7;
    border-radius: 14px;
    background: #fbfcfd;
    color: #294254;
    font-weight: 750;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.revierKopierModalBox .revierKopierTag:hover {
    border-color: #9db8c8;
    background: #f4f9fb;
    transform: translateY(-1px);
}
.revierKopierModalBox .revierKopierTag:has(input:checked) {
    border-color: #2e769e;
    background: #eaf5fa;
    box-shadow: 0 0 0 3px rgba(46,118,158,.10);
}
.revierKopierTag input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}
.revierKopierCheck {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #aabdc9;
    border-radius: 8px;
    background: #ffffff;
    color: transparent;
    font-size: 15px;
    line-height: 1;
    transition: all .16s ease;
}
.revierKopierTag:has(input:checked) .revierKopierCheck {
    border-color: #226b94;
    background: #226b94;
    color: #ffffff;
}
.revierKopierTag input:focus-visible + .revierKopierCheck {
    outline: 3px solid rgba(46,115,156,.28);
    outline-offset: 3px;
}
.revierKopierTagText { font-size: 15px; }
.revierKopierFuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 26px 20px;
    border-top: 1px solid #d8e3ea;
    background: #f8fafb;
}
#revierKopierAuswahlStatus {
    color: #667d8c;
    font-size: 13px;
    font-weight: 750;
}
.revierKopierAktionen {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}
.revierKopierSekundaer,
.revierKopierPrimaer {
    min-height: 42px;
    margin: 0 !important;
    border-radius: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}
.revierKopierSekundaer {
    padding: 9px 15px !important;
    border: 1px solid #bdced9 !important;
    background: #ffffff !important;
    color: #35556a !important;
    box-shadow: none !important;
}
.revierKopierSekundaer:hover {
    background: #eef4f7 !important;
    transform: none !important;
}
.revierKopierPrimaer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px !important;
    border: 1px solid #1f678f !important;
    background: #1f678f !important;
    color: #ffffff !important;
    box-shadow: 0 8px 17px rgba(31,103,143,.20) !important;
}
.revierKopierPrimaer:hover:not(:disabled) {
    background: #175777 !important;
    border-color: #175777 !important;
    transform: translateY(-1px);
}
.revierKopierPrimaer:disabled {
    border-color: #c8d4db !important;
    background: #dce4e9 !important;
    color: #81929d !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}
@media (max-width: 620px) {
    .revierKopierModalBox { border-radius: 18px !important; }
    .revierKopierKopf {
        grid-template-columns: 44px minmax(0, 1fr) 38px;
        gap: 10px;
        padding: 18px;
    }
    .revierKopierSymbol { width: 44px; height: 44px; border-radius: 13px; }
    .revierKopierModalBox .revierKopierKopf h2 { font-size: 21px; }
    .revierKopierQuelle,
    .revierKopierHinweis { margin-left: 18px; margin-right: 18px; }
    .revierKopierAuswahlKopf { padding-left: 18px; padding-right: 18px; }
    .revierKopierTage {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 18px;
    }
    .revierKopierFuss {
        align-items: stretch;
        flex-direction: column;
        padding: 15px 18px 18px;
    }
    .revierKopierAktionen { width: 100%; }
    .revierKopierSekundaer,
    .revierKopierPrimaer { flex: 1 1 auto; }
}
.planFreigabe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin: 0 0 22px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #ccdde7;
    border-left: 4px solid #277493;
    border-radius: 16px;
    box-shadow: var(--pi-shadow-sm);
}
.planFreigabeInhalt { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 360px; }
.planFreigabeIcon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #eaf4f8; color: #205e7a; }
.planFreigabeText { min-width: 0; }
.planFreigabeStatus { display: inline-block; padding: 4px 9px; border-radius: 6px; background: #fff3db; color: #855815; font-size: 11px; font-weight: 750; line-height: 1.4; }
.planFreigabe h2 { margin: 8px 0 5px; color: #173b57; font-size: 19px; font-weight: 750; line-height: 1.3; }
.planFreigabe p { margin: 0; color: #526b7c; font-size: 14px; line-height: 1.55; }
.planFreigabeButton { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex: 0 1 auto; box-sizing: border-box; min-height: 48px; max-width: 100%; padding: 13px 18px; border: 1px solid #286d50; border-radius: 11px; background: #2f7d5c; color: #fff; font-size: 14px; font-weight: 750; line-height: 1.5; text-decoration: none; text-align: center; }
.planFreigabeButton:hover { background: #26694d; color: #fff; text-decoration: none; }
.planFreigabeButton:focus-visible { outline: 3px solid #277493; outline-offset: 4px; }
@media (max-width: 760px) {
    .planFreigabe { padding: 18px 16px; gap: 18px; }
    .planFreigabeInhalt { flex-basis: 100%; align-items: flex-start; gap: 12px; }
    .planFreigabeIcon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; }
    .planFreigabeButton { width: 100%; }
}
@media print { .planFreigabe { display: none; } }

/* Verwaltung › Abrechnungen */
.abrechnungAuswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.abrechnungZurueck { margin: -6px 0 14px; }
.abrechnungZurueck a { color: #17577a; font-weight: 750; }
.abrechnungBereichLinks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; }
.abrechnungBereichLinks a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #c6dae5; border-radius: 9px; background: #edf5f9; color: #17577a; font-size: 13px; font-weight: 750; text-decoration: none; }
.abrechnungBereichLinks a:hover { border-color: #91b8cb; background: #e2f0f6; }
.rueckmeldungenPage.abrechnungObjektPage { width: min(1420px, 100%); }
.rueckmeldungenPage.abrechnungMitarbeiterPage { width: min(1480px, 100%); }
.abrechnungKennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abrechnungMitarbeiterKennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abrechnungMitarbeiterTabelle { width: 100%; min-width: 1350px !important; }
.abrechnungMitarbeiterTabelle th, .abrechnungMitarbeiterTabelle td { padding: 12px 9px; }
.abrechnungMitarbeiterTabelle th:first-child, .abrechnungMitarbeiterTabelle td:first-child { min-width: 170px; }
.abrechnungMitarbeiterTabelle th:last-child, .abrechnungMitarbeiterTabelle td:last-child { min-width: 270px; }
.abrechnungMitarbeiterTabelle .stundenVerwaltungAktionen { justify-content: flex-end; flex-wrap: nowrap; }
.abrechnungMitarbeiterTabelle .stundenVerwaltungAktionen a { min-height: 36px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.abrechnungKennzahlen > div { position: relative; overflow: hidden; padding-left: 21px; }
.abrechnungKennzahlen > div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #7e9eb0; }
.abrechnungKennzahlen .abrechnungKennzahlSoll::before { background: #6c8fa4; }
.abrechnungKennzahlen .abrechnungKennzahlHaben::before { background: #1977a2; }
.abrechnungKennzahlen .abrechnungKennzahlSaldo.abrechnungPlus::before { background: #2d8a57; }
.abrechnungKennzahlen .abrechnungKennzahlSaldo.abrechnungMinus::before { background: #c94b4b; }
.abrechnungKennzahlen .abrechnungKennzahlSaldo.abrechnungAusgeglichen::before { background: #618095; }
.abrechnungKennzahlen .abrechnungKennzahlSaldo.abrechnungPlus strong { color: #1f7a45; }
.abrechnungKennzahlen .abrechnungKennzahlSaldo.abrechnungMinus strong { color: #b23b3b; }
.abrechnungObjektTabelleCard { padding: 16px; }
.abrechnungObjektTabelle { width: 100%; min-width: 1360px !important; }
.abrechnungObjektTabelle th, .abrechnungObjektTabelle td { padding: 12px 10px; }
.abrechnungObjektTabelle th:first-child, .abrechnungObjektTabelle td:first-child { min-width: 155px; }
.abrechnungObjektTabelle th:last-child, .abrechnungObjektTabelle td:last-child { min-width: 210px; }
.abrechnungSollZelle { background: #f6f9fb; }
.abrechnungHabenZelle { color: #125f84; background: #f0f8fb; }
.abrechnungSaldo { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 82px; padding: 5px 8px; border-radius: 8px; font-weight: 850; }
.abrechnungSaldo.abrechnungPlus { background: #e5f5eb; }
.abrechnungSaldo.abrechnungMinus { background: #fdebec; }
.abrechnungSaldo.abrechnungAusgeglichen { color: #4f6877; background: #edf2f5; }
.abrechnungExportAktionen { display: grid; grid-template-columns: auto auto; gap: 7px; justify-content: end; }
.abrechnungExportAktionen a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 10px; border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.abrechnungHabenBearbeiten { grid-column: 1 / -1; width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #17658a; border-radius: 9px; background: #17658a; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.abrechnungHabenBearbeiten:hover { background: #124f6d; }
.abrechnungHabenDetail[hidden] { display: none !important; }
.abrechnungHabenDetail > td { padding: 0 !important; background: #eef5f8; text-align: left !important; white-space: normal !important; }
.abrechnungHabenBereich { padding: 18px; border-top: 3px solid #17658a; }
.abrechnungHabenKopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; scroll-margin-top: 155px; }
.abrechnungHabenKopf h3 { margin: 0 0 3px; color: #163f59; font-size: 18px; }
.abrechnungHabenKopf p { margin: 0; color: #617a89; font-size: 13px; }
.abrechnungHabenSchliessen { width: auto; min-height: 34px; padding: 6px 11px; border: 1px solid #8ca9ba; border-radius: 8px; background: #fff; color: #234e67 !important; font-size: 12px; font-weight: 750; cursor: pointer; }
.abrechnungHabenNeu { margin-bottom: 14px; padding: 14px; border: 1px solid #9fc5d7; border-radius: 12px; background: #e8f4f9; }
.abrechnungHabenNeu h4 { margin: 0 0 3px; color: #144f6d; font-size: 16px; }
.abrechnungHabenNeu > p { margin: 0 0 12px; color: #557281; font-size: 13px; }
.abrechnungHabenNeuGesperrt { border-color: #d4e0e6; background: #f5f8fa; }
.abrechnungHabenNeuGesperrt > p { margin-bottom: 0; }
.abrechnungHabenListe { display: grid; gap: 10px; }
.abrechnungHabenEintrag { padding: 12px; border: 1px solid #d2e0e7; border-radius: 12px; background: #fff; box-shadow: 0 3px 10px rgba(24, 58, 78, .05); }
.abrechnungHabenForm { display: grid; grid-template-columns: minmax(150px, 1.2fr) 145px 105px 105px 105px minmax(170px, 1fr) minmax(180px, 1.2fr) auto; gap: 9px; align-items: end; }
.abrechnungHabenForm label, .abrechnungHabenPerson { display: grid; gap: 5px; min-width: 0; margin: 0; }
.abrechnungHabenForm label > span, .abrechnungHabenPerson > span { color: #5e7482; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.abrechnungHabenPerson strong { overflow: hidden; color: #163f59; text-overflow: ellipsis; white-space: nowrap; }
.abrechnungHabenPerson small { color: #17658a; font-weight: 750; }
.abrechnungHabenObjektFest { align-self: end; min-height: 40px; padding: 3px 0; }
.abrechnungHabenForm input, .abrechnungHabenForm select { width: 100%; min-width: 0; height: 40px; margin: 0; padding: 7px 9px; border: 1px solid #c5d7e1; border-radius: 8px; background: #fff; }
.abrechnungHabenSpeichern button { width: auto; min-height: 40px; margin: 0; padding: 8px 13px; white-space: nowrap; }
.abrechnungHabenSpeichern { display: grid; gap: 6px; }
.abrechnungHabenKopieren { border: 1px solid #175a7d; border-radius: 8px; color: #fff !important; background: #175a7d; cursor: pointer; }
.stundenKopieren:hover, .abrechnungHabenKopieren:hover { background: #104461; border-color: #104461; color: #fff !important; transform: none; }
.abrechnungHabenSchliessen:hover { background: #e5eff5; border-color: #5e879f; color: #163e56 !important; transform: none; }
.stundenKopieren:focus-visible, .abrechnungHabenKopieren:focus-visible, .abrechnungHabenSchliessen:focus-visible { outline: 3px solid #3486ad; outline-offset: 3px; }
.stundenKopieren:disabled, .abrechnungHabenKopieren:disabled, .abrechnungHabenSchliessen:disabled { background: #dce4e9; border-color: #b8c7d0; color: #465a67 !important; cursor: wait; }
#objektKopierStatus { color: #a12f2f; }
.abrechnungHabenLoeschen { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #e2eaee; }
.abrechnungHabenLoeschen a { margin-right: auto; color: #17577a; font-size: 12px; font-weight: 750; }
.abrechnungHabenLoeschen button { width: auto; min-height: 34px; margin: 0; padding: 6px 10px; font-size: 12px; }
.abrechnungHabenNichtEditierbar { display: flex; justify-content: space-between; gap: 16px; }
.abrechnungHabenNichtEditierbar div { display: grid; gap: 3px; }
.abrechnungHabenNichtEditierbar span, .abrechnungHabenNichtEditierbar p { margin: 0; color: #647b89; font-size: 13px; }
.abrechnungKeinExport { display: inline-block; max-width: 150px; color: #758996; font-size: 12px; line-height: 1.35; text-align: right; }
.abrechnungTabelle th:not(:first-child), .abrechnungZahl { text-align: right; white-space: nowrap; }
.abrechnungTabelle th:last-child { text-align: right; }
.abrechnungFett { font-weight: 850; }
.abrechnungPlus { color: #1f7a45; }
.abrechnungMinus { color: #b23b3b; }
.abrechnungHinweisPille { display: inline-flex; margin-left: 6px; padding: 3px 8px; border-radius: 999px; color: #805817; background: #fff1cf; font-size: 11px; font-weight: 850; }
.abrechnungHinweis { margin: 0 0 14px; padding: 12px 15px; border: 1px solid #f0d9a6; border-radius: 12px; color: #6d4c10; background: #fff8e6; }
.abrechnungHinweis a { color: #6d4c10; font-weight: 800; }
.abrechnungErklaerung { margin: 10px 2px 0; color: #657b89; font-size: 13px; }
.abrechnungStammdaten > summary { cursor: pointer; list-style: none; }
.abrechnungStammdaten > summary::-webkit-details-marker { display: none; }
.abrechnungStammdaten > summary h2 { display: inline-flex; align-items: center; gap: 8px; }
.abrechnungStammdaten > summary h2::before { content: "▸"; color: #17577a; }
.abrechnungStammdaten[open] > summary h2::before { content: "▾"; }
.abrechnungStammdatenTabelle input[type="number"], .abrechnungStammdatenTabelle select { width: 100%; min-width: 90px; margin: 0; }
.abrechnungStammdatenTabelle input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.abrechnungStammdatenTabelle button { width: auto; min-height: 38px; padding: 8px 12px; white-space: nowrap; }
.abrechnungEinstellungenKarte { margin: 18px 0; padding: 22px; background: #fff; border: 1px solid #d4e1e8; border-radius: 16px; }
.abrechnungEinstellungenKarte h2 { margin-top: 0; }
.abrechnungEinstellungen { display: grid; max-width: 420px; margin-top: 14px; }
.abrechnungEinstellungen label { margin: 14px 0 8px; font-weight: 750; }
.abrechnungEinstellungen label:first-of-type { margin-top: 0; }
.abrechnungBetragFeld { display: flex; align-items: center; gap: 10px; }
.abrechnungBetragFeld input { flex: 1; width: auto; }
.abrechnungBetragFeld span { color: #536b79; font-weight: 750; }
.abrechnungEinstellungen button { justify-self: start; width: auto; margin-top: 20px; }
.abrechnungEinstellungen small { margin-top: 6px; color: #536b79; line-height: 1.4; }
.abrechnungFeldTitel { margin: 0 0 8px; font-weight: 750; }
.abrechnungZeitraum { display: flex; gap: 14px; flex-wrap: wrap; }
.abrechnungEinstellungen .abrechnungZeitraum label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.abrechnungZeitraum input { width: auto; }
.abrechnungEinstellungen select { width: 100%; }
.abrechnungEinstellungen small + label, .abrechnungEinstellungen small + label:first-of-type { margin-top: 18px; }
.abrechnungFeiertagTabelle td { white-space: nowrap; }
.abrechnungFeiertagNeu { margin-top: 14px; }
.abrechnungFeiertagNeu button { width: auto; }
.abrechnungPage .portalHero button.portalSekundaer { width: auto; cursor: pointer; }
.abrechnungPage .portalHero .stundenVerwaltungAktionen {
    display: grid;
    grid-template-columns: repeat(2, 154px);
    gap: 9px;
}
.abrechnungPage .portalHero .stundenVerwaltungAktionen > .portalSekundaer {
    width: 154px !important;
    min-width: 154px;
    min-height: 46px;
    margin: 0;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 13px;
    background: rgba(255,255,255,.11);
    color: #fff !important;
    box-shadow: none;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.abrechnungPage .portalHero .stundenVerwaltungAktionen > .portalSekundaer:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.19);
    color: #fff !important;
    transform: none;
}
.abrechnungPage .portalHero .stundenVerwaltungAktionen > .portalSekundaer:focus-visible {
    outline: 3px solid rgba(255,255,255,.58);
    outline-offset: 3px;
}
.abrechnungDialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: none; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 40, 60, .28); }
.abrechnungDialog::backdrop { background: rgba(15, 35, 50, .45); }
.abrechnungDialog form { display: flex; flex-direction: column; gap: 10px; max-height: min(80vh, 680px); padding: 22px; }
.abrechnungDialog h2 { margin: 0; }
.abrechnungDialog p { margin: 0; color: #536b79; }
.abrechnungExportWerkzeuge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.abrechnungExportWerkzeuge button { width: auto; min-height: 34px; padding: 6px 12px; }
@media (max-width: 1100px) {
    .abrechnungKennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abrechnungMitarbeiterKennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abrechnungKennzahlen > div:last-child { grid-column: auto; }
    .abrechnungHabenForm { grid-template-columns: minmax(170px, 1.2fr) 150px repeat(3, 105px) minmax(190px, 1fr) auto; }
    .abrechnungHabenNotiz { grid-column: 1 / -2; }
}
@media (max-width: 760px) {
    .abrechnungKennzahlen { grid-template-columns: 1fr 1fr; }
    .abrechnungKennzahlen > div:last-child { grid-column: auto; }
    .abrechnungObjektTabelleCard { overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .abrechnungObjektTabelle { min-width: 0 !important; }
    .abrechnungMitarbeiterTabelleCard { overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .abrechnungMitarbeiterTabelle { min-width: 0 !important; }
    .abrechnungMitarbeiterTabelle tr { margin-bottom: 13px; overflow: hidden; border: 1px solid #d4e1e8; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(24, 58, 78, .06); }
    .abrechnungMitarbeiterTabelle td:first-child { min-width: 0; padding-bottom: 11px !important; border-bottom: 1px solid #e1e9ed !important; }
    .abrechnungMitarbeiterTabelle td:last-child { min-width: 0; }
    .abrechnungMitarbeiterTabelle .stundenVerwaltungAktionen { justify-content: flex-start; flex-wrap: wrap; }
    .abrechnungObjektTabelle tr { margin-bottom: 13px; overflow: hidden; border: 1px solid #d4e1e8; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(24, 58, 78, .06); }
    .abrechnungObjektTabelle td { align-items: center; }
    .abrechnungObjektTabelle td:first-child { min-width: 0; padding-bottom: 11px !important; border-bottom: 1px solid #e1e9ed !important; }
    .abrechnungObjektTabelle td:last-child { min-width: 0; }
    .abrechnungObjektTabelle .abrechnungHabenDetail { padding: 0; }
    .abrechnungObjektTabelle .abrechnungHabenDetail > td { display: block; padding: 0 !important; }
    .abrechnungObjektTabelle .abrechnungHabenDetail > td::before { display: none; }
    .abrechnungSollZelle, .abrechnungHabenZelle { background: transparent; }
    .abrechnungExportAktionen { justify-content: start; }
    .abrechnungKeinExport { text-align: left; }
    .abrechnungHabenBereich { padding: 15px; }
    .abrechnungHabenForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abrechnungHabenPerson, .abrechnungHabenMitarbeiter, .abrechnungHabenDatum, .abrechnungHabenObjekt, .abrechnungHabenNotiz { grid-column: 1 / -1; }
    .abrechnungHabenSpeichern { grid-column: 1 / -1; }
    .abrechnungHabenSpeichern button { width: 100%; }
    .abrechnungHabenNichtEditierbar { display: grid; }
}
@media (max-width: 480px) {
    .abrechnungKennzahlen { grid-template-columns: 1fr; }
    .abrechnungMitarbeiterKennzahlen { grid-template-columns: 1fr; }
    .abrechnungPage .portalHero .stundenVerwaltungAktionen { width: 100%; grid-template-columns: 1fr; }
    .abrechnungPage .portalHero .stundenVerwaltungAktionen > .portalSekundaer { width: 100% !important; min-width: 0; }
    .abrechnungHabenForm { grid-template-columns: 1fr; }
    .abrechnungHabenPerson, .abrechnungHabenForm label, .abrechnungHabenNotiz, .abrechnungHabenSpeichern { grid-column: 1; }
    .abrechnungHabenLoeschen { align-items: stretch; flex-direction: column; }
    .abrechnungHabenLoeschen a { margin-right: 0; text-align: center; }
    .abrechnungHabenLoeschen button { width: 100%; }
}
.abrechnungExportWerkzeuge span { margin-left: auto; color: #536b79; font-size: 13px; }
.abrechnungExportListe { display: grid; gap: 6px; overflow-y: auto; min-height: 80px; padding: 2px; }
.abrechnungExportEintrag { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border: 1px solid #dbe6ec; border-radius: 10px; cursor: pointer; }
.abrechnungExportEintrag input { width: 18px; height: 18px; margin: 0; }
.abrechnungExportEintrag:has(input:checked) { border-color: #b23b3b; background: #fbecec; text-decoration: line-through; }
.abrechnungDialog .modalButtons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.abrechnungDialog .modalButtons button { width: auto; margin: 0; }
.vertragFehlt { display: inline-flex; padding: 3px 8px; border-radius: 999px; color: #805817; background: #fff1cf; font-size: 12px; font-weight: 850; }
#vertragModal, #archivModal, #objektArchivModal { z-index: 12000; }
#archivForm label, #objektArchivForm label { display: block; margin: 18px 0 8px; }
#archivForm > label:first-of-type, #objektArchivForm > label:first-of-type { margin-top: 6px; }
#archivForm .modalButtons, #objektArchivForm .modalButtons { margin-top: 22px; }
.archivBereich { margin-top: 28px; }
.archivBereich > summary { cursor: pointer; list-style: none; }
.archivBereich > summary::-webkit-details-marker { display: none; }
.archivBereich > summary h2 { display: inline-flex; align-items: center; gap: 8px; }
.archivBereich > summary h2::before { content: "▸"; color: #17577a; }
.archivBereich[open] > summary h2::before { content: "▾"; }
.archivAnzahl { display: inline-flex; min-width: 24px; justify-content: center; padding: 2px 8px; border-radius: 999px; background: #e5edf2; color: #36556a; font-size: 13px; }
.archivNotiz { display: block; margin-top: 3px; color: #657b89; font-size: 12px; }
.archivTabelle td { vertical-align: top; }
.archivTabelle button { width: auto; min-height: 36px; padding: 7px 12px; }
#vertragForm label { margin: 18px 0 8px; }
#vertragForm label:first-of-type { margin-top: 6px; }
.vertragHinweis { display: block; margin: 8px 0 0; color: #657b89; line-height: 1.4; }
#vertragForm .vertragCheckbox { display: flex !important; align-items: center; gap: 10px; margin: 14px 0 0; font-weight: 600; }
#vertragForm .vertragCheckbox + .vertragCheckbox { margin-top: 10px; }
.vertragCheckbox input { width: 18px; height: 18px; margin: 0; }
#vertragForm .modalButtons { margin-top: 22px; }

/* Alle Pop-ups liegen über der festen Navigation und bleiben vollständig im sichtbaren Fenster. */
body:has(.modalHintergrund[style*="flex"]) { overflow: hidden; }
.modalHintergrund > .modalBox {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
}
@media (max-width: 720px) {
    .modalHintergrund { padding: 8px; align-items: flex-end; }
    .modalHintergrund > .modalBox {
        max-width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }
}

/* Archivieren statt Löschen bei Objekten mit Daten */
/* Objekt-Stundennachweis: kompakte Tagesabschnitte mit festen Spalten. */
.abrechnungTagesHinweis { margin: 0 0 14px; color: #526f80; font-size: 13px; }
.abrechnungTagesSpalten, .abrechnungHabenBereich .abrechnungHabenForm { display: grid; grid-template-columns: minmax(190px, 1.6fr) minmax(115px, .8fr) minmax(115px, .8fr) 95px minmax(110px, .8fr) 150px; gap: 12px; align-items: center; }
.abrechnungTagesSpalten { padding: 13px 16px; border-radius: 10px 10px 0 0; color: #fff; background: #174f6d; font-size: 12px; font-weight: 800; }
.abrechnungTagesListe { display: grid; gap: 16px; }
.abrechnungHabenTag { min-width: 0; overflow: hidden; border: 1px solid #c8dbe5; border-radius: 0 0 11px 11px; background: #fff; }
.abrechnungHabenTag + .abrechnungHabenTag { border-radius: 11px; }
.abrechnungTagKopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid #cbdde6; background: #e6f0f6; }
.abrechnungTagKopf h4 { margin: 0; color: #173f59; font-size: 15px; }
.abrechnungTagKopf h4 span { margin-left: 7px; color: #587688; font-size: 13px; font-weight: 650; }
.abrechnungTagWochenende .abrechnungTagKopf { background: #e3eaf2; }
.abrechnungTagHinzufuegen { width: auto; margin: 0; padding: 7px 12px; min-height: 34px; border: 1px solid #176488; border-radius: 8px; background: #176488; color: #fff !important; font-size: 12px; font-weight: 800; }
.abrechnungHabenTag .abrechnungHabenListe { gap: 0; }
.abrechnungHabenTag .abrechnungHabenEintrag { margin: 0; padding: 13px 16px 9px; border: 0; border-left: 4px solid #4c9973; border-bottom: 1px solid #dfebe4; border-radius: 0; background: #f6fbf8; box-shadow: none; }
.abrechnungHabenTag .abrechnungHabenEintrag:last-child { border-bottom: 0; }
.abrechnungHabenBereich .abrechnungHabenForm > * { grid-column: auto; min-width: 0; }
.abrechnungHabenBereich .abrechnungHabenForm > input[type='hidden'] { display: none; }
.abrechnungHabenBereich .abrechnungHabenPerson { align-self: center; }
.abrechnungHabenBereich .abrechnungHabenPerson small { display: none; }
.abrechnungHabenBereich .abrechnungHabenForm .abrechnungHabenSpeichern { grid-column: 6; grid-row: 1; }
.abrechnungHabenDauer { display: grid; gap: 7px; margin: 0; color: #175a7d; }
.abrechnungHabenDauer span { color: #5e7482; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.abrechnungHabenDauer strong { display: block; padding: 10px; border: 1px solid #d3e4dd; border-radius: 8px; background: #eaf3ee; font-size: 13px; white-space: normal; }
.abrechnungHabenBereich .abrechnungHabenForm > .abrechnungHabenZusatz { grid-column: 1 / -1; }
.abrechnungHabenZusatz summary { width: fit-content; padding: 4px 0; color: #577383; font-size: 12px; cursor: pointer; }
.abrechnungHabenZusatz > div { display: grid; grid-template-columns: 170px minmax(180px, 1fr) minmax(220px, 2fr); gap: 12px; padding-top: 7px; }
.abrechnungHabenBereich .abrechnungHabenZusatz label { grid-column: auto; }
.abrechnungHabenBereich .abrechnungHabenZusatz .abrechnungHabenNotiz { grid-column: auto / -1; }
.abrechnungHabenTag .abrechnungHabenLoeschen { margin-top: 6px; padding-top: 7px; border-top: 1px solid #dce9e1; }
.abrechnungTagLeer { margin: 0; padding: 14px 16px; color: #6d8290; font-size: 13px; }
.abrechnungTagLeer[hidden] { display: none; }
.abrechnungTagSumme { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid #d1e0e8; background: #f0f5f8; color: #244f69; font-size: 13px; }
.abrechnungTagSumme strong { min-width: 150px; text-align: right; }
.abrechnungHabenTag .abrechnungHabenNeu { margin: 0; border: 0; border-bottom: 1px dashed #99bdce; border-radius: 0; padding: 14px 16px; }
@media (max-width: 760px) {
    .abrechnungTagesSpalten { display: none; }
    .abrechnungHabenBereich .abrechnungHabenForm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .abrechnungHabenBereich .abrechnungHabenForm > .abrechnungHabenPerson,
    .abrechnungHabenBereich .abrechnungHabenForm > .abrechnungHabenMitarbeiter,
    .abrechnungHabenBereich .abrechnungHabenForm > .abrechnungHabenSpeichern,
    .abrechnungHabenBereich .abrechnungHabenForm > .abrechnungHabenZusatz { grid-column: 1 / -1; grid-row: auto; }
    .abrechnungHabenBereich .abrechnungHabenSpeichern { grid-template-columns: 1fr 1fr; }
    .abrechnungHabenBereich .abrechnungHabenSpeichern button { width: 100%; }
    .abrechnungHabenZusatz > div { grid-template-columns: 1fr; }
    .abrechnungTagKopf h4 span { display: block; margin: 3px 0 0; }
    .abrechnungHabenTag { border-radius: 11px; }
}
.aktionArchivieren { background: #a8670f; color: #fff !important; border: none; }
.aktionArchivieren:hover { background: #8a5409; color: #fff !important; }
.archivWiederherstellen { background: #edf5f9; color: #175a7d !important; border: 1px solid #c9dfe9; box-shadow: none; }
.archivWiederherstellen:hover { background: #dcebf3; color: #175a7d !important; }
