/**
 * Produkt-Theme – einheitlich wie Zeiterfassung
 * #f5f7fb Canvas, Karten #fff / Rand #e8ecf4, Schatten wie .zeit-card.
 * Lädt nach app.css.
 */

:root {
    --bg: color-mix(in srgb, #f5f7fb 90%, var(--secondary-soft) 10%);
    --surface: #ffffff;
    --surface-glass: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e8ecf4;
    --primary: #38efb0;
    --primary-hover: #62f4c4;
    --primary-dark: #2bb894;
    --accent: #38efb0;
    --accent-soft: #96f1d7;
    --accent-dark: #1fa981;
    --secondary: #2563eb;
    --secondary-hover: #1d4ed8;
    --secondary-dark: #1e3a8a;
    --secondary-soft: #e8efff;
    --danger: #dc2626;
    --success: #059669;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 8px 24px color-mix(in srgb, rgba(37, 99, 235, 0.16) 45%, rgba(49, 186, 198, 0.26) 55%);
    --shadow-lift: 0 12px 36px rgba(15, 23, 42, 0.1);
    --zeit-donut-track: #d4faf0;
    --zeit-pill-blue: #38efb0;
    --zeit-pill-blue-deep: #2bb894;
    --zeit-page-bg: #f5f7fb;
    --zeit-card-bg: #ffffff;
    --zeit-border: #e8ecf4;
    --zeit-primary: #38efb0;
    --zeit-primary-deep: #2bb894;
    --zeit-yellow: #d4faf0;
    --zeit-yellow-soft: #e8fdf7;
    --zeit-accent: #38efb0;
    --zeit-text: #0f172a;
    --zeit-muted: #64748b;
    --zeit-radius: 20px;
    --zeit-shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
    --focus-ring: var(--secondary);
    --focus-glow: 0 0 0 3px color-mix(in srgb, var(--secondary) 22%, transparent);
}

/* Pulse visual refresh: an Referenz-Dashboard angelehnt */
:root {
    /* globale Farb-Tokens kommen aus app.css */
    --box-border: #e6ebf2;
    --box-bg: #ffffff;
    --box-bg-muted: #f8fafc;
    --shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
    --box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    --box-shadow-hover: 0 8px 24px rgba(16, 24, 40, 0.08);
}

::selection {
    background: color-mix(in srgb, rgba(37, 99, 235, 0.2) 50%, rgba(49, 186, 198, 0.16) 50%);
    color: var(--text);
}

a {
    color: var(--secondary-dark);
}

a:hover {
    color: var(--secondary);
}

/* —— Karten & Formulare —— (Box-Chrome: app.css --box-*) */

.section-block.accent {
    border-color: color-mix(in srgb, var(--secondary) 12%, rgba(27, 138, 152, 0.15));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--secondary-soft) 55%, rgba(212, 250, 240, 0.5)) 0%,
        rgba(255, 255, 255, 0.98) 55%,
        var(--surface) 100%
    );
}

/* Buttons: einheitlich in app.css (.btn, .btn-primary, …) */

.input {
    background: #f8fafc;
    border-color: #e8ecf4;
    border-radius: var(--radius-sm);
    min-height: 2.75rem;
}

select.input {
    cursor: pointer;
}

.input:focus {
    outline-color: color-mix(in srgb, var(--secondary) 38%, rgba(49, 186, 198, 0.32));
    border-color: color-mix(in srgb, var(--secondary) 45%, var(--primary));
    background: #fff;
    box-shadow: var(--focus-glow), 0 0 0 1px color-mix(in srgb, var(--secondary) 12%, transparent);
}

