/* =====================================================================
   WUKOTEC Cloud-Management – Design-System (Portal-Redesign 2026)
   ---------------------------------------------------------------------
   Geladen in resources/views/app.blade.php NACH portal-refresh.css und
   VOR dem Reseller-Branding (inline <style>). Dadurch gilt:
     - Die WUKOTEC-Tokens sind die neuen STANDARDWERTE der bestehenden
       --portal-*-Variablen (Primaer-/Akzentfarbe, Text, Rahmen).
     - Reseller-Branding (:root:not([data-theme="dark"]) { --portal-… })
       ueberschreibt sie weiterhin (hoehere Spezifitaet + spaeter im Dokument).
     - Dark-Mode-Tokens aus portal-refresh.css (mit !important) gewinnen.
   Alle Regeln sind auf .wk-* Klassen bzw. .wk-shell gescoped – keine
   unkontrollierten globalen Selektoren. Doku: docs/PORTAL-DESIGN-AND-BRANDING.md §8
   ===================================================================== */

:root {
    /* --- WUKOTEC Design-Tokens --- */
    --wk-navy: #10254D;
    --wk-navy-dark: #0B1938;
    /* Topbar-Verlauf wie im alten Header: Blau -> Dunkelgruen */
    --wk-topbar-from: #082258;
    --wk-topbar-mid: #0B3A6E;
    --wk-topbar-to: #0A4A3C;
    --wk-blue: #1677FF;
    --wk-blue-hover: #0864E8;
    --wk-green: #78D521;

    --wk-background: #F5F8FC;
    --wk-surface: #FFFFFF;
    --wk-text: #14213D;
    --wk-text-secondary: #64748B;
    --wk-border: #E5EBF3;

    --wk-danger: #EF4444;
    --wk-warning: #F59E0B;
    --wk-success: #22C55E;

    --wk-radius-sm: 8px;
    --wk-radius-md: 12px;
    --wk-radius-lg: 16px;
    --wk-radius-xl: 20px;

    --wk-shadow-card: 0 6px 24px rgba(16, 37, 77, 0.045);
    --wk-shadow-hover: 0 12px 32px rgba(16, 37, 77, 0.09);

    --wk-transition: 200ms ease;

    /* --- Layout-Masse --- */
    --wk-topbar-h: 60px;
    --wk-sidebar-w: 232px;
    --wk-content-pad: 28px;
    --wk-control-h: 38px;    /* Standardhoehe Button = Eingabefeld */
    --wk-control-h-lg: 46px; /* grosse Variante (Suchzeilen) */
    --wk-container-w: 1400px; /* inkl. Innenabstand; Full HD: sichtbarer Rand links/rechts */

    /* --- Mapping auf die bestehenden Portal-Tokens (brandbar) --- */
    --portal-primary: var(--wk-blue);
    --portal-accent: var(--wk-green);
    --portal-accent-rgb: 120, 213, 33;
    --portal-text: var(--wk-text);
    --portal-text-muted: var(--wk-text-secondary);
    --portal-border: var(--wk-border);
    --portal-bg: var(--wk-surface);

    /* Seitenhintergrund + Flaechen der Shell (Dark-Mode unten) */
    --wk-page-bg: var(--wk-background);
    --wk-sidebar-bg: var(--wk-surface);
    --wk-nav-text: #334155;
    --wk-nav-icon: #64748B;
    --wk-nav-hover-bg: color-mix(in srgb, var(--portal-primary) 8%, transparent);
    --wk-focus-ring: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 35%, transparent);

    /* Aktions-Buttons (Anlegen, Oeffnen, Suchen …) = WUKOTEC-Gruen (brandbar);
       Blau (--portal-primary) bleibt Navigation und aktiven Zustaenden vorbehalten. */
    --wk-action: var(--portal-accent);
    --wk-action-hover: color-mix(in srgb, var(--portal-accent) 86%, #000);
}

[data-theme="dark"] {
    --wk-page-bg: #0e131c;
    --wk-sidebar-bg: #121926;
    --wk-nav-text: #cbd5e1;
    --wk-nav-icon: #94a3b8;
    --wk-shadow-card: 0 6px 24px rgba(0, 0, 0, 0.25);
    --wk-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* =====================================================================
   1) App-Shell: Topbar + Sidebar + Hauptbereich
   ===================================================================== */

.wk-shell {
    min-height: 100vh;
    background: var(--wk-page-bg);
}

/* ---------- Topbar ---------- */
.wk-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* unter Bootstrap-Modals (1040/1050) */
    height: var(--wk-topbar-h);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 22px;
    background: linear-gradient(90deg, var(--wk-topbar-from) 0%, var(--wk-topbar-mid) 45%, var(--wk-topbar-to) 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 18px rgba(11, 25, 56, 0.18);
}

.wk-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.wk-brand:hover,
.wk-brand:focus { color: inherit; text-decoration: none; }

.wk-brand-logo { display: block; height: 22px; width: auto; max-width: 180px; }
.wk-brand-logo.is-custom { height: 30px; }
.wk-brand-text { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

.wk-brand-label {
    position: relative;
    padding-left: 16px;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    color: inherit;
    opacity: 0.92;
}

.wk-brand-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1.4em;
    transform: translateY(-50%);
    background: currentColor;
    opacity: 0.3;
}

.wk-topbar-spacer { flex: 1 1 auto; }

.wk-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-topbar-action:hover,
.wk-topbar-action:focus { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.wk-topbar-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.wk-topbar-action.is-icon { width: 36px; padding: 0; justify-content: center; }

/* Profil */
.wk-profile { position: relative; margin-left: 8px; }

.wk-profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    border-radius: var(--wk-radius-md);
    color: #fff;
    text-decoration: none;
    transition: background var(--wk-transition);
}

.wk-profile-toggle:hover,
.wk-profile-toggle:focus { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }

.wk-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--portal-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.wk-profile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }

.wk-profile-name,
.wk-profile-company {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wk-profile-name { font-size: 0.84rem; font-weight: 600; }
.wk-profile-company { font-size: 0.74rem; opacity: 0.8; }
.wk-profile-caret { width: 16px; height: 16px; opacity: 0.8; flex-shrink: 0; }

.wk-profile .dropdown-menu {
    min-width: 260px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    box-shadow: var(--wk-shadow-hover);
}

.wk-profile .dropdown-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--wk-radius-sm);
    color: var(--portal-text);
    font-size: 0.88rem;
}

.wk-profile .dropdown-item:hover,
.wk-profile .dropdown-item:focus { background: var(--wk-nav-hover-bg); color: var(--portal-text); }
.wk-profile .dropdown-item.active { background: var(--portal-primary); color: #fff; }
.wk-profile .dropdown-header { padding: 8px 12px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wk-profile-switch { max-height: 60vh; overflow-y: auto; }

/* Burger (nur < 1024px) */
.wk-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -8px;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.wk-burger svg { width: 24px; height: 24px; }
.wk-burger:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Sidebar ---------- */
.wk-sidebar {
    position: fixed;
    top: var(--wk-topbar-h);
    bottom: 0;
    left: 0;
    z-index: 1020;
    width: var(--wk-sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--wk-sidebar-bg);
    border-right: 1px solid var(--portal-border);
}

.wk-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-nav + .wk-nav-sep { margin: 14px 8px; border-top: 1px solid var(--portal-border); }
.wk-nav-bottom { margin-top: auto; }

.wk-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 38px;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--wk-radius-md);
    background: transparent;
    color: var(--wk-nav-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-nav-link:hover,
.wk-nav-link:focus { color: var(--portal-text); text-decoration: none; background: var(--wk-nav-hover-bg); }

.wk-nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--wk-nav-icon); transition: color var(--wk-transition); }
.wk-nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-nav-caret { width: 14px; height: 14px; flex-shrink: 0; color: var(--wk-nav-icon); transition: transform var(--wk-transition); }
.wk-nav-item.is-open > .wk-nav-link .wk-nav-caret { transform: rotate(90deg); }

/* Aktiver Bereich: blau hinterlegt, weisse Schrift + Icon */
.wk-nav-item.is-active > .wk-nav-link {
    background: var(--portal-primary);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--portal-primary) 28%, transparent);
}

.wk-nav-item.is-active > .wk-nav-link .wk-nav-icon,
.wk-nav-item.is-active > .wk-nav-link .wk-nav-caret { color: #fff; }

/* Untermenue (Akkordeon) */
.wk-subnav { list-style: none; margin: 2px 0 4px; padding: 0 0 0 22px; display: none; }
.wk-nav-item.is-open > .wk-subnav { display: block; }

.wk-subnav-link {
    position: relative;
    display: block;
    padding: 6px 10px 6px 20px;
    border-radius: var(--wk-radius-sm);
    color: var(--portal-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    text-decoration: none;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-subnav-link::before {
    content: '';
    position: absolute;
    left: 8px;
    /* an der ERSTEN Zeile ausrichten (mehrzeilige Eintraege): Innenabstand oben
       (6px) + halbe Zeilenhoehe (line-height 1.5 -> 0.75em) */
    top: calc(6px + 0.75em);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: currentColor;
    opacity: 0.45;
}

.wk-subnav-link:hover,
.wk-subnav-link:focus { color: var(--portal-text); text-decoration: none; background: var(--wk-nav-hover-bg); }
.wk-subnav-link.is-active { color: var(--portal-primary); font-weight: 600; }
.wk-subnav-link.is-active::before { opacity: 1; }

.wk-sidebar-backdrop { display: none; }

/* ---------- Hauptbereich ---------- */
.wk-main {
    padding-top: var(--wk-topbar-h);
    padding-left: var(--wk-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Bestehende Theme-Wrapper (style.css/theme.css) im neuen Rahmen neutralisieren:
   kein Hintergrundbild, keine feste Container-Breite (1140px), volle Hoehe. */
.wk-shell .page-body-wrapper {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
    padding: 0;
    background-color: var(--wk-page-bg);
    background-image: none;
}

.wk-shell .main-panel { width: 100%; padding-top: 0; display: flex; flex-direction: column; }

.wk-shell .content-wrapper {
    width: 100%;
    /* Container-Layout: begrenzte Breite, mittig im Bereich rechts der Sidebar */
    max-width: var(--wk-container-w);
    min-height: 0;
    flex: 1 1 auto;
    margin: 0 auto;
    padding: 24px var(--wk-content-pad) 32px;
    background: transparent;
}

.wk-shell .footer {
    background: transparent;
    border-top: 1px solid var(--portal-border);
    padding: 14px var(--wk-content-pad);
    color: var(--portal-text-muted);
}

.wk-shell .footer a { color: var(--portal-text-muted); }

/* ---------- Fokus & Bewegung ---------- */
.wk-shell :is(.wk-nav-link, .wk-subnav-link, .wk-topbar-action, .wk-profile-toggle, .wk-burger, .wk-brand):focus-visible {
    outline: none;
    box-shadow: var(--wk-focus-ring);
}

.wk-topbar :is(.wk-topbar-action, .wk-profile-toggle, .wk-burger, .wk-brand):focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1279.98px) {
    :root { --wk-sidebar-w: 216px; --wk-content-pad: 22px; }
    .wk-profile-text { display: none; }
}

@media (max-width: 1023.98px) {
    :root { --wk-topbar-h: 56px; --wk-content-pad: 16px; }

    .wk-topbar { gap: 12px; padding: 0 16px; }
    .wk-burger { display: inline-flex; }
    .wk-main { padding-left: 0; }

    /* Sidebar als Off-Canvas-Drawer */
    .wk-sidebar {
        top: 0;
        z-index: 1045;
        width: min(300px, 86vw);
        padding-top: 20px;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 240ms ease, visibility 0s linear 240ms;
        box-shadow: none;
    }

    .wk-sidebar.is-open {
        transform: none;
        visibility: visible;
        transition: transform 240ms ease;
        box-shadow: 12px 0 32px rgba(11, 25, 56, 0.25);
    }

    .wk-sidebar-backdrop.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(11, 25, 56, 0.45);
    }

    .wk-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 16px; }
}

@media (min-width: 1024px) {
    .wk-sidebar-head { display: none; }
}

@media (max-width: 767.98px) {
    .wk-brand-label { display: none; }
    .wk-topbar-action .wk-topbar-action-label { display: none; }
    .wk-topbar-action { width: 42px; padding: 0; justify-content: center; }
}

@media (max-width: 479.98px) {
    .wk-brand-logo { height: 20px; max-width: 130px; }
    .wk-topbar-actions { gap: 0; }
}

.wk-sidebar-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: var(--wk-nav-icon);
    cursor: pointer;
}

.wk-sidebar-close svg { width: 20px; height: 20px; }
.wk-sidebar-title { font-weight: 700; color: var(--portal-text); }

/* =====================================================================
   2) Dashboard
   ===================================================================== */

/* ---------- Begruessung ---------- */
.wk-shell .dashboard-header {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    align-items: center;
}

.wk-shell .dashboard-header-content { gap: 16px; }

.wk-shell .dashboard-header-avatar {
    width: 54px;
    height: 54px;
    border-radius: var(--wk-radius-md);
    font-size: 1.5rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--portal-accent) 35%, transparent);
}

.wk-shell .dashboard-header-text h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 2px; }
.wk-shell .dashboard-header-text p { font-size: 0.9rem; color: var(--portal-text-muted); }

