/* ====================================================
   style_v2.css — vollständiges Stylesheet des Intranets
   Struktur:
     1. Globale Defaults     (body, links, focus)
     2. Layout-Container     (background, main, footer, master, row, scroll_overflow)
     3. Typografie & Tabellen-Defaults (h1-h3, roter_text, table)
     4. Form-Komponenten Legacy (login_field, input_field, *_submit)
     5. Modul: Personalabrechnung (#PersoReiter*)
     6. Modul: Schichtplan-Kalender + Wochenplaner (#sp_*)
     7. Modul: Wunschplan-Kalender + Wochenplaner (#wp_*)
     8. Container für noch nicht modernisierte Pages (#DashboardContentContainer)
     9. Site-Header v2        (.site-header, .site-nav)
    10. Page-Layout v2        (.page-title, .page-content, .page-help, .page-prose)
    11. Auth-Page v2          (.auth-*)
    12. Dashboard-Komponenten v2 (.dashboard-*)
    13. Card-Komponenten v2   (.card-field, .card-table, .record-row*)
    14. Session-Timer v2      (.session-timer)
   ==================================================== */

/* === 1. Globale Defaults === */
	body { font-family:Arial, Helvetica, sans-serif; font-size:18px; text-align:center; margin:0; padding:0; overflow-x:hidden; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; display:flex; flex-direction:column; min-height:100vh; }
	a:link { color:#FFF; text-decoration:none; }
	a:visited { color:#FFF; text-decoration:none; }
	a:hover { color:#FFF; text-decoration:none; }
	a:active { text-decoration:none; }
	:focus-visible { outline:2px solid rgba(255,255,255,0.85); outline-offset:2px; border-radius:4px; }

/* === 2. Layout-Container === */
	#background { position:fixed; left:0; right:0; top:0; bottom:0; margin:auto; background-color:#0B80C6; background-image:url("../design/background.png"); background-repeat:no-repeat; background-size:cover; }
	#main { position:relative; width:100%; flex:1 0 auto; }
	#footer { position:relative; width:100%; min-height:150px; padding-top:40px; flex-shrink:0; }
	#footerContent { font-size:12px; }
	.master { position:relative; width:95%; max-width:1800px; margin:auto; overflow:hidden; }
	.row:after { content:""; display:table; clear:both; }
	.scroll_overflow { overflow-x:auto; padding-bottom:20px; }

/* === 3. Typografie & Tabellen-Defaults === */
	.h1 { font-size:35px; text-transform:uppercase; }
	.h2 { font-size:30px; text-transform:uppercase; }
	.h3 { font-size:25px; }
	.roter_text { color:darkorange; }
	table { border-collapse:collapse; width:100%; margin:auto; }
	.tr_border_bottom { border-bottom:1px solid #FFF; }
	.tr_headline { background-color:#15777e; border:1px solid #FFF; font-weight:bold; }
	tr:hover { background:#087abd !important; }
	tr:hover td { background:transparent; }
	.small_table_text { font-size:13px; }

/* === 4. Form-Komponenten Legacy === */
	.login_field { -webkit-appearance:none; box-sizing:border-box; width:90%; height:40px; font-size:18px; line-height:40px; border:2px solid #FFF; margin-top:5px; text-align:center; }
	.input_field { -webkit-appearance:none; box-sizing:border-box; width:90%; max-width:300px; height:40px; font-size:18px; line-height:40px; border:2px solid #FFF; margin-top:5px; text-align:center; }
	.header_select { -webkit-appearance:none; box-sizing:border-box; height:40px; font-size:18px; line-height:40px; padding-left:10px; padding-right:10px; border:2px solid #FFF; margin-top:5px; text-align:center; }
	.table_input_field { -webkit-appearance:none; box-sizing:border-box; width:100%; height:30px; font-size:12px; line-height:26px; border:2px solid #FFF; text-align:center; }

	.login_submit { -webkit-appearance:none; box-sizing:border-box; width:90%; height:40px; font-size:18px; line-height:40px; color:#FFF; font-weight:bold; border:2px solid #FFF; margin-top:5px; transition:0.5s; background-color:#0bb9c6; }
	.login_submit:hover { background-color:transparent; }
	.small_submit { -webkit-appearance:none; box-sizing:border-box; width:90%; height:30px; font-size:13px; line-height:26px; color:#FFF; font-weight:bold; border:2px solid #FFF; transition:0.5s; background-color:#0bb9c6; }
	.small_submit:hover { background-color:transparent; }
	.big_submit { -webkit-appearance:none; box-sizing:border-box; width:90%; max-width:300px; height:150px; font-size:18px; color:#FFF; font-weight:bold; border:2px solid #FFF; margin-top:5px; transition:0.5s; background-color:#0bb9c6; }
	.big_submit:hover { background-color:transparent; }
	.regular_submit { -webkit-appearance:none; box-sizing:border-box; width:90%; max-width:300px; height:40px; font-size:18px; line-height:40px; color:#FFF; font-weight:bold; border:2px solid #FFF; margin-top:5px; transition:0.5s; background-color:#0bb9c6; }
	.regular_submit:hover { background-color:transparent; }
	.regular_submit2 { -webkit-appearance:none; box-sizing:border-box; width:90%; max-width:300px; height:40px; font-size:18px; line-height:40px; color:#FFF; font-weight:bold; border:2px solid #FFF; margin-top:5px; transition:0.5s; background-color:#15777e; }
	.regular_submit2:hover { background-color:transparent; }

/* === 5. Modul: Personalabrechnung (Tabs + Panes für die zwei Reiter „Personalabrechnung" und „Feiertage") === */
	.persoabrechnung-tabs { display:flex; gap:4px; margin-bottom:16px; flex-wrap:wrap; }
	.persoabrechnung-tab { flex:1 1 200px; min-width:0; padding:12px 18px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.4); border-radius:10px; color:#FFF; font-size:14px; font-weight:600; cursor:pointer; transition:background 0.2s, border-color 0.2s; -webkit-appearance:none; font-family:inherit; text-align:center; }
	.persoabrechnung-tab:hover { background:rgba(255,255,255,0.14); border-color:rgba(255,255,255,0.6); }
	.persoabrechnung-tab.is-active { background:#0bb9c6; border-color:#0bb9c6; }
	.persoabrechnung-pane { display:none; overflow-x:auto; -webkit-overflow-scrolling:touch; }
	.persoabrechnung-pane.is-active { display:block; }
	/* Innerhalb der Panes leben noch die alten Datentabellen mit .tr_headline / .table_input_field / .small_submit / .regular_submit — die behalten ihr Legacy-Styling, damit die zahlreichen Form-Submission-Logiken nicht beschädigt werden. */
	.persoabrechnung-pane table { min-width:1000px; }
	#PersoPerso table { min-width:1600px; }
	/* Tracking-Eintrag liegt mehr als 0,3h über der Plan-Vorgabe — Stunden- und laut-Plan-Zelle in Signalfarbe rahmen, damit Diskrepanzen sofort auffallen. */
	.persoabrechnung-cell--over-plan { outline:2px solid #ff3b3b; outline-offset:-2px; box-shadow:0 0 6px 1px rgba(255,59,59,0.5) inset; }
	/* Persoabrechnung-Tabellen-Polish: dezenteres modernes Look-and-Feel ohne mehr Platzbedarf — entrümpelt die heavy white Cell-Borders, modernisiert Header und Inputs. */
	.persoabrechnung-pane table { border-collapse:collapse; }
	.persoabrechnung-pane td { padding:6px 8px; vertical-align:middle; }
	/* Header-Zellen (.tr_headline) modernisiert: dezenter Hintergrund, Uppercase-Tracking, kein klobiger Cyan-Block */
	.persoabrechnung-pane td.tr_headline { background:rgba(0,0,0,0.2); border:0; border-bottom:1px solid rgba(255,255,255,0.25); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:rgba(255,255,255,0.92); padding:10px 8px; }
	/* Body-Zeilen: nur dezente Untergrenze statt schwere weiße Borders pro Zelle */
	.persoabrechnung-pane td.tr_border_bottom { border:0; border-bottom:1px solid rgba(255,255,255,0.12); }
	/* Hover-Highlight im persoabrechnung-Kontext: dezent statt grellem Cyan-Default aus den globalen Regeln */
	.persoabrechnung-pane tr:hover { background:transparent !important; }
	.persoabrechnung-pane tr:hover td:not(.tr_headline) { background:rgba(255,255,255,0.06); }
	/* Inputs: moderner Card-Field-Look statt eckiger Legacy-Box */
	.persoabrechnung-pane .table_input_field { border:1px solid rgba(255,255,255,0.25); background:rgba(255,255,255,0.06); color:#FFF; border-radius:4px; padding:4px 8px; height:32px; font-size:12px; transition:border-color 0.15s, background 0.15s; }
	.persoabrechnung-pane .table_input_field:focus { border-color:#FFF; background:rgba(255,255,255,0.14); outline:none; }
	/* Mini-Buttons in Zellen: weniger blockig, modernes Pill-Design */
	.persoabrechnung-pane .small_submit { background:transparent; border:1px solid rgba(255,255,255,0.4); border-radius:6px; color:#FFF; font-size:12px; font-weight:600; height:30px; padding:0 12px; width:auto; cursor:pointer; transition:background 0.2s, border-color 0.2s; }
	.persoabrechnung-pane .small_submit:hover { background:rgba(255,255,255,0.15); border-color:rgba(255,255,255,0.7); }
	/* Größere Submit-Buttons — gleiche Logik */
	.persoabrechnung-pane .regular_submit { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.4); border-radius:8px; color:#FFF; font-size:14px; font-weight:600; height:38px; padding:0 16px; width:auto; max-width:none; margin:0; cursor:pointer; transition:background 0.2s, border-color 0.2s; }
	.persoabrechnung-pane .regular_submit:hover { background:rgba(255,255,255,0.18); border-color:rgba(255,255,255,0.7); }
	/* Feiertage-Liste: responsive Grid (kein <table>), bricht auf Mobile in 2 Zeilen pro Eintrag um.
	   max-width sorgt dafür, dass die Liste auf breiten Screens nicht unnötig auseinandergezogen wirkt; auf Mobile passt 100%. */
	.feiertage-list { display:flex; flex-direction:column; gap:8px; min-width:0; max-width:680px; margin:0 auto; }
	.feiertage-row { display:grid; grid-template-columns:170px 1fr auto auto; gap:8px; align-items:center; }
	.feiertage-row--new { grid-template-columns:170px 1fr auto; }
	.feiertage-row .card-field { height:38px; }
	@media (max-width:640px) {
		.feiertage-row, .feiertage-row--new { grid-template-columns:1fr 1fr; }
		.feiertage-row .feiertage-date, .feiertage-row .feiertage-name { grid-column:1 / -1; }
	}

/* === 6. Modul: Schichtplan-Kalender === */
	#sp_calendar { width:100%; max-width:300px; margin:0 auto; }
	#sp_calendar_nav { position:relative; top:0; left:0; width:100%; height:35px; background-color:#0bb9c6; border:1px solid #FFF; box-sizing:border-box; }
	#sp_calendar_nav_headline { line-height:35px; vertical-align:middle; width:100%; height:35px; text-align:center; }
	#sp_calendar_nav_prev, #sp_calendar_nav_next { position:absolute; top:0; width:50px; font-size:17px; display:block; cursor:pointer; text-decoration:none; }
	#sp_calendar_nav_prev { left:0; }
	#sp_calendar_nav_next { right:0; }
	#sp_calendar_nav_title { font-weight:bold; font-size:17px; }
	#sp_calendar_content { position:relative; border:1px solid #FFF; border-top:none; width:100%; box-sizing:border-box; }
	#sp_calendar_content_label { float:left; margin:0; padding:0; width:100%; }
	#sp_calendar_content_label li { margin:0; padding:0; float:left; list-style-type:none; width:12.5%; height:30px; line-height:30px; vertical-align:middle; text-align:center; font-size:15px; }
	#sp_calendar_content ul.dates { float:left; margin:0; padding:0; width:100%; }
	#sp_calendar_content ul.dates li { margin:0; padding:0; line-height:30px; vertical-align:middle; float:left; list-style-type:none; width:12.5%; height:30px; font-size:17px; text-align:center; }
	.sp_calendar_kw_row_active { position:relative; width:100%; height:30px; background-color:#15777e; }
	.sp_calendar_kw_row { position:relative; width:100%; height:30px; }
	.today { border:1px solid #FFF; box-sizing:border-box; border-radius:50%; }
	.weekMumbers { background-color:#0bb9c6; cursor:pointer; font-style:italic; }
	.weekMumbers:hover { background-color:transparent; }

	#sp_highlight_person { width:350px; margin:auto; }

/* === Schichtplan-Wochenplaner === */
	#sp_planer { min-width:1000px; font-size:13px; }
	.sp_planer_date { float:left; width:12.5%; height:25px; margin-top:5px; border:1px solid #FFF; background-color:#0bb9c6; box-sizing:border-box; line-height:25px; }
	.sp_planer_date_today { float:left; width:12.5%; height:25px; margin-top:5px; border:1px solid #FFF; background-color:#15777e; box-sizing:border-box; line-height:25px; }
	.sp_planer_timeslot_title { float:left; width:12.5%; height:60px; border:1px solid #FFF; background-color:#0bb9c6; box-sizing:border-box; line-height:35px; }
	.sp_planer_timeslot { float:left; width:12.5%; border:1px solid #FFF; box-sizing:border-box; line-height:30px; }
	.sp_planer_timeslot_location_frame { margin:2.5%; width:95%; border:1px solid #FFF; box-sizing:border-box; }
	.sp_planer_timeslot_location { width:100%; height:25px; line-height:25px; }
	.sp_planer_timeslot_location_1 { background-color:#c6590b; }
	.sp_planer_timeslot_location_2 { background-color:#105612; }
	.sp_planer_timeslot_location_3 { background-color:#1d4c86; }
	.sp_planer_timeslot_person { width:98%; height:25px; line-height:25px; margin:1%; background-color:#FFF; color:#000; font-size:12px; }
	.sp_planer_timeslot_person_select { width:100%; height:25px; -webkit-appearance:none; box-sizing:border-box; border:none; text-align:center; }
	.sp_planer_timeslot_person_add { width:98%; height:25px; line-height:25px; margin:1%; margin-top:2%; background-color:#5a5757; color:#FFF; font-size:12px; font-weight:bold; }
	.sp_planer_timeslot_zusatzperson { width:98%; height:50px; line-height:25px; margin:1%; margin-top:2%; background-color:#FFF; color:#000; font-size:12px; }
	.sp_planer_timeslot_zusatzperson_typ_1 { background-color:#fff23b; }
	.sp_planer_timeslot_zusatzperson_typ_2 { background-color:#96ff3b; }
	.sp_planer_timeslot_zusatzperson_typ_3 { background-color:#3bfff2; }
	.sp_planer_timeslot_zusatzperson_typ_4 { background-color:#f53bff; }
	.sp_planer_timeslot_zusatzperson_typ_5 { background-color:#3baaff; }
	.sp_planer_timeslot_zusatzperson_typ_6 { background-color:#ffad3b; }

	.sp_me { font-weight:bold; text-decoration:underline; outline:3px solid #96ff3b; outline-offset:-3px; box-sizing:border-box; }

/* === Schichtplan: Experio-Buchungsstatus (genutzt in schichtplan.php + schichtplanung.php) === */
	.experio_booked { background-color:#60936F; width:100%; height:100%; }
	.experio_open { background-color:#92C44F; background-image:linear-gradient(to right, #F0F0F0, #92C44F); width:100%; height:100%; }
	.experio_closed { background-color:#F0F0F0; width:100%; height:100%; }
	.experio_shortName { font-size:10px; position:absolute; top:0; right:0; bottom:0; width:15%; overflow:hidden; text-align:right; padding-right:2.5%; pointer-events:none; }
	.experio_booking_status { position:relative; height:100%; }
	.experio_booking_status .sp_planer_timeslot_person_select { background:transparent; }
	.sp_person_name { position:absolute; top:0; left:0; bottom:0; width:77.5%; overflow:hidden; text-align:left; padding-left:2.5%; word-break:break-all; }

/* === Schichtplan v2 (modernisierte Read-Only-Ansicht: CSS-Grid + sticky erste Spalte + Carousel-Snap auf Mobil) === */
	.schichtplan-wrapper { overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; }
	/* Frame-Container relativ, damit die Scroll-Pfeile per position:absolute auf die Wrapper-Kanten gepinnt werden können (nicht mit dem Inhalt mitscrollen).
	   Auf Desktop-Bildschirmen, wenn der Plan breiter als der Viewport ist, sonst per Touch-Swipe nicht erreichbar — daher Klick-Pfeile als Fallback. */
	.schichtplan-frame { position:relative; }
	/* Vertikale Position (top) wird in JS gesetzt — Pfeile bleiben mittig im Viewport, solange der Frame in Sicht ist (auch bei sehr langem Plan). Fallback: 20px, falls JS aus. */
	.schichtplan-scroll { position:absolute; top:20px; width:36px; height:36px; padding:0; border:1px solid rgba(255,255,255,0.5); border-radius:50%; background:rgba(0,0,0,0.65); color:#FFF; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; z-index:6; opacity:0.85; box-shadow:0 2px 8px rgba(0,0,0,0.45); transition:background 0.15s, opacity 0.15s, border-color 0.15s; -webkit-appearance:none; }
	.schichtplan-scroll:hover, .schichtplan-scroll:focus-visible { background:rgba(0,0,0,0.85); border-color:rgba(255,255,255,0.85); opacity:1; outline:none; }
	.schichtplan-scroll svg { width:18px; height:18px; }
	.schichtplan-scroll--prev { left:-6px; }
	.schichtplan-scroll--next { right:-6px; }
	.schichtplan-scroll[hidden] { display:none; }
	@media (max-width:768px) { .schichtplan-scroll { display:none !important; } }
	/* Body ist ein vertikaler Flex (Timeslot-Rows stapeln), jede Row ist ihrerseits eine horizontale Flex-Row.
	   Mit Flex (statt CSS-Grid) ist der Containing-Block des sticky Time-Titles die ganze Row-Breite,
	   sodass die Zeitspalte beim horizontalen Scrollen über den ganzen Plan hinweg sticky bleibt. */
	#sp_planer.sp_planer--grid { display:flex; flex-direction:column; width:100%; gap:14px; font-size:13px; }
	#sp_planer.sp_planer--grid > .row { display:none; }
	.sp_timeslot_row { display:flex; flex-wrap:nowrap; align-items:stretch; gap:4px; min-width:100%; width:max-content; }

	/* Wochen-Navigation: ◀ KW 19 ▶ + Kalender-Toggle + Heute-Sprung */
	.schichtplan-week-nav { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
	.schichtplan-week-arrow,
	.schichtplan-week-cal-toggle { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.12); color:#FFF; transition:background 0.2s; flex-shrink:0; border:0; cursor:pointer; padding:0; -webkit-appearance:none; }
	.schichtplan-week-arrow:hover, .schichtplan-week-arrow:focus-visible,
	.schichtplan-week-cal-toggle:hover, .schichtplan-week-cal-toggle:focus-visible { background:rgba(255,255,255,0.22); }
	.schichtplan-week-arrow svg,
	.schichtplan-week-cal-toggle svg { width:16px; height:16px; }
	.schichtplan-week-cal-toggle[aria-expanded="true"] { background:#0bb9c6; }
	.schichtplan-week-cal-toggle[aria-expanded="true"]:hover { background:#15777e; }
	.schichtplan-week-label { font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; opacity:0.8; min-width:64px; text-align:center; font-variant-numeric:tabular-nums; }
	.schichtplan-week-today { margin-left:6px; padding:6px 14px; border-radius:6px; background:#0bb9c6; color:#FFF; font-size:13px; font-weight:600; transition:background 0.2s; }
	.schichtplan-week-today:hover, .schichtplan-week-today:focus-visible { background:#15777e; color:#FFF; }

	/* Ausklappbares Kalender-Panel (Toggle via .schichtplan-week-cal-toggle in der Wochen-Navigation) */
	.schichtplan-calendar-panel { margin:0 0 16px; padding:14px; background:rgba(0,0,0,0.18); border-radius:8px; }
	.schichtplan-calendar-panel[hidden] { display:none; }

	/* Time-Title (Flex-Item col 1, sticky-left fixiert beim horizontalen Scrollen). flex:0 0 30px → fixe 30px-Breite, kein Grow/Shrink. */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_title { flex:0 0 30px; float:none; width:30px; height:auto; margin:0; padding:2px 0; border:0; background:#15777e; color:#FFF; box-sizing:border-box; line-height:1.1; border-radius:6px; text-align:center; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; white-space:normal; font-variant-numeric:tabular-nums; position:sticky; left:0; z-index:2; overflow:hidden; }
	/* Schrift hochkant (90° gegen Uhrzeigersinn): "9:30 - 11:00" passt einzeilig in die schmale Spalte */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_title > span { display:inline-block; transform:rotate(-90deg); white-space:nowrap; }

	/* Cells (Flex-Item cols 2-8). flex:1 0 0 + min-width:180px → wachsen gleichmäßig ab Basis 0, mind. 180px breit. */
	#sp_planer.sp_planer--grid .sp_planer_timeslot { flex:1 0 0; min-width:180px; float:none; width:auto; border:1px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.06); box-sizing:border-box; padding:6px; border-radius:6px; min-height:60px; line-height:1.3; }
	/* Day-Label sitzt im Cell oben, gleiche Frame-Padding-Struktur wie Location-Bars darunter, damit Breiten exakt fluchten */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_day_wrapper { margin:0 0 4px; width:auto; border:0; padding:4px; background:transparent; border-radius:4px; box-sizing:border-box; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_day { box-sizing:border-box; width:100%; line-height:1.2; padding:4px 6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#FFF; background:#15777e; border-radius:3px; text-align:center; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_day--today { background:#0bb9c6; }
	/* Frame ist ein 7-Spalten-Grid: Standort-Bar und volle Personen-Slots spannen alle 7 Spalten,
	   kompakte Slots spannen 1 Spalte → bis zu 7 nebeneinander, weniger als 7 lassen die Zeile rechts unausgefüllt. */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_location_frame { display:grid; grid-template-columns:repeat(7, 1fr); gap:3px; margin:0 0 4px; width:auto; border:0; padding:4px; background:rgba(0,0,0,0.15); border-radius:4px; box-sizing:border-box; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_location_frame:last-child { margin-bottom:0; }
	/* box-sizing:border-box, sonst macht das padding den Header breiter als die Personen-Boxen darunter */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_location { grid-column:span 7; box-sizing:border-box; width:100%; height:auto; line-height:1.2; padding:3px 6px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.3px; color:#FFF; border-radius:3px; margin:0; text-align:left; }
	/* Person-Box braucht fixe Höhe, weil .sp_person_name absolut positioniert ist (top:0;bottom:0) */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person { grid-column:span 7; box-sizing:border-box; width:100%; height:24px; line-height:24px; margin:0; background:#FFF; color:#000; font-size:11px; }
	/* Schichtplanung-Admin: BOOKED-Slot ohne zugewiesene Person → orangener Warning-Rahmen via Pseudo-Element,
	   das absolut über alle Slot-Inhalte gelegt wird (z-index sorgt für Sichtbarkeit über bg/select hinweg, pointer-events:none lässt Klicks durch). */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--unassigned { position:relative; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--unassigned::after { content:''; position:absolute; inset:0; border:3px solid #ff3b3b; border-radius:3px; pointer-events:none; box-sizing:border-box; z-index:5; box-shadow:0 0 8px 1px rgba(255,59,59,0.7); }
	/* Stufe 2: automatischer Vorschlag (noch nicht gespeichert) – grün. Steht VOR den Warn-Markern,
	   damit ein Konflikt/Abwesenheit (rot) bei gleicher Spezifität gewinnt, falls ein Vorschlag manuell entgleist. */
	#sp_planer .sp_planer_timeslot_person_select.sp_select--vorschlag { outline:2px solid #2e9e4f; outline-offset:-2px; background:#e8ffe8; }
	/* Stufe-1-Planungshilfen: Konflikt (Doppelbelegung) und Abwesenheit (Urlaub/Krank) am Personen-Select markieren.
	   Outline statt border, damit das 25px-Layout der Selects unverändert bleibt. id-Selektor schlägt die Basis-Regeln. */
	#sp_planer .sp_planer_timeslot_person_select.sp_select--conflict { outline:2px solid #e23b3b; outline-offset:-2px; }
	#sp_planer .sp_planer_timeslot_person_select.sp_select--absent { outline:2px solid #e23b3b; outline-offset:-2px; background:#ffe2e2; }
	/* "Person markieren"-Suchtreffer (grün) — steht NACH den anderen, damit der Hintergrund die Suche gewinnt; rote Outlines (Konflikt/Abwesenheit) bleiben sichtbar. */
	#sp_planer .sp_planer_timeslot_person_select.sp_select--highlight { background:#96ff3b; }
	/* Abwesende Personen in den Dropdown-Optionen kenntlich machen */
	.sp_opt_abwesend { color:#b00; }
	/* Schichttausch: anklickbare Slots + Marker für unbestätigte Anfragen */
	#sp_planer .sp_clickable, #sp_planer .sp_tausch_clickable { cursor:pointer; }
	#sp_planer .sp_planer_timeslot_person--pending { position:relative; outline:2px dashed #f0a132; outline-offset:-2px; }
	.sp_pending_badge { font-size:10px; line-height:1.2; font-weight:bold; color:#f0a132; margin-top:2px; }
	/* Pending-Übergang in einer Zeile statt des Namens (Übernahme/Einspringen) — schwarze Schrift für Lesbarkeit, Status via Sanduhr + orangem Rahmen */
	.sp_person_name.sp_pending_line { color:#000; font-style:italic; }
	.sp_hg { font-style:normal; display:inline-block; }
	/* Anfrage-Zeilen (Karten "Offene Anfragen" / "Anfragen, die dich betreffen") */
	.tausch-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.08); flex-wrap:wrap; }
	.tausch-row:last-child { border-bottom:none; }
	.tausch-row-text { flex:0 1 auto; font-size:14px; }
	.tausch-row-actions { display:flex; gap:8px; flex-shrink:0; }
	/* Nutzerverwaltung: kurzes grünes Aufblitzen nach dem Sofort-Speichern eines Qualifikations-Häkchens */
	@keyframes um-qual-saved-flash { from { background:rgba(79,209,122,0.55); } to { background:transparent; } }
	.um-qual-saved { animation:um-qual-saved-flash 0.7s ease-out; }
	/* Stufe 2: Bericht-Popup nach dem Auto-Vorschlag */
	.sp-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); display:flex; align-items:center; justify-content:center; z-index:1000; padding:16px; }
	.sp-modal { background:#1d2733; color:#fff; border-radius:12px; max-width:460px; width:100%; max-height:80vh; display:flex; flex-direction:column; box-shadow:0 12px 40px rgba(0,0,0,0.5); }
	.sp-modal-title { font-size:18px; font-weight:bold; padding:18px 20px; border-bottom:1px solid rgba(255,255,255,0.12); }
	.sp-modal-body { padding:16px 20px; overflow-y:auto; }
	.sp-modal-section-title { font-size:12px; text-transform:uppercase; letter-spacing:0.05em; opacity:0.6; margin:14px 0 6px; }
	.sp-modal-stat { font-size:15px; font-weight:600; margin:6px 0; }
	.sp-modal-stat--ok { color:#4fd17a; }
	.sp-modal-stat--warn { color:#ffb13b; }
	.sp-modal-list { list-style:none; margin:0 0 4px; padding:0; }
	.sp-modal-list li { font-size:13px; padding:4px 0; border-bottom:1px solid rgba(255,255,255,0.07); }
	.sp-modal-actions { padding:14px 20px; border-top:1px solid rgba(255,255,255,0.12); display:flex; justify-content:flex-end; }
	/* Kompakter Slot: OPEN/CLOSED ohne zugewiesene Person → ein Grid-Track breit, 1/7 der Frame-Innenbreite. Bis zu 7 nebeneinander.
	   Kein eigenes background hier, damit die Status-Klasse durchschlägt (.experio_open Gradient / .experio_closed grau).
	   order:1 sortiert Compacts ans Ende des Frames (nach Standort-Bar + zugewiesenen Slots), unabhängig von der Position-Reihenfolge im DOM. */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--compact { grid-column:span 1; order:1; display:block; width:auto; height:24px; line-height:1; margin:0; padding:0; background:transparent; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--compact .experio_booking_status { position:static; width:100%; height:24px; padding:0 2px; border-radius:3px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; overflow:hidden; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--compact .experio_shortName { position:static; width:auto; height:auto; padding:0; overflow:visible; text-align:center; font-size:9px; font-weight:700; color:#000; line-height:1; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person--compact .sp_person_name { display:none; }
	/* Kein background hier — die typ-Klassen (.sp_planer_timeslot_zusatzperson_typ_1..6) sollen sich farblich durchsetzen. Base-Klasse liefert weiß als Fallback für typ_0/unbekannt. */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_zusatzperson { grid-column:span 7; width:100%; height:auto; min-height:38px; line-height:1.3; margin:0; padding:3px 4px; color:#000; font-size:10px; box-sizing:border-box; border-radius:3px; }
	/* Schichtplanung-Admin: "+ neuen Zusatzperson hinzufügen"-Link spannt komplette Frame-Breite */
	#sp_planer.sp_planer--grid .sp_planer_timeslot_location_frame > a { grid-column:span 7; display:block; text-decoration:none; }
	#sp_planer.sp_planer--grid .sp_planer_timeslot_person_add { width:100%; height:24px; line-height:24px; background:#5a5757; color:#FFF; font-size:12px; font-weight:bold; text-align:center; border-radius:3px; box-sizing:border-box; margin:0; }

	/* Mobil: Full-Bleed bis zu den Card-Rändern + Snap zwischen Tagen */
	@media (max-width:768px) {
		.schichtplan-wrapper { margin:0 -24px; scroll-snap-type:x mandatory; scroll-padding-left:34px; }
		#sp_planer.sp_planer--grid { font-size:12px; }
		#sp_planer.sp_planer--grid .sp_planer_timeslot_day { font-size:10px; padding:3px 4px; }
		/* Strikte Tag-Spalten-Breite: ohne min-width:0 expandiert die Cell durch den Min-Content ihres Frames (= 7-Spalten-Grid mit Compacts).
		   Hat ein Frame mehr Compacts als ein anderer, wird seine Cell breiter → Tag-Spalten zwischen Timeslot-Zeilen verschieben sich.
		   Auf Desktop egalisiert flex-grow die Differenz, auf Mobile (kein Spielraum) zeigt sie sich. flex:0 0 200px friert die Cell-Breite ein, min-width:0 bricht die Min-Content-Kette. */
		#sp_planer.sp_planer--grid .sp_planer_timeslot { flex:0 0 200px; min-width:0; padding:3px; min-height:50px; scroll-snap-align:start; }
		#sp_planer.sp_planer--grid .sp_planer_timeslot_location_frame { min-width:0; }
		#sp_planer.sp_planer--grid .sp_planer_timeslot_location { font-size:9px; padding:2px 4px; }
		#sp_planer.sp_planer--grid .sp_planer_timeslot_person { min-width:0; font-size:10px; height:22px; line-height:22px; }
	}
/********/

/* === 7. Modul: Wunschplan-Kalender === */
	#wp_calendar { width:100%; max-width:350px; margin:0 auto; }
	#wp_calendar_nav { position:relative; top:0; left:0; width:100%; height:35px; background-color:#0bb9c6; border:1px solid #FFF; box-sizing:border-box; }
	#wp_calendar_nav_headline { line-height:35px; vertical-align:middle; width:100%; height:35px; text-align:center; }
	#wp_calendar_nav_prev, #wp_calendar_nav_next { position:absolute; top:0; width:50px; font-size:17px; display:block; cursor:pointer; text-decoration:none; }
	#wp_calendar_nav_prev { left:0; }
	#wp_calendar_nav_next { right:0; }
	#wp_calendar_nav_title { font-weight:bold; font-size:17px; }
	#wp_calendar_content { position:relative; border:1px solid #FFF; border-top:none; width:100%; box-sizing:border-box; }
	#wp_calendar_content_label { float:left; margin:0; padding:0; width:100%; }
	#wp_calendar_content_label li { margin:0; padding:0; float:left; list-style-type:none; width:12.5%; height:40px; line-height:40px; vertical-align:middle; text-align:center; font-size:15px; }
	#wp_calendar_content ul.dates { float:left; margin:0; padding:0; width:100%; }
	#wp_calendar_content ul.dates li { margin:0; padding:0; line-height:40px; vertical-align:middle; float:left; list-style-type:none; width:12.5%; height:40px; font-size:17px; text-align:center; }
	.wp_calendar_kw_row_active { position:relative; width:100%; height:40px; background-color:#15777e; }
	.wp_calendar_kw_row { position:relative; width:100%; height:40px; }
	.wp_no { background-color:#c6590b; }

/* === Wunschplan-Wochenplaner v2 (modernisiert: CSS Grid statt Floats) === */
	#wp_planer { width:100%; max-width:720px; margin:0 auto; font-size:13px; display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; position:relative; }
	#wp_planer > .row { display:none; }
	#wp_planer .wp_planer_date,
	#wp_planer .wp_planer_date_today { float:none; width:auto; height:auto; padding:10px 4px; margin:0 0 6px; border:0; background:#0bb9c6; color:#FFF; box-sizing:border-box; line-height:1.2; border-radius:6px; text-align:center; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
	#wp_planer .wp_planer_date_today { background:#15777e; }
	#wp_planer .wp_planer_timeslot { float:none; width:auto; height:auto; padding:0; margin:0; border:0; box-sizing:border-box; line-height:normal; position:relative; min-height:48px; }
	#wp_planer .wp_planer_timeslot > a { display:block; height:100%; min-height:48px; text-decoration:none; color:#FFF; }
	#wp_planer .wp_planer_timeslot_person { position:relative; width:100%; height:100%; min-height:48px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.25); border-radius:6px; color:#FFF; display:flex; align-items:center; justify-content:center; font-size:11px; padding:4px; transition:background 0.15s, border-color 0.15s; text-align:center; line-height:1.2; box-sizing:border-box; cursor:pointer; }
	#wp_planer .wp_planer_timeslot:hover .wp_planer_timeslot_person { background:rgba(255,255,255,0.16); border-color:rgba(255,255,255,0.55); }
	#wp_planer .wp_yes { background:#0bc611; color:#FFF; font-weight:700; width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:5px; }
	#wp_planer .wp_planer_timeslot:hover .wp_yes { background:#089a0e; }
	@media (max-width:600px) {
		#wp_planer { font-size:11px; gap:3px; }
		#wp_planer .wp_planer_date,
		#wp_planer .wp_planer_date_today { padding:6px 2px; font-size:11px; }
		#wp_planer .wp_planer_timeslot { min-height:42px; }
		#wp_planer .wp_planer_timeslot > a { min-height:42px; }
		#wp_planer .wp_planer_timeslot_person { font-size:10px; min-height:42px; padding:2px; }
	}

/* === 8. Container für noch nicht modernisierte Pages === */
	#DashboardContentContainer { width:100%; margin-top:30px; color:#FFF; padding-bottom:50px; }

/* === 9. Site-Header v2 === */
	.site-header { position:relative; top:0; left:0; width:100%; z-index:300; background:#0bb9c6; }
	.site-header-inner { width:95%; max-width:1800px; margin:0 auto; padding:10px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; }
	.site-header-logo { display:inline-flex; flex-shrink:0; }
	.site-header-logo img { display:block; }

	.site-nav { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
	.site-nav-link { display:inline-flex; align-items:center; padding:8px 14px; color:#FFF; text-decoration:none; font-size:14px; font-weight:500; border-radius:8px; transition:0.2s; white-space:nowrap; }
	.site-nav-link:hover, .site-nav-link:focus-visible { background:rgba(255,255,255,0.18); color:#FFF; }
	.site-nav-link.is-current { background:rgba(255,255,255,0.15); font-weight:700; }
	.site-nav-link--logout { margin-left:6px; border:1px solid rgba(255,255,255,0.4); }
	.site-nav-link--logout:hover { background:rgba(255,255,255,0.25); }

	.site-nav-form { margin:0; display:inline-flex; }
	.site-nav-select { -webkit-appearance:none; -moz-appearance:none; appearance:none; box-sizing:border-box; height:36px; font-size:14px; padding:0 36px 0 14px; border:1px solid rgba(255,255,255,0.5); background-color:rgba(255,255,255,0.1); background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'><path stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 10px center; background-size:14px; color:#FFF; border-radius:8px; cursor:pointer; font-family:inherit; }
	.site-nav-select:hover { background-color:rgba(255,255,255,0.18); }
	.site-nav-select option { color:#000; background:#FFF; }

	.site-header-toggle { display:none; background:transparent; border:0; padding:8px; cursor:pointer; color:#FFF; border-radius:8px; -webkit-appearance:none; }
	.site-header-toggle:hover { background:rgba(255,255,255,0.15); }
	.site-header-toggle svg { display:block; width:28px; height:28px; }

	@media (max-width:900px) {
		.site-header-toggle { display:inline-flex; align-items:center; justify-content:center; }
		.site-nav { display:none; position:absolute; top:100%; left:0; right:0; background:#0bb9c6; flex-direction:column; align-items:stretch; padding:12px 16px 16px; box-shadow:0 6px 16px rgba(0,0,0,0.2); gap:4px; }
		.site-nav.is-open { display:flex; }
		.site-nav-link { width:100%; padding:12px 14px; box-sizing:border-box; border-radius:8px; }
		.site-nav-link--logout { margin-left:0; margin-top:6px; }
		.site-nav-form { width:100%; }
		.site-nav-select { width:100%; }
	}

/* === 10. Page-Layout v2 (für simple Unterseiten: Profil, Urlaub, Krankmeldung, Feiertage, Stundenzettel, Wunschplan, Impressum) === */
	.page-title { width:100%; max-width:1200px; margin:30px auto 0; padding:0 20px; box-sizing:border-box; text-align:left; color:#FFF; }
	.page-title h1 { font-size:28px; margin:0; font-weight:300; line-height:1.2; }
	.page-title h1 strong { font-weight:700; }

	.page-content { width:100%; max-width:1200px; margin:20px auto 50px; padding:0 20px; box-sizing:border-box; display:flex; flex-direction:column; gap:16px; }
	.page-content--wide { max-width:1800px; }

	.page-help { font-size:13px; opacity:0.75; line-height:1.5; margin:0 0 16px; color:#FFF; }
	.page-help strong { font-weight:700; }
	.page-help u { text-decoration:underline; }

	.page-prose { line-height:1.6; color:#FFF; }
	.page-prose a { color:#FFF; text-decoration:underline; }
	.page-prose a:hover { opacity:0.85; }

/* === 11. Auth-Page v2 (Login, Registrieren, Passwort vergessen, Account aktivieren, temp-Password) === */
	.auth-page { width:100%; max-width:480px; margin:30px auto 50px; padding:0 20px; box-sizing:border-box; }
	.auth-card { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.4); border-radius:12px; box-sizing:border-box; overflow:hidden; }
	.auth-tabs { display:flex; }
	.auth-tab { flex:1; padding:14px 16px; background:rgba(0,0,0,0.18); border:0; border-bottom:1px solid rgba(255,255,255,0.3); color:#FFF; font-size:14px; font-weight:600; cursor:pointer; transition:background 0.2s; -webkit-appearance:none; font-family:inherit; text-transform:uppercase; letter-spacing:0.5px; }
	.auth-tab:hover { background:rgba(255,255,255,0.08); }
	.auth-tab.is-active { background:transparent; border-bottom-color:transparent; }
	.auth-tab + .auth-tab { border-left:1px solid rgba(255,255,255,0.2); }
	.auth-pane { display:none; padding:24px; text-align:left; }
	.auth-pane.is-active { display:block; }
	.auth-actions { display:flex; gap:8px; margin-top:20px; }
	.auth-actions .dashboard-btn { width:100%; flex:1; }
	.auth-secondary { margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.15); text-align:center; }
	.auth-link-btn { background:transparent; border:0; color:#FFF; font-size:13px; opacity:0.85; cursor:pointer; text-decoration:underline; padding:6px 12px; -webkit-appearance:none; font-family:inherit; }
	.auth-link-btn:hover { opacity:1; }

/* === 12. Dashboard-Komponenten v2 === */
	.dashboard-greeting { width:100%; max-width:1200px; margin:30px auto 0; padding:0 20px; box-sizing:border-box; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; text-align:left; color:#FFF; }
	.dashboard-greeting h1 { font-size:28px; margin:0; font-weight:300; line-height:1.2; }
	.dashboard-greeting h1 strong { font-weight:700; }

	.dashboard-status-badge { display:inline-flex; align-items:center; gap:10px; padding:6px 14px; border:1px solid rgba(255,255,255,0.4); border-radius:100px; font-size:14px; }
	.dashboard-status-badge::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:#888; }
	.dashboard-status-badge.is-active::before { background:#0bc611; box-shadow:0 0 8px #0bc611; }
	.dashboard-status-badge.is-pause::before { background:#fff23b; box-shadow:0 0 8px #fff23b; }

	.dashboard-grid { width:100%; max-width:1200px; margin:20px auto; padding:0 20px; box-sizing:border-box; display:grid; gap:16px; grid-template-columns:1fr 1fr; }
	.dashboard-grid--quick { grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); }
	.dashboard-grid--shifts { grid-template-columns:1fr 1fr; }
	.dashboard-grid--full { grid-template-columns:1fr; }

	/* Next-Shifts-Anzeige (Liste der nächsten Schichten — kompakt, einzeilig pro Item) */
	.next-shifts { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px 28px; }
	.next-shift-item { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; }
	.next-shift-item-when { font-size:17px; font-weight:700; color:#FFF; line-height:1.3; letter-spacing:-0.2px; font-variant-numeric:tabular-nums; }
	.next-shift-where { display:inline-flex; align-items:center; gap:5px; font-size:13px; opacity:0.82; }
	.next-shift-where svg { width:13px; height:13px; opacity:0.7; flex-shrink:0; }
	.next-shift-tag { display:inline-block; font-size:10px; text-transform:uppercase; letter-spacing:0.5px; padding:2px 7px; background:#15777e; border-radius:4px; font-weight:bold; }
	.next-shift-tag--warning { background:#c6590b; }
	/* Buchungsstatus für persönliche Schichten (Schichtplan-Read-only): grün=BOOKED vom Kunden, neutral=noch frei */
	.next-shift-tag--booked,
	.next-shift-tag--open,
	.next-shift-tag--closed { min-width:80px; text-align:center; box-sizing:border-box; }
	.next-shift-tag--booked { background:rgba(11,198,17,0.6); }
	.next-shift-tag--open { background:linear-gradient(to right, #F0F0F0, #92C44F); color:#000; }
	.next-shift-tag--closed { background:#F0F0F0; color:#000; }
	.next-shift-tag--unbooked { background:rgba(255,255,255,0.15); opacity:0.85; }
	/* Kompakte Liste: Eingeplante Personen mit Stunden-Total und BOOKED-Anteil (Schichtplanung).
	   Mobile: 3-Spalten-Grid mit display:contents → Name | Total | Booked vertikal aligned.
	   Desktop: per-User-Flex (Name + Zahlen eng zusammen) mit auto-fit Multi-Spaltigkeit, damit die Card nicht unnötig hoch wird und die Zeiten direkt neben den Namen stehen. */
	.user-hours-list { display:grid; grid-template-columns:1fr auto auto; gap:6px 16px; align-items:baseline; }
	.user-hours-item { display:contents; }
	.user-hours-name { font-weight:600; font-size:14px; }
	.user-hours-total { font-variant-numeric:tabular-nums; opacity:0.85; font-size:13px; white-space:nowrap; }
	.user-hours-booked { font-variant-numeric:tabular-nums; color:#92E494; font-weight:600; font-size:13px; white-space:nowrap; }
	@media (min-width:769px) {
		.user-hours-list { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); column-gap:32px; row-gap:6px; align-items:baseline; }
		.user-hours-item { display:flex; align-items:baseline; gap:10px; }
	}
	/* Klickbare Listen-Einträge (z.B. Schichtplanung-Offene-Schichten) → springen zum Plan-Slot.
	   Mit flex-basis:100% auf dem when-Element wird ein erzwungener Umbruch nach Datum/Zeit erzeugt,
	   sodass Standort + Warning-Tag immer einheitlich in der zweiten Zeile stehen (statt unregelmäßig zu wrappen). */
	.next-shift-item--clickable { cursor:pointer; padding:6px 8px; margin:-6px -8px; border-radius:6px; transition:background 0.15s; align-items:center; }
	.next-shift-item--clickable:hover, .next-shift-item--clickable:focus-visible { background:rgba(255,255,255,0.1); outline:none; }
	.next-shift-item--clickable .next-shift-item-when { flex:1 1 100%; }

	/* Schichten-Liste gruppiert nach Tag (Schichtplan: persönliche Schichten / Schichtplanung: unbesetzte Schichten):
	   Tag-Header einmalig oben, Slot-Zeilen kompakt darunter. Desktop fließen Tagesblöcke nebeneinander (auto-fit), Mobile stapeln. */
	.shifts-grouped { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px 32px; }
	.shifts-day { display:flex; flex-direction:column; }
	.shifts-day-header { font-size:13px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; opacity:0.7; padding-bottom:4px; margin-bottom:6px; border-bottom:1px solid rgba(255,255,255,0.18); }
	.shift-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; padding:5px 8px; margin:0 -8px; border-radius:6px; }
	.shift-row + .shift-row { margin-top:1px; }
	.shift-row--clickable { cursor:pointer; transition:background 0.15s; }
	.shift-row--clickable:hover, .shift-row--clickable:focus-visible { background:rgba(255,255,255,0.1); outline:none; }
	.shift-time { font-size:15px; font-weight:700; letter-spacing:-0.2px; font-variant-numeric:tabular-nums; min-width:42px; }
	@media (max-width:768px) {
		.shifts-grouped { gap:14px 0; }
		.shift-time { font-size:14px; }
	}
	/* Flash-Animation: Frame im Plan kurz gelb umrandet pulsieren, wenn aus der Liste angesprungen */
	.sp_planer_timeslot_location_frame--flash { animation:schichtplan-frame-flash 1.6s ease-out; }
	@keyframes schichtplan-frame-flash {
		0% { box-shadow:0 0 0 4px rgba(255,235,59,0.95), 0 0 16px 4px rgba(255,235,59,0.7); }
		100% { box-shadow:0 0 0 0 rgba(255,235,59,0), 0 0 0 0 rgba(255,235,59,0); }
	}
	@media (max-width:768px) {
		.next-shift-item-when { font-size:16px; }
	}

	.dashboard-card { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.4); border-radius:12px; padding:24px; box-sizing:border-box; text-align:left; color:#FFF; }
	a.dashboard-card,
	a.dashboard-card:link,
	a.dashboard-card:visited,
	a.dashboard-card:hover { display:block; text-decoration:none; color:#FFF; cursor:pointer; transition:background 0.2s, border-color 0.2s, transform 0.2s; }
	a.dashboard-card:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.65); }

	/* Linkable-Card mit Chevron-Indikator (visualler Klickaffordanz-Hinweis) */
	.dashboard-card--linkable { position:relative; padding-right:52px; }
	.dashboard-card--linkable::after { content:""; position:absolute; top:50%; right:20px; width:18px; height:18px; background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'><path stroke-linecap='round' stroke-linejoin='round' d='m8.25 4.5 7.5 7.5-7.5 7.5'/></svg>") no-repeat center; background-size:contain; opacity:0.55; transform:translateY(-50%); transition:opacity 0.25s, transform 0.25s; pointer-events:none; }
	a.dashboard-card.dashboard-card--linkable:hover::after { opacity:0.95; transform:translateY(-50%) translateX(4px); }
	.dashboard-card-title { font-size:11px; text-transform:uppercase; letter-spacing:1.5px; opacity:0.7; margin:0 0 18px; font-weight:bold; }
	.dashboard-card-heading { display:flex; align-items:center; gap:10px; margin:0 0 10px; font-size:18px; font-weight:700; color:#FFF; line-height:1.2; }
	.dashboard-card-heading-icon { width:22px; height:22px; flex-shrink:0; opacity:0.85; }

	.dashboard-counter { font-size:48px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1; margin-bottom:6px; letter-spacing:-1px; }
	.dashboard-counter-label { font-size:13px; opacity:0.7; margin-bottom:24px; }

	.dashboard-actions-row { display:flex; gap:8px; flex-wrap:wrap; }
	.dashboard-form-inline { margin:0; }

	.dashboard-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border:1px solid rgba(255,255,255,0.6); background:transparent; color:#FFF; font-size:14px; font-weight:bold; border-radius:8px; cursor:pointer; transition:0.25s; -webkit-appearance:none; font-family:inherit; }
	.dashboard-btn:hover { background:rgba(255,255,255,0.12); }
	.dashboard-btn--primary { background:#0bb9c6; border-color:#0bb9c6; }
	.dashboard-btn--primary:hover { background:#15777e; border-color:#15777e; }
	.dashboard-btn--start { background:#0bc611; border-color:#0bc611; }
	.dashboard-btn--start:hover { background:#089a0e; border-color:#089a0e; }
	.dashboard-btn--stop { background:#c6590b; border-color:#c6590b; }
	.dashboard-btn--stop:hover { background:#9a4509; border-color:#9a4509; }
	.dashboard-btn--sm { padding:6px 12px; font-size:12px; }
	.dashboard-btn--ghost { background:transparent; border-color:rgba(255,255,255,0.3); font-weight:500; }
	.dashboard-btn--ghost:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.6); }
	.dashboard-btn .dashboard-icon { width:18px; height:18px; }

	.dashboard-progress { background:rgba(255,255,255,0.15); height:10px; border-radius:100px; overflow:hidden; margin:8px 0 16px; }
	.dashboard-progress-bar { background:#0bc611; height:100%; transition:width 0.5s; }

	.dashboard-stat { display:flex; justify-content:space-between; align-items:baseline; padding:6px 0; font-size:14px; }
	.dashboard-stat-label { opacity:0.8; }
	.dashboard-stat-value { font-weight:bold; font-variant-numeric:tabular-nums; }

	.dashboard-action-card { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 12px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.4); border-radius:12px; color:#FFF; cursor:pointer; transition:0.25s; -webkit-appearance:none; font-size:14px; font-weight:bold; gap:12px; text-decoration:none; box-sizing:border-box; text-align:center; }
	.dashboard-action-card:hover { background:rgba(255,255,255,0.15); border-color:rgba(255,255,255,0.7); transform:translateY(-2px); }
	.dashboard-action-card .dashboard-icon { width:32px; height:32px; opacity:0.85; }

	.dashboard-pause-group { margin-top:18px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.15); }
	.dashboard-pause-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:1.5px; opacity:0.65; margin-bottom:10px; font-weight:bold; }
	.dashboard-pause-group .dashboard-actions-row > form { flex:1; min-width:0; }
	.dashboard-pause-group .dashboard-btn { width:100%; }

	@media (max-width:768px) {
		.dashboard-grid, .dashboard-grid--shifts { grid-template-columns:1fr; }
		.dashboard-grid--quick { grid-template-columns:1fr 1fr; }
		.dashboard-greeting h1 { font-size:22px; }
		.dashboard-counter { font-size:38px; }
		.dashboard-actions-row > form { flex:1 1 100%; }
		.dashboard-actions-row > form .dashboard-btn { width:100%; }
		.dashboard-pause-group .dashboard-actions-row > form { flex:1 1 0; }
	}

/* === 13. Card-Komponenten v2 (Form-Felder, Tabellen, Aufklapp-Zeilen innerhalb von .dashboard-card) === */
	.card-field-row { margin-bottom:14px; }
	.card-field-row:last-of-type { margin-bottom:0; }
	.card-field-label { display:block; font-size:13px; opacity:0.85; margin-bottom:6px; font-weight:500; color:#FFF; }
	.card-field { -webkit-appearance:none; -moz-appearance:none; appearance:none; box-sizing:border-box; width:100%; height:42px; padding:0 14px; font-size:15px; border:1px solid rgba(255,255,255,0.5); background-color:rgba(255,255,255,0.06); color:#FFF; border-radius:8px; font-family:inherit; transition:border-color 0.2s, background-color 0.2s; }
	.card-field:focus { border-color:#FFF; background-color:rgba(255,255,255,0.12); outline:none; }
	.card-field::placeholder { color:rgba(255,255,255,0.5); }
	.card-field[readonly] { opacity:0.7; cursor:default; }
	select.card-field { padding-right:36px; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'><path stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 10px center; background-size:14px; cursor:pointer; }
	select.card-field option { color:#000; background:#FFF; }

	.card-readonly-row { display:flex; justify-content:space-between; align-items:baseline; padding:10px 0; font-size:15px; border-bottom:1px solid rgba(255,255,255,0.1); }
	.card-readonly-row:last-child { border-bottom:0; }
	.card-readonly-label { opacity:0.75; }
	.card-readonly-value { font-weight:600; color:#FFF; }

	.card-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:18px; flex-wrap:wrap; }

	.card-feedback { font-size:13px; padding:10px 14px; border-radius:8px; background:rgba(11,198,17,0.18); border:1px solid rgba(11,198,17,0.5); color:#FFF; margin-top:14px; }
	.card-feedback--error { background:rgba(198,89,11,0.2); border-color:rgba(198,89,11,0.6); }

	/* Tabelle innerhalb einer .dashboard-card */
	.card-table { width:100%; border-collapse:collapse; color:#FFF; }
	.card-table th, .card-table td { padding:10px 8px; text-align:left; font-size:14px; vertical-align:middle; }
	.card-table th { font-size:11px; text-transform:uppercase; letter-spacing:1px; opacity:0.7; font-weight:bold; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.25); }
	.card-table tbody tr { border-bottom:1px solid rgba(255,255,255,0.1); }
	.card-table tbody tr:last-child { border-bottom:0; }
	.card-table-input { -webkit-appearance:none; box-sizing:border-box; width:100%; padding:6px 10px; font-size:14px; border:1px solid rgba(255,255,255,0.3); background:rgba(255,255,255,0.05); color:#FFF; border-radius:6px; font-family:inherit; }
	.card-table-input:focus { border-color:#FFF; outline:none; background:rgba(255,255,255,0.12); }
	.card-table-input[readonly] { border-color:transparent; background:transparent; padding-left:0; }
	.card-table-summary td { padding-top:16px; border-top:1px solid rgba(255,255,255,0.3); font-weight:bold; }

	/* Aufklappbare Zeilen (z.B. Stundenzettel) */
	.card-table tbody.record-row { border-bottom:1px solid rgba(255,255,255,0.12); }
	.card-table tbody.record-row:last-of-type { border-bottom:0; }
	.card-table tr.record-row-summary { cursor:pointer; transition:background 0.15s; }
	.card-table tr.record-row-summary:hover { background:rgba(255,255,255,0.06); }
	.card-table tr.record-row-detail { display:none; }
	.card-table tbody.record-row[aria-expanded="true"] tr.record-row-detail { display:table-row; }
	.card-table tbody.record-row[aria-expanded="true"] tr.record-row-summary { background:rgba(255,255,255,0.08); }
	.record-row-toggle { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border:0; background:transparent; color:#FFF; cursor:pointer; border-radius:6px; transition:transform 0.2s, background 0.15s; }
	.record-row-toggle:hover { background:rgba(255,255,255,0.15); }
	.record-row-toggle svg { width:16px; height:16px; }
	.card-table tbody.record-row[aria-expanded="true"] .record-row-toggle { transform:rotate(180deg); }
	.record-row-detail-inner { padding:14px 4px 18px; display:flex; flex-direction:column; gap:12px; }
	.record-row-detail-inner .card-field-row { margin-bottom:0; }
	.record-row-detail-inner .card-actions { margin-top:6px; }

	@media (max-width:768px) {
		.page-title h1 { font-size:22px; }
		.card-actions { justify-content:stretch; }
		.card-actions > .dashboard-btn, .card-actions > form { flex:1; }
		.card-actions form .dashboard-btn { width:100%; }
		.card-table th, .card-table td { padding:8px 4px; font-size:13px; }
	}

	/* Trenner-Zeile zum Aufklappen einer Sub-Sektion (z.B. deaktivierte Nutzer) */
	.user-section-toggle-row td { padding:0; border:0; }
	.user-section-toggle-btn { width:100%; background:rgba(255,255,255,0.06); border:1px dashed rgba(255,255,255,0.3); color:#FFF; font-size:12px; text-transform:uppercase; letter-spacing:1px; padding:11px 16px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; border-radius:8px; margin:14px 0 6px; -webkit-appearance:none; font-family:inherit; transition:background 0.15s, border-color 0.15s; font-weight:600; }
	.user-section-toggle-btn:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.5); }
	.user-section-toggle-btn svg { width:18px; height:18px; transition:transform 0.2s; flex-shrink:0; }
	.user-section-toggle-btn[aria-expanded="true"] svg { transform:rotate(180deg); }

	/* Expandable Tabellen-Rows (Mobile-only): summary zeigt Name+Vorname, Detail klappt auf */
	.user-row-toggle { display:none; background:transparent; border:0; padding:6px; cursor:pointer; color:#FFF; border-radius:6px; -webkit-appearance:none; transition:transform 0.2s, background 0.15s; }
	.user-row-toggle:hover { background:rgba(255,255,255,0.15); }
	.user-row-toggle svg { display:block; width:18px; height:18px; }
	tr[aria-expanded="true"] .user-row-toggle { transform:rotate(180deg); }

	/* Year-Nav (Pagination per Jahr, z.B. Urlaubsanträge) */
	.year-nav { display:flex; align-items:center; justify-content:center; gap:18px; padding:6px 0; }
	.year-nav-display { font-size:32px; font-weight:700; line-height:1; min-width:90px; text-align:center; letter-spacing:-0.5px; color:#FFF; font-variant-numeric:tabular-nums; }
	.year-nav-btn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid rgba(255,255,255,0.4); background:transparent; color:#FFF; border-radius:50%; cursor:pointer; transition:background 0.2s, border-color 0.2s; -webkit-appearance:none; flex-shrink:0; }
	.year-nav-btn:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.7); }
	.year-nav-btn svg { width:20px; height:20px; }
	.year-nav-btn--disabled { border-color:transparent; background:transparent; cursor:default; pointer-events:none; }
	/* Kompakte Variante: kleinere Schrift, normale Spacing — für Monats-/Personen-Navigation in der Personalabrechnung.
	   Kein flex:1 auf dem Display, damit die Pfeile nah an der Beschriftung in der Mitte bleiben statt an die Kartenränder zu wandern. */
	.year-nav--compact .year-nav-display { font-size:16px; font-weight:600; line-height:1.3; min-width:0; letter-spacing:0; padding:0 8px; font-variant-numeric:normal; }
	.year-nav--compact .year-nav-display small { display:block; font-size:12px; font-weight:400; opacity:0.75; margin-top:2px; }
	.year-nav--compact .year-nav-btn { width:36px; height:36px; }
	.year-nav--compact .year-nav-btn svg { width:16px; height:16px; }

	/* Topbar in der Einzelansicht: linker Back-Button + zentrierte Personen-Navigation.
	   Drei-Spalten-Grid mit gleich breiten Außenspalten hält die Nav optisch mittig, auch wenn rechts kein Element steht. */
	.persoabrechnung-topbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; padding:6px 0; }
	.persoabrechnung-topbar-back { margin:0; justify-self:start; }
	.persoabrechnung-topbar-back .dashboard-btn { display:inline-flex; align-items:center; gap:6px; }
	.persoabrechnung-topbar-back .dashboard-btn svg { width:14px; height:14px; }
	.persoabrechnung-topbar .year-nav { justify-self:center; padding:0; }
	.persoabrechnung-topbar-spacer { justify-self:end; }
	@media (max-width:600px) {
		.persoabrechnung-topbar { grid-template-columns:1fr; gap:8px; }
		.persoabrechnung-topbar-back { justify-self:center; }
		.persoabrechnung-topbar-spacer { display:none; }
	}

	/* Status-Icon (für Approval-States o.ä. in Tabellen) */
	.status-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; flex-shrink:0; }
	.status-icon svg { width:100%; height:100%; }
	.status-icon--ok { color:#0bc611; }
	.status-icon--pending { color:#ffad3b; }

	@media (max-width:768px) {
		/* Tabelle wird zu Card-Stack mit Flex-Layout (variable Anzahl Summary-Cells) */
		.card-table--expandable { display:block; min-width:0 !important; }
		.card-table--expandable thead { display:none; }
		.card-table--expandable tbody { display:block; }
		.card-table--expandable tr { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; position:relative; border:1px solid rgba(255,255,255,0.25); border-radius:8px; padding:10px 36px 10px 10px; margin-bottom:8px; }
		.card-table--expandable tr td { flex:1 1 100%; padding:0; border:0; font-size:14px; }

		/* Toggle-Button oben rechts in der Card */
		.card-table--expandable .user-row-toggle { display:inline-flex; position:absolute; top:6px; right:6px; padding:4px; }

		/* Summary-Cells: gleichmäßig aufgeteilt */
		.card-table--expandable td.user-row-name,
		.card-table--expandable td.user-row-summary { flex:1 1 0; min-width:0; }
		.card-table--expandable td.user-row-summary--icon { flex:0 0 auto; text-align:right; }

		/* Detail-Cells: erst sichtbar wenn aufgeklappt, voll breit */
		.card-table--expandable td.user-row-extra { display:none; }
		.card-table--expandable tr[aria-expanded="true"] td.user-row-extra { display:block; }
		.card-table--expandable tr[aria-expanded="true"] td.user-row-extra:first-of-type { margin-top:6px; padding-top:8px; border-top:1px solid rgba(255,255,255,0.18); }

		/* Pseudo-Label aus data-label */
		.card-table--expandable td[data-label]::before { content:attr(data-label); display:inline-block; min-width:110px; font-size:11px; text-transform:uppercase; letter-spacing:0.5px; opacity:0.7; font-weight:bold; margin-right:8px; vertical-align:middle; }
		.card-table--expandable td[data-label] > * { vertical-align:middle; }

		/* Inputs in Detail-Cells: rechts vom Label */
		.card-table--expandable td .card-table-input { width:auto; min-width:120px; max-width:calc(100% - 120px); }
		.card-table--expandable td.user-row-name .card-table-input,
		.card-table--expandable td.user-row-summary .card-table-input { width:100%; max-width:none; min-width:0; }

		/* Toggle-Row für sub-Sektion: kein Card-Style auf Mobile */
		.card-table--expandable tr.user-section-toggle-row { display:block; padding:0; margin:0; border:0; border-radius:0; position:static; }
		.card-table--expandable tr.user-section-toggle-row td { display:block; flex:none; }

		/* hidden-Attribut respektieren (sonst überschreibt der tbody-Block-Override es) */
		.card-table--expandable tbody[hidden] { display:none; }
	}

/* === 14. Session-Timer (Auto-Logout-Countdown, banking-style) === */
	.session-timer { position:fixed; bottom:20px; right:20px; z-index:200; display:inline-flex; align-items:center; gap:8px; padding:8px 14px; background:rgba(15,30,45,0.85); color:#FFF; font-size:13px; font-variant-numeric:tabular-nums; border-radius:100px; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); transition:background 0.3s, color 0.3s; box-shadow:0 4px 12px rgba(0,0,0,0.2); }
	.session-timer-icon { width:14px; height:14px; opacity:0.85; flex-shrink:0; }
	.session-timer-value { font-weight:600; min-width:38px; text-align:right; }
	.session-timer.is-warning { background:rgba(198,89,11,0.92); }
	.session-timer.is-critical { background:rgba(198,11,11,0.95); animation:session-timer-pulse 1.4s ease-in-out infinite; }
	@keyframes session-timer-pulse { 0%, 100% { opacity:1; } 50% { opacity:0.65; } }