.flash-error {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(145deg, #fff5f5 0%, #ffe8e8 55%, #fff0f0 100%);
    color: #7f1d1d;
    border: 2px solid #f87171;
    border-left: 6px solid #dc2626;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow:
        0 4px 24px rgba(220, 38, 38, 0.18),
        0 0 0 1px rgba(220, 38, 38, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.flash-error::before {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.12rem;
    flex-shrink: 0;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

@media (min-width: 640px) {
    .flash-error {
        padding: 1.1rem 1.35rem;
        font-size: 1.05rem;
    }

    .flash-error::before {
        width: 1.65rem;
        height: 1.65rem;
        margin-top: 0.15rem;
    }
}

.flash-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 45%, #ecfdf5 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
    border-left: 5px solid var(--success);
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.45;
    box-shadow:
        0 4px 20px rgba(5, 150, 105, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.flash-success::before {
    content: "";
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.08rem;
    flex-shrink: 0;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23059669'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

code {
    background: #e8fdf7;
    border-color: #d4faf0;
    color: #0f6b52;
}

/* Seiteninhalt: gleicher Grund wie Zeiterfassung */
.app-shell .shell-main {
    background: var(--bg);
}

.container {
    max-width: 1360px;
}

.main-content--dash {
    max-width: 1360px;
    padding-top: 0.75rem;
}

.page-head h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.list-plain li,
.dash-side-list li {
    border-bottom-color: #e8ecf4;
}

.card h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* —— App-Shell: helles Canvas —— */
.app-shell {
    background: #f3f5f7;
}

.shell-main::before {
    opacity: 0;
}

/* Sidebar: weiß wie Produktkarten */
.sidebar {
    width: 272px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 1px 0 0 #e6ebf2, 6px 0 26px rgba(15, 23, 42, 0.04);
}

.sidebar-brand {
    padding-top: 1.15rem;
    border-bottom-color: #e6ebf2;
}

.sidebar-logo-product {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sidebar-logo-pulse {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.sidebar-tenant {
    color: var(--muted);
}

.sidebar-logo-parent {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.sidebar-logo-productline {
    font-size: 1rem;
}

.sidebar-link {
    border: 1px solid transparent;
    color: #4b5563;
    border-radius: 10px;
    font-weight: 500;
}

.sidebar-link:hover {
    background: #f5f8fb;
    color: #0f172a;
    border-color: #edf2f7;
    box-shadow: none;
}

.sidebar-link.is-active {
    background: #e9f8f3;
    color: #0f7b61;
    border-color: #cfeee2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-product-switch {
    background: linear-gradient(180deg, #dffaf3 0%, #d3f7ee 100%);
    border: 1px solid #b8f0dc;
    box-shadow: inset 0 1px 2px rgba(27, 184, 148, 0.12);
}

.sidebar-product-switch-opt.is-active {
    background: #ffffff;
    color: #129274;
    box-shadow: 0 1px 4px rgba(18, 146, 116, 0.18), inset 0 0 0 1px #b8f0dc;
}

.sidebar-product-switch-opt {
    color: #2f8f78;
}

.sidebar-product-switch-opt:hover {
    color: #0f7b61;
    background: rgba(255, 255, 255, 0.55);
}

.sidebar-link .si {
    color: #64748b;
}

.sidebar-link.is-active .si {
    color: var(--primary);
}

.sidebar-footer {
    border-top-color: #e8ecf4;
}

.sidebar-user strong {
    color: var(--text);
}

.mobile-bar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #e8ecf4;
    backdrop-filter: blur(12px);
}

.brand:hover {
    color: var(--primary);
}

.nav-toggle {
    border-color: var(--border);
    background: var(--surface);
}

/* —— Plattform —— */
.platform-body {
    background: linear-gradient(180deg, #f5f7fb 0%, #f8fafc 100%);
}

.platform-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e8ecf4;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.platform-topbar .brand.brand-lockup {
    color: var(--text);
    -webkit-text-fill-color: unset;
    background: none;
}

.platform-topbar .brand-lockup-product {
    background: linear-gradient(90deg, var(--primary), var(--accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.platform-topbar .muted {
    color: var(--muted);
}

.platform-topbar .btn-ghost {
    color: #475569;
}

.platform-topbar .btn-ghost:hover {
    background: #e8fdf7;
    color: var(--primary-dark);
}

.muted-card {
    background: #f8fafc;
}

/* —— Login: helle, ruhige Seite —— */
.auth-aside {
    background: linear-gradient(165deg, #e8fdf7 0%, #dcf5ec 45%, #d4faf0 100%);
    color: #0f172a;
}

.auth-aside::before {
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(49, 186, 198, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(27, 138, 152, 0.1) 0%, transparent 50%);
}

.auth-brand-product {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.auth-brand-pulse {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.auth-tagline,
.auth-bullets {
    color: #334155;
    opacity: 1;
}

.auth-main {
    background: linear-gradient(165deg, #f5f7fb 0%, #ffffff 100%);
}

/* —— Dashboard = gleiche Karten-Ästhetik wie Zeiterfassung —— */
.dash-welcome {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: var(--box-radius, var(--radius-lg));
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.dash-welcome-bg {
    display: none;
}

.dash-welcome-inner {
    color: var(--text);
    padding: 1.1rem 1.25rem;
}

.dash-welcome .dash-welcome-cta {
    border-top-color: color-mix(in srgb, var(--box-border, #e8ecf4) 85%, transparent);
}

@media (min-width: 880px) {
    .dash-welcome .dash-welcome-cta {
        border-left-color: color-mix(in srgb, var(--box-border, #e8ecf4) 85%, transparent);
    }
}

.dash-welcome .page-help-link--invert {
    color: var(--primary-dark);
    background: #e8fdf7;
    border-color: #b8f0dc;
    text-shadow: none;
    top: 0;
}

.dash-welcome .page-help-link--invert:hover {
    background: #d4faf0;
}

.dash-kicker {
    color: #7b8494;
    letter-spacing: 0.08em;
}

.dash-title {
    color: #101828;
    text-shadow: none;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

.dash-meta {
    color: #6b7280;
}

.dash-meta-dot {
    color: #cbd5e1;
}

.dash-avatar {
    background: #e7f8f2;
    border: 1px solid #d2ede3;
    color: #0f7b61;
    box-shadow: none;
}

.dash-welcome .btn {
    min-height: 2.5rem;
    border-radius: 11px;
    font-weight: 600;
}

.dash-welcome .btn-accent-surface {
    background: #38efb0;
    border-color: #38efb0;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(49, 186, 198, 0.32);
}

.dash-welcome .btn-accent-surface:hover {
    background: #2bb894;
    border-color: #2bb894;
    color: #ffffff;
}

.dash-welcome .btn-outline-light {
    background: #ffffff;
    border-color: #dbe4ee;
    color: #334155;
}

.dash-welcome .btn-outline-light:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dash-tile-label {
    color: var(--muted);
}

.dash-tile-value {
    color: var(--text);
}

.dash-tile-value--pulse {
    color: var(--primary);
}

.dash-panel-title {
    font-weight: 700;
}

.dash-panel-link {
    color: var(--primary-dark);
}

.dash-panel-link:hover {
    color: var(--primary);
}

.dash-tag {
    background: #dcf5ec;
    color: #0a5340;
}

/* Dashboard: Urlaubs-Charts an Marken-Grün */
.dash-urlaub-stack-seg--gen {
    background: linear-gradient(90deg, #38efb0, #38efb0);
}

.dash-urlaub-key-dot--gen {
    background: linear-gradient(135deg, #38efb0, #38efb0);
}

.dash-urlaub-mbar {
    background: linear-gradient(180deg, #43bc9a, #139875);
}

.pill-gemeldet {
    background: #d4faf0;
    color: #0f6b52;
}

.pill {
    background: #f1f5f9;
}

/* Dashboard-/Kartenraster und Panel-Optik analog Referenz */
.dash-section {
    margin-bottom: 1.4rem;
}

.dash-section-head {
    margin-bottom: 0.9rem;
}

.dash-section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
}

.dash-section-title {
    font-size: 1.06rem;
    letter-spacing: -0.015em;
}

.dash-metrics {
    margin-bottom: 0.9rem;
}

.dash-metrics-group--zeit-plus-stempel {
    gap: 0.75rem;
}

@media (min-width: 1240px) {
    .dash-metrics-group--zeit-plus-stempel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dash-tile {
    border: 1px solid #e6ebf2;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
    padding: 1rem 1rem 0.95rem;
}

.dash-tile-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f2f8f6;
    border: 1px solid #deece7;
    margin-bottom: 0.55rem;
}

.dash-tile-icon .sidebar-icon {
    width: 0.98rem;
    height: 0.98rem;
    color: #0f7b61;
}

.dash-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
    border-color: #dbe3ed;
}

.dash-tile-label {
    color: #6b7280;
    font-size: 0.8rem;
}

.dash-tile-value {
    color: #111827;
    letter-spacing: -0.02em;
}

.dash-tile-hint {
    color: #6b7280;
}

.dash-panel {
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    background: #ffffff;
}

.dash-panel:hover {
    border-color: #dde4ee;
}

.dash-panel-head {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f0f3f8;
}

.dash-panel-title {
    color: #111827;
    letter-spacing: -0.01em;
}

.dash-panel-link {
    color: #0f7b61;
    font-weight: 600;
}

.dash-panel-link:hover {
    color: #129274;
}

.table th {
    color: #6b7280;
    font-weight: 600;
}

.table td {
    color: #1f2937;
}

.dash-side-list li {
    border-bottom-color: #eef2f7;
}

.dash-tag {
    border: 1px solid #cfeee2;
    background: #e9f8f3;
    color: #0f7b61;
}

/* Top-Grid wie Referenz: KPIs links, Team/Alerts rechts */
.dash-overview-grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.dash-overview-main,
.dash-overview-side {
    display: grid;
    gap: 0.85rem;
}

.dash-overview-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dash-over-kpi {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.dash-over-kpi-icon {
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #deece7;
    background: #f2f8f6;
    margin-bottom: 0.35rem;
}

.dash-over-kpi-icon .sidebar-icon {
    width: 0.86rem;
    height: 0.86rem;
    color: #0f7b61;
}

.dash-over-kpi-label {
    display: block;
    color: #6b7280;
    font-size: 0.76rem;
    margin-bottom: 0.2rem;
}

.dash-over-kpi-value {
    display: block;
    color: #101828;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.dash-over-kpi-value--time {
    font-variant-numeric: tabular-nums;
}

.dash-over-kpi-foot {
    display: block;
    margin-top: 0.2rem;
    color: #7b8494;
    font-size: 0.76rem;
}

.dash-overview-card {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    padding: 0.9rem;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.dash-overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.dash-overview-title {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.dash-overview-clock-status {
    margin: 0;
    color: #475467;
    font-size: 0.88rem;
}

.dash-overview-clock-cta {
    margin-top: 0.75rem;
}

.dash-overview-clock-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
}

.dash-overview-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-overview-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid #eef2f7;
}

.dash-overview-list li:last-child {
    border-bottom: none;
}

.dash-overview-list-name {
    font-size: 0.88rem;
    color: #111827;
    font-weight: 600;
}

.dash-overview-list-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.dash-overview-alerts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-overview-alerts li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.46rem 0;
    border-bottom: 1px solid #eef2f7;
}

.dash-overview-alerts li:last-child {
    border-bottom: none;
}

.dash-overview-alerts span {
    color: #334155;
    font-size: 0.84rem;
}

.dash-overview-alerts a,
.dash-overview-actions a {
    color: #0f7b61;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.dash-overview-actions {
    display: grid;
    gap: 0.45rem;
}

.dash-overview-actions a {
    display: block;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    padding: 0.52rem 0.68rem;
}

.dash-overview-actions a:hover {
    background: #f1f5f9;
}

@media (min-width: 980px) {
    .dash-overview-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .dash-overview-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* —— Bradford & weitere Karten —— */
.bradford-metric {
    background: #f8fafc;
    border-color: #e8ecf4;
    border-radius: 14px;
}

/* —— Zeiterfassung (Tokens global in :root) —— */
.main-content--zeit.container {
    max-width: 1100px;
}

.zeit-donut-track {
    stroke: var(--zeit-donut-track, #dcf5ec);
    stroke-width: 10;
}

.zeit-donut-fill {
    stroke: var(--zeit-primary);
    stroke-width: 10;
}

.zeit-donut-big {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.zeit-donut-sub {
    color: #64748b;
    font-weight: 500;
}

.zeit-donut-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
}

.zeit-noch-kicker {
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.zeit-noch-value {
    color: #0f172a;
}

.zeit-noch-unit {
    color: #64748b;
    font-weight: 500;
}

/* Pill-Leiste: Royal Blue, Input weiß mit blauem Rand */
.zeit-pill {
    background: linear-gradient(180deg, var(--zeit-pill-blue) 0%, var(--zeit-pill-blue-deep) 100%);
    box-shadow: 0 8px 28px rgba(49, 186, 198, 0.28);
    border-radius: 999px;
}

.zeit-pill-text {
    color: #ffffff;
    font-weight: 600;
}

.zeit-pill-pause-input {
    width: 3.1rem;
    padding: 0.45rem 0.3rem;
    border: 1px solid #7edcc4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.zeit-pill-pause-input::placeholder {
    color: #94a3b8;
}

.zeit-pill-action {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.zeit-pill-action:hover {
    background: rgba(255, 255, 255, 0.32);
}

.zeit-pill-action--play {
    background: var(--zeit-pill-blue-deep);
    color: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.zeit-pill-action--play:hover {
    background: #38efb0;
}

.zeit-pause-staffel {
    background: #f8fafc;
    border-color: #e8ecf4;
    border-radius: 14px;
}

.zeit-kw-row--weekend {
    background: rgba(212, 250, 240, 0.35);
}

.zeit-kw-seg--work {
    background: var(--zeit-primary);
}

.zeit-kw-seg--pause {
    background: #cbd5e1;
}

.zeit-kw-seg--ot {
    background: var(--zeit-accent);
}

.zeit-kw-seg--rest {
    background: var(--zeit-yellow);
}

.main-content--zeit .input--zeit {
    background: #f8fafc;
    border-color: #e8ecf4;
}

.main-content--zeit .input--zeit:focus {
    background: #fff;
    border-color: var(--zeit-primary);
}

.zeit-icon-btn {
    color: #94a3b8;
}

.zeit-pause-warn {
    color: #dc2626;
}

.zeit-pause-ok {
    color: var(--zeit-muted);
}

/* —— Dashboard: Zeit-Kacheln = identisch zur Zeiterfassungs-Ästhetik —— */
.dash-tile.dash-tile--zeit {
    --zeit-card-bg: var(--box-bg);
    --zeit-border: var(--box-border);
    --zeit-primary: #38efb0;
    --zeit-primary-deep: #2bb894;
    --zeit-yellow: #d4faf0;
    --zeit-yellow-soft: #e8fdf7;
    --zeit-accent: #38efb0;
    --zeit-text: #0f172a;
    --zeit-muted: #64748b;
    --zeit-shadow: var(--box-shadow);

    background: var(--zeit-card-bg);
    border-color: var(--zeit-border);
    box-shadow: var(--box-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dash-tile.dash-tile--zeit:hover {
    border-color: rgba(49, 186, 198, 0.2);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 #fff;
    transform: translateY(-2px);
}

.dash-tile.dash-tile--zeit .dash-tile-label {
    color: var(--zeit-muted);
}

.dash-tile.dash-tile--zeit .dash-tile-value {
    color: var(--zeit-text);
}

.dash-tile.dash-tile--zeit .dash-tile-value-suffix {
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 0.15rem;
    color: var(--zeit-muted);
    opacity: 1;
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-bar {
    background: var(--zeit-yellow-soft);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    border: 1px solid #e8ecf4;
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-bar-fill--under {
    background: linear-gradient(90deg, #7ee8cc, var(--zeit-primary));
    box-shadow: 0 0 10px rgba(49, 186, 198, 0.2);
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-bar-fill--on {
    background: linear-gradient(90deg, var(--zeit-primary), var(--primary-hover));
    box-shadow: 0 0 12px rgba(49, 186, 198, 0.25);
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-bar-fill--over {
    background: linear-gradient(90deg, var(--zeit-accent), var(--accent-soft));
    box-shadow: 0 0 12px rgba(23, 135, 157, 0.22);
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-dl dt {
    color: #94a3b8;
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--zeit-text);
    letter-spacing: -0.02em;
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-suffix {
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.12rem;
    color: var(--zeit-muted);
    opacity: 0.9;
}

.dash-tile.dash-tile--zeit .dash-tile-diff-pill--under {
    background: #e8fdf7;
    border-color: #9ee8d0;
    color: var(--zeit-primary-deep);
}

.dash-tile.dash-tile--zeit .dash-tile-diff-pill--on {
    background: #d4faf0;
    border-color: #7edcc4;
    color: #0f6b52;
}

.dash-tile.dash-tile--zeit .dash-tile-diff-pill--over {
    background: #c8f5e8;
    border-color: #5dceb0;
    color: #0a5340;
}

.dash-tile.dash-tile--zeit .dash-tile-zeit-foot {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--zeit-muted);
    opacity: 1;
}

/* —— Recruiting (ATS) —— */
.main-content--ats .ats-page {
    max-width: 1120px;
    margin: 0 auto;
}

.ats-hero .ats-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.35rem;
}

.ats-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
}

.ats-lead {
    max-width: 52rem;
    line-height: 1.55;
    margin: 0;
}

.ats-layout-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .ats-layout-grid {
        grid-template-columns: 1fr minmax(280px, 340px);
        align-items: start;
    }

    .ats-layout-grid--single {
        grid-template-columns: 1fr 1fr;
    }
}

.ats-card--wide {
    min-height: 8rem;
}

.ats-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.ats-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.ats-badge--ok {
    background: #e8fdf7;
    color: #0f6b52;
}

.ats-badge--draft {
    background: #f1f5f9;
    color: #475569;
}

.ats-badge--muted {
    background: #f8fafc;
    color: #64748b;
}

.ats-breadcrumb {
    margin-bottom: 0.75rem;
}

.ats-breadcrumb a {
    color: var(--muted);
}

.ats-stelle-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ats-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.ats-meta-item--grow {
    flex: 1;
    min-width: 12rem;
}

.ats-meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.ats-meta-value {
    font-size: 0.9rem;
}

.ats-kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 1.25rem 0;
    scroll-snap-type: x proximity;
}

.ats-kanban-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    min-height: 180px;
}

.ats-kanban-col--terminal {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), var(--surface));
}

.ats-kanban-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
}

.ats-kanban-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0;
}

.ats-kanban-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.ats-kanban-cards {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ats-kanban-card {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fafbfc;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ats-kanban-card:hover {
    border-color: rgba(49, 186, 198, 0.45);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ats-kanban-card-name {
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
}

.ats-kanban-card-date {
    display: block;
    margin-top: 0.35rem;
}

.ats-kanban-empty {
    margin: 0.5rem;
    text-align: center;
}

.ats-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ats-form-row .flex-1 {
    flex: 1;
    min-width: 8rem;
}

.ats-desc {
    margin-top: 0.5rem;
}

.ats-prose {
    line-height: 1.55;
}

.ats-danger-zone {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.ats-btn-danger {
    color: var(--danger) !important;
}

.ats-candidate-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.ats-phase-pill {
    padding: 0.65rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.ats-detail-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 960px) {
    .ats-detail-grid {
        grid-template-columns: 1fr 320px;
        align-items: start;
    }
}

.ats-file-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.ats-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.ats-file-link {
    font-weight: 500;
    flex: 1;
    min-width: 8rem;
}

.ats-timeline {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    max-height: 28rem;
    overflow-y: auto;
}

.ats-tl-item {
    position: relative;
    padding: 0.65rem 0 0.65rem 0.85rem;
    border-left: 2px solid var(--border);
    margin-left: 0.35rem;
}

.ats-tl-item:last-child {
    border-left-color: transparent;
}

.ats-tl--stufe {
    border-left-color: rgba(49, 186, 198, 0.65);
}

.ats-tl--notiz {
    border-left-color: #94a3b8;
}

.ats-tl-meta {
    margin-bottom: 0.35rem;
}

.ats-tl-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ats-notiz-form {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.dash-section--ats .dash-section-kicker {
    color: var(--muted);
}

/* —— Öffentliches Bewerbungsformular (bewerben.php) —— */
.public-bewerbung-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
}

.public-bewerbung-wrap {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.public-bewerbung-head {
    margin-bottom: 1.25rem;
}

.public-bewerbung-brand {
    margin: 0 0 0.25rem;
}

.public-bewerbung-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.public-bewerbung-card {
    margin-bottom: 1rem;
}

.public-bewerbung-success {
    border-color: rgba(5, 150, 105, 0.25);
    background: linear-gradient(135deg, rgba(232, 253, 247, 0.6), var(--surface));
}

.public-bewerbung-joblist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-bewerbung-joblist li {
    margin-bottom: 0.5rem;
}

.public-bewerbung-joblink {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.public-bewerbung-joblink:hover {
    border-color: rgba(49, 186, 198, 0.45);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.public-bewerbung-joblink-title {
    display: block;
    font-weight: 600;
}

.public-bewerbung-desc .public-bewerbung-prose {
    line-height: 1.55;
    font-size: 0.95rem;
}

.public-bewerbung-dsgvo {
    line-height: 1.45;
}

.public-bewerbung-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