.wk-shell .dashboard-header-badges { align-items: center; }
.wk-shell .dashboard-badge { padding: 7px 11px; border-radius: var(--wk-radius-md); font-size: 0.76rem; }
.wk-shell .dashboard-badge svg { width: 14px; height: 14px; }
.wk-shell .dashboard-badge-admin { background: var(--wk-navy); color: #fff; }

.wk-shell .dashboard-customize-btn {
    gap: 8px;
    padding: 8px 14px;
    border-color: var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    font-size: 0.85rem;
    box-shadow: var(--wk-shadow-card);
}

.wk-shell .dashboard-customize-btn:hover { border-color: var(--portal-primary); color: var(--portal-primary); }
.wk-shell .dashboard-customize-btn svg { width: 16px; height: 16px; }

/* ---------- Spalten ---------- */
.wk-shell .dashboard-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.wk-shell .dashboard-main,
.wk-shell .dashboard-sidebar { gap: 18px; }
.wk-shell .dashboard-sidebar.is-sticky { top: calc(var(--wk-topbar-h) + 24px); }

/* Karten-Grundform (alle Dashboard-Bloecke) */
.wk-shell .action-center,
.wk-shell .quick-actions-card,
.wk-shell .onboarding-card,
.wk-shell .reseller-kpi,
.wk-shell .widgets-empty {
    background: var(--portal-bg);
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
}

.wk-shell .action-center,
.wk-shell .reseller-kpis { margin-bottom: 0; }

/* ---------- KPI-Karten (Widget-Kacheln) ---------- */
/* Spaltenzahl folgt der verfuegbaren Breite (min. 250px je Kachel), damit
   Kennzahlen/Einheiten nie umbrechen: im Container meist 3, breit 4. */
.wk-shell .widgets-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
}

.wk-shell .dashboard-sidebar .widgets-grid { grid-template-columns: 1fr; }

.wk-shell .widget-card {
    display: grid;
    position: relative;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
        "icon value"
        "icon label"
        "icon sub";
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
    align-items: start;
    min-height: 96px;
    padding: 15px 36px 15px 15px;
    border-color: var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
    transition: box-shadow var(--wk-transition), transform var(--wk-transition), border-color var(--wk-transition);
}

.wk-shell .widget-card::before { display: none; }

/* Pfeil oben rechts (Navigationshinweis) - eigene Ecke statt Spalte */
.wk-shell .widget-card::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 14px;
    width: 14px;
    height: 16px;
    background: var(--widget-color, var(--portal-primary));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--wk-transition);
}

.wk-shell .widget-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--wk-shadow-hover);
    border-color: color-mix(in srgb, var(--widget-color, var(--portal-primary)) 30%, var(--portal-border));
}

.wk-shell .widget-card:hover::after { transform: translateX(3px); }

.wk-shell .widget-card-header { display: contents; }

.wk-shell .widget-card-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: var(--wk-radius-md);
    background: color-mix(in srgb, var(--widget-color) 12%, transparent);
    color: var(--widget-color);
}

.wk-shell .widget-card-icon svg { width: 20px; height: 20px; }

.wk-shell .widget-card-value {
    grid-area: value;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--portal-text);
}

/* Bewertungs-Badge (Site-Health) nicht umbrechen */
.wk-shell .widget-card-value .widget-health-badge { white-space: nowrap; }

/* Einheit ("Domains", "Postfaecher" …) als Titelzeile unter der Kennzahl */
.wk-shell .widget-card-unit {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--portal-text);
}

.wk-shell .widget-card-title {
    grid-area: label;
    margin: 4px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--portal-text);
}

/* Hat die Kachel eine Einheit, ersetzt diese den Titel (nur fuer Screenreader). */
.wk-shell .widget-card:has(.widget-card-unit) .widget-card-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wk-shell .widget-card-subtitle {
    grid-area: sub;
    margin-top: 4px;
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--portal-text-muted);
}

.wk-shell .widget-card-subtitle strong { font-weight: 600; }

/* Ladezustand: Spinner mittig ueber die ganze Karte */
.wk-shell .widget-card:has(.widget-card-loading) { display: flex; }
.wk-shell .widget-card:has(.widget-card-loading)::after { display: none; }

/* Kachel-Farben (Icon-Akzent) – Status bleibt Ampel, siehe Doku §3 */
.wk-shell .widget-card-domains      { --widget-color: #1677FF; }
.wk-shell .widget-card-webspaces    { --widget-color: #7C3AED; }
.wk-shell .widget-card-mail         { --widget-color: #22A845; }
.wk-shell .widget-card-rootserver   { --widget-color: #F08C00; }
.wk-shell .widget-card-invoices     { --widget-color: #E11D48; }
.wk-shell .widget-card-support      { --widget-color: #4F46E5; }
.wk-shell .widget-card-ssl          { --widget-color: #0D9488; }
.wk-shell .widget-card-cloudbackup  { --widget-color: #DB2777; }
.wk-shell .widget-card-assets       { --widget-color: #0891B2; }
.wk-shell .widget-card-site-health  { --widget-color: #16A34A; }

/* ---------- Aufmerksamkeit erforderlich ---------- */
.wk-shell .action-center { padding: 18px 22px; }
.wk-shell .action-center.is-clear { box-shadow: var(--wk-shadow-card); }
.wk-shell .action-center-head { gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--portal-border); }
.wk-shell .action-center.is-clear .action-center-head { border-bottom: 0; padding-bottom: 0; }
.wk-shell .action-center-title { gap: 10px; font-size: 1rem; font-weight: 800; }
.wk-shell .action-center-title svg { width: 22px; height: 22px; }
.wk-shell .action-center:not(.is-clear) .action-center-title svg { color: var(--wk-danger); }

.wk-shell .action-center-meta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.wk-shell .action-center-count {
    min-width: 38px;
    height: 24px;
    padding: 0 10px;
    font-size: 0.76rem;
    background: var(--wk-danger);
}

.wk-shell .action-center-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: var(--portal-primary);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.wk-shell .action-center-all:hover { background: var(--wk-nav-hover-bg); }
.wk-shell .action-center-all svg { width: 16px; height: 16px; transition: transform var(--wk-transition); }

.wk-shell .action-center-list { margin-top: 0; }
.wk-shell .action-center-list.is-scroll { max-height: 520px; }

.wk-shell .action-item {
    gap: 14px;
    padding: 10px 4px;
    border-radius: 0;
}

.wk-shell .action-item + .action-item { border-top: 1px solid var(--portal-border); }
.wk-shell .action-item:hover { background: color-mix(in srgb, var(--portal-primary) 3%, transparent); }
.wk-shell .action-item-dot { width: 10px; height: 10px; }
.wk-shell .action-item-critical .action-item-dot { background: var(--wk-danger); }
.wk-shell .action-item-warning .action-item-dot  { background: var(--wk-warning); }
.wk-shell .action-item-info .action-item-dot     { background: var(--wk-success); }
.wk-shell .action-item-body strong { font-size: 0.86rem; font-weight: 700; }
.wk-shell .action-item-text { font-size: 0.78rem; }

.wk-shell .action-item-cta {
    color: color-mix(in srgb, var(--portal-accent) 70%, #0b3d0b);
    font-size: 0.8rem;
}

.wk-shell .action-item-cta svg { transition: transform var(--wk-transition); }
.wk-shell .action-item:hover .action-item-cta svg { transform: translateX(3px); }
.wk-shell .action-item-toggle { color: var(--portal-primary); margin-top: 10px; }

/* ---------- Uhr & Datum ---------- */
.wk-shell .clock-card {
    position: relative;
    overflow: hidden;
    padding: 20px 18px 22px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360' preserveAspectRatio='none'%3E%3Cpath d='M0 210 L60 150 L105 185 L170 95 L230 170 L280 120 L340 175 L400 140 L400 360 L0 360Z' fill='%23ffffff' fill-opacity='0.10'/%3E%3Cpath d='M0 240 L50 205 L120 235 L190 180 L260 230 L330 200 L400 225 L400 360 L0 360Z' fill='%230b1938' fill-opacity='0.28'/%3E%3Cpath d='M0 262 L400 262 L400 360 L0 360Z' fill='%230b1938' fill-opacity='0.30'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat,
        linear-gradient(180deg, #4f8fd8 0%, #3a78c6 45%, #24508f 100%);
}

.wk-shell .clock-card .clock { padding: 0; max-width: none; }
.wk-shell .clock-card .clock__content { row-gap: 12px; }

.wk-shell .clock-card .clock__circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 25, 56, 0.35), inset 0 0 0 6px rgba(16, 37, 77, 0.06);
}

.wk-shell .clock-card .clock__text-hour,
.wk-shell .clock-card .clock__text-minutes {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 12px rgba(11, 25, 56, 0.35);
}

.wk-shell .clock-card .clock__date {
    margin-top: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(11, 25, 56, 0.35);
}

/* ---------- Neu im Portal ---------- */
.wk-shell .changelog-card { padding: 18px 20px; }

.wk-shell .changelog-card .quick-actions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--portal-border);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--portal-text);
}

.wk-shell .changelog-card .quick-actions-title svg { width: 22px; height: 22px; color: var(--portal-primary); }
.wk-shell .changelog-list { gap: 0; }
.wk-shell .changelog-item { gap: 12px; padding: 10px 0; }
.wk-shell .changelog-item + .changelog-item { border-top: 1px solid var(--portal-border); }
.wk-shell .changelog-dot { width: 10px; height: 10px; margin-top: 5px; background: var(--wk-success); }
.wk-shell .changelog-body { flex: 1 1 auto; }
.wk-shell .changelog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wk-shell .changelog-body strong { font-size: 0.84rem; font-weight: 700; }
.wk-shell .changelog-text { font-size: 0.78rem; line-height: 1.4; margin-top: 2px; }
.wk-shell .changelog-date { flex-shrink: 0; margin-top: 0; font-size: 0.78rem; }
.wk-shell .changelog-toggle { margin: 6px 0 0 -8px; color: var(--portal-primary); }

/* ---------- Schnellaktionen ---------- */
.wk-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wk-quick-card {
    --qa-color: var(--portal-primary);
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--qa-color) 7%, transparent) 0%, transparent 60%),
        var(--portal-bg);
    box-shadow: var(--wk-shadow-card);
    transition: box-shadow var(--wk-transition), transform var(--wk-transition);
}

.wk-quick-card:hover { transform: translateY(-2px); box-shadow: var(--wk-shadow-hover); }
.wk-quick-card.is-domain  { --qa-color: #1677FF; }
.wk-quick-card.is-webspace { --qa-color: #7C3AED; }
.wk-quick-card.is-mail    { --qa-color: #3DAE2B; }

.wk-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--wk-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--qa-color) 12%, transparent);
    color: var(--qa-color);
}

.wk-quick-icon svg { width: 26px; height: 26px; }
.wk-quick-text { min-width: 0; }
.wk-quick-text h3 { margin: 2px 0 4px; font-size: 0.92rem; font-weight: 700; color: var(--portal-text); }
.wk-quick-text p { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--portal-text-muted); }

.wk-quick-btn {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--qa-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--qa-color) 30%, transparent);
    transition: background var(--wk-transition), transform var(--wk-transition);
}

.wk-quick-btn:hover,
.wk-quick-btn:focus { color: #fff; text-decoration: none; background: color-mix(in srgb, var(--qa-color) 86%, #000); }
.wk-quick-btn svg { width: 16px; height: 16px; transition: transform var(--wk-transition); }
.wk-quick-btn:hover svg { transform: translateX(3px); }
.wk-quick-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--qa-color) 40%, transparent); }

.wk-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.wk-quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--wk-transition), color var(--wk-transition);
}

.wk-quick-links a:hover { border-color: var(--portal-primary); color: var(--portal-primary); text-decoration: none; }
.wk-quick-links svg { width: 16px; height: 16px; }

/* ---------- Dashboard responsive ---------- */
@media (max-width: 1599.98px) {
    .wk-shell .dashboard-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1439.98px) {
    .wk-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1279.98px) {
    .wk-shell .dashboard-layout { grid-template-columns: minmax(0, 1fr); }

    .wk-shell .dashboard-sidebar,
    .wk-shell .dashboard-sidebar.is-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 767.98px) {
    .wk-shell .content-wrapper { padding-top: 20px; }
    .wk-shell .dashboard-header { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; }
    .wk-shell .dashboard-header-content { flex-direction: row; gap: 14px; }
    .wk-shell .dashboard-header-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
    .wk-shell .dashboard-header-text h1 { font-size: 1.45rem; }
    .wk-shell .dashboard-header-text p { font-size: 0.9rem; }
    .wk-shell .action-center { padding: 18px; }
    .wk-shell .action-center-head { flex-wrap: wrap; }
    .wk-shell .action-item { flex-wrap: wrap; }
    .wk-shell .action-item-cta { margin-left: 26px; }
    .wk-shell .dashboard-sidebar,
    .wk-shell .dashboard-sidebar.is-sticky { grid-template-columns: minmax(0, 1fr); }
    .wk-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 559.98px) {
    .wk-shell .widgets-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   3) Gemeinsame Seiten-Komponenten (Listen, Suche, Hinweise, Aktionen)
   Wirken auf alle Seiten, die die bestehenden Portal-Klassen nutzen
   (Rechnungen, Domains, Mail, Vertraege, Root-Server …).
   ===================================================================== */

.wk-shell .portal-page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--portal-text); }

/* Karten-Flaechen */
.wk-shell .portal-section {
    border-color: var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
}

/* Suche */
.wk-shell .search-section { padding: 10px 12px 10px 18px; margin-bottom: 20px; }
.wk-shell .search-input-wrapper svg { width: 20px; height: 20px; }
.wk-shell .search-input { font-size: 0.95rem; padding: 8px 0; }

/* Aufklappbare Listen-Karten */
.wk-shell .domains-list { gap: 12px; }

.wk-shell .domain-card {
    border-color: var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
    transition: box-shadow var(--wk-transition), border-color var(--wk-transition);
}

