/**
 * DanubeHandwerk Portal – Kunden-Ansicht.
 *
 * Bewusst helles, sachliches Arbeits-Layout (im Gegensatz zur dunklen
 * Funnel-Landingpage): Das Portal ist ein Werkzeug, keine Werbefläche.
 * Akzentfarben sind mit dem Funnel geteilt (Markenblau #4f9be0).
 */

.dh-portal {
	/* Farbwerte kommen zentral aus dh-brand.css (Fallbacks identisch). */
	--dh-accent: var(--dh-brand-accent, #4f9be0);
	--dh-accent-dark: var(--dh-brand-accent-dark, #2d6faf);
	--dh-accent-soft: rgba(79, 155, 224, 0.12);
	--dh-ink: var(--dh-brand-ink, #1b2836);
	--dh-muted: #64748c;
	--dh-line: #dbe4ee;
	--dh-bg: #ffffff;
	--dh-bg-soft: #f4f7fb;
	--dh-success: #3dae7d;
	--dh-success-soft: rgba(61, 174, 125, 0.14);
	--dh-warn: #b98a2d;
	--dh-warn-soft: rgba(232, 180, 86, 0.2);
	--dh-danger: #c04f4f;
	--dh-danger-soft: rgba(224, 103, 103, 0.14);

	color: var(--dh-ink);
	font-size: var(--dh-fs-base, 16px);
	line-height: 1.6;
	margin: 0 auto;
	max-width: 1080px;
	padding: 1.5rem 0 3rem;
}

/* --- Brand-Kopfzeile --- */

.dh-brandbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin: 0 0 2.25rem;
}

.dh-brandbar--center {
	justify-content: center;
}

.dh-portal *,
.dh-portal *::before,
.dh-portal *::after {
	box-sizing: border-box;
}

/* --- Kopf --- */

.dh-portal-head {
	margin: 0 0 1.75rem;
}

.dh-portal-title {
	font-size: var(--dh-fs-title, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	margin: 0 0 0.4rem;
}

.dh-portal-sub {
	color: var(--dh-muted);
	margin: 0;
}

/* --- Karten --- */

.dh-card {
	background: var(--dh-bg);
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius-lg, 16px);
	padding: 1.75rem 2rem;
}

.dh-card--message {
	margin: 1.5rem 0;
	padding: 2.5rem 2rem;
	text-align: center;
}

.dh-card-title {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
}

.dh-card-text {
	color: var(--dh-muted);
	margin: 0 0 1rem;
}

.dh-assignment-meta {
	margin: 0 0 1.75rem;
}

.dh-meta-grid {
	display: grid;
	gap: 1.25rem 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 0;
}

.dh-meta-grid dt {
	color: var(--dh-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 0 0 0.15rem;
	text-transform: uppercase;
}

.dh-meta-grid dd {
	margin: 0;
	white-space: pre-line;
}

/* --- Hinweise --- */

.dh-notice {
	border: 1px solid var(--dh-line);
	border-left-width: 4px;
	border-radius: var(--dh-radius, 10px);
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
}

.dh-notice--success {
	background: var(--dh-success-soft);
	border-left-color: var(--dh-success);
}

.dh-notice--error {
	background: var(--dh-danger-soft);
	border-left-color: var(--dh-danger);
}

.dh-notice--info {
	background: var(--dh-accent-soft);
	border-left-color: var(--dh-accent);
}

/* --- Tabelle --- */

.dh-table-wrap {
	background: var(--dh-bg);
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius-lg, 16px);
	/* container-type: der Karten-Umbruch richtet sich nach der SPALTENbreite,
	   nicht nach dem Viewport – der Slider entstand in der schmalen Content-
	   Spalte auch am Desktop. overflow-x:clip => NIE ein Links-Rechts-Slider. */
	container-type: inline-size;
	margin: 0 0 1.5rem;
	overflow-x: clip;
}

/* Prüfansicht ist immer Karten -> die Wrap-Umrandung drumherum entfällt. */
.dh-table-wrap:has(.dh-table--detail) {
	background: transparent;
	border: 0;
}

.dh-table {
	border-collapse: collapse;
	margin: 0;
	min-width: 0;
	width: 100%;
}

.dh-table th,
.dh-table td {
	border-bottom: 1px solid var(--dh-line);
	padding: 1rem 1.25rem;
	text-align: left;
	vertical-align: top;
}

.dh-table thead th {
	background: var(--dh-bg-soft);
	color: var(--dh-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.dh-table tbody tr:last-child td {
	border-bottom: 0;
}

.dh-table tbody tr:hover td {
	background: var(--dh-bg-soft);
}

.dh-num {
	text-align: right;
	white-space: nowrap;
}

.dh-table .dh-num {
	text-align: right;
}

.dh-action-col {
	white-space: normal;
}

.dh-strong {
	font-weight: 600;
}

.dh-muted {
	color: var(--dh-muted);
}

.dh-small {
	font-size: 0.82rem;
}

/* Prominente Begrüßung oben im Dashboard (v3.80.0): Monteur = Vorname,
   Kunde = Firma, tageszeit-abhängiger Gruß + Status-Zeile darunter. */
.dh-portal-hero {
	margin: 0 0 1.35rem;
}
.dh-hero-greet {
	color: var(--dh-ink);
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.3rem;
}
.dh-hero-status {
	color: var(--dh-muted);
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}
@media (max-width: 640px) {
	.dh-hero-greet {
		font-size: 1.4rem;
	}
}

/* Handlungsbedarf (Monteur, v3.81.0): eigene Sektion mit Warn-Akzent –
   offene Entwürfe „Erledigt melden" + Kunden-Rückfragen, klar getrennt. */
.dh-todo {
	border-left: 4px solid var(--dh-warn);
}
.dh-todo-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0.9rem;
	justify-content: space-between;
	padding: 0.6rem 0;
}
.dh-todo-row + .dh-todo-row {
	border-top: 1px solid var(--dh-line);
}
.dh-todo-info {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.6rem;
}
.dh-todo-row .dh-btn {
	flex: 0 0 auto;
}
.dh-todo-queries {
	margin-top: 0.9rem;
}
.dh-todo-queries .dh-card-title {
	margin: 0 0 0.2rem;
}

/* „Meine Stunden" (Monteur): Überschrift über den Kachel-Karten. */
.dh-worker-hours {
	margin: 0 0 1.1rem;
}
.dh-worker-hours .dh-wtitle {
	margin: 0 0 0.6rem;
}

/* Handlungsbanner (Kunde, v3.81.0): offene Stunden -> zur Baustelle, ein Tap. */
.dh-review-banner {
	align-items: center;
	background: var(--dh-warn-soft);
	border: 1px solid var(--dh-warn);
	border-radius: var(--dh-radius, 10px);
	color: var(--dh-ink);
	display: flex;
	flex-wrap: wrap;
	font-weight: 700;
	gap: 0.5rem 1rem;
	justify-content: space-between;
	margin: 0 0 1.1rem;
	padding: 0.85rem 1.1rem;
	text-decoration: none;
	transition: box-shadow 0.15s ease;
}
.dh-review-banner:hover,
.dh-review-banner:focus-visible {
	box-shadow: 0 3px 12px rgba(12, 22, 38, 0.12);
	outline: none;
}
.dh-review-banner-cta {
	color: var(--dh-warn);
	white-space: nowrap;
}

/* Fotos direkt im Eintrag (Prüfansicht + Karten) – Miniaturen, klickbar. */
.dh-entry-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0.55rem 0 0;
}
.dh-entry-thumb {
	border: 1px solid var(--dh-line);
	border-radius: 9px;
	display: block;
	height: 74px;
	overflow: hidden;
	width: 74px;
}
.dh-entry-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* --- Prüfansicht: IMMER Karten (zu dicht für eine Tabelle in der schmalen
   Content-Spalte) – so gibt es dort NIE einen Links-Rechts-Slider, Desktop
   wie Handy. Spalten-Labels kommen aus den data-label-Attributen. */
.dh-table--detail {
	border-collapse: separate;
	border-spacing: 0;
}
.dh-table--detail thead {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.dh-table--detail tbody tr {
	background: var(--dh-bg);
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius-lg, 16px);
	box-shadow: 0 1px 3px rgba(12, 22, 38, 0.05);
	display: block;
	margin: 0 0 0.9rem;
	padding: 0.35rem 1.1rem;
}
/* offene (zu prüfende) Einträge hervorheben – Gold-Akzent links. */
.dh-table--detail tbody tr:has(.dh-decision) {
	border-left: 3px solid var(--dh-accent);
}
.dh-table--detail tbody tr:hover td {
	background: transparent;
}
.dh-table--detail td {
	border-bottom: 1px solid var(--dh-line);
	display: block;
	padding: 0.65rem 0;
	text-align: left;
}
.dh-table--detail tbody tr td:last-child {
	border-bottom: 0;
}
.dh-table--detail td[data-label]::before {
	color: var(--dh-muted);
	content: attr(data-label);
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}
.dh-table--detail td.dh-num {
	text-align: left;
}
.dh-table--detail .dh-decision {
	min-width: 0;
}

/* --- Baustellen-Liste: antippbare Karten (ganze Karte = Detail öffnen),
   IMMER Karten – nichts abgeschnitten (die 6-Spalten-Tabelle passte nie in
   die Content-Spalte, Status/Aktion wurden geclippt). --- */
.dh-table--sites,
.dh-table--sites tbody {
	display: block;
}
.dh-table--sites {
	border-collapse: separate;
	border-spacing: 0;
}
.dh-table--sites thead {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.dh-table--sites tbody tr {
	background: var(--dh-bg);
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius-lg, 16px);
	box-shadow: 0 1px 3px rgba(12, 22, 38, 0.05);
	cursor: pointer;
	display: block;
	margin: 0 0 0.9rem;
	padding: 0.5rem 1.1rem 0.85rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dh-table--sites tbody tr:hover,
.dh-table--sites tbody tr:focus-visible {
	border-color: var(--dh-accent);
	box-shadow: 0 3px 12px rgba(12, 22, 38, 0.1);
	outline: none;
}
.dh-table--sites tbody tr:hover td {
	background: transparent;
}
.dh-table--sites td {
	border-bottom: 1px solid var(--dh-line);
	display: block;
	padding: 0.5rem 0;
	text-align: left;
}
.dh-table--sites tbody tr td:last-child {
	border-bottom: 0;
}
.dh-table--sites td[data-label]::before {
	color: var(--dh-muted);
	content: attr(data-label);
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}
.dh-table--sites td.dh-num {
	text-align: left;
}
/* Aktion-Button (Prüfen/Öffnen) volle Breite als klarer Tap-Anker. */
.dh-table--sites td.dh-action-col .dh-btn {
	width: 100%;
}

/* --- Andere Tabellen: Karten, sobald ihre SPALTE eng wird (Container-Query,
   nicht Viewport – greift auch in der schmalen Content-Spalte am Desktop). */
@container (max-width: 560px) {
	.dh-table-wrap {
		background: transparent;
		border: 0;
		border-radius: 0;
		margin-bottom: 1rem;
		overflow-x: visible;
	}
	.dh-table {
		min-width: 0;
	}
	.dh-table thead {
		border: 0;
		clip: rect(0 0 0 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}
	.dh-table tbody tr {
		background: var(--dh-bg);
		border: 1px solid var(--dh-line);
		border-radius: var(--dh-radius-lg, 16px);
		display: block;
		margin: 0 0 0.9rem;
		padding: 0.35rem 1rem;
	}
	.dh-table tbody tr:hover td {
		background: transparent;
	}
	.dh-table td {
		border-bottom: 1px solid var(--dh-line);
		display: block;
		padding: 0.6rem 0;
		text-align: left;
	}
	.dh-table tbody tr td:last-child {
		border-bottom: 0;
	}
	.dh-table td[data-label]::before {
		color: var(--dh-muted);
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		margin-bottom: 0.2rem;
		text-transform: uppercase;
	}
	.dh-table td.dh-num {
		text-align: left;
		white-space: normal;
	}
	.dh-decision {
		min-width: 0;
	}
}

/* --- Badges --- */

.dh-badge {
	border-radius: var(--dh-radius-pill, 999px);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	margin: 0 0.25rem 0.25rem 0;
	padding: 0.15rem 0.6rem;
	white-space: nowrap;
}

.dh-badge--open {
	background: var(--dh-accent-soft);
	color: var(--dh-accent-dark);
}

.dh-badge--approved {
	background: var(--dh-warn-soft);
	color: var(--dh-warn);
}

.dh-badge--confirmed {
	background: var(--dh-success-soft);
	color: var(--dh-success);
}

.dh-badge--rejected {
	background: var(--dh-danger-soft);
	color: var(--dh-danger);
}

/* --- Buttons --- */

.dh-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--dh-radius, 10px);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--dh-fs-btn, 0.95rem);
	font-weight: 600;
	justify-content: center;
	/* Touch-Mindestfläche – auch auf dem Desktop nie "zu klein am Handy". */
	min-height: var(--dh-tap-min, 48px);
	padding: 0.55rem 1.25rem;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dh-btn--primary {
	background: var(--dh-accent);
	color: #ffffff;
}

.dh-btn--primary:hover,
.dh-btn--primary:focus {
	background: var(--dh-accent-dark);
	color: #ffffff;
}

.dh-btn--ghost {
	background: transparent;
	border-color: var(--dh-line);
	color: var(--dh-ink);
}

.dh-btn--ghost:hover,
.dh-btn--ghost:focus {
	border-color: var(--dh-accent);
	color: var(--dh-accent-dark);
}

/* --- Prüfungs-Formular --- */

.dh-decision {
	border: 0;
	margin: 0;
	min-width: 220px;
	padding: 0;
}

.dh-choice {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.85rem;
	gap: 0.3rem;
	margin: 0 0.6rem 0.35rem 0;
}

.dh-choice input {
	accent-color: var(--dh-accent);
	margin: 0;
}

.dh-choice--approve span {
	color: var(--dh-success);
	font-weight: 600;
}

.dh-choice--query span {
	color: var(--dh-danger);
	font-weight: 600;
}

.dh-choice--none span {
	color: var(--dh-muted);
}

.dh-comment {
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	display: block;
	font-size: 0.85rem;
	margin-top: 0.25rem;
	padding: 0.4rem 0.6rem;
	width: 100%;
}

.dh-comment:disabled {
	background: var(--dh-bg-soft);
	opacity: 0.55;
}

.dh-comment.dh-comment--missing {
	border-color: var(--dh-danger);
	box-shadow: 0 0 0 2px var(--dh-danger-soft);
}

.dh-form-foot {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.dh-form-foot p {
	flex: 1 1 320px;
	margin: 0;
}

/* --- Signatur (Phase 3) --- */

.dh-sign-card {
	border-left: 4px solid var(--dh-success);
	margin-top: 2rem;
}

.dh-sign-pad {
	margin: 1.5rem 0;
}

.dh-sign-canvas {
	background: #fff;
	border: 2px dashed var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	cursor: crosshair;
	display: block;
	touch-action: none;
	width: 100%;
}

.dh-sign-canvas:focus,
.dh-sign-canvas:hover {
	border-color: var(--dh-accent);
}

.dh-sign-hint {
	margin: 0.35rem 0 0;
	text-align: center;
}

.dh-sign-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dh-btn--confirm {
	background: var(--dh-success);
	color: #ffffff;
}

.dh-btn--confirm:hover:not(:disabled),
.dh-btn--confirm:focus:not(:disabled) {
	background: #2c8763;
	color: #ffffff;
}

.dh-btn:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.dh-protocol-link {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem;
}

/* --- Registrierung --- */

.dh-portal--narrow {
	max-width: 560px;
}

.dh-field {
	margin: 0 0 1.1rem;
}

.dh-field label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin: 0 0 0.3rem;
}

.dh-field input,
.dh-field select {
	background: #fff;
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	color: var(--dh-ink);
	font-size: 1rem;
	padding: 0.55rem 0.75rem;
	width: 100%;
}

.dh-field input:focus,
.dh-field select:focus {
	border-color: var(--dh-accent);
	box-shadow: 0 0 0 3px var(--dh-accent-soft);
	outline: none;
}

.dh-field p {
	margin: 0.3rem 0 0;
}

.dh-req {
	color: var(--dh-danger);
}

/* Registrierung: Fachkraft-Block (Geburtsdatum / Gewerk / Ausweis) – v3.40.0.
   Vom JS ein-/ausgeblendet; grenzt sich optisch als eigener Abschnitt ab. */
.dh-worker-fields {
	border-top: 1px solid var(--dh-line);
	margin-top: 0.5rem;
	padding-top: 1rem;
}
.dh-worker-fields[hidden] {
	display: none;
}
.dh-worker-legend {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
}
/* Datums-Picker im weißen Feld lesbar halten (auch auf dunkler Seite). */
.dh-field input[type="date"] {
	color-scheme: light;
}
.dh-field input[type="file"] {
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.4;
	padding: 0.5rem 0.6rem;
}
.dh-field input[type="file"]::file-selector-button {
	background: var(--dh-accent, #4f9be0);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	margin-right: 0.7rem;
	padding: 0.35rem 0.7rem;
}
.dh-check {
	align-items: flex-start;
	display: flex;
	font-size: 0.9rem;
	font-weight: 500;
	gap: 0.55rem;
	line-height: 1.45;
	margin-top: 0.9rem;
}
.dh-check input[type="checkbox"] {
	flex: 0 0 auto;
	height: 18px;
	margin-top: 0.15rem;
	width: 18px;
}
.dh-radio-row {
	display: flex;
	gap: 1.4rem;
	margin-top: 0.25rem;
}
.dh-radio {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-weight: 500;
	gap: 0.4rem;
}
.dh-radio input {
	height: 17px;
	width: 17px;
}

/* Onboarding (v3.41.0): hervorgehobene Arbeitsbedingungen-Box + Abschnitte. */
.dh-onboard .dh-worker-legend {
	border-top: 1px solid var(--dh-line);
	margin-top: 1.4rem;
	padding-top: 1.1rem;
}
.dh-terms-box {
	background: rgba(201, 165, 74, 0.10);
	border: 1px solid rgba(201, 165, 74, 0.45);
	border-radius: 10px;
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
}
.dh-terms-box .dh-worker-legend {
	border: 0;
	margin: 0 0 0.3rem;
	padding: 0;
}
.dh-terms-box p {
	line-height: 1.55;
	margin: 0;
}

/* People-Admin (Mitarbeiter/Kunden) im Verwaltungs-Dashboard – v3.44.0.
   Portal-nativ + theme-aware; white-gelabelt, kein WordPress-Backend. */
.dh-pa-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.dh-pa-tab {
	border: 1px solid var(--dh-line);
	border-radius: 999px;
	color: var(--dh-ink);
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.dh-pa-tab:hover { border-color: var(--dh-accent, #4f9be0); }
.dh-pa-tab.is-active { background: var(--dh-accent, #4f9be0); border-color: var(--dh-accent, #4f9be0); color: #fff; }
.dh-pa-card { margin-bottom: 16px; }
.dh-pa-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dh-pa-head .dh-card-title { margin: 0; }
.dh-pa-badge { font-size: 12px; font-weight: 700; white-space: nowrap; }
.dh-pa-badge.ok { color: var(--dh-ok, #3dae7d); }
.dh-pa-badge.warn { color: var(--dh-gold, #C9A54A); }
.dh-pa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.dh-pa-grid .full { grid-column: 1 / -1; }
.dh-pa-grid .dh-field { margin: 0; }
.dh-pa-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dh-pa-copied { color: var(--dh-ok, #3dae7d); font-weight: 700; font-size: 12px; }
@media (max-width: 600px) { .dh-pa-grid { grid-template-columns: 1fr; } }

/* Honeypot: aus dem Viewport, nicht display:none (manche Bots prüfen das). */
.dh-hp {
	left: -9999px;
	margin: 0;
	position: absolute;
	top: -9999px;
}

/* --- Mitarbeiter-Cockpit: Nachtblau-Industrie-Look, Mobile-First ---
 * Baustellen-tauglich: sehr große Bedienflächen, hoher Kontrast
 * (Sonnenlicht), Zahlen groß und fett. Farbwelt = Funnel-Nachtblau. */

.dh-worker {
	max-width: 640px;
}

.dh-worker-week {
	background: #122036;
	border: 1px solid rgba(148, 178, 209, 0.32);
	border-radius: var(--dh-radius-pill, 999px);
	color: #c2cfdd;
	font-size: 0.95rem;
	padding: 0.55rem 1.1rem;
	white-space: nowrap;
}

.dh-worker-week strong {
	color: #ffffff;
	font-size: 1.1rem;
}

.dh-wcard {
	background: linear-gradient(168deg, #122036 0%, #0c1626 55%, #070d17 100%);
	border: 1px solid rgba(148, 178, 209, 0.28);
	border-radius: var(--dh-radius-lg, 16px);
	color: #eef3f9;
	margin: 0 0 1.5rem;
	padding: 1.6rem 1.4rem;
}

.dh-wcard--empty {
	font-size: 1.15rem;
	text-align: center;
}

.dh-wtitle {
	color: #ffffff;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 1.1rem;
}

.dh-wmuted {
	color: #8fa3b8;
	font-weight: 400;
}

.dh-wmeta {
	display: grid;
	gap: 1rem 1.5rem;
	margin: 0;
}

.dh-wmeta dt {
	color: #8fa3b8;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.2rem;
	text-transform: uppercase;
}

.dh-wmeta dd {
	font-size: 1.05rem;
	margin: 0;
	white-space: pre-line;
}

@media (min-width: 480px) {
	.dh-wmeta {
		grid-template-columns: 1fr 1fr;
	}
}

.dh-wlabel {
	color: #8fa3b8;
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 1.1rem 0 0.45rem;
	text-transform: uppercase;
}

.dh-winput {
	background: #0e1b2e;
	border: 2px solid rgba(148, 178, 209, 0.4);
	border-radius: var(--dh-radius, 10px);
	color: #ffffff;
	color-scheme: dark;
	font-size: 1.3rem;
	min-height: 58px;
	padding: 0.85rem 1rem;
	width: 100%;
}

.dh-winput:focus {
	border-color: #4f9be0;
	box-shadow: 0 0 0 3px rgba(79, 155, 224, 0.35);
	outline: none;
}

.dh-winput--hours {
	font-size: 1.7rem;
	font-weight: 800;
	text-align: center;
}

.dh-hour-chips {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 0 0.55rem;
}

.dh-chip {
	background: #182b44;
	border: 2px solid rgba(148, 178, 209, 0.4);
	border-radius: var(--dh-radius, 10px);
	color: #c2cfdd;
	cursor: pointer;
	font-size: 1.15rem;
	font-weight: 700;
	min-height: 56px;
	padding: 0.4rem;
}

.dh-chip.is-active,
.dh-chip:active {
	background: #4f9be0;
	border-color: #7cbcf2;
	color: #ffffff;
}

.dh-wsubmit {
	background: #4f9be0;
	border: 0;
	border-radius: var(--dh-radius-lg, 16px);
	color: #ffffff;
	cursor: pointer;
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	margin-top: 1.4rem;
	min-height: 72px;
	text-transform: uppercase;
	width: 100%;
}

.dh-wsubmit:hover:not(:disabled),
.dh-wsubmit:focus:not(:disabled) {
	background: #2d6faf;
}

.dh-wsubmit:disabled {
	cursor: wait;
	opacity: 0.6;
}

.dh-wfeedback {
	border-radius: var(--dh-radius, 10px);
	font-size: 1.15rem;
	font-weight: 600;
	margin-top: 1.1rem;
	padding: 1.1rem 1.2rem;
}

.dh-wfeedback--ok {
	background: rgba(61, 174, 125, 0.18);
	border: 2px solid #3dae7d;
	color: #7fe0b4;
}

.dh-wfeedback--err {
	background: rgba(224, 103, 103, 0.16);
	border: 2px solid #e06767;
	color: #ffb3b3;
}

.dh-wlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dh-wlist li {
	align-items: center;
	border-bottom: 1px solid rgba(148, 178, 209, 0.18);
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: space-between;
	padding: 0.85rem 0;
}

.dh-wlist-date {
	font-weight: 700;
}

.dh-wlist-hours {
	font-size: 1.15rem;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.dh-wlist-empty {
	color: #8fa3b8;
}

/* Badges auf dunklem Grund: hellere Textfarben für Kontrast. */
.dh-worker .dh-badge--open {
	background: rgba(79, 155, 224, 0.2);
	color: #7cbcf2;
}

.dh-worker .dh-badge--approved {
	background: rgba(232, 180, 86, 0.2);
	color: #ffd48a;
}

.dh-worker .dh-badge--confirmed {
	background: rgba(61, 174, 125, 0.2);
	color: #7fe0b4;
}

.dh-worker .dh-badge--rejected {
	background: rgba(224, 103, 103, 0.22);
	color: #ffb3b3;
}

/* --- Mobil: Tabelle als gestapelte Karten --- */

@media (max-width: 719px) {
	.dh-portal {
		padding: 1rem 0.25rem 2rem;
	}

	.dh-card {
		padding: 1.25rem 1.1rem;
	}

	.dh-brandbar {
		margin-bottom: 1.5rem;
	}

	.dh-table {
		min-width: 0;
	}

	.dh-table thead {
		display: none;
	}

	.dh-table tbody tr {
		border-bottom: 6px solid var(--dh-bg-soft);
		display: block;
		padding: 0.5rem 0;
	}

	.dh-table tbody td {
		border: 0;
		display: block;
		padding: 0.35rem 1rem;
		text-align: left;
	}

	.dh-table tbody td::before {
		color: var(--dh-muted);
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
	}

	.dh-num {
		text-align: left;
	}

	.dh-action-col {
		white-space: normal;
	}
}

/* --- Trust-Section (Fußzeile der Portal-Ansichten) --- */

.dh-trust {
	align-items: center;
	border-top: 1px solid var(--dh-line, #dbe4ee);
	color: var(--dh-muted, #64748c);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.82rem;
	gap: 0.5rem 1.5rem;
	justify-content: center;
	margin-top: 3rem;
	padding-top: 1.5rem;
	text-align: center;
}

.dh-trust-item {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
	white-space: nowrap;
}

.dh-trust-item svg {
	flex: none;
	height: 14px;
	opacity: 0.7;
	width: 14px;
}

/* Im dunklen Mitarbeiter-Cockpit: helle Variante. */
.dh-worker .dh-trust {
	border-top-color: rgba(148, 178, 209, 0.25);
	color: #8fa3b8;
}

/* --- DANUBE-Logik-Engine (v2.8.0) --- */

.dh-site-form {
	margin: 0 0 1.75rem;
}

.dh-site-form .dh-field textarea {
	background: #fff;
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	color: var(--dh-ink);
	font-size: 1rem;
	padding: 0.55rem 0.75rem;
	width: 100%;
}

.dh-whead {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: space-between;
	margin: 0 0 1rem;
}

.dh-whead .dh-wtitle {
	margin: 0;
}

.dh-wactions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.dh-wactions .dh-waction {
	flex: 1 1 200px;
	min-height: 56px;
}

.dh-worker .dh-btn--confirm {
	background: var(--dh-success, #3dae7d);
	color: #ffffff;
}

.dh-worker .dh-btn--confirm:hover:not(:disabled) {
	background: #2c8763;
}

.dh-wdelete {
	background: rgba(224, 103, 103, 0.16);
	border: 2px solid #e06767;
	border-radius: var(--dh-radius, 10px);
	color: #ffb3b3;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	min-height: 44px;
	min-width: 44px;
	padding: 0.4rem;
}

.dh-wdelete:hover:not(:disabled) {
	background: rgba(224, 103, 103, 0.3);
}

/* Header-Logo-Styles (SVG-Signet) liegen site-weit in dh-brand.css. */

/* =====================================================================
 * Abrechnung (v3.10.0): Kacheln, Kosten-Tabelle, Dokumente, Team-Anfrage
 * =================================================================== */

.dh-billing-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.dh-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
}

.dh-tile-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--dh-muted, #64748c);
}

.dh-tile-value {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.dh-tile-value small {
	font-size: 14px;
	font-weight: 600;
	color: var(--dh-muted, #64748c);
}

.dh-tile--ok .dh-tile-value { color: #1a7a4a; }
.dh-tile--warn .dh-tile-value { color: #b46a12; }

.dh-tile-sub {
	font-size: 12px;
	color: var(--dh-muted, #64748c);
}

.dh-doc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 0;
	border-bottom: 1px solid var(--dh-line, #e3e9f0);
}

.dh-doc-row:last-child { border-bottom: none; padding-bottom: 0; }

.dh-doc-main { flex: 1 1 280px; line-height: 1.5; }

.dh-doc-skonto {
	font-size: 13px;
	font-weight: 600;
	color: #1a7a4a;
}

.dh-doc-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ---- Lead-Karte (Verwaltung: neue Anfragen, übersetzte Angaben) ---- */
.dh-lead { padding: 12px 0; border-bottom: 1px solid var(--dh-line, #e3e9f0); }
.dh-lead:last-child { border-bottom: none; padding-bottom: 0; }
.dh-lead .dh-doc-row { padding: 0; border-bottom: none; }

.dh-lead-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px 18px;
	margin: 10px 0 2px;
	padding: 12px 14px;
	background: rgba(127, 155, 190, 0.08);
	border: 1px solid var(--dh-line, #e3e9f0);
	border-radius: 10px;
}
.dh-lead-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dh-lead-fact dt {
	font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
	opacity: .62; font-weight: 600;
}
.dh-lead-fact dd {
	margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35;
	display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere;
}
.dh-fact-ic { font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.dh-lead-fact.is-yes  .dh-fact-ic { color: #35b06a; }
.dh-lead-fact.is-no   .dh-fact-ic { color: #e5735b; }
.dh-lead-fact.is-warn .dh-fact-ic { color: #d9a441; }

.dh-lead-metaline { margin-top: 8px; }
.dh-lead-optin.is-ok { color: #35b06a; font-weight: 600; }
.dh-lead-optin.is-pending { color: #d9a441; font-weight: 600; }

/* Duplikat-Hinweis auf der Lead-Karte (E-Mail hat schon ein Konto). */
.dh-badge--dup {
	display: inline-block; padding: 6px 12px; border-radius: 8px;
	font-size: 13px; font-weight: 600; white-space: nowrap;
	color: #d9a441; background: rgba(217, 164, 65, 0.14);
	border: 1px solid rgba(217, 164, 65, 0.35);
}

/* ---- Quellen-Statistik (Mess-Fundament) ---- */
.dh-src-table th {
	text-align: left; font-size: 11px; text-transform: uppercase;
	letter-spacing: .04em; opacity: .6; padding: 6px 10px; font-weight: 700;
}
.dh-src-table td { padding: 8px 10px; font-variant-numeric: tabular-nums; }
.dh-src-table th:not(:first-child), .dh-src-table td:not(:first-child) { text-align: right; }
.dh-src-links { margin-top: 14px; font-size: 13px; }
.dh-src-links summary { cursor: pointer; color: var(--dh-accent, #4f9be0); font-weight: 600; }
.dh-src-link { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; }
.dh-src-link-name { font-weight: 600; font-size: 12.5px; }
.dh-src-link code {
	font-size: 12px; word-break: break-all;
	background: rgba(127, 155, 190, 0.12); padding: 5px 9px; border-radius: 6px;
}

/* ---- Neue Baustelle anlegen (L1, Verwaltung) ---- */
.dh-newsite > summary { cursor: pointer; list-style: none; user-select: none; }
.dh-newsite > summary::-webkit-details-marker { display: none; }
.dh-newsite-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; max-width: 520px; }
.dh-newsite-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dh-newsite-form label > span { font-weight: 600; opacity: .78; }
.dh-newsite-form input, .dh-newsite-form select, .dh-newsite-form textarea {
	width: 100%; padding: 9px 11px; border-radius: 9px; box-sizing: border-box;
	border: 1px solid var(--dh-line, #e3e9f0); background: rgba(127, 155, 190, 0.08);
	color: inherit; font-size: 14px; font-family: inherit;
}
.dh-newsite-row { display: flex; gap: 12px; }
.dh-newsite-row label { flex: 1; }
.dh-newsite-form button { align-self: flex-start; margin-top: 4px; }

/* ---- Abrechnung im Frontend (L2): wp-admin-Markup ins Portal übersetzen ---- */
.dh-billing-embed .wrap { margin: 0; max-width: none; }
.dh-billing-embed h1 { font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.dh-billing-embed h2 { font-size: 17px; margin: 26px 0 10px; font-weight: 700; }
.dh-billing-embed h3 { font-size: 15px; margin: 18px 0 8px; font-weight: 700; }
.dh-billing-embed p.description { font-size: 12.5px; opacity: .68; margin: 6px 0 0; }
.dh-billing-embed input[type=text], .dh-billing-embed input[type=number],
.dh-billing-embed input[type=date], .dh-billing-embed input[type=month],
.dh-billing-embed select, .dh-billing-embed textarea {
	padding: 8px 10px; border-radius: 8px; box-sizing: border-box;
	border: 1px solid var(--dh-line, #e3e9f0); background: rgba(127, 155, 190, 0.08);
	color: inherit; font-size: 14px; font-family: inherit; max-width: 100%;
}
.dh-billing-embed .form-table { border-collapse: collapse; }
.dh-billing-embed .form-table th { text-align: left; padding: 8px 14px 8px 0; font-weight: 600; vertical-align: middle; }
.dh-billing-embed .form-table td { padding: 6px 0; }
.dh-billing-embed table:not(.form-table) { width: 100%; border-collapse: collapse; margin: 10px 0; }
.dh-billing-embed table:not(.form-table) th,
.dh-billing-embed table:not(.form-table) td { padding: 8px 10px; border-bottom: 1px solid var(--dh-line, #e3e9f0); text-align: left; font-size: 13.5px; vertical-align: top; }
.dh-billing-embed table:not(.form-table) th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .6; }
.dh-billing-embed .button, .dh-billing-embed .button-small,
.dh-billing-embed .button-primary, .dh-billing-embed input[type=submit] {
	display: inline-block; cursor: pointer; text-decoration: none; line-height: 1.4;
	padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
	border: 1px solid var(--dh-accent, #4f9be0); background: transparent;
	color: var(--dh-accent, #4f9be0); margin: 2px 0;
}
.dh-billing-embed .button-primary, .dh-billing-embed input[type=submit] {
	background: var(--dh-accent, #4f9be0); color: #04101f;
}
.dh-billing-embed .button-small { padding: 5px 11px; font-size: 12.5px; }
.dh-billing-embed .notice { padding: 10px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--dh-line, #e3e9f0); }
.dh-billing-embed .notice p { margin: 0; }
.dh-billing-embed .notice-success { background: rgba(53, 176, 106, 0.12); border-color: rgba(53, 176, 106, 0.4); }
.dh-billing-embed .notice-error { background: rgba(229, 115, 91, 0.12); border-color: rgba(229, 115, 91, 0.4); }

.dh-team-request { border: 1px solid var(--dh-line, #e3e9f0); border-radius: 10px; padding: 12px 14px; }
.dh-team-request legend { font-weight: 700; padding: 0 4px; }

.dh-team-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
}

.dh-worker-tiles .dh-tile-value { font-size: 21px; }

.dh-small { font-size: 12.5px; }

/* Kosten-Tabelle: 4 kompakte Spalten – keine 720px-Mindestbreite nötig. */
.dh-table--costs { min-width: 0; }

/* =====================================================================
 * Baustellen-Doku (v3.11.0): Hinweise, Pläne, Foto-Doku
 * =================================================================== */

.dh-notes-edit summary { display: inline-block; cursor: pointer; list-style: none; }
.dh-notes-edit summary::-webkit-details-marker { display: none; }

.dh-doc-upload { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dh-doc-upload input[type="text"] { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--dh-line, #e3e9f0); border-radius: 9px; }

.dh-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dh-photo { margin: 0; }

/* Foto-Galerie nach Tag (v3.82.0): jeder Tag ein eigenes, klappbares <details>. */
.dh-photo-days {
	margin-top: 0.6rem;
}
.dh-photo-day {
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	margin: 0 0 0.7rem;
	padding: 0.35rem 0.7rem 0.55rem;
}
.dh-photo-day > summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	padding: 0.35rem 0;
}
.dh-photo-day > summary::-webkit-details-marker {
	display: none;
}
.dh-photo-day[open] > summary {
	margin-bottom: 0.5rem;
}
.dh-photo-more {
	margin-top: 0.7rem;
	width: 100%;
}

/* Abschluss-Doku-Kuratierung (v3.84.0): Foto auswählen/drehen/beschriften. */
.dh-curate-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0.6rem 0 1rem;
}
.dh-curate-row {
	align-items: flex-start;
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius, 10px);
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	padding: 0.6rem;
}
.dh-curate-pick {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}
.dh-curate-thumb {
	align-items: center;
	background: var(--dh-bg-soft);
	border: 1px solid var(--dh-line);
	border-radius: 8px;
	display: flex;
	flex: 0 0 auto;
	height: 84px;
	justify-content: center;
	overflow: hidden;
	width: 84px;
}
.dh-curate-thumb img {
	display: block;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.15s ease;
}
.dh-curate-fields {
	align-items: center;
	display: flex;
	flex: 1 1 12rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.dh-curate-order {
	width: 4.5em;
}
.dh-curate-caption {
	flex: 1 1 12rem;
	min-width: 0;
}
/* „+N" Rest-Zähler in den Inline-Vorschau-Thumbs einer Stunden-Zeile. */
.dh-entry-thumb--more {
	align-items: center;
	background: var(--dh-bg-soft);
	color: var(--dh-muted);
	display: flex;
	font-size: 0.85rem;
	font-weight: 700;
	justify-content: center;
}
.dh-photo img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--dh-line, #e3e9f0); }
.dh-photo figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

/* Mitarbeiter-Cockpit (dunkel) */
.dh-wnotes { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(194, 207, 221, 0.16); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.dh-wplan-link { color: #7cbcf2; text-decoration: none; font-weight: 600; }
.dh-ms-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dh-photo-inputs { display: flex; gap: 10px; margin: 10px 0; }
.dh-photo-btn { flex: 1; text-align: center; cursor: pointer; }
.dh-photo-form select, .dh-photo-form textarea { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid rgba(194, 207, 221, 0.25); background: rgba(7, 14, 25, 0.6); color: inherit; }

/* ===== Bewertungen (v3.12.0) ===== */
.dh-rating-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.dh-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.dh-stars input { position: absolute; opacity: 0; width: 0; }
.dh-stars label { font-size: 26px; color: #cdd6e1; cursor: pointer; line-height: 1; }
.dh-stars label:hover, .dh-stars label:hover ~ label,
.dh-stars input:checked ~ label { color: #C9A54A; }
.dh-worker .dh-stars label { color: rgba(194, 207, 221, 0.35); }
.dh-worker .dh-stars label:hover, .dh-worker .dh-stars label:hover ~ label,
.dh-worker .dh-stars input:checked ~ label { color: #C9A54A; }

/* ===== Feature-/Verkaufsseiten (v3.12.0) ===== */
.dh-feature-hero { text-align: center; max-width: 780px; margin: 0 auto 34px; }
.dh-feature-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dh-muted, #64748c); }
.dh-feature-title { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 10px 0 14px; letter-spacing: -0.01em; }
.dh-feature-sub { font-size: 17px; line-height: 1.65; color: var(--dh-muted, #64748c); margin: 0 0 22px; }
.dh-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 26px; }
.dh-feature-card h3 { margin: 10px 0 6px; font-size: 16.5px; }
.dh-feature-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--dh-muted, #64748c); }
.dh-feature-icon svg { width: 30px; height: 30px; color: #C9A54A; }
.dh-feature-shot { margin: 0 0 26px; }
.dh-feature-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--dh-line, #dfe6ee); box-shadow: 0 14px 40px rgba(12, 22, 38, 0.12); }
.dh-feature-shot figcaption { text-align: center; font-size: 13px; color: var(--dh-muted, #64748c); margin-top: 8px; }
.dh-feature-final { text-align: center; padding: 30px; }
.dh-feature-final h2 { margin: 0 0 8px; }
.dh-feature-final p { color: var(--dh-muted, #64748c); margin: 0 0 18px; }

/* ===== Rechtsseiten (Impressum/Datenschutz, DH_Legal) =====
   Läuft im .dh-portal-Container -> erbt Hell/Dunkel-Tokens automatisch. */
.dh-legal-inner { max-width: 780px; margin: 0 auto; }
.dh-legal-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 1.4rem; color: var(--dh-ink); }
.dh-legal h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--dh-ink); }
.dh-legal h3 { font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 0.4rem; color: var(--dh-ink); }
.dh-legal p { color: var(--dh-ink); line-height: 1.7; margin: 0 0 0.9rem; }
.dh-legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; }
.dh-legal li { color: var(--dh-ink); line-height: 1.65; }
.dh-legal a { color: var(--dh-brand-accent, #4f9be0); }
.dh-legal code { background: var(--dh-bg-soft, #f1f5f9); border: 1px solid var(--dh-line); border-radius: 6px; padding: 0.08em 0.4em; font-size: 0.9em; }
.dh-legal-updated { color: var(--dh-muted); font-style: italic; margin-top: 1.6rem; }

/* ===== Demo-Vorschau ([dh_demo]) IMMER im hellen Portal-Look =====
   Zeigt das echte (helle) Kundenportal — daher die Tokens auf .dh-demo
   fest auf hell re-scopen, auch wenn die Seite dunkel läuft (Landing /
   Feature-Seiten). Ohne das: dunkle Karte + fest hinterlegter dunkler Text. */
.dh-demo {
	--dh-bg: #ffffff;
	--dh-ink: #1b2836;
	--dh-line: #dbe4ee;
	--dh-muted: #64748c;
	--dh-bg-soft: #f1f5f9;
	--dh-card-2: #f3f6fa;
	color-scheme: light;
	color: #1b2836;
}
.dh-lp .dh-demo-wrap { margin-top: 22px; }
/* Demo-Intro (Titel + Unterzeile) steht direkt auf dem Landing-Grund (nicht auf
   einer hellen Karte) → theme-bewusste Landing-Textfarbe statt des festen
   Demo-Dunkel (#1b2836), sonst dunkel-auf-dunkel unlesbar. Karten bleiben hell. */
.dh-lp .dh-demo > .dh-card-title { color: var(--ink); }
.dh-lp .dh-demo > p { color: var(--ink-soft); }

/* ===== Portal = eigene App-Chrome (v3.79.0) ================================
   Portal-Seiten (Kunde/Monteur/Verwaltung, body.dh-theme-portal) tragen den
   WP-Theme-Header/-Footer + Sprach-Umschalter NICHT mehr — der einzige Kopf ist
   die .dh-brandbar. Kein WP-Branding, kein Doppelkopf, keine Leerraum-Lücke. */
body.dh-theme-portal header.wp-block-template-part,
body.dh-theme-portal footer.wp-block-template-part,
body.dh-theme-portal .dh-lang-switch { display: none !important; }
body.dh-theme-portal { --wp--style--root--padding-top: 0; }
body.dh-theme-portal .wp-site-blocks > main { padding-top: 0 !important; margin-top: 0 !important; }

/* Hell/Dunkel-Pille im Portal-Kopf (Optik wie im Landing-Header, aber mit
   Portal-Tokens — .themebtn ist sonst nur unter .dh-lp gestylt). */
.dh-portal .themebtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--dh-line); border-radius: 999px;
  padding: 8px 13px; font-size: 13.5px; font-weight: 600; line-height: 1;
  background: transparent; color: var(--dh-ink);
}
.dh-portal .themebtn:hover { border-color: var(--dh-brand-accent, #4f9be0); color: var(--dh-brand-accent, #4f9be0); }
.dh-portal .themebtn svg { width: 15px; height: 15px; display: block; }
.dh-portal .themebtn .ic-sun { display: none; }
.dh-portal .themebtn.is-dark .ic-sun { display: block; }
.dh-portal .themebtn.is-dark .ic-moon { display: none; }
@media (max-width: 600px) { .dh-portal .themebtn .tlabel { display: none; } }

/* Sprach-Umschalter (DE/HU/EN) im Portal-Kopf — Monteur/Kunde muss die Sprache
   wechseln können (war beim Ausblenden des Theme-Headers verloren gegangen). */
.dh-portal .flags { display: inline-flex; border: 1px solid var(--dh-line); border-radius: 999px; overflow: hidden; }
.dh-portal .flags a { display: inline-flex; align-items: center; padding: 6px 10px; font-size: 13px; color: var(--dh-muted); line-height: 1; font-weight: 600; text-decoration: none; }
.dh-portal .flags a:hover { color: var(--dh-ink); }
.dh-portal .flags a.is-active { background: rgba(79,155,224,.16); color: var(--dh-brand-accent, #4f9be0); font-weight: 700; }

/* ===== Rückfragen-Verlauf (v3.13.0) ===== */
.dh-query-item { padding: 12px 0; border-bottom: 1px solid var(--dh-line, #e3e9f0); }
.dh-query-item:last-child { border-bottom: none; }
.dh-thread { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.dh-thread-msg { background: var(--dh-card-2, #f3f6fa); border-radius: 10px 10px 10px 3px; padding: 10px 14px; max-width: 92%; }
.dh-thread-msg--worker { background: #eaf3ea; border-radius: 10px 10px 3px 10px; align-self: flex-end; }
.dh-worker .dh-thread-msg { background: rgba(255, 255, 255, 0.08); }
.dh-worker .dh-thread-msg--worker { background: rgba(61, 174, 125, 0.18); }
.dh-thread-meta { display: block; font-size: 11.5px; color: var(--dh-muted, #64748c); margin-bottom: 3px; }
.dh-thread-msg p { margin: 0; font-size: 14px; line-height: 1.55; }
.dh-thread-photo img { max-width: 180px; border-radius: 8px; margin-top: 6px; display: block; }
.dh-thread-form { margin-top: 10px; }
.dh-thread-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--dh-line, #e3e9f0); border-radius: 9px; }
.dh-worker .dh-thread-form textarea { background: rgba(7, 14, 25, 0.6); border-color: rgba(194, 207, 221, 0.25); color: inherit; }
.dh-thread-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.dh-reward-info { border-left: 3px solid #C9A54A; }

/* =========================================================================
 * v3.15.0: Glocke, Pflichtfeld-Markierung, Akkordeon-Tabellen, Demo-Modus
 * ======================================================================= */

/* --- Brandbar-Gruppierung + Benachrichtigungs-Glocke --- */

.dh-brandbar-right,
.dh-vw-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.dh-bell {
	position: relative;
}

.dh-bell-btn {
	align-items: center;
	background: var(--dh-bg, #ffffff);
	border: 1px solid var(--dh-line, #dbe4ee);
	border-radius: 999px;
	color: var(--dh-ink, #1b2836);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	position: relative;
	width: 44px;
}

.dh-bell-btn svg {
	height: 22px;
	width: 22px;
}

.dh-worker .dh-bell-btn {
	background: #122036;
	border-color: rgba(148, 178, 209, 0.32);
	color: #c2cfdd;
}

.dh-bell-badge {
	background: #e02d2d;
	border-radius: 999px;
	box-shadow: 0 0 0 2px var(--dh-bg, #ffffff);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	min-width: 19px;
	padding: 3px 5px;
	position: absolute;
	right: -4px;
	text-align: center;
	top: -4px;
}

.dh-bell-panel {
	background: #ffffff;
	border: 1px solid var(--dh-line, #dbe4ee);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(12, 22, 38, 0.18);
	color: #1b2836;
	max-height: 70vh;
	overflow: auto;
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(360px, 88vw);
	z-index: 60;
}

.dh-bell-head {
	border-bottom: 1px solid var(--dh-line, #dbe4ee);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.8rem 1rem;
}

.dh-bell-empty {
	color: #64748c;
	margin: 0;
	padding: 1rem;
}

.dh-bell-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dh-bell-item a {
	border-bottom: 1px solid var(--dh-line, #dbe4ee);
	color: inherit;
	display: block;
	padding: 0.7rem 1rem;
	text-decoration: none;
}

.dh-bell-item:last-child a {
	border-bottom: 0;
}

.dh-bell-item a:hover {
	background: #f4f7fb;
}

.dh-bell-item.is-unread a {
	background: rgba(79, 155, 224, 0.1);
}

.dh-bell-text {
	display: block;
	font-size: 0.92rem;
	line-height: 1.45;
}

.dh-bell-time {
	color: #64748c;
	display: block;
	font-size: 0.75rem;
	margin-top: 2px;
}

/* --- Pflichtfeld-Markierung (Auto-Scroll-Validierung) --- */

.dh-portal .dh-invalid {
	border-color: #e02d2d !important;
	box-shadow: 0 0 0 3px rgba(224, 45, 45, 0.25) !important;
}

.dh-woptional {
	color: #8fa3b8;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* --- Akkordeon-Tabellen + App-Feinschliff (nur Smartphones) --- */

@media (max-width: 719px) {
	.dh-brandbar {
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		background: rgba(255, 255, 255, 0.94);
		border-bottom: 1px solid var(--dh-line, #dbe4ee);
		margin: 0 -0.25rem 1.25rem;
		padding: 0.55rem 0.6rem;
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.dh-billing-tiles {
		gap: 10px;
		grid-template-columns: 1fr 1fr;
	}

	.dh-tile-value {
		font-size: 20px;
	}

	.dh-btn {
		min-height: 44px;
	}

	.dh-table--accordion tbody tr {
		position: relative;
	}

	.dh-table--accordion tbody tr > td:first-child {
		cursor: pointer;
		padding-right: 2.6rem;
	}

	.dh-table--accordion tbody tr > td:first-child::after {
		color: var(--dh-muted, #64748c);
		content: "▾";
		position: absolute;
		right: 1.1rem;
		top: 0.65rem;
		transition: transform 0.2s ease;
	}

	.dh-table--accordion tbody tr.is-open > td:first-child::after {
		transform: rotate(180deg);
	}

	.dh-table--accordion tbody tr:not(.is-open) > td:not(:first-child) {
		display: none;
	}
}

/* --- Demo-Modus (Werbeseite): maskierte Kundenansichten --- */

.dh-demo {
	margin: 2.5rem 0;
}

.dh-demo .dh-card {
	margin-bottom: 1.25rem;
}

.dh-demo-badge {
	background: rgba(201, 165, 74, 0.14);
	border: 1px solid rgba(201, 165, 74, 0.5);
	border-radius: 999px;
	color: #8a6d24;
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 0.6rem;
	padding: 3px 10px;
	text-transform: uppercase;
}

.dh-demo-mask {
	border-radius: 6px;
	cursor: help;
	display: inline-block;
	filter: blur(5px);
	position: relative;
	-webkit-user-select: none;
	user-select: none;
}

.dh-demo-mask:hover,
.dh-demo-mask:focus {
	outline: none;
}

/* Hinweis-Bubble bei Hover/Fokus/Tap auf maskierte Werte. */
.dh-demo [data-dh-tip] {
	position: relative;
}

.dh-demo [data-dh-tip]:hover::after,
.dh-demo [data-dh-tip]:focus-within::after {
	background: #0c1626;
	border-radius: 10px;
	bottom: calc(100% + 8px);
	box-shadow: 0 12px 30px rgba(12, 22, 38, 0.35);
	color: #ffffff;
	content: attr(data-dh-tip);
	font-size: 0.82rem;
	font-weight: 600;
	left: 50%;
	line-height: 1.45;
	max-width: min(320px, 80vw);
	padding: 0.6rem 0.85rem;
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
	white-space: normal;
	width: max-content;
	z-index: 40;
}

.dh-demo-lock {
	align-items: center;
	background: var(--dh-bg-soft, #f4f7fb);
	border: 1px dashed var(--dh-line, #dbe4ee);
	border-radius: 10px;
	color: var(--dh-muted, #64748c);
	display: flex;
	font-size: 0.85rem;
	gap: 0.5rem;
	margin-top: 0.9rem;
	padding: 0.6rem 0.9rem;
}

/* Datei-Dialog: EIN sauberer Button – das native Input bleibt für die
 * Label-Auslösung im DOM, ist aber unsichtbar (Zähler zeigt die Auswahl). */
.dh-photo-btn {
	overflow: hidden;
	position: relative;
}

.dh-photo-btn input[type="file"] {
	height: 1px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 1px;
}

/* =========================================================================
 * v3.16.0: Lebenszyklus-Historie, Disponent-Hinweise
 * ======================================================================= */

/* Eingeklappte Historie erledigter Baustellen (saubere, kurze Seiten). */
.dh-history {
	margin: 1.5rem 0 0;
}

.dh-history > summary {
	color: var(--dh-muted, #64748c);
	cursor: pointer;
	font-weight: 700;
	padding: 0.6rem 0.2rem;
}

.dh-history > summary:hover {
	color: var(--dh-ink, #1b2836);
}

/* Disponent-Anruf im Baustellen-Formular. */
.dh-dispo {
	align-items: center;
	background: var(--dh-accent-soft, rgba(79, 155, 224, 0.12));
	border: 1px solid var(--dh-line, #dbe4ee);
	border-radius: var(--dh-radius, 10px);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
}

/* Standardsätze-Hinweis: bewusst deutlich lesbar (Betreiber-Spez.). */
.dh-standard-note {
	background: rgba(201, 165, 74, 0.1);
	border-left: 4px solid #c9a54a;
	border-radius: 6px;
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0.5rem 0 1rem;
	padding: 0.7rem 0.9rem;
}

.dh-standard-note a {
	font-weight: 700;
	white-space: nowrap;
}

/* =========================================================================
 * v3.18.0: Wizard-Erfassung, Klick-Bestätigung, Checklisten-Schritte
 * ======================================================================= */

.dh-wizard-bar {
	align-items: center;
	display: flex;
	gap: 0.9rem;
	justify-content: space-between;
	margin: 0 0 1.1rem;
}

.dh-wizard-count {
	color: #8fa3b8;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dh-wizard-dots {
	display: flex;
	gap: 6px;
}

.dh-wizard-dots i {
	background: rgba(148, 178, 209, 0.35);
	border-radius: 999px;
	display: block;
	height: 8px;
	transition: background 0.2s ease, width 0.2s ease;
	width: 16px;
}

.dh-wizard-dots i.is-done {
	background: #4f9be0;
	width: 26px;
}

.dh-wstep {
	animation: dh-step-in 0.25s ease;
}

@keyframes dh-step-in {
	from { opacity: 0; transform: translateX(12px); }
	to { opacity: 1; transform: none; }
}

.dh-wizard-nav {
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: 1.3rem;
}

.dh-wizard-nav .dh-btn {
	flex: 1;
	justify-content: center;
	min-height: 56px;
}

/* Pünktlichkeits-Auswahl: Radio unsichtbar, Chip zeigt den Zustand. */
.dh-ontime-opt {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 64px;
}

.dh-ontime-opt input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.dh-ontime-opt:has(input:checked) {
	background: #4f9be0;
	border-color: #7cbcf2;
	color: #ffffff;
}

.dh-ontime.dh-invalid {
	border: 2px solid #e02d2d;
	border-radius: var(--dh-radius, 10px);
	padding: 6px;
}

/* Checklisten-Schritte des Auftraggebers. */
.dh-step-title {
	align-items: center;
	display: flex;
	font-size: 1.1rem;
	gap: 0.6rem;
	margin: 2rem 0 0.75rem;
}

.dh-step-title::before {
	background: var(--dh-accent, #4f9be0);
	border-radius: 999px;
	color: #ffffff;
	content: "→";
	flex: none;
	font-size: 0.9rem;
	font-weight: 800;
	height: 26px;
	line-height: 26px;
	text-align: center;
	width: 26px;
}

/* Klick-Bestätigung (ersetzt das Unterschrift-Pad). */
.dh-confirm-check {
	align-items: flex-start;
	background: var(--dh-bg-soft, #f4f7fb);
	border: 1px solid var(--dh-line, #dbe4ee);
	border-radius: var(--dh-radius, 10px);
	cursor: pointer;
	display: flex;
	font-weight: 600;
	gap: 0.7rem;
	line-height: 1.5;
	margin: 0.5rem 0 0;
	padding: 0.9rem 1rem;
}

.dh-confirm-check input {
	accent-color: var(--dh-accent, #4f9be0);
	flex: none;
	height: 1.35rem;
	margin-top: 0.1rem;
	width: 1.35rem;
}

.dh-done-details > summary {
	list-style-position: inside;
}

/* =========================================================================
 * v3.18.1: Wizard-Feinschliff
 * ======================================================================= */

/* BUGFIX: .dh-btn setzt display:inline-flex und überstimmte damit das
 * [hidden]-Attribut der Wizard-Navigation – "Zurück" war auf Schritt 1
 * sichtbar, "Weiter" blieb auf dem letzten Schritt klickbar. */
.dh-btn[hidden],
.dh-wizard-nav [hidden] {
	display: none !important;
}

/* Schnellwahl-Chips sind Helfer – das Eingabefeld ist der Hauptweg. */
.dh-quick-label {
	color: #8fa3b8;
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0.9rem 0 0.45rem;
}

/* Zusammenfassung vor dem Absenden. */
.dh-wsummary {
	background: rgba(79, 155, 224, 0.08);
	border: 1px solid rgba(148, 178, 209, 0.3);
	border-radius: var(--dh-radius, 10px);
	margin: 1.1rem 0 0;
	padding: 0.9rem 1rem;
}

.dh-wsummary-title {
	color: #8fa3b8;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.dh-wsummary dl {
	display: grid;
	gap: 0.3rem 1rem;
	grid-template-columns: max-content 1fr;
	margin: 0;
}

.dh-wsummary dt {
	color: #8fa3b8;
	font-size: 0.85rem;
}

.dh-wsummary dd {
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0;
	overflow-wrap: anywhere;
}

/* v3.19.0: Vor-/Nachname nebeneinander im Registrierungsformular. */
.dh-field--half {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 479px) {
	.dh-field--half {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * v3.19.2: Kontrast-Fix dunkles Cockpit (Betreiber-Feedback: "Zurück"
 * war so dunkel, dass man ihn kaum sieht).
 * ======================================================================= */

.dh-worker .dh-btn--ghost {
	background: rgba(148, 178, 209, 0.1);
	border: 2px solid rgba(148, 178, 209, 0.55);
	color: #dbe7f3;
}

.dh-worker .dh-btn--ghost:hover,
.dh-worker .dh-btn--ghost:focus {
	background: rgba(148, 178, 209, 0.22);
	border-color: #7cbcf2;
	color: #ffffff;
}

.dh-worker .dh-wizard-nav .dh-btn {
	font-size: 1.05rem;
	font-weight: 700;
}

/* =========================================================================
 * v3.20.0: FAB (Cockpit-Schnellzugriff) + Rollen-Karten (Registrierung)
 * ======================================================================= */

/* Schwebender "+ Stunden"-Knopf – nur mobil, respektiert iOS-Safe-Area. */
.dh-fab {
	display: none;
}

@media (max-width: 719px) {
	.dh-fab {
		align-items: center;
		background: var(--dh-accent, #4f9be0);
		border-radius: 999px;
		bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 10px 26px rgba(12, 22, 38, 0.45);
		color: #ffffff;
		display: flex;
		font-size: 2rem;
		font-weight: 800;
		height: 60px;
		justify-content: center;
		line-height: 1;
		position: fixed;
		right: 18px;
		text-decoration: none;
		width: 60px;
		z-index: 55;
	}

	.dh-fab:active {
		transform: scale(0.94);
	}
}

/* Rollenwahl als zwei Karten. */
.dh-role-cards {
	border: 0;
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr 1fr;
	margin: 0 0 1.1rem;
	padding: 0;
}

.dh-role-cards legend {
	font-weight: 600;
	margin-bottom: 0.6rem;
	padding: 0;
}

.dh-role-card {
	align-items: center;
	background: var(--dh-bg, #fff);
	border: 2px solid var(--dh-line, #dbe4ee);
	border-radius: var(--dh-radius-lg, 16px);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.1rem 0.9rem;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.dh-role-card input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.dh-role-icon {
	font-size: 2rem;
	line-height: 1;
}

.dh-role-text {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
}

.dh-role-card:has(input:checked) {
	background: var(--dh-accent-soft, rgba(79, 155, 224, 0.12));
	border-color: var(--dh-accent, #4f9be0);
}

@media (max-width: 479px) {
	.dh-role-cards {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * v3.20.1: Glocken-Dropdown mobil — volle Breite unter der Kopfzeile
 * statt links aus dem Bildschirm zu ragen (Betreiber-Report).
 * ======================================================================= */

@media (max-width: 719px) {
	.dh-bell {
		position: static;
	}

	/* Positionsanker ist die (sticky = positionierte) Brandbar: das Panel
	 * spannt sich unter der gesamten Kopfzeile auf – nie mehr abgeschnitten. */
	.dh-bell-panel {
		left: 0;
		right: 0;
		top: calc(100% + 6px);
		width: auto;
	}
}

/* =========================================================================
 * v3.21.0: Erfassung als VOLLBILD-App (jeder Schritt eine eigene "Seite")
 * ======================================================================= */

body.dh-noscroll { overflow: hidden; }

/* Großer Startknopf im Cockpit (öffnet den Vollbild-Wizard). */
.dh-open-wizard {
	align-items: center;
	background: linear-gradient(135deg, #4f9be0 0%, #2d6faf 100%);
	border: 0;
	border-radius: var(--dh-radius-lg, 16px);
	box-shadow: 0 10px 26px rgba(12, 22, 38, 0.35);
	color: #ffffff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0 0 1.5rem;
	padding: 1.4rem 1.5rem;
	text-align: left;
	width: 100%;
}

.dh-open-wizard-icon { font-size: 1.8rem; line-height: 1; }
.dh-open-wizard-main { font-size: 1.3rem; font-weight: 800; }
.dh-open-wizard-sub { font-size: 0.9rem; opacity: 0.9; line-height: 1.4; }
.dh-open-wizard:active { transform: scale(0.99); }

/* Der Vollbild-Layer. */
.dh-wlayer {
	background: linear-gradient(168deg, #0e1b2e 0%, #070d17 60%, #04070d 100%);
	bottom: 0;
	display: flex;
	flex-direction: column;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100;
}

.dh-wlayer[hidden] { display: none; }

.dh-wlayer .dh-worker-form {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	max-width: 640px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* Kopfzeile: Zurück/Schließen · Titel · n/5 */
.dh-wlayer-head {
	align-items: center;
	background: rgba(12, 22, 38, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(148, 178, 209, 0.2);
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 44px 1fr auto;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
}

.dh-wlayer-close {
	background: rgba(148, 178, 209, 0.14);
	border: 0;
	border-radius: 999px;
	color: #dbe7f3;
	cursor: pointer;
	font-size: 1.6rem;
	height: 44px;
	line-height: 1;
	width: 44px;
}

.dh-wlayer-title {
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 800;
	text-align: center;
}

.dh-wlayer .dh-wizard-count {
	align-self: center;
	color: #8fa3b8;
	font-size: 0.85rem;
	font-weight: 700;
}

/* Fortschritts-Punkte unter der Kopfzeile. */
.dh-wlayer-dots {
	display: flex;
	gap: 6px;
	justify-content: center;
	padding: 12px 0 4px;
}

.dh-wlayer-dots i {
	background: rgba(148, 178, 209, 0.3);
	border-radius: 999px;
	height: 7px;
	transition: background 0.2s ease, width 0.2s ease;
	width: 22px;
}

.dh-wlayer-dots i.is-done { background: #4f9be0; width: 34px; }

/* Der scrollbare Inhalt eines Schritts. */
.dh-wlayer-body {
	-webkit-overflow-scrolling: touch;
	flex: 1;
	overflow-y: auto;
	padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
}

/* Slide-Übergänge (vorwärts von rechts, zurück von links). */
@keyframes dh-slide-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes dh-slide-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.dh-wlayer .dh-wstep.dh-slide-r { animation: dh-slide-r 0.28s ease; }
.dh-wlayer .dh-wstep.dh-slide-l { animation: dh-slide-l 0.28s ease; }

/* Große, fingerfreundliche Labels im Vollbild. */
.dh-wlayer .dh-wlabel { font-size: 1rem; }
.dh-wlayer .dh-wstep { min-height: 40vh; }

/* Feste Fußzeile mit "Weiter" / Absenden. */
.dh-wlayer .dh-wizard-nav {
	background: rgba(12, 22, 38, 0.85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-top: 1px solid rgba(148, 178, 209, 0.2);
	margin: 0;
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.dh-wlayer .dh-wizard-nav .dh-btn {
	min-height: 60px;
	width: 100%;
}

.dh-wlayer .dh-wsubmit { margin-top: 1rem; }

.dh-wlayer .dh-wfeedback {
	margin: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
}

/* Auf großen Screens: der Layer bleibt zentriert, aber nicht randlos breit. */
@media (min-width: 720px) {
	.dh-wlayer .dh-worker-form {
		border-radius: 18px;
		box-shadow: 0 30px 80px rgba(2, 6, 12, 0.6);
		height: auto;
		margin-top: 4vh;
		max-height: 92vh;
		overflow: hidden;
	}
	.dh-wlayer { padding: 0 16px; }
}

/* v3.21.3: Wizard-Layer-Politur */
/* Sprachflaggen (fix oben rechts) verdecken sonst die Layer-Kopfzeile. */
body.dh-noscroll .dh-lang-switch { display: none !important; }

/* Zusammenfassung im dunklen Vollbild: heller lesbar. */
.dh-wlayer .dh-wsummary {
	background: rgba(79, 155, 224, 0.12);
	border-color: rgba(148, 178, 209, 0.4);
}
.dh-wlayer .dh-wsummary dt { color: #8fa3b8; }
.dh-wlayer .dh-wsummary dd { color: #eef3f9; }
.dh-wlayer .dh-wsummary-title { color: #c2cfdd; }

/* ================================================================
   DUNKELMODUS (opt-in via <html data-theme="dark">) fürs Portal.
   Hell bleibt Standard. Token-Werte kippen den Großteil; die wenigen
   fest verdrahteten hellen Flächen werden gezielt überschrieben.
   ================================================================ */
:root[data-theme="dark"] .dh-portal,
body.dh-register-page .dh-portal {
	--dh-ink: #e9eef4;
	--dh-muted: #9fb0c4;
	--dh-line: #22344c;
	--dh-bg: #111f30;
	--dh-bg-soft: #0c1826;
	--dh-card-2: #16283f;
	--dh-accent-soft: rgba(79, 155, 224, .18);
	--dh-success-soft: rgba(61, 174, 125, .20);
	--dh-warn-soft: rgba(232, 180, 86, .18);
	--dh-danger-soft: rgba(224, 103, 103, .18);
	color-scheme: dark;
}
:root[data-theme="dark"] body.dh-theme-portal { background: #0a121e; }

/* fest verdrahtete helle Flächen -> dunkel (auch auf der eigenständigen
   Registrierungsseite, die dauerhaft im Nachtblau-Look läuft) */
:root[data-theme="dark"] .dh-field input,
:root[data-theme="dark"] .dh-field select,
:root[data-theme="dark"] .dh-site-form .dh-field textarea,
body.dh-register-page .dh-field input,
body.dh-register-page .dh-field select { background: var(--dh-bg); color: var(--dh-ink); color-scheme: dark; }
:root[data-theme="dark"] .dh-bell-panel { background: var(--dh-bg); color: var(--dh-ink); }
:root[data-theme="dark"] .dh-bell-time,
:root[data-theme="dark"] .dh-bell-empty { color: var(--dh-muted); }
:root[data-theme="dark"] .dh-bell-item a:hover { background: var(--dh-bg-soft); }
:root[data-theme="dark"] .dh-thread-msg--worker { background: rgba(61, 174, 125, .16); }

/* --- Review-Fixes (v3.34.3) --- */
/* Feste Pille über der Vollbild-Stundenerfassung ausblenden (wie .dh-lang-switch) */
body.dh-noscroll .dh-theme-fixed { display: none !important; }
/* Portal-STANDARD (hell) unverändert lassen: data-theme="light" definiert die
   Marken-Tokens um; im Portal die Originalwerte (Blau/Ink) wiederherstellen. */
:root[data-theme="light"] .dh-portal {
	--dh-brand-accent: #4f9be0;
	--dh-brand-accent-dark: #2d6faf;
	--dh-brand-ink: #1b2836;
}

/* Handy-Brandbar (sticky) hat fest weißen Hintergrund (rgba(255,255,255,.94)) —
   im Dunkel-Modus dunkel machen (sonst weißer „Kasten" auf dunklem Portal). */
@media (max-width: 719px) {
	:root[data-theme="dark"] .dh-brandbar {
		background: rgba(15, 27, 44, 0.94);
		border-bottom-color: var(--dh-line);
	}
}

/* ---- People-Admin: einklappbares Karten-Raster (Mitarbeiter + Kunden) ---- */
.dh-pa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.dh-pa-card { margin: 0; }
.dh-pa-card > summary.dh-pa-sum { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 10px; }
.dh-pa-card > summary.dh-pa-sum::-webkit-details-marker { display: none; }
.dh-pa-chev { color: var(--dh-gold, #C9A54A); font-size: 14px; line-height: 1.5; transition: transform .15s ease; flex: none; }
.dh-pa-card[open] .dh-pa-chev { transform: rotate(90deg); }
.dh-pa-sum-main { flex: 1 1 auto; min-width: 0; }
.dh-pa-name { display: block; font-weight: 800; font-size: 16px; margin-bottom: 7px; line-height: 1.2; }
.dh-pa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dh-pa-chips .dh-chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; cursor: pointer;
	background: rgba(127,127,127,.12); border: 1px solid var(--dh-line, rgba(127,127,127,.25)); color: inherit; white-space: nowrap;
	min-height: 0; line-height: 1.5; }
.dh-pa-chips .dh-chip.ok { background: rgba(61,174,125,.14); border-color: rgba(61,174,125,.45); color: var(--dh-ok, #3dae7d); }
.dh-pa-chips .dh-chip.no { background: rgba(210,138,106,.14); border-color: rgba(210,138,106,.45); color: #d08a6a; }
.dh-pa-sum-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.dh-pa-body { padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--dh-line, rgba(127,127,127,.2)); }
@media (max-width: 720px) {
	.dh-pa-cards { grid-template-columns: 1fr; }
	.dh-pa-sum-side { flex-direction: row-reverse; align-items: center; }
}

/* ---- People-Admin: Such-/Filter-Leiste + Erinnern-Button + Flash ---- */
.dh-pa-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 16px; }
.dh-pa-search { flex: 1 1 240px; min-width: 180px; padding: 9px 12px; border-radius: 10px;
	border: 1px solid var(--dh-line, rgba(127,127,127,.3)); background: rgba(127,127,127,.08); color: inherit; font-size: 14px; }
.dh-pa-onlyopen { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dh-pa-count { font-size: 12.5px; color: var(--dh-muted, #90a2ba); font-weight: 700; }
.dh-pa-flash { padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; margin: 0 0 14px; }
.dh-pa-flash.ok { background: rgba(61,174,125,.14); border: 1px solid rgba(61,174,125,.45); color: var(--dh-ok, #3dae7d); }
.dh-pa-flash.warn { background: rgba(201,165,74,.14); border: 1px solid rgba(201,165,74,.45); color: var(--dh-gold, #C9A54A); }
.dh-pa-remindform { margin: 0; }
.dh-pa-remind { padding: 7px 12px; font-size: 12.5px; white-space: nowrap; }

/* ============================================================
   Statistik-Reiter (DH_Analytics): Besucher-Kacheln + Seiten-Tabelle.
   Nur /verwaltung/-Ansicht; nutzt die vorhandenen Karten-/Tabellen-Styles.
   ============================================================ */
.dh-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 1.25rem 0;
}
.dh-stat-tile {
	background: var(--dh-bg);
	border: 1px solid var(--dh-line);
	border-radius: var(--dh-radius-lg, 16px);
	padding: 1.25rem 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.dh-stat-num {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--dh-accent);
	line-height: 1.1;
}
.dh-stat-lbl {
	font-size: 0.85rem;
	color: var(--dh-muted);
}
.dh-stat-page a {
	color: var(--dh-ink);
	text-decoration: none;
	word-break: break-word;
}
.dh-stat-page a:hover { text-decoration: underline; }
.dh-stat-flag { opacity: 0.9; }
.dh-stat-pages td:nth-child(2),
.dh-stat-pages td:nth-child(3) { font-variant-numeric: tabular-nums; }
.dh-stat-privacy { margin-top: 1rem; }

@media (max-width: 640px) {
	.dh-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.dh-stat-num { font-size: 1.5rem; }
}

/* Statistik Phase 2: Wochenvergleich-Trend + Funnel-Tabelle. */
.dh-trend { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.dh-trend--up { color: var(--dh-success, #3ba55d); }
.dh-trend--down { color: var(--dh-danger, #d9534f); }
.dh-trend--flat { color: var(--dh-muted); }
.dh-week-table td:not(:first-child),
.dh-funnel-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.dh-week-table td:first-child,
.dh-funnel-table td:first-child { font-weight: 600; }