.wk-shell .domain-card:hover { box-shadow: var(--wk-shadow-hover); border-color: color-mix(in srgb, var(--portal-primary) 22%, var(--portal-border)); }
.wk-shell .domain-toggle { padding: 12px 18px; }
.wk-shell .domain-toggle:hover { background: color-mix(in srgb, var(--portal-primary) 3%, transparent); }
.wk-shell .domain-toggle:focus-visible { outline: none; box-shadow: inset var(--wk-focus-ring); }
.wk-shell .domain-icon { width: 38px; height: 38px; border-radius: var(--wk-radius-md); background: color-mix(in srgb, var(--portal-primary) 9%, transparent); }
.wk-shell .domain-name { font-size: 1rem; font-weight: 700; }
.wk-shell .domain-body { padding: 18px 20px 20px; border-top: 1px solid var(--portal-border); }
.wk-shell .domain-expand-icon,
.wk-shell .collapse-icon { color: var(--portal-text-light); transition: transform var(--wk-transition); }

/* Hinweis-Boxen: ruhige Flaeche + farbige Kante statt Verlauf (Ampelfarben) */
.wk-shell .status-alert {
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--portal-border);
    border-left-width: 4px;
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    box-shadow: var(--wk-shadow-card);
}

.wk-shell .status-alert-danger  { border-left-color: var(--wk-danger);  background: color-mix(in srgb, var(--wk-danger) 4%, var(--portal-bg)); }
.wk-shell .status-alert-warning { border-left-color: var(--wk-warning); background: color-mix(in srgb, var(--wk-warning) 5%, var(--portal-bg)); }
.wk-shell .status-alert-info    { border-left-color: var(--portal-primary); background: color-mix(in srgb, var(--portal-primary) 4%, var(--portal-bg)); }
.wk-shell .status-alert-success { border-left-color: var(--wk-success); background: color-mix(in srgb, var(--wk-success) 5%, var(--portal-bg)); }
.wk-shell .status-alert-icon { width: 42px; height: 42px; border-radius: var(--wk-radius-md); }
.wk-shell .status-alert-success .status-alert-icon { background: color-mix(in srgb, var(--wk-success) 16%, transparent); color: #16a34a; }
.wk-shell .status-alert-content strong { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }

/* Rechnungen */
.wk-shell .invoice-status-icon { width: 44px; height: 44px; border-radius: var(--wk-radius-md); }
.wk-shell .invoice-amount { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk-shell .invoice-status-badge { padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.04em; }
.wk-shell .invoice-details-grid { gap: 18px 24px; }
.wk-shell .invoice-detail-amount { font-size: 1.15rem; font-weight: 800; }

/* "Rechnung anzeigen": Aktionsfarbe (--wk-action, brandbar). Die .btn-domain-action-Buttons
   bleiben bewusst unangetastet - sie haben eigene Varianten (danger/secondary/cf). */
.wk-shell .btn-invoice-view {
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--wk-radius-md);
    background: var(--wk-action);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--wk-action) 30%, transparent);
    transition: background var(--wk-transition), transform var(--wk-transition);
}

.wk-shell .btn-invoice-view:hover { background: var(--wk-action-hover); color: #fff; }
.wk-shell .btn-invoice-view:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wk-action) 40%, transparent); }

@media (max-width: 767.98px) {
    .wk-shell .portal-page-title { font-size: 1.5rem; }
    .wk-shell .domain-toggle { padding: 14px 16px; }
    .wk-shell .domain-body { padding: 18px 16px; }
}

/* =====================================================================
   4) Datenbank-Listen (MySQL, PostgreSQL, Redis, Memcached)
   Komponente: resources/js/Components/DatabaseCard.vue
   ===================================================================== */

.wk-db-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.wk-db-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    color: var(--portal-text-light);
    box-shadow: var(--wk-shadow-card);
    transition: border-color var(--wk-transition), box-shadow var(--wk-transition);
}

.wk-db-search:focus-within { border-color: var(--portal-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent); }
.wk-db-search svg { width: 19px; height: 19px; flex-shrink: 0; }
/* Feld steckt im Rahmen -> der Rahmen zeigt den Fokus (blau); das innere Feld
   bekommt keinen zusaetzlichen globalen Fokus-Ring/-Glow aus portal-refresh.css. */
.wk-db-search input:focus,
.wk-db-search input:focus-visible,
.wk-shell .search-input-wrapper .search-input:focus,
.wk-shell .search-input-wrapper .search-input:focus-visible,
.wk-shell .domain-search-section .domain-search-input:focus,
.wk-shell .domain-search-section .domain-search-input:focus-visible { outline: none; box-shadow: none; }
/* Fokus-Rahmen nur fuer reine Suchleisten – NIE fuer Karten (.portal-section):
   eine ganze Karte darf beim Fokus eines Feldes nicht leuchten. */
.wk-shell .search-section:not(.portal-section):focus-within,
.wk-shell .domain-search-section:not(.portal-section):focus-within { border-color: var(--portal-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent); }
/* Suchleiste als Karte (z. B. Rechnungen): Fokus am Suchfeld selbst */
.wk-shell .portal-section .search-input-wrapper { border-radius: var(--wk-radius-sm); transition: box-shadow var(--wk-transition); }
.wk-shell .portal-section .search-input-wrapper:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--portal-primary) 45%, transparent); }
/* Eingabefeld in umrahmter Domain-Eingabe: nur der Rahmen zeigt den Fokus */
.wk-shell .domain-input-wrapper input:focus,
.wk-shell .domain-input-wrapper input:focus-visible { outline: none; box-shadow: none; }
.wk-db-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--portal-text); font-size: 0.95rem; }
.wk-db-total { font-size: 0.85rem; font-weight: 600; color: var(--portal-text-muted); white-space: nowrap; }

.wk-db-add,
.wk-db-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--wk-radius-md);
    background: var(--wk-action);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--wk-action) 30%, transparent);
    transition: background var(--wk-transition);
}

.wk-db-primary { height: 38px; padding: 0 16px; }
.wk-db-add svg,
.wk-db-primary svg { width: 17px; height: 17px; }
.wk-db-add:hover,
.wk-db-primary:hover,
.wk-db-primary:focus { background: var(--wk-action-hover); color: #fff; text-decoration: none; }
.wk-db-add:focus-visible,
.wk-db-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wk-action) 40%, transparent); }

.wk-db-list { display: flex; flex-direction: column; gap: 10px; }

.wk-db-card {
    background: var(--portal-bg);
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
    overflow: hidden;
    transition: box-shadow var(--wk-transition), border-color var(--wk-transition);
}

.wk-db-card:hover,
.wk-db-card.is-open { border-color: color-mix(in srgb, var(--portal-primary) 22%, var(--portal-border)); box-shadow: var(--wk-shadow-hover); }

/* Zeile: Icon | Name | Spalten | Pfeil */
.wk-db-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 18px;
    cursor: pointer;
    transition: background var(--wk-transition);
}

.wk-db-row:hover { background: color-mix(in srgb, var(--portal-primary) 3%, transparent); }
.wk-db-row:focus-visible { outline: none; box-shadow: inset var(--wk-focus-ring); }

.wk-db-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wk-radius-md);
    background: color-mix(in srgb, var(--portal-primary) 10%, transparent);
    color: var(--portal-primary);
}

.wk-db-icon svg { width: 19px; height: 19px; }
.wk-db-title { flex: 1.6 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-db-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wk-db-name { font-size: 0.92rem; font-weight: 700; color: var(--portal-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-db-sub { font-family: var(--portal-font-mono, monospace); font-size: 0.78rem; color: var(--portal-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kunden-/Freigabe-Badges (HTML aus dem Backend) kompakt halten */
.wk-db-badge-html { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 1; }
.wk-db-card .wk-db-badge-html > * { margin: 0; vertical-align: middle; }
/* Die Superuser-Badges (PortalHelper::renderSuperuser…Badge) bringen Inline-Styles
   mit (u. a. padding: 10px). Damit das Icon im 26px-Kreis mittig sitzt, muessen
   Groesse/Innenabstand die Inline-Werte schlagen - bewusst eng gescoped. */
.wk-db-card .wk-db-badge-html > .badge,
.wk-db-card .wk-db-badge-html > [data-toggle="tooltip"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    padding: 0 !important;
    border-width: 1px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}
.wk-db-card .wk-db-badge-html i { font-size: 12px; line-height: 1; }

.wk-db-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk-db-col-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--portal-text-light); }
.wk-db-col-value { font-size: 0.86rem; color: var(--portal-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-db-card .is-mono { font-family: var(--portal-font-mono, monospace); font-size: 0.85em; }
.wk-db-col-value.is-mono { font-size: 0.82rem; }

.wk-db-chevron { flex: 0 0 20px; width: 20px; height: 20px; color: var(--portal-text-light); transition: transform var(--wk-transition); }
.wk-db-card.is-open .wk-db-chevron { transform: rotate(180deg); }

/* Aufgeklappt */
.wk-db-body { padding: 16px 18px 18px; border-top: 1px solid var(--portal-border); background: color-mix(in srgb, var(--portal-primary) 1.5%, var(--portal-bg)); }

.wk-db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Infos aus der Kopfzeile nur zeigen, wenn die Kopfzeile sie ausblendet */
.wk-db-tile.is-meta { display: none; }

.wk-db-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
}

.wk-db-tile-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--portal-text-light); }
/* Normaler Text bricht nur an Leerzeichen um; lange Werte ohne Leerzeichen
   (IPv6, Passwoerter) duerfen notfalls ueberall umbrechen. */
.wk-db-tile-value { font-size: 0.88rem; font-weight: 600; color: var(--portal-text); overflow-wrap: break-word; }
.wk-db-tile-value.is-mono { overflow-wrap: anywhere; }
.wk-db-tile-hint { color: var(--portal-text-muted); font-weight: 400; }
.wk-db-tile-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.wk-db-copy {
    align-self: flex-start;
    padding: 4px 10px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    background: var(--portal-bg);
    color: var(--portal-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--wk-transition), color var(--wk-transition), background var(--wk-transition);
}

.wk-db-copy:hover:not(:disabled) { border-color: var(--portal-primary); color: var(--portal-primary); }
.wk-db-copy:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-db-copy:disabled { opacity: 0.6; cursor: not-allowed; }
.wk-db-copy.is-done { border-color: var(--wk-success); color: #15803d; background: color-mix(in srgb, var(--wk-success) 8%, transparent); }
.wk-db-copy.is-accent { border-color: color-mix(in srgb, var(--portal-primary) 40%, var(--portal-border)); color: var(--portal-primary); }

.wk-db-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.wk-db-delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--wk-danger) 45%, var(--portal-border));
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    color: #dc2626;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-db-delete svg { width: 15px; height: 15px; }
.wk-db-delete:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.wk-db-delete:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wk-danger) 35%, transparent); }

/* Backups */
.wk-db-backups { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--portal-border); }
.wk-db-backups-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--portal-text-muted); }
.wk-db-backups-title svg { width: 16px; height: 16px; color: var(--portal-primary); }
.wk-db-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--portal-bg-muted); font-size: 0.72rem; text-align: center; color: var(--portal-text-muted); }
.wk-db-backups-wrap { overflow-x: auto; border: 1px solid var(--portal-border); border-radius: var(--wk-radius-md); background: var(--portal-bg); }
.wk-db-backups-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.wk-db-backups-table th { padding: 10px 14px; text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--portal-text-light); border-bottom: 1px solid var(--portal-border); white-space: nowrap; }
.wk-db-backups-table td { padding: 10px 14px; color: var(--portal-text); border-bottom: 1px solid var(--portal-border); white-space: nowrap; }
.wk-db-backups-table tr:last-child td { border-bottom: 0; }
.wk-db-backups-dl-cell { text-align: right; }
.wk-db-backups-dl { font-weight: 600; color: var(--portal-primary); text-decoration: none; }
.wk-db-backups-dl:hover { text-decoration: underline; }
.wk-db-backups-empty { margin: 0; font-size: 0.85rem; color: var(--portal-text-muted); }

/* Responsive: Spalten schrittweise ausblenden */
@media (max-width: 1279.98px) {
    .wk-db-col.is-wide { display: none; }
    .wk-db-tile.is-meta-wide { display: flex; }
}

@media (max-width: 767.98px) {
    .wk-db-row { gap: 14px; padding: 14px 16px; }
    .wk-db-col { display: none; }
    .wk-db-tile.is-meta { display: flex; }
    .wk-db-body { padding: 16px; }
    .wk-db-add { flex: 1 1 100%; justify-content: center; }
    .wk-db-delete { margin-left: 0; }
}

/* =====================================================================
   5) Rechnungen: Zeile als Tabelle (Nummer | Faellig | Betrag + Status),
   Body ohne Wiederholung der Kopfzeilen-Infos
   ===================================================================== */

.wk-shell .invoice-card .domain-toggle { gap: 24px; }
.wk-shell .invoice-card .inv-col-main { flex: 1.4 1 0; min-width: 0; }
.wk-shell .invoice-card .inv-col-due { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-shell .invoice-card .domain-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }

.wk-shell .inv-col-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--portal-text-light); }
.wk-shell .inv-col-value { font-size: 0.9rem; font-weight: 600; color: var(--portal-text); }
.wk-shell .inv-col-hint { font-size: 0.78rem; color: var(--portal-text-muted); }
.wk-shell .inv-col-hint.is-overdue { color: #dc2626; font-weight: 600; }
.wk-shell .inv-col-hint.is-open { color: #b45309; }
.wk-shell .inv-col-hint.is-paid { color: #15803d; }

.wk-shell .inv-amount-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 120px; }
.wk-shell .invoice-card .invoice-amount { margin-right: 0; font-size: 1.05rem; }
.wk-shell .invoice-card .invoice-status-badge { min-width: 96px; justify-content: center; }

/* Ampel: bezahlt gruen, offen orange, ueberfaellig rot */
.wk-shell .invoice-status-badge.inv-status-open    { background: color-mix(in srgb, var(--wk-warning) 14%, transparent); color: #b45309; }
.wk-shell .invoice-status-badge.inv-status-overdue { background: color-mix(in srgb, var(--wk-danger) 12%, transparent); color: #dc2626; }
.wk-shell .invoice-status-icon.inv-icon-open    { background: color-mix(in srgb, var(--wk-warning) 14%, transparent); color: #b45309; }
.wk-shell .invoice-status-icon.inv-icon-overdue { background: color-mix(in srgb, var(--wk-danger) 12%, transparent); color: #dc2626; }

/* Superuser-Kunden-Badge (Inline-Styles aus PortalHelper) wie in .wk-db-card */
.wk-shell .inv-badge-html { display: inline-flex; align-items: center; flex-shrink: 0; }
.wk-shell .invoice-card .inv-badge-html > [data-toggle="tooltip"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    border-width: 1px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

/* Body: Aktionen links, Status-Karte rechts */
.wk-shell .inv-body-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 20px;
    align-items: start;
}

.wk-shell .inv-body-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wk-shell .inv-body-actions .invoice-partial-payment { margin-bottom: 0; }
.wk-shell .inv-body-status .invoice-status-card { margin: 0; border-radius: var(--wk-radius-md); }

@media (max-width: 1023.98px) {
    .wk-shell .invoice-card .inv-col-due { display: none; }
    .wk-shell .inv-body-top { grid-template-columns: minmax(0, 1fr); }
    .wk-shell .inv-body-status { order: -1; }
}

@media (max-width: 575.98px) {
    .wk-shell .invoice-card .domain-toggle { flex-wrap: wrap; gap: 10px; }
    .wk-shell .invoice-card .domain-meta { width: 100%; justify-content: space-between; }
    .wk-shell .inv-amount-wrap { align-items: flex-start; min-width: 0; }
}

/* --- Listen-Bausteine: Sekundaer-Button + DynamicDNS-Tarif --- */
.wk-db-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--wk-transition), color var(--wk-transition);
}

.wk-db-secondary svg { width: 15px; height: 15px; }
.wk-db-secondary:hover { border-color: var(--portal-primary); color: var(--portal-primary); }
.wk-db-secondary:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }

.wk-ddns-badges { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-db-col.wk-ddns-tier { overflow: visible; }

@media (max-width: 767.98px) {
    .wk-db-col.wk-ddns-tier { display: flex; flex: 0 0 auto; }
    .wk-db-col.wk-ddns-tier .wk-db-col-label { display: none; }
}

/* Kopieren direkt in der Kopfzeile (statt Wiederholung im Body) */
.wk-db-col-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wk-db-col-line .wk-db-col-value { min-width: 0; }

.wk-db-col-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--portal-text-light);
    cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-db-col-copy svg { width: 14px; height: 14px; }
.wk-db-col-copy:hover { background: color-mix(in srgb, var(--portal-primary) 9%, transparent); color: var(--portal-primary); }
.wk-db-col-copy:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-db-col-copy.is-done { color: #15803d; }

/* =====================================================================
   6) GEMEINSAME BAUSTEINE (fuer alle Portal-Seiten)
   Seiten verwenden diese Klassen statt eigener Pager/Tabs/Modals/Badges.
   Doku: docs/PORTAL-DESIGN-AND-BRANDING.md §8 "Bausteine".
   ===================================================================== */

:root {
    --wk-label-size: 0.68rem;
    --wk-label-spacing: 0.06em;
    --wk-success-text: #15803d;
    --wk-warning-text: #b45309;
    --wk-danger-text: #dc2626;
    --wk-info-text: var(--portal-primary);
}

[data-theme="dark"] {
    --wk-success-text: #4ade80;
    --wk-warning-text: #fbbf24;
    --wk-danger-text: #f87171;
}

/* ---------- Karte / Flaeche ---------- */
.wk-card {
    background: var(--portal-bg);
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    box-shadow: var(--wk-shadow-card);
    padding: 20px;
}

.wk-card + .wk-card { margin-top: 20px; }
.wk-card-title { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: var(--portal-text); }
.wk-muted { color: var(--portal-text-muted); }
.wk-mono { font-family: var(--portal-font-mono, monospace); }

/* ---------- Label (uppercase) ---------- */
.wk-label {
    display: block;
    font-size: var(--wk-label-size);
    font-weight: 700;
    letter-spacing: var(--wk-label-spacing);
    text-transform: uppercase;
    color: var(--portal-text-light);
}

/* ---------- Buttons ---------- */
.wk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--wk-control-h);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--wk-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--wk-transition), border-color var(--wk-transition), color var(--wk-transition);
}

.wk-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.wk-btn:hover, .wk-btn:focus { text-decoration: none; }
.wk-btn:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-btn:disabled, .wk-btn.is-disabled { opacity: 0.55; cursor: not-allowed; }
.wk-btn-sm { height: 30px; padding: 0 11px; font-size: 0.8rem; border-radius: var(--wk-radius-sm); }
.wk-btn-lg { height: var(--wk-control-h-lg); padding: 0 20px; }
.wk-btn-block { display: flex; width: 100%; }

/* Aktion (gruen, brandbar) */
.wk-btn-action { background: var(--wk-action); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--wk-action) 28%, transparent); }
.wk-btn-action:hover:not(:disabled), .wk-btn-action:focus { background: var(--wk-action-hover); color: #fff; }
/* Primaer (blau) - Bestaetigen in neutralen Dialogen */
.wk-btn-primary { background: var(--portal-primary); color: #fff; }
.wk-btn-primary:hover:not(:disabled), .wk-btn-primary:focus { background: color-mix(in srgb, var(--portal-primary) 86%, #000); color: #fff; }
/* Sekundaer (neutral, Rahmen) */
.wk-btn-secondary { background: var(--portal-bg); border-color: var(--portal-border); color: var(--portal-text); }
.wk-btn-secondary:hover:not(:disabled) { border-color: var(--portal-primary); color: var(--portal-primary); }
/* Gefahr */
.wk-btn-danger { background: #dc2626; color: #fff; }
.wk-btn-danger:hover:not(:disabled), .wk-btn-danger:focus { background: #b91c1c; color: #fff; }
.wk-btn-danger-outline { background: var(--portal-bg); border-color: color-mix(in srgb, var(--wk-danger) 45%, var(--portal-border)); color: var(--wk-danger-text); }
.wk-btn-danger-outline:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; color: #fff; }
/* Nur Text/Link */
.wk-btn-ghost { background: transparent; color: var(--portal-primary); padding: 0 10px; }
.wk-btn-ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--portal-primary) 8%, transparent); }

/* ---------- Status-Badge + Punkt (Ampel, nie Branding) ---------- */
.wk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    white-space: nowrap;
    background: var(--portal-bg-muted);
    color: var(--portal-text-muted);
}

.wk-badge.is-success { background: color-mix(in srgb, var(--wk-success) 14%, transparent); color: var(--wk-success-text); }
.wk-badge.is-warning { background: color-mix(in srgb, var(--wk-warning) 16%, transparent); color: var(--wk-warning-text); }
.wk-badge.is-danger  { background: color-mix(in srgb, var(--wk-danger) 13%, transparent);  color: var(--wk-danger-text); }
.wk-badge.is-info    { background: color-mix(in srgb, var(--portal-primary) 11%, transparent); color: var(--wk-info-text); }
.wk-badge.is-upper   { text-transform: uppercase; letter-spacing: var(--wk-label-spacing); }

.wk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--portal-text-light); }
.wk-dot.is-success { background: var(--wk-success); }
.wk-dot.is-warning { background: var(--wk-warning); }
.wk-dot.is-danger  { background: var(--wk-danger); }
.wk-dot.is-info    { background: var(--portal-primary); }

/* ---------- Tabs (Segment) + Filter-Chips: aktiv = Blau ---------- */
.wk-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg-muted);
}

.wk-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: var(--portal-text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}

.wk-tab:hover { color: var(--portal-text); background: color-mix(in srgb, var(--portal-primary) 6%, transparent); text-decoration: none; }
.wk-tab:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-tab.active, .wk-tab.is-active, .wk-tab[aria-selected="true"] {
    background: var(--portal-primary);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--portal-primary) 35%, transparent);
}

/* Unterstrichene Tab-Leiste (Detailseiten) */
.wk-tabs-line { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--portal-border); margin-bottom: 20px; }
.wk-tabs-line .wk-tab { border-radius: 0; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; background: transparent; }
.wk-tabs-line .wk-tab.active, .wk-tabs-line .wk-tab.is-active, .wk-tabs-line .wk-tab[aria-selected="true"] {
    background: transparent;
    color: var(--portal-primary);
    border-bottom-color: var(--portal-primary);
    box-shadow: none;
}

.wk-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--wk-transition), color var(--wk-transition), background var(--wk-transition);
}

.wk-chip:hover { border-color: var(--portal-primary); color: var(--portal-primary); }
.wk-chip:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-chip.active, .wk-chip.is-active, .wk-chip[aria-pressed="true"] { background: var(--portal-primary); border-color: var(--portal-primary); color: #fff; font-weight: 600; }

/* ---------- Pager (auch fuer die bestehenden .invoice-pagination/.page-btn) ---------- */
.wk-pager,
.wk-shell .invoice-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wk-pager-info,
.wk-shell .invoice-pagination-info { font-size: 0.85rem; color: var(--portal-text-muted); }
.wk-pager-controls,
.wk-shell .invoice-pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.wk-page-btn,
.wk-shell .page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-sm);
    background: var(--portal-bg);
    color: var(--portal-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--wk-transition), color var(--wk-transition), background var(--wk-transition);
}

.wk-page-btn:hover:not(:disabled):not(.active),
.wk-shell .page-btn:hover:not(:disabled):not(.active) { border-color: var(--portal-primary); color: var(--portal-primary); background: var(--portal-bg); }
.wk-page-btn.active,
.wk-shell .page-btn.active { background: var(--portal-primary); border-color: var(--portal-primary); color: #fff; }
.wk-page-btn:disabled,
.wk-shell .page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wk-page-btn:focus-visible,
.wk-shell .page-btn:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-page-ellipsis,
.wk-shell .page-ellipsis { color: var(--portal-text-light); padding: 0 2px; }

/* ---------- Eingabe ---------- */
.wk-input,
.wk-select,
.wk-textarea {
    display: block;
    width: 100%;
    min-height: var(--wk-control-h);
    padding: 7px 12px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--wk-transition), box-shadow var(--wk-transition);
}

.wk-textarea { min-height: 110px; resize: vertical; }
.wk-input.is-mono, .wk-textarea.is-mono { font-family: var(--portal-font-mono, monospace); }
.wk-input:focus, .wk-select:focus, .wk-textarea:focus { outline: none; border-color: var(--portal-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent); }
.wk-input.is-invalid, .wk-textarea.is-invalid { border-color: var(--wk-danger); }
.wk-field { margin-bottom: 16px; }
.wk-field > .wk-label { margin-bottom: 6px; }
.wk-field-hint { margin-top: 6px; font-size: 0.8rem; color: var(--portal-text-muted); }
.wk-field-error { margin-top: 6px; font-size: 0.8rem; color: var(--wk-danger-text); }

/* ---------- Modal ---------- */
.wk-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
    background: rgba(11, 25, 56, 0.5);
}

.wk-modal {
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    background: var(--portal-bg);
    color: var(--portal-text);
    box-shadow: 0 24px 64px rgba(11, 25, 56, 0.28);
    overflow: hidden;
}

.wk-modal.is-lg { max-width: 820px; }
.wk-modal.is-xl { max-width: 1040px; }

.wk-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--portal-border);
}

.wk-modal-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wk-radius-md);
    background: color-mix(in srgb, var(--portal-primary) 10%, transparent);
    color: var(--portal-primary);
}

.wk-modal-icon svg { width: 22px; height: 22px; }
.wk-modal-header.is-danger .wk-modal-icon { background: color-mix(in srgb, var(--wk-danger) 12%, transparent); color: var(--wk-danger-text); }
.wk-modal-header.is-success .wk-modal-icon { background: color-mix(in srgb, var(--wk-success) 14%, transparent); color: var(--wk-success-text); }
.wk-modal-header.is-warning .wk-modal-icon { background: color-mix(in srgb, var(--wk-warning) 16%, transparent); color: var(--wk-warning-text); }
.wk-modal-titles { flex: 1; min-width: 0; }
.wk-modal-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--portal-text); }
.wk-modal-sub { margin: 3px 0 0; font-size: 0.86rem; color: var(--portal-text-muted); }

.wk-modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: var(--portal-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.wk-modal-close:hover { background: var(--portal-bg-muted); color: var(--portal-text); }
.wk-modal-close:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-modal-body { padding: 22px 24px; }
.wk-modal-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--portal-border); background: var(--portal-bg-muted); }

/* ---------- Hinweis-Box (Ampel) ---------- */
.wk-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--portal-border);
    border-left-width: 4px;
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    font-size: 0.88rem;
    color: var(--portal-text);
}

.wk-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.wk-note.is-info    { border-left-color: var(--portal-primary); background: color-mix(in srgb, var(--portal-primary) 5%, var(--portal-bg)); }
.wk-note.is-success { border-left-color: var(--wk-success); background: color-mix(in srgb, var(--wk-success) 6%, var(--portal-bg)); }
.wk-note.is-warning { border-left-color: var(--wk-warning); background: color-mix(in srgb, var(--wk-warning) 7%, var(--portal-bg)); }
.wk-note.is-danger  { border-left-color: var(--wk-danger);  background: color-mix(in srgb, var(--wk-danger) 5%, var(--portal-bg)); }
.wk-note.is-info svg { color: var(--portal-primary); }
.wk-note.is-success svg { color: var(--wk-success-text); }
.wk-note.is-warning svg { color: var(--wk-warning-text); }
.wk-note.is-danger svg { color: var(--wk-danger-text); }

/* ---------- Seiten-Hero (Tools wie Whois/RDAP/Hostingcheck) ---------- */
.wk-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border-radius: var(--wk-radius-lg);
    background: linear-gradient(120deg, var(--wk-navy-dark) 0%, var(--wk-navy) 100%);
    color: #fff;
    box-shadow: var(--wk-shadow-card);
}

.wk-hero h2, .wk-hero h3 { color: #fff; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.wk-hero p { margin: 0; color: rgba(255, 255, 255, 0.82); }

/* Icon-Kachel (getintete Flaeche statt bunter Verlauf) */
.wk-icon-tile {
    --tile-color: var(--portal-primary);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wk-radius-md);
    background: color-mix(in srgb, var(--tile-color) 11%, transparent);
    color: var(--tile-color);
}

.wk-icon-tile svg { width: 22px; height: 22px; }

/* ---------- Leerzustand ---------- */
.wk-empty { padding: 48px 24px; text-align: center; color: var(--portal-text-muted); }
.wk-empty .wk-icon-tile { width: 56px; height: 56px; margin-bottom: 14px; --tile-color: var(--portal-accent); }
.wk-empty h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--portal-text); }
.wk-empty p { margin: 0; }

/* ---------- Klickbare Zeilen (Tastatur) ---------- */
[role="button"].wk-clickable { cursor: pointer; }
[role="button"].wk-clickable:focus-visible { outline: none; box-shadow: inset var(--wk-focus-ring); }

/* =====================================================================
   7) WEITERE BAUSTEINE (aus dem Seiten-Umbau gemeldet)
   ===================================================================== */

/* Nur fuer Screenreader sichtbar */
.wk-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Ein/Aus-Schalter: <button class="wk-switch" role="switch" :aria-checked="on"> */
.wk-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--portal-border);
    cursor: pointer;
    transition: background var(--wk-transition);
}

.wk-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 25, 56, 0.25);
    transition: transform var(--wk-transition);
}

.wk-switch[aria-checked="true"], .wk-switch.is-on { background: var(--wk-success); }
.wk-switch[aria-checked="true"]::after, .wk-switch.is-on::after { transform: translateX(18px); }
.wk-switch:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-switch:disabled { opacity: 0.55; cursor: not-allowed; }

/* Lade-Spinner */
.wk-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--portal-border);
    border-top-color: var(--portal-primary);
    border-radius: 50%;
    animation: wk-spin 0.8s linear infinite;
    vertical-align: middle;
}

.wk-spinner.is-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes wk-spin { to { transform: rotate(360deg); } }

/* Neutrale Tabelle */
.wk-table-wrap { overflow-x: auto; border: 1px solid var(--portal-border); border-radius: var(--wk-radius-md); background: var(--portal-bg); }
.wk-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.wk-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: var(--wk-label-size);
    font-weight: 700;
    letter-spacing: var(--wk-label-spacing);
    text-transform: uppercase;
    color: var(--portal-text-light);
    border-bottom: 1px solid var(--portal-border);
    white-space: nowrap;
    background: var(--portal-bg-muted);
}

.wk-table td { padding: 11px 14px; color: var(--portal-text); border-bottom: 1px solid var(--portal-border); vertical-align: middle; }
.wk-table tr:last-child td { border-bottom: 0; }
.wk-table tbody tr:hover td { background: color-mix(in srgb, var(--portal-primary) 3%, transparent); }
.wk-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Segment-Umschalter (2-3 Optionen, z. B. monatlich/jaehrlich) */
.wk-segment { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--portal-border); border-radius: var(--wk-radius-md); background: var(--portal-bg-muted); }
.wk-segment > button {
    padding: 7px 14px;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: transparent;
    color: var(--portal-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.wk-segment > button.active, .wk-segment > button[aria-pressed="true"] { background: var(--portal-bg); color: var(--portal-primary); box-shadow: 0 1px 4px rgba(11, 25, 56, 0.12); }
.wk-segment > button:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }

/* Auswahl-Karte (Radio/Option als Karte): aktiv = Blau */
.wk-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    cursor: pointer;
    transition: border-color var(--wk-transition), background var(--wk-transition), box-shadow var(--wk-transition);
}

.wk-option:hover { border-color: color-mix(in srgb, var(--portal-primary) 45%, var(--portal-border)); }
.wk-option.active, .wk-option.is-active, .wk-option[aria-checked="true"], .wk-option:has(input:checked) {
    border-color: var(--portal-primary);
    background: color-mix(in srgb, var(--portal-primary) 5%, var(--portal-bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 14%, transparent);
}

.wk-option:focus-visible, .wk-option:has(input:focus-visible) { outline: none; box-shadow: var(--wk-focus-ring); }

/* Kennzahl-Kachel (KPI) */
.wk-kpi { position: relative; padding: 16px 18px; border: 1px solid var(--portal-border); border-radius: var(--wk-radius-lg); background: var(--portal-bg); box-shadow: var(--wk-shadow-card); }
.wk-kpi-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--portal-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-kpi-label { margin-top: 2px; font-size: 0.82rem; color: var(--portal-text-muted); }
.wk-kpi.is-success { border-top: 3px solid var(--wk-success); }
.wk-kpi.is-warning { border-top: 3px solid var(--wk-warning); }
.wk-kpi.is-danger { border-top: 3px solid var(--wk-danger); }
.wk-kpi.is-info { border-top: 3px solid var(--portal-primary); }

/* Modal-Schliessen mit SVG-Icon */
.wk-modal-close svg { width: 18px; height: 18px; }

/* =====================================================================
   8) ALTE GLOBALE KLASSEN (portal-design.css) auf die Farbregeln ziehen
   Ausgewaehlt/aktiv/Fokus = Blau, Status = Ampel. Gilt fuer alle Seiten in
   der Shell, damit nicht jede Seite lokal ueberschreiben muss.
   ===================================================================== */

/* Ausgewaehlte Status-/Domain-Optionen */
.wk-shell .status-option.active,
.wk-shell .domain-selection-item.selected .domain-selection-content,
.wk-shell .domain-selection-item input:checked + .domain-selection-content {
    border-color: var(--portal-primary);
    background: color-mix(in srgb, var(--portal-primary) 5%, var(--portal-bg));
}

.wk-shell .domain-selection-item.selected .domain-selection-check,
.wk-shell .domain-selection-item input:checked + .domain-selection-content .domain-selection-check { background: var(--portal-primary); }

/* Fokus in Formular-Sektionen */
.wk-shell .portal-section .form-control:focus,
.wk-shell .mailbox-form-section .form-control:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 15%, transparent);
}

.wk-shell .domain-input-wrapper:focus-within {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent);
}

/* Schieberegler (Quota) */
.wk-shell .quota-range::-webkit-slider-thumb { background: var(--portal-primary); box-shadow: 0 2px 6px color-mix(in srgb, var(--portal-primary) 40%, transparent); }
.wk-shell .quota-range::-moz-range-thumb { background: var(--portal-primary); }
.wk-shell .quota-range:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }

/* Domain-Verfuegbarkeit: Ergebnis = Ampel, Preis-Karte neutral */
.wk-shell .domain-result-icon.success { background: color-mix(in srgb, var(--wk-success) 14%, transparent); color: var(--wk-success-text); }
.wk-shell .domain-result-icon.danger { background: color-mix(in srgb, var(--wk-danger) 12%, transparent); color: var(--wk-danger-text); }
.wk-shell .domain-price-card {
    background: var(--portal-bg-muted);
    border-color: var(--portal-border);
    border-radius: var(--wk-radius-md);
}

/* Produktkarten (Exchange/Hosting-Auswahl): ausgewaehlt = Blau.
   Die Basisregel in portal-design.css nutzt !important -> eng gescoped dagegenhalten. */
.wk-shell .exchange-product-card.selected,
.wk-shell .portal-card.selected {
    border-color: var(--portal-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-primary) 22%, transparent);
}

.wk-shell .exchange-product-card.selected .btn-select-product { background: var(--portal-primary) !important; }

/* Text in Ampelfarben (z. B. Untertitel der Dashboard-Kacheln) */
.wk-text-success { color: var(--wk-success-text); }
.wk-text-warning { color: var(--wk-warning-text); }
.wk-text-danger  { color: var(--wk-danger-text); }
.wk-text-light   { color: var(--portal-text-light); }

/* Navy-Kopf fuer Modals (auch Bootstrap-Modals: .modal-header.wk-modal-header.is-navy) */
.wk-modal-header.is-navy { background: linear-gradient(120deg, var(--wk-navy-dark) 0%, var(--wk-navy) 100%); border-bottom-color: transparent; color: #fff; }
.wk-modal-header.is-navy .wk-modal-title { color: #fff; }
.wk-modal-header.is-navy .wk-modal-sub { color: rgba(255, 255, 255, 0.8); }
.wk-modal-header.is-navy .wk-modal-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.wk-modal-header.is-navy .wk-modal-close { color: rgba(255, 255, 255, 0.85); }
.wk-modal-header.is-navy .wk-modal-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Bootstrap-Modals im Portal: gleiche Grundoptik wie .wk-modal (Flaeche, Rahmen,
   Radius, Schatten, Kopf/Fuss). Inhalte/Koepfe koennen zusaetzlich die
   .wk-modal-*-Klassen tragen. */
.wk-shell .modal-content {
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    background: var(--portal-bg);
    color: var(--portal-text);
    box-shadow: 0 24px 64px rgba(11, 25, 56, 0.28);
    overflow: hidden;
}
.wk-shell .modal-footer { border-top-color: var(--portal-border); background: var(--portal-bg-muted); }
.wk-shell .modal-header { border-bottom-color: var(--portal-border); }
.wk-shell .modal-header .close { color: inherit; opacity: 0.75; text-shadow: none; }
.wk-shell .modal-header .close:hover { opacity: 1; }
.wk-shell .modal-header .close:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); border-radius: var(--wk-radius-sm); }

/* =====================================================================
   9) RESPONSIVE-SCHUTZREGELN (alle Portal-Seiten)
   ===================================================================== */

/* Kein horizontales Scrollen der Seite; breite Inhalte scrollen in sich */
.wk-shell .content-wrapper { overflow-x: clip; }
/* :where() = Spezifitaet 0 -> nur Ueberlauf-Schutz; seitenspezifische
   max-width-Regeln (z. B. Illustrationen 180/200px) gewinnen weiterhin. */
:where(.wk-shell .content-wrapper) :where(img, svg:not([width])) { max-width: 100%; }
.wk-shell .table-responsive,
.wk-shell .wk-table-wrap { -webkit-overflow-scrolling: touch; }
.wk-shell .content-wrapper pre { max-width: 100%; overflow-x: auto; }

/* Bootstrap-Modals mit .wk-modal-Klassen nicht auf 520px begrenzen */
.wk-shell .modal .modal-content.wk-modal,
.wk-shell .modal-dialog .wk-modal { max-width: none; }

@media (max-width: 767.98px) {
    /* iOS zoomt bei Eingabefeldern < 16px automatisch hinein */
    .wk-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),
    .wk-shell select,
    .wk-shell textarea,
    .wk-input, .wk-select, .wk-textarea { font-size: 16px; }

    /* Dialoge: volle Breite, kleiner Rand, Buttons untereinander */
    .wk-modal-backdrop { padding: 12px; align-items: flex-start; }
    .wk-modal, .wk-modal.is-lg, .wk-modal.is-xl { max-width: 100%; }
    .wk-modal-header, .wk-modal-body { padding-left: 16px; padding-right: 16px; }
    .wk-modal-footer { padding: 12px 16px; }
    .wk-modal-footer .wk-btn { flex: 1 1 auto; }
    .wk-shell .modal-dialog { margin: 10px; max-width: none; }

    /* Werkzeugleisten, Tabs und Pager umbrechen sauber */
    .wk-db-toolbar { gap: 10px; }
    .wk-db-search { flex: 1 1 100%; }
    .wk-db-toolbar .wk-btn, .wk-db-toolbar .wk-db-add { flex: 1 1 auto; justify-content: center; }
    .wk-tabs { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
    .wk-tabs-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .wk-tab { flex: 0 0 auto; }
    .wk-pager, .wk-shell .invoice-pagination { justify-content: center; }
    .wk-pager-info, .wk-shell .invoice-pagination-info { width: 100%; text-align: center; }

    /* Karten/Flaechen etwas kompakter */
    .wk-card, .wk-shell .portal-section { padding: 18px 16px; }
    .wk-hero { padding: 22px 18px; }
    .wk-db-actions .wk-btn, .wk-db-actions .wk-db-primary, .wk-db-actions .wk-db-secondary { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   10) KOMPAKTHEIT: Basis-Schriftgroesse ab Desktop 15px (statt 16px)
   Skaliert alle rem-basierten Schriften/Abstaende des Portals um ~6 %.
   Tablet/Handy behalten 16px (Lesbarkeit, iOS-Zoom-Regel in Abschnitt 9).
   ===================================================================== */
@media (min-width: 1024px) {
    html { font-size: 15px; }
}

/* Off-Canvas offen: Seite nicht scrollen; Profil-Menue auf dem Handy begrenzen */
body.wk-no-scroll { overflow: hidden; }
@media (max-width: 767.98px) {
    .wk-profile .dropdown-menu { max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; }
}

/* Tabelle -> Karten auf dem Handy: <table class="wk-table wk-table-cards">,
   jede <td data-label="Spalte">. Kopfzeile wird visuell ausgeblendet. */
@media (max-width: 767.98px) {
    .wk-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .wk-table-cards, .wk-table-cards tbody, .wk-table-cards tr, .wk-table-cards td { display: block; width: 100%; }
    .wk-table-cards tr { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--portal-border); border-radius: var(--wk-radius-md); background: var(--portal-bg); }
    .wk-table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
    .wk-table-cards td::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: var(--wk-label-size); font-weight: 700; letter-spacing: var(--wk-label-spacing); text-transform: uppercase; color: var(--portal-text-light); }
    .wk-table-cards td[data-label=""]::before, .wk-table-cards td:not([data-label])::before { content: none; }
}

/* =====================================================================
   11) ZUGANGSDATEN-BLOCK (.wk-cred) - Datenbanken, DynamicDNS, SFTP …
   Alle Verbindungsdaten an einer Stelle, jeder Wert mit Kopier-Symbol,
   plus "Alle kopieren". Zeile/Kopfzeile zeigt KEINE Zugangsdaten.
   ===================================================================== */
.wk-cred { border: 1px solid var(--portal-border); border-radius: var(--wk-radius-md); background: var(--portal-bg); }
.wk-cred-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--portal-border); }
.wk-cred-title { font-size: var(--wk-label-size); font-weight: 700; letter-spacing: var(--wk-label-spacing); text-transform: uppercase; color: var(--portal-text-muted); }
.wk-cred-all {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
    border: 1px solid var(--portal-border); border-radius: 999px; background: var(--portal-bg);
    color: var(--portal-text); font-size: 0.78rem; font-weight: 600; cursor: pointer;
    transition: border-color var(--wk-transition), color var(--wk-transition);
}
.wk-cred-all svg { width: 14px; height: 14px; }
.wk-cred-all:hover { border-color: var(--portal-primary); color: var(--portal-primary); }
.wk-cred-all.is-done { border-color: var(--wk-success); color: var(--wk-success-text); }
.wk-cred-all:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }

.wk-cred-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(70px, 0.5fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
}
.wk-cred-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 14px; }
.wk-cred-item + .wk-cred-item { border-left: 1px solid var(--portal-border); }
.wk-cred-label { font-size: var(--wk-label-size); font-weight: 700; letter-spacing: var(--wk-label-spacing); text-transform: uppercase; color: var(--portal-text-light); }
.wk-cred-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wk-cred-value {
    flex: 1 1 auto; min-width: 0; padding: 0; background: none; border: 0;
    font-family: var(--portal-font-mono, monospace); font-size: 0.86rem; font-weight: 600;
    color: var(--portal-text); overflow-wrap: anywhere;
}
.wk-cred-copy {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--wk-radius-sm);
    background: transparent; color: var(--portal-text-light); cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}
.wk-cred-copy svg { width: 15px; height: 15px; }
.wk-cred-copy:hover { background: color-mix(in srgb, var(--portal-primary) 9%, transparent); color: var(--portal-primary); }
.wk-cred-copy.is-done { color: var(--wk-success-text); }
.wk-cred-copy:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-cred-link {
    align-self: flex-start; padding: 0; border: 0; background: none;
    color: var(--portal-primary); font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.wk-cred-link:hover:not(:disabled) { text-decoration: underline; }
.wk-cred-link:disabled { opacity: 0.6; cursor: not-allowed; }

/* Meta-Kacheln (nur schmal) direkt unter den Zugangsdaten */
.wk-db-meta-grid:has(.wk-db-tile.is-meta) { margin-top: 0; }

@media (max-width: 1279.98px) {
    .wk-cred-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wk-cred-item + .wk-cred-item { border-left: 0; }
    .wk-cred-item { border-bottom: 1px solid var(--portal-border); }
    .wk-cred-item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--portal-border); }
}

@media (max-width: 767.98px) {
    .wk-cred-grid { grid-template-columns: minmax(0, 1fr); }
    .wk-cred-item, .wk-cred-item:not(:nth-child(3n + 1)) { border-left: 0; }
    .wk-cred-item:last-child { border-bottom: 0; }
    .wk-cred-copy { width: 40px; height: 40px; }
    .wk-db-meta-grid { margin-top: 12px; }
}

.wk-cred-grid.is-4 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 1279.98px) { .wk-cred-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wk-cred-grid.is-4 .wk-cred-item:not(:nth-child(3n + 1)) { border-left: 0; } .wk-cred-grid.is-4 .wk-cred-item:nth-child(2n) { border-left: 1px solid var(--portal-border); } }
@media (max-width: 767.98px) { .wk-cred-grid.is-4 { grid-template-columns: minmax(0, 1fr); } .wk-cred-grid.is-4 .wk-cred-item:nth-child(2n) { border-left: 0; } }
.wk-cred + .wk-db-grid { margin-top: 12px; }

/* Eingabefeld neben grossem Button: gleiche Hoehe (.wk-input.is-lg) */
.wk-input.is-lg { height: var(--wk-control-h-lg); min-height: 0; padding-top: 0; padding-bottom: 0; }

/* DynamicDNS: IPv4 + IPv6 gemeinsam in einer Kopfzeilen-Spalte */
.wk-db-col.wk-ddns-ips { flex: 1.6 1 0; gap: 2px; }
.wk-ddns-ip-tag { flex: 0 0 auto; min-width: 30px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; color: var(--portal-text-light); }
.wk-ddns-ip .wk-db-col-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ddns-ip .wk-db-col-copy { width: 22px; height: 22px; }

/* Buttons/Links in Hinweis-Boxen: Icons in der Schriftfarbe des Buttons
   (sonst faerbt .wk-note.is-danger svg das Icon rot auf rotem Button -> unsichtbar) */
.wk-note .wk-btn svg,
.wk-note .wk-cred-copy svg,
.wk-note a svg { color: currentColor; width: 16px; height: 16px; margin-top: 0; }

/* bootstrap-select um .wk-select/.wk-input: volle Breite, sieht aus wie ein Feld.
   bootstrap-select kopiert die Klassen des <select> auf seinen Wrapper und setzt
   sonst eine feste Breite von 220px (-> abgeschnittener Text, doppelte Box). */
.bootstrap-select.wk-select:not(.bs-container),
.bootstrap-select.wk-input:not(.bs-container) {
    width: 100% !important;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.bootstrap-select.wk-select > .dropdown-toggle,
.bootstrap-select.wk-input > .dropdown-toggle {
    width: 100%;
    height: var(--wk-control-h);
    padding: 0 34px 0 12px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    color: var(--portal-text);
    font-size: 0.92rem;
    box-shadow: none;
    outline: none;
}
.bootstrap-select.wk-select > .dropdown-toggle:focus,
.bootstrap-select.wk-select.show > .dropdown-toggle,
.bootstrap-select.wk-input > .dropdown-toggle:focus {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent);
}
.bootstrap-select.wk-select .filter-option-inner-inner,
.bootstrap-select.wk-input .filter-option-inner-inner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bootstrap-select.wk-select .dropdown-menu,
.bootstrap-select.wk-input .dropdown-menu { min-width: 100% !important; }
@media (max-width: 767.98px) {
    .bootstrap-select.wk-select > .dropdown-toggle,
    .bootstrap-select.wk-input > .dropdown-toggle { height: 44px; font-size: 16px; }
}

/* Blade-Variante (data-wk-copy): Kopier-Icon -> Haekchen nach dem Kopieren */
.wk-cred-copy .ic-done, .wk-cred-all .ic-done { display: none; }
.wk-cred-copy.is-done .ic-copy, .wk-cred-all.is-done .ic-copy { display: none; }
.wk-cred-copy.is-done .ic-done, .wk-cred-all.is-done .ic-done { display: inline; }
.wk-cred-copy.is-done { color: var(--wk-success-text); }

/* bootstrap-select (.wk-select/.wk-input): Text und Pfeil vertikal mittig */
.bootstrap-select.wk-select > .dropdown-toggle,
.bootstrap-select.wk-input > .dropdown-toggle { display: flex; align-items: center; line-height: 1.2; }
.bootstrap-select.wk-select > .dropdown-toggle .filter-option,
.bootstrap-select.wk-input > .dropdown-toggle .filter-option {
    position: static; display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
    height: auto; padding: 0; float: none; top: auto; left: auto;
}
.bootstrap-select.wk-select > .dropdown-toggle .filter-option-inner,
.bootstrap-select.wk-input > .dropdown-toggle .filter-option-inner { padding: 0; min-width: 0; }
.bootstrap-select.wk-select > .dropdown-toggle::after,
.bootstrap-select.wk-input > .dropdown-toggle::after { position: absolute; top: 50%; right: 12px; margin-top: -2px; }
.bootstrap-select.wk-select > .dropdown-toggle .bs-caret,
.bootstrap-select.wk-input > .dropdown-toggle .bs-caret { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); }

/* bootstrap-select (.wk-select/.wk-input): eigener, mittiger Pfeil statt
   Theme-::after (gedreht/versetzt) und bs-caret */
.bootstrap-select.wk-select > .dropdown-toggle::after,
.bootstrap-select.wk-input > .dropdown-toggle::after { content: none; display: none; border: 0; }
.bootstrap-select.wk-select > .dropdown-toggle .bs-caret,
.bootstrap-select.wk-input > .dropdown-toggle .bs-caret { display: none; }
.bootstrap-select.wk-select > .dropdown-toggle,
.bootstrap-select.wk-input > .dropdown-toggle {
    background-color: var(--portal-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.bootstrap-select.wk-select.show > .dropdown-toggle,
.bootstrap-select.wk-input.show > .dropdown-toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}

/* =====================================================================
   12) ILLUSTRATIONEN (Satz unter /images/illustrations/wk/, 240x180)
   Die SVGs haben einen Hintergrundkreis mit Rand -> etwas groesser zeigen
   als die alte Clipart, sonst wirken sie verloren. Volle Deckkraft.
   ===================================================================== */
.wk-shell .domain-illustration { width: 100%; max-width: 300px; height: auto; opacity: 1; }
.wk-shell .domain-result-illustration { width: 100%; max-width: 240px; height: auto; opacity: 1; }
.wk-shell .info-illustration img { width: 100%; max-width: 200px; height: auto; opacity: 1; }
.wk-shell .thankyou-illustration img { width: 100%; opacity: 1; }

/* bootstrap-select-Menue (.wk-select/.wk-input): Popover am Feld statt
   Fensterbreite. Kein container:'body' verwenden - das Menue landet sonst
   ausserhalb der Shell und min-width:100% greift auf die ganze Seite. */
.bootstrap-select.wk-select .dropdown-menu,
.bootstrap-select.wk-input .dropdown-menu {
    max-width: min(520px, calc(100vw - 32px));
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-md);
    background: var(--portal-bg);
    box-shadow: 0 12px 32px rgba(16, 37, 77, .14);
}
.bootstrap-select.wk-select .dropdown-menu.inner,
.bootstrap-select.wk-input .dropdown-menu.inner { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
.bootstrap-select.wk-select .bs-searchbox,
.bootstrap-select.wk-input .bs-searchbox { padding: 2px 2px 8px; }
.bootstrap-select.wk-select .bs-searchbox .form-control,
.bootstrap-select.wk-input .bs-searchbox .form-control {
    height: var(--wk-control-h); padding: 0 12px; font-size: .9rem;
    border: 1px solid var(--portal-border); border-radius: var(--wk-radius-sm);
    background: var(--portal-bg); color: var(--portal-text); box-shadow: none;
}
.bootstrap-select.wk-select .bs-searchbox .form-control:focus,
.bootstrap-select.wk-input .bs-searchbox .form-control:focus { border-color: var(--portal-primary); box-shadow: var(--wk-focus-ring); outline: none; }
.bootstrap-select.wk-select .dropdown-item,
.bootstrap-select.wk-input .dropdown-item {
    padding: 7px 10px; border-radius: var(--wk-radius-sm); font-size: .9rem;
    color: var(--portal-text); white-space: normal; overflow-wrap: anywhere;
}
.bootstrap-select.wk-select .dropdown-item:hover,
.bootstrap-select.wk-select .dropdown-item.active,
.bootstrap-select.wk-input .dropdown-item:hover,
.bootstrap-select.wk-input .dropdown-item.active { background: color-mix(in srgb, var(--portal-primary) 9%, transparent); color: var(--portal-primary); }
.bootstrap-select.wk-select .dropdown-item.selected,
.bootstrap-select.wk-input .dropdown-item.selected { font-weight: 600; color: var(--portal-primary); }
.bootstrap-select.wk-select .no-results,
.bootstrap-select.wk-input .no-results { padding: 8px 10px; margin: 0; background: transparent; color: var(--portal-text-muted); font-size: .88rem; }

/* =====================================================================
   13) ZURUECK-LINK (PortalLayout :back-href) - ueber dem Seitentitel
   ===================================================================== */
.wk-back-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin: 0 0 6px -4px; padding: 3px 8px 3px 4px;
    border-radius: var(--wk-radius-sm);
    color: var(--portal-text-muted); font-size: .86rem; font-weight: 500;
    text-decoration: none; transition: color var(--wk-transition), background var(--wk-transition);
}
.wk-back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.wk-back-link:hover, .wk-back-link:focus-visible {
    color: var(--portal-primary); text-decoration: none;
    background: color-mix(in srgb, var(--portal-primary) 8%, transparent);
}
.wk-back-link:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-back-link + .portal-page-title { margin-top: 0; }

/* =====================================================================
   14) DASHBOARD-BEGRUESSUNG als ruhige Karte (ueberschreibt §2 und die alte
   .dashboard-header-Optik aus Dashboard.vue / portal-refresh.css).
   Zarter Blau->Gruen-Verlauf passend zur Topbar, Avatar im Topbar-Verlauf,
   Rollen als getoente Chips, Illustration rechts (ab Desktop).
   ===================================================================== */
.wk-shell .dashboard-header {
    position: relative;
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 20px; padding: 18px 22px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    background:
        linear-gradient(100deg,
            color-mix(in srgb, var(--portal-primary) 7%, var(--portal-bg)) 0%,
            var(--portal-bg) 55%,
            color-mix(in srgb, var(--portal-accent) 10%, var(--portal-bg)) 100%);
    box-shadow: var(--wk-shadow-card);
    text-align: left;
}
.wk-shell .dashboard-header-content { display: flex; flex-direction: row; align-items: center; gap: 16px; min-width: 0; flex: 1 1 auto; }
.wk-shell .dashboard-header-avatar {
    flex: 0 0 auto; width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wk-topbar-from) 0%, var(--wk-topbar-mid) 50%, var(--wk-topbar-to) 100%);
    color: #fff; font-size: 1.35rem; font-weight: 800;
    box-shadow: 0 0 0 4px var(--portal-bg), 0 6px 16px rgba(11, 25, 56, .18);
}
.wk-shell .dashboard-header-text { min-width: 0; }
.wk-shell .dashboard-header-text h1 { margin: 0 0 2px; font-size: 1.45rem; line-height: 1.25; }
.wk-shell .dashboard-header-text p { margin: 0; font-size: .9rem; line-height: 1.45; }
.wk-shell .dashboard-header-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; margin-top: 10px; }
.wk-shell .dashboard-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border: 0; border-radius: 999px;
    font-size: .74rem; font-weight: 600; line-height: 1.5; box-shadow: none;
}
.wk-shell .dashboard-badge svg { width: 13px; height: 13px; }
.wk-shell .dashboard-badge-admin { background: color-mix(in srgb, var(--wk-navy) 10%, transparent); color: var(--wk-navy); }
.wk-shell .dashboard-badge-reseller { background: color-mix(in srgb, var(--portal-accent) 16%, transparent); color: var(--wk-success-text); }
.wk-shell .dashboard-badge-impersonate { background: color-mix(in srgb, var(--wk-warning) 16%, transparent); color: var(--wk-warning-text); }
.wk-shell .dashboard-header-aside { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.wk-shell .dashboard-header-illustration { display: block; width: 120px; max-width: none; height: auto; margin: -10px 0; }
.wk-shell .dashboard-customize-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: var(--wk-control-h); min-height: 0; padding: 0 14px; white-space: nowrap;
}
[data-theme="dark"] .wk-shell .dashboard-header {
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--portal-primary) 10%, var(--portal-bg)) 0%,
        var(--portal-bg) 55%,
        color-mix(in srgb, var(--portal-accent) 8%, var(--portal-bg)) 100%) !important;
    border: 1px solid var(--portal-border) !important;
}
[data-theme="dark"] .wk-shell .dashboard-badge-admin { color: var(--portal-text); background: rgba(255, 255, 255, .08); }
@media (max-width: 1023.98px) {
    .wk-shell .dashboard-header-illustration { display: none; }
}
@media (max-width: 767.98px) {
    .wk-shell .dashboard-header { flex-direction: column; align-items: stretch; padding: 16px; text-align: left; }
    .wk-shell .dashboard-header-content { flex-direction: row; align-items: flex-start; }
    .wk-shell .dashboard-header-avatar { width: 44px; height: 44px; font-size: 1.15rem; }
    .wk-shell .dashboard-header-text h1 { font-size: 1.2rem; }
    .wk-shell .dashboard-customize-btn { flex: 1 1 auto; justify-content: center; min-height: 40px; }
}

/* =====================================================================
   15) SIDEBAR IN GRUEN (Feedback: mehr Gruen statt Blau in der Navigation)
   Aktiver Bereich = Gruen wie die Aktions-Buttons (weisse Schrift),
   aktiver Unterpunkt = dunkleres Gruen (lesbar auf Weiss), Hover gruen
   getoent. Der Tastatur-Fokusring bleibt blau (Barrierefreiheit).
   Gruen kommt aus --portal-accent -> Reseller-Branding wirkt weiter.
   ===================================================================== */
.wk-sidebar {
    --wk-nav-hover-bg: color-mix(in srgb, var(--portal-accent) 12%, transparent);
    --wk-nav-active-bg: var(--portal-accent);
    --wk-nav-active-text: color-mix(in srgb, var(--portal-accent) 58%, #000);
}
.wk-sidebar .wk-nav-item.is-active > .wk-nav-link {
    background: linear-gradient(135deg, var(--wk-nav-active-bg) 0%, color-mix(in srgb, var(--wk-nav-active-bg) 82%, #000) 100%);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--wk-nav-active-bg) 32%, transparent);
}
.wk-sidebar .wk-nav-item.is-open:not(.is-active) > .wk-nav-link .wk-nav-icon { color: var(--wk-nav-active-text); }
.wk-sidebar .wk-subnav-link.is-active { color: var(--wk-nav-active-text); }
.wk-sidebar .wk-subnav-link.is-active::before { background: var(--portal-accent); opacity: 1; }
[data-theme="dark"] .wk-sidebar { --wk-nav-active-text: var(--portal-accent); }

/* =====================================================================
   16) INFO-BLOCK (.wk-info) + LEERZUSTAND MIT ILLUSTRATION
   Info-Block: Illustration links, Titel/Text/Punkte, optional Aktionen,
   wegklickbar (lib/wk-info.js). Einmal pro Seite, oberhalb der Liste.
   Leerzustand: <img class="wk-empty-illus"> statt .wk-icon-tile.
   ===================================================================== */
.wk-info {
    position: relative;
    display: flex; align-items: center; gap: 22px;
    margin: 0 0 20px; padding: 16px 48px 16px 18px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-lg);
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--portal-primary) 5%, var(--portal-bg)) 0%,
        var(--portal-bg) 60%,
        color-mix(in srgb, var(--portal-accent) 7%, var(--portal-bg)) 100%);
    box-shadow: var(--wk-shadow-card);
}
.wk-info-illus { flex: 0 0 auto; display: block; width: 132px; max-width: none; height: auto; margin: -6px 0; }
.wk-info-body { min-width: 0; flex: 1 1 auto; }
.wk-shell .wk-info-title { margin: 0 0 4px; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--portal-text); letter-spacing: -0.01em; }
.wk-info-text { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--portal-text-muted); }
.wk-info-points {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin: 10px 0 0; padding: 0; list-style: none;
    font-size: .84rem; color: var(--portal-text);
}
.wk-info-points li { position: relative; padding-left: 20px; }
.wk-info-points li::before {
    content: ''; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; border-radius: 50%;
    background: color-mix(in srgb, var(--portal-accent) 18%, transparent)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F8F12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.wk-info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wk-info-close {
    position: absolute; top: 10px; right: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--wk-radius-sm);
    background: transparent; color: var(--portal-text-muted); cursor: pointer;
    transition: background var(--wk-transition), color var(--wk-transition);
}
.wk-info-close svg { width: 16px; height: 16px; }
.wk-info-close:hover { background: color-mix(in srgb, var(--portal-text) 7%, transparent); color: var(--portal-text); }
.wk-info-close:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
[data-theme="dark"] .wk-info-points li::before { background-color: color-mix(in srgb, var(--portal-accent) 25%, transparent); }

/* Leerzustand mit Illustration */
.wk-empty-illus { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 10px; }
.wk-empty:has(.wk-empty-illus) { padding-top: 28px; }
.wk-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

@media (max-width: 767.98px) {
    .wk-info { gap: 14px; padding: 14px 44px 14px 14px; }
    .wk-info-illus { width: 84px; margin: 0; align-self: flex-start; }
    .wk-info-points { flex-direction: column; gap: 4px; }
}
@media (max-width: 479.98px) {
    .wk-info-illus { display: none; }
    .wk-info { padding-left: 16px; }
    .wk-empty-illus { max-width: 150px; }
}

/* =====================================================================
   17) UHR IM DARK MODE: Nachtszene statt grellweisser Scheibe
   (gewinnt gegen die allgemeinen Dark-Mode-Kartenregeln aus portal-refresh.css)
   Nachthimmel mit Sternen + Bergen, dunkles Zifferblatt, helle Zeiger.
   ===================================================================== */
[data-theme="dark"] .wk-shell .clock-card {
    border-color: var(--portal-border) !important;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360' preserveAspectRatio='none'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='40' cy='30' r='1.4' fill-opacity='.7'/%3E%3Ccircle cx='96' cy='70' r='1' fill-opacity='.5'/%3E%3Ccircle cx='150' cy='22' r='1.2' fill-opacity='.6'/%3E%3Ccircle cx='300' cy='40' r='1.4' fill-opacity='.7'/%3E%3Ccircle cx='352' cy='86' r='1' fill-opacity='.5'/%3E%3Ccircle cx='250' cy='96' r='1' fill-opacity='.45'/%3E%3Ccircle cx='24' cy='120' r='1' fill-opacity='.4'/%3E%3Ccircle cx='376' cy='18' r='1.1' fill-opacity='.6'/%3E%3C/g%3E%3Cpath d='M0 210 L60 150 L105 185 L170 95 L230 170 L280 120 L340 175 L400 140 L400 360 L0 360Z' fill='%23ffffff' fill-opacity='0.05'/%3E%3Cpath d='M0 240 L50 205 L120 235 L190 180 L260 230 L330 200 L400 225 L400 360 L0 360Z' fill='%23000000' fill-opacity='0.25'/%3E%3Cpath d='M0 262 L400 262 L400 360 L0 360Z' fill='%23000000' fill-opacity='0.25'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat,
        linear-gradient(180deg, #13284f 0%, #0f2142 50%, #0a1830 100%) !important;
}
[data-theme="dark"] .wk-shell .clock-card .clock__circle {
    background: radial-gradient(circle at 50% 35%, #1d3157 0%, #142443 70%, #101d38 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 6px rgba(255, 255, 255, .03) !important;
}
[data-theme="dark"] .wk-shell .clock-card .clock__hour::before,
[data-theme="dark"] .wk-shell .clock-card .clock__minutes::before { background-color: #e6edf8 !important; }
[data-theme="dark"] .wk-shell .clock-card .clock__seconds::before { background-color: #5aa2ff !important; }
[data-theme="dark"] .wk-shell .clock-card :is(.clock__twelve, .clock__three, .clock__six, .clock__nine) { background-color: rgba(230, 237, 248, .45) !important; }
[data-theme="dark"] .wk-shell .clock-card .clock__rounder { background-color: #5aa2ff; border-color: #142443 !important; }
[data-theme="dark"] .wk-shell .clock-card,
[data-theme="dark"] .wk-shell .clock-card [class*="clock__text"],
[data-theme="dark"] .wk-shell .clock-card .clock__date { color: #fff !important; }

/* Leerzustand INNERHALB einer aufgeklappten Karte (vHost-Unterbereiche,
   Exchange je Domain): kleinere Illustration, damit sie die Karte nicht dominiert */
:where(.collapse, .card-body, .hoex-empty, .vhost-body-empty) .wk-empty-illus { max-width: 120px; }

/* =====================================================================
   18) AUTH-SEITEN (Components/AuthLayout.vue): Login, Passwort vergessen,
   Registrieren … Links Markenpanel im Topbar-Verlauf statt Zufallsfotos,
   rechts Formular-Karte mit den normalen Bausteinen (.wk-input, .wk-btn, .wk-note).
   ===================================================================== */
.wk-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 42%) minmax(0, 1fr);
    background: var(--wk-page-bg);
    color: var(--portal-text);
}
.wk-auth.is-wide { grid-template-columns: minmax(340px, 34%) minmax(0, 1fr); }

.wk-auth-brand {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .10) 0, transparent 38%),
        radial-gradient(circle at 85% 88%, color-mix(in srgb, var(--wk-green) 30%, transparent) 0, transparent 42%),
        linear-gradient(160deg, var(--wk-topbar-from) 0%, var(--wk-topbar-mid) 50%, var(--wk-topbar-to) 100%);
}
.wk-auth-brand::after {
    /* dezentes Punktraster */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.wk-auth-brand-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; height: 100%;
    max-width: 520px; margin: 0 auto; padding: 44px 48px 36px;
}
.wk-auth-logo { display: block; width: 168px; max-width: 60%; height: auto; }
.wk-auth-hero { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 0; }
.wk-auth-hero img {
    width: 100%; max-width: 320px; height: auto; max-height: 100%;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .28));
}
.wk-auth-claim { margin: 0 0 16px; font-size: 1.45rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.wk-auth-points { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.wk-auth-points li { position: relative; padding-left: 30px; line-height: 1.45; }
.wk-auth-points li::before {
    content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
    background: var(--wk-green)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.wk-auth-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: rgba(255, 255, 255, .72); }
.wk-auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.wk-auth-trust svg { width: 14px; height: 14px; color: var(--wk-green); }

.wk-auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; min-width: 0; }
.wk-auth-content { width: 100%; max-width: 440px; }
.wk-auth.is-wide .wk-auth-content { max-width: 760px; }

.wk-auth-head { margin-bottom: 22px; }
.wk-auth-head h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--portal-text); }
.wk-auth-head p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--portal-text-muted); }

.wk-auth-card {
    padding: 26px 28px;
    border: 1px solid var(--portal-border);
    border-radius: var(--wk-radius-xl);
    background: var(--portal-bg);
    box-shadow: var(--wk-shadow-card);
}
.wk-auth-card > .wk-note, .wk-auth-form > .wk-note { margin: 0 0 16px; }
.wk-auth-field { margin-bottom: 16px; }
.wk-auth-field .wk-label { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.wk-auth-field .wk-label .wk-auth-link { margin-left: auto; }
.wk-auth-field .wk-input { height: var(--wk-control-h-lg); font-size: .95rem; }
.wk-auth-link { color: var(--portal-primary); font-size: .85rem; font-weight: 600; text-decoration: none; }
.wk-auth-link:hover, .wk-auth-link:focus-visible { color: var(--wk-blue-hover, var(--portal-primary)); text-decoration: underline; }
.wk-auth-pw { position: relative; }
.wk-auth-pw .wk-input { padding-right: 46px; }
.wk-auth-pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--wk-radius-sm);
    background: transparent; color: var(--portal-text-muted); cursor: pointer;
}
.wk-auth-pw-toggle:hover { color: var(--portal-text); background: color-mix(in srgb, var(--portal-text) 6%, transparent); }
.wk-auth-pw-toggle:focus-visible { outline: none; box-shadow: var(--wk-focus-ring); }
.wk-auth-pw-toggle svg { width: 18px; height: 18px; }
.wk-auth-hint { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--wk-warning-text); }
.wk-auth-hint.is-danger { color: var(--wk-danger-text); }
.wk-auth-hint svg { width: 14px; height: 14px; flex-shrink: 0; }
.wk-auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: .9rem; line-height: 1.45; color: var(--portal-text); cursor: pointer; }
.wk-auth-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--portal-accent); cursor: pointer; }
.wk-auth-card .wk-btn svg { width: 18px; height: 18px; }
.wk-auth-card .wk-btn.is-loading svg { animation: wk-auth-spin .8s linear infinite; }
@keyframes wk-auth-spin { to { transform: rotate(360deg); } }
.wk-auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--portal-text-muted); }
.wk-auth-divider::before, .wk-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--portal-border); }
.wk-auth-error { margin: 10px 0 0; font-size: .85rem; color: var(--wk-danger-text); }
.wk-auth-alt { margin-top: 22px; text-align: center; font-size: .92rem; color: var(--portal-text-muted); }
.wk-auth-alt a { margin-left: 4px; font-weight: 700; color: var(--portal-primary); text-decoration: none; }
.wk-auth-alt a:hover { text-decoration: underline; }
.wk-auth-footer { margin-top: 32px; text-align: center; font-size: .78rem; color: var(--portal-text-muted); }
.wk-auth-footer p { margin: 0 0 4px; }
.wk-auth-footer a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.wk-auth-footer-links { display: flex; justify-content: center; gap: 14px; }

/* Registrierung: Abschnitte + 2-spaltiges Raster */
.wk-auth-section + .wk-auth-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--portal-border); }
.wk-auth-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .98rem; font-weight: 700; color: var(--portal-text); }
.wk-auth-section-title svg { width: 18px; height: 18px; color: var(--portal-accent); }
.wk-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wk-auth-grid .is-full { grid-column: 1 / -1; }
.wk-auth-required { color: var(--wk-danger); margin-left: 2px; }
.wk-auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }

/* Theme-Schalter (global, schwebend) auf dem Formular-Hintergrund belassen */
[data-theme="dark"] .wk-auth-brand {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .06) 0, transparent 38%),
        radial-gradient(circle at 85% 88%, color-mix(in srgb, var(--wk-green) 18%, transparent) 0, transparent 42%),
        linear-gradient(160deg, #071a40 0%, #082c4f 50%, #08362c 100%);
}

@media (max-width: 1023.98px) {
    .wk-auth, .wk-auth.is-wide { grid-template-columns: minmax(0, 1fr); }
    .wk-auth-brand { position: relative; height: auto; }
    .wk-auth-brand-inner { max-width: none; padding: 22px 24px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
    .wk-auth-logo { width: 132px; }
    .wk-auth-claim { flex: 1 1 260px; margin: 0; font-size: 1rem; font-weight: 700; }
    .wk-auth-hero, .wk-auth-points, .wk-auth-trust { display: none; }
    .wk-auth-main { padding: 32px 20px; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .wk-auth-card { padding: 20px 18px; }
    .wk-auth-grid { grid-template-columns: minmax(0, 1fr); }
    .wk-auth-head h1 { font-size: 1.4rem; }
    .wk-auth-field .wk-input { font-size: 16px; }
    .wk-auth-actions .wk-btn { flex: 1 1 100%; justify-content: center; }
}
.wk-auth-field .wk-label { text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 600; color: var(--portal-text); }
.wk-auth-field .wk-select { height: var(--wk-control-h-lg); font-size: .95rem; }
.wk-auth-logo-text { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
@media (max-width: 1023.98px) {
    .wk-auth-brand-inner { padding-right: 72px; }
}
/* Wechsel-Zeile unter der Auth-Karte (Registrieren / Zurueck zum Login):
   Text links, Button rechts - der Button bricht nie um, bei wenig Platz stapeln */
.wk-auth-switch {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px 14px;
    margin-top: 16px; padding: 12px 12px 12px 18px;
    border: 1px solid var(--portal-border); border-radius: var(--wk-radius-lg);
    background: color-mix(in srgb, var(--portal-bg) 60%, transparent);
}
.wk-auth-switch-text { min-width: 0; font-size: .9rem; line-height: 1.35; color: var(--portal-text-muted); }
.wk-auth-switch .wk-btn { flex: 0 0 auto; white-space: nowrap; }
.wk-auth-switch .wk-btn svg { width: 16px; height: 16px; }
@media (max-width: 479.98px) {
    .wk-auth-switch { flex-direction: column; align-items: stretch; text-align: center; }
    .wk-auth-switch .wk-btn { justify-content: center; }
}

/* Markenpanel bleibt beim Scrollen stehen: sticky greift nicht, weil ein
   Eltern-Container scrollt -> auf Desktop fest am linken Rand, Formular daneben */
@media (min-width: 1024px) {
    .wk-auth { --wk-auth-brand-w: max(380px, 42vw); display: block; }
    .wk-auth.is-wide { --wk-auth-brand-w: max(340px, 34vw); }
    .wk-auth-brand { position: fixed; top: 0; bottom: 0; left: 0; width: var(--wk-auth-brand-w); height: auto; z-index: 1; }
    .wk-auth-main { min-height: 100vh; margin-left: var(--wk-auth-brand-w); }
}
/* Info-Block ohne Schliessen-Button (Standard): kein reservierter Platz rechts */
.wk-info:not(:has(.wk-info-close)) { padding-right: 22px; }
@media (max-width: 767.98px) { .wk-info:not(:has(.wk-info-close)) { padding-right: 14px; } }

/* Code-Eingabe in Einzelfeldern (Components/OtpInput.vue), z. B. 2FA */
.wk-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.wk-otp-digit {
    width: 100%; height: 58px; min-width: 0; padding: 0;
    border: 1.5px solid var(--portal-border); border-radius: var(--wk-radius-md);
    background: var(--portal-bg); color: var(--portal-text);
    font-family: var(--portal-font-mono, ui-monospace, monospace); font-size: 1.6rem; font-weight: 700; text-align: center;
    caret-color: var(--portal-primary);
    transition: border-color var(--wk-transition), box-shadow var(--wk-transition), background var(--wk-transition);
}
.wk-otp-digit:focus { outline: none; border-color: var(--portal-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--portal-primary) 14%, transparent); }
.wk-otp-digit.is-filled { border-color: color-mix(in srgb, var(--portal-primary) 45%, var(--portal-border)); background: color-mix(in srgb, var(--portal-primary) 4%, var(--portal-bg)); }
.wk-otp-digit.is-invalid { border-color: var(--wk-danger); }
.wk-otp-digit:disabled { opacity: .6; }
.wk-auth-switch button.wk-btn { cursor: pointer; }
@media (max-width: 479.98px) {
    .wk-otp { gap: 6px; }
    .wk-otp-digit { height: 50px; font-size: 1.35rem; }
}

/* Auth-Status-Karte (Danke-/Verifizierungsseiten): zentriert mit Status-Icon */
.wk-auth-card.is-center { text-align: center; padding: 32px 28px; }
.wk-auth-card.is-center .wk-btn { margin-top: 8px; }
.wk-auth-status-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%;
    background: color-mix(in srgb, var(--portal-primary) 12%, transparent); color: var(--portal-primary);
}
.wk-auth-status-icon svg { width: 28px; height: 28px; }
.wk-auth-status-icon.is-success { background: color-mix(in srgb, var(--wk-success) 14%, transparent); color: var(--wk-success-text); }
.wk-auth-status-icon.is-danger { background: color-mix(in srgb, var(--wk-danger) 12%, transparent); color: var(--wk-danger-text); }
.wk-auth-status-title { margin: 0 0 10px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--portal-text); }
.wk-auth-status-text { margin: 0 0 12px; font-size: .95rem; line-height: 1.55; color: var(--portal-text-muted); }
.wk-auth-field .wk-textarea { font-size: .95rem; }

/* Root-Server: Daten-Labels wie die Meta-Labels im uebrigen Portal
   (kleine Versalien, gedaempft, ohne Doppelpunkt) - Status, Festplatten,
   Netzwerk, Spezifikation, Statistik */
.wk-shell :is(.rs-kv-table .rs-kv-key, .status-table-label, .rs-info-key, .metrics-info-label) {
    font-size: var(--wk-label-size, .72rem);
    font-weight: 700;
    letter-spacing: var(--wk-label-spacing, .06em);
    text-transform: uppercase;
    color: var(--portal-text-light, var(--portal-text-muted));
}
.wk-shell .rs-kv-table .rs-kv-key { padding-top: 9px; }
.wk-shell .rs-kv-table .rs-kv-key.is-middle { padding-top: 6px; }
.wk-shell .rs-kv-table td { padding-top: 8px; padding-bottom: 8px; }
/* Speicherbelegung: breitere Leiste */
.wk-shell .rs-usage-track { width: 320px; height: 8px; }
/* Treiber: Auswahl + Uebernehmen auf gleicher Hoehe */
.wk-shell .rs-driver-control .wk-btn-sm { height: var(--wk-control-h); padding: 0 14px; }

/* Root-Server: weitere Daten-Labels (Spezifikation/Zugriff, Firewall-Interface) */
.wk-shell :is(.rs-info-table .rs-info-key, .fw-field-table .fw-field-key) {
    font-size: var(--wk-label-size, .72rem); font-weight: 700; letter-spacing: var(--wk-label-spacing, .06em);
    text-transform: uppercase; color: var(--portal-text-light, var(--portal-text-muted));
    width: 200px; padding-top: 9px; vertical-align: top;
}
.wk-shell :is(.rs-info-table, .fw-field-table) td { padding-top: 8px; padding-bottom: 8px; }
/* Firewall-Warnung als Hinweis-Box (statt eigener gelber Leiste) */
.wk-shell .fw-warning.wk-note { margin: 0 0 12px; padding: 10px 14px; font-size: .86rem; border-radius: var(--wk-radius-md); }
/* Statistik: native Auswahl ODER bootstrap-select - kein doppelter Pfeil */
.wk-shell .bootstrap-select:is(.metrics-select, .metrics-hours-select) { padding: 0; border: 0; background: none; box-shadow: none; min-width: 200px; }
.wk-shell select.wk-select:is(.metrics-select, .metrics-hours-select) { height: var(--wk-control-h); padding: 0 34px 0 12px; min-width: 200px; }
.wk-shell .btn-metrics-refresh { height: var(--wk-control-h); }

/* Root-Server Zugriff: Spalten nach Inhalt (Hostname am laengsten), keine Zeichen-Umbrueche */
.wk-shell .rs-cred .wk-cred-grid.is-4 { grid-template-columns: minmax(0, .9fr) minmax(0, 2fr) minmax(0, .7fr) minmax(0, 1.1fr); }
.wk-shell .rs-cred .wk-cred-value { overflow-wrap: break-word; word-break: normal; }
.wk-shell .rs-cred .wk-cred-value[data-secret] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1279.98px) { .wk-shell .rs-cred .wk-cred-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .wk-shell .rs-cred .wk-cred-grid.is-4 { grid-template-columns: minmax(0, 1fr); } }

/* Bootstrap-Modals mit .wk-modal, die an <body> haengen (ausserhalb .wk-shell),
   z. B. Firewall-Regel: nicht auf 520px begrenzen, Bootstrap-Rahmen neutralisieren */
.modal-dialog > .modal-content.wk-modal { max-width: none; padding: 0; }
.fw-rule-modal .modal-dialog { max-width: 760px; }
.fw-rule-modal .wk-modal-body { max-height: calc(100vh - 220px); overflow-y: auto; }
.fw-rule-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 6px; font-size: .86rem; font-weight: 600; color: var(--portal-text); }
.fw-rule-label-hint { font-size: .78rem; font-weight: 400; color: var(--portal-text-muted); }
.fw-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.fw-rule-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fw-rule-modal .wk-field { margin-bottom: 14px; }
.fw-rule-modal .wk-input, .fw-rule-modal .wk-select { height: var(--wk-control-h); font-size: .9rem; }
.fw-rule-modal .wk-textarea { min-height: 84px; font-size: .88rem; }
.fw-rule-modal .wk-input:disabled { opacity: .55; cursor: not-allowed; }
.fw-rule-note { margin: 2px 0 0; font-size: .84rem; }
@media (max-width: 767.98px) {
    .fw-rule-grid, .fw-rule-grid.is-3 { grid-template-columns: minmax(0, 1fr); }
    .fw-rule-modal .wk-input, .fw-rule-modal .wk-select, .fw-rule-modal .wk-textarea { font-size: 16px; }
}
