/* ============================================================
   fieldtakt Schaltzentrale - Stylesheet
   ============================================================ */
/* v1.409.0 (Ralf 15.10.2026 "jetzt bitte nachziehen"): Markenschrift Inter selbst gehostet (variabel 100-900, SIL OFL, assets/fonts/) - vorher nur genannt, Windows zeigte Segoe UI */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }


:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0891b2;

    --bg: #f1f5f9;
    --bg-dark: #0f172a;
    --card-bg: #ffffff;
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #38bdf8;

    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;

    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

/* ---- Layout ---- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-icon { font-size: 28px; }
.brand-text strong { color: #fff; display: block; font-size: 15px; }
.brand-text small { color: var(--sidebar-text); font-size: 11px; }

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;            /* v1.17.2: auf niedrigen Bildschirmen scrollt die Navigation, */
    overflow-y: auto;         /* der Fuss mit Abmelden bleibt sichtbar */
    padding: 12px 10px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.sidebar-brand, .sidebar-footer { flex: none; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-item.active {
    background: rgba(56,189,248,0.12);
    color: var(--sidebar-active);
    font-weight: 600;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-info {
    padding: 8px 14px;
    margin-bottom: 4px;
}

.admin-name { color: #cbd5e1; font-size: 13px; }
.admin-badge {
    display: inline-block;
    background: rgba(56,189,248,0.15);
    color: var(--sidebar-active);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.logout-btn:hover { background: rgba(220,38,38,0.15); color: #f87171; }

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    min-width: 0;             /* breite Tabellen scrollen in ihrer Karte, nicht die ganze Seite */
    margin-left: 250px;
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px 0;
}

.content-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.content-body { padding: 20px 30px 40px; }

/* ---- Stat Cards ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border);
}

.stat-card.stat-active { border-left-color: var(--success); }
.stat-card.stat-trial { border-left-color: var(--warning); }
.stat-card.stat-users { border-left-color: var(--info); }

.stat-value { font-size: 32px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---- Cards ---- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 20px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ---- Tables ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
/* v1.331.0 (Ralf 10.10.2026: "die Zahlen vernuenftig unter die Ueberschrift der Spalte setzen"): .data-table th (links) war staerker als die
   Hilfsklassen - Kopf und Zahlen standen versetzt. Jetzt gelten ta-right/ta-center auch im Tabellenkopf. */
.data-table th.ta-right, .data-table td.ta-right { text-align: right; }
.data-table th.ta-center, .data-table td.ta-center { text-align: center; }

.data-table tbody tr:hover { background: #f8fafc; }
.data-table td small { display: block; }
.row-inactive { opacity: 0.5; }

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-trial { background: #fef3c7; color: #92400e; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-cancelled { background: #f1f5f9; color: #475569; }
.badge-role { background: #ede9fe; color: #5b21b6; }
.badge-lg { padding: 5px 14px; font-size: 13px; }

/* ---- Buttons ---- EIN System (v1.17.2): Groesse (.btn | .btn-sm | .btn-xs) x Art (neutral | -primary | -danger | -warning | -success | -info)
   Regel: loest der Knopf eine Aktion aus (speichern, starten, senden, anlegen) = .btn-primary; fuehrt er nur woanders hin oder ist er
   Nebensache = neutral; zerstoerend = .btn-danger. Nur Icon = .btn-xs mit title. Keine eigenen Knopf-Stile in Seiten. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: var(--ctl-h); padding: 0 16px; border-radius: var(--ctl-radius);
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
    border: 1px solid var(--ft-navy); background: #fff; color: var(--ft-navy);
    cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; box-shadow: 0 2px 8px rgba(18, 49, 77, .22); }   /* sekundaer: Hover fuellt Navy - gleiche Familie wie primary */
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; }
.btn-primary:hover { background: var(--ft-navy-hover); border-color: var(--ft-navy-hover); box-shadow: 0 2px 8px rgba(18, 49, 77, .28); }
.btn-primary:active { background: var(--ft-navy-dark); }
.btn-danger  { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.btn-warning, .btn-warn { background: var(--ft-yellow); border-color: var(--ft-yellow); color: var(--ft-ink); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-info    { background: var(--info);    border-color: var(--info);    color: #fff; }
.btn-danger:hover, .btn-warning:hover, .btn-warn:hover, .btn-success:hover, .btn-info:hover { filter: brightness(.9); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.btn:disabled:hover, .btn[disabled]:hover { background: #fff; color: var(--ft-navy); box-shadow: none; filter: none; }
.btn-primary:disabled:hover, .btn-primary[disabled]:hover { background: var(--ft-navy); color: #fff; }
.btn-sm { height: var(--ctl-h-sm); padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: var(--ctl-h-xs); min-width: 30px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn-full { width: 100%; }
.btn .ico { flex: none; }
/* Altnamen aus der Altsystem-Zeit zeigen auf das eine System (nicht neu verwenden) */
.btn-secondary, .btn-outline, .btn-db { background: #fff; border: 1px solid var(--ft-navy); color: var(--ft-navy); }

/* ---- Forms ---- */
.form-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type { border-bottom: none; }
.form-section h3 { font-size: 15px; margin-bottom: 16px; color: var(--text); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));   /* minmax(0,..): Inhalt darf die Spalte nie aufblaehen */
    gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Eingabefelder: siehe Abschnitt "Eingabefelder - EIN System" am Ende */

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inline-form label { font-size: 13px; font-weight: 500; white-space: nowrap; }

.checkbox-group { display: flex; gap: 20px; flex-wrap: wrap; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.checkbox-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(37,99,235,0.04);
}

/* ---- Alerts ---- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.result-details { margin-top: 12px; }
.result-row { padding: 4px 0; }
.result-row span:first-child { color: #166534; margin-right: 8px; }

code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

code.highlight {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 3px 8px;
}

/* ---- Info Grid ---- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-full { grid-column: 1 / -1; }
.info-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.info-value { font-size: 14px; color: var(--text); }

/* ---- Activity List ---- */
.activity-list { display: flex; flex-direction: column; }

.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 20px; padding-top: 2px; }
.activity-action { font-weight: 500; }
.activity-tenant { color: var(--primary); margin-left: 4px; }
.activity-meta { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* ---- Login Page ---- */
.login-page {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container { width: 100%; max-width: 400px; padding: 20px; }

.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon { font-size: 48px; margin-bottom: 12px; }
.login-header h1 { font-size: 22px; color: var(--text); }
.login-header p { color: var(--text-muted); font-size: 14px; }

.login-form .form-group { margin-bottom: 18px; }

.login-form input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

/* ---- Helpers ---- */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; }
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
}
/* ---- Language Switcher ---- */
/* Sprachumschalter v1.18.0: Text-Knoepfe (DE | EN) statt Flaggen-Emojis - Windows hat keine Flaggen-Schrift */
.lang-switcher { display: flex; gap: 6px; padding: 8px 14px; margin-bottom: 4px; }
.lang-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: background-color .15s, border-color .15s; }
.lang-switcher a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.lang-switcher a.active { background: var(--ft-yellow); border-color: var(--ft-yellow); color: var(--ft-ink); font-weight: 700; }
.login-footer .lang-switcher { justify-content: center; padding: 10px 0; }
.login-footer .lang-switcher a { border-color: var(--ctl-border); color: var(--ft-navy); }
.login-footer .lang-switcher a:hover { background: var(--ft-grey); border-color: var(--ft-navy); }
.login-footer .lang-switcher a.active { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; }

/* ---- Nav Divider ---- */
.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 16px;
}

/* ---- Server Grid ---- */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}
.server-card.server-inactive {
    opacity: 0.6;
}
.server-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.server-stat .stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.server-stat .stat-value {
    font-size: 13px;
}

/* ---- Progress Bars ---- */
.progress-bar,
.progress-bar-mini {
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar {
    height: 22px;
}
.progress-bar-mini {
    height: 6px;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 0.3s;
    font-size: 11px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2px;
}
.progress-fill.progress-danger {
    background: var(--danger);
}
.progress-fill.progress-warning {
    background: var(--warning);
}

/* ---- DB Tags ---- */
.db-tag {
    display: inline-block;
    background: #f0f4ff;
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #dbeafe;
}

/* ---- Live Status ---- */
.server-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 600;
}
.server-live-status.status-ok {
    background: #ecfdf5;
    color: var(--success);
}
.server-live-status.status-error {
    background: #fef2f2;
    color: var(--danger);
}
.status-indicator { font-size: 20px; }


/* ---- Highlight code ---- */
code.highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #fcd34d;
}

/* ---- Server Mini Grid (Dashboard) ---- */
.server-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.server-mini-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px 14px;
    border: 1px solid var(--border);
}
.server-mini-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
}
.server-mini-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Server-Health-Kacheln (Dashboard) - responsiv, max 3 pro Reihe, CSS-gebunden.
   auto-fit fuellt nur die tatsaechlich vorhandenen Kacheln (bei 2 Servern also
   2 Spalten, keine Luecke). Die max-width deckelt die Reihe bei 3 Kacheln
   (3 x 360px + 2 x 14px Gap), darueber bricht die 4. in die naechste Zeile. */
.srv-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
    gap: 14px;
    max-width: 1108px;
    justify-content: start;
}
.srv-health-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.srv-health-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.srv-health-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.srv-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
}
.srv-dot.ok    { background: var(--success); }
.srv-dot.warn  { background: var(--warning); }
.srv-dot.crit  { background: var(--danger); }
.srv-default-star { color: var(--warning); }
.srv-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius);
}
.srv-badge.ok   { background: #dcfce7; color: #166534; }
.srv-badge.warn { background: #fef3c7; color: #92400e; }
.srv-badge.crit { background: #fee2e2; color: #991b1b; }
.srv-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}
.srv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.srv-row-label { color: var(--text-muted); }
.srv-row-label .srv-hint { font-size: 11px; }
.srv-mono { font-family: 'SF Mono', Consolas, monospace; }
.srv-dot-inline { margin-right: 5px; vertical-align: middle; }
.srv-val-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.srv-disk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.srv-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.srv-bar-fill {
    height: 100%;
    background: var(--success);
}
.srv-bar-fill.warn { background: var(--warning); }
.srv-bar-fill.crit { background: var(--danger); }
.srv-disk-val.warn { color: var(--warning); }
.srv-disk-val.crit { color: var(--danger); }
.srv-health-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.srv-foot-meta { font-size: 12px; color: var(--text-muted); }
.srv-foot-link { font-size: 12px; color: var(--primary); text-decoration: none; }
.srv-foot-link:hover { text-decoration: underline; }

/* ============================================================
   Server-Detailseite: reichhaltiges Health-Panel (Live-Status)
   Nutzt dieselbe visuelle Sprache wie die Dashboard-Kachel
   (srv-dot, srv-badge, srv-bar, srv-row ...), aber full-width
   und mit nebeneinander liegenden Balken auf breiten Schirmen.
   ============================================================ */
.srv-detail-health {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    background: var(--card-bg);
}
.srv-detail-health .srv-health-head {
    margin-bottom: 14px;
}
.srv-detail-problems {
    font-size: 12px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 14px;
}
/* Die drei Balken (CPU / RAM / Festplatte) nebeneinander, bei
   schmalem Viewport automatisch gestapelt. */
.srv-detail-bars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.srv-bar-block .srv-bar {
    height: 8px;
}
/* Kennzahlen-Zeilen (Apache, MySQL, DB-Groesse, Kunden, Nutzer)
   in zwei Spalten fuer eine kompakte Detailansicht. */
.srv-detail-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px 28px;
    font-size: 13px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.srv-detail-rows .srv-row {
    padding: 2px 0;
}
.srv-detail-foot {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
/* ============================================================
   DB Browser Styles - Append to admin.css
   ============================================================ */

/* -- Breadcrumb -- */
.db-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}
.db-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.db-breadcrumb a:hover {
    text-decoration: underline;
}
.db-breadcrumb .active {
    color: var(--text);
    font-weight: 600;
}
.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 16px;
}

/* -- DB Info Bar -- */
.db-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}
.db-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.db-info-icon {
    font-size: 10px;
}

/* -- Table List -- */
.db-table-list td,
.db-table-list th {
    padding: 10px 14px;
}
.table-link {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.table-link:hover {
    color: var(--primary);
}

/* -- Data Table (Browser) -- */
.db-data-table {
    font-size: 13px;
    white-space: nowrap;
}
.db-data-table th {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 2;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}
.db-data-table td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 14px;
    border-bottom: 1px solid var(--border);
}
.db-data-table tbody tr:hover {
    background: #f8fafc;
}
.db-cell {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
}
.null-value {
    color: #a0aec0;
    font-style: italic;
    font-size: 11px;
}

/* -- Pagination -- */
.db-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pagination-info {
    color: var(--text-muted);
    font-size: 12px;
    padding: 0 8px;
}

/* -- SQL Editor -- */
.sql-editor-wrap {
    position: relative;
}
.sql-textarea {
    width: 100%;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: #1e293b;
    color: #e2e8f0;
    resize: vertical;
    min-height: 80px;
    tab-size: 4;
}
.sql-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.sql-textarea::placeholder {
    color: #64748b;
}
.sql-result {
    border-top: 2px solid var(--border);
    padding-top: 14px;
}

/* -- Modal -- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin: 20px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 16px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
}
.modal-close:hover {
    color: var(--danger);
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

/* -- DB Health Enhanced -- */
.db-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.db-health-stat {
    background: var(--bg);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid var(--border);
}
.db-health-stat .stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.db-health-stat .stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/* -- Alert info/warning for import -- */
.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.alert-info {
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #7dd3fc;
}

/* ============================================================
   S2 (v1.3.0): Navigation mit Inline-Icons, Werkzeuge, Downloads,
   Protokoll, Benutzer, Einstellungen, Selbstueberwachung
   ============================================================ */
.nav-icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon .ico { width: 18px; height: 18px; }
.nav-category { padding: 10px 20px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.nav-ext { margin-left: auto; opacity: .5; display: inline-flex; }
/* v1.21.1: Abmelden und Versionsnummer in EINER Zeile (Version ganz rechts) */
.sidebar-bottom { display: flex; align-items: center; gap: 8px; }
.sidebar-bottom .logout-btn { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.sidebar-version { flex: none; padding: 0 12px 0 0; font-size: 11px; color: rgba(255,255,255,.45); }
.brand-icon .ico { width: 28px; height: 28px; color: var(--primary); }
.ico { vertical-align: -3px; }
.text-muted { color: var(--text-muted); }
.small { font-size: 12px; }
.hint { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.form-inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-inline-row input[type="file"], .form-inline-row input[type="password"], .form-inline-row input.in { flex: 1; min-width: 200px; width: auto; }   /* H1: auch .in (Einstellungen -> Kundenwiki) */
/* v1.140.0: zweite Zeile im Upload (Kennwort des Lieferpakets) */
.form-row-break { flex-basis: 100%; height: 0; }
.form-inline-label { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 200px; font-size: 13px; color: var(--text-muted); }
.form-inline-label input { flex: 1; }
label.check { display: flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 400; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tool-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.tool-card .tool-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.tool-card .tool-desc { font-size: 12px; color: var(--text-muted); flex: 1; }
.job-log { margin: 0; padding: 14px 16px; min-height: 260px; max-height: 560px; overflow: auto; background: #12314D; color: #E8EDF1; font-size: 12px; line-height: 1.45; white-space: pre-wrap; border-radius: 0 0 10px 10px; }
.job-log-sm { min-height: 120px; max-height: 320px; }   /* v1.193.7: Ausgabe eines Kundenwiki-Auftrags oben auf der Kundenwiki-Seite */
.health-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .health-grid { grid-template-columns: 1fr; } }
.health-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.svc-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13px; }
.svc-row .small { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: #cbd5e1; }
.dot-ok { background: #16a34a; } .dot-warn { background: #f59e0b; } .dot-bad { background: #dc2626; }
/* Statuspunkt statt Emoji/Zeichen: <span class="dot dot-ok|dot-warn|dot-bad"></span>; dot-err = dot-bad, dot-off = grau, dot-lg = gross */
.dot-err { background: #dc2626; } .dot-off { background: #94a3b8; } .dot-lg { width: 22px; height: 22px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.meter { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin: 0 0 6px; }
.meter-fill { height: 100%; background: #16a34a; }
.meter-warn { background: #f59e0b; } .meter-bad { background: #dc2626; }
.kv-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.kv-table th { text-align: left; color: var(--text-muted); font-weight: 500; padding: 5px 10px 5px 0; white-space: nowrap; vertical-align: top; }
.kv-table td { padding: 5px 0; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; }
.inline-details { display: inline-block; position: relative; }
.inline-details summary { list-style: none; cursor: pointer; display: inline-flex; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] .form-inline-row { position: absolute; right: 0; top: 30px; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.admin-health .card-header { flex-wrap: wrap; gap: 6px; }
.grid-2-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid-2-wide { grid-template-columns: 1fr; } }
.meter-navy { background: #12314D; } .meter-yellow { background: #F2A900; } .meter-grey { background: #94a3b8; }
/* v1.3.4: Kachelreihen gleich hoch, sauberer Abstand nach unten */
.grid-2, .grid-2-wide { align-items: stretch; margin-bottom: 24px; }
.grid-2 > .card, .grid-2-wide > .card { margin: 0; display: flex; flex-direction: column; height: 100%; }
.grid-2 > .card > .card-body, .grid-2-wide > .card > .card-body { flex: 1 1 auto; }
/* v1.4.0: Cloud-Config-Anzeige, Schrittlisten */
.cc-box { width: 100%; height: 420px; margin: 0; padding: 14px 16px; border: 0; border-radius: 0; background: #0F2A44; color: #E8EDF1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; white-space: pre; resize: vertical; }
ol.steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; } ol.steps li { margin-bottom: 8px; }
.form-grid .full { grid-column: 1 / -1; }
/* v1.4.1: Werkzeuge – drei Kacheln oben (Upload, Release, Ausgabe) */
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 20px; align-items: stretch; margin-bottom: 24px; }
.grid-3 > .card { margin: 0; display: flex; flex-direction: column; height: 100%; }
.grid-3 > .card > .card-body { flex: 1 1 auto; }
.grid-3 .job-log { min-height: 200px; max-height: 340px; height: 100%; }
@media (max-width: 1300px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 > .card:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
/* v1.4.2: untere Reihe – Wartungsauftraege (2 Spalten) + Letzte Auftraege (Spalte 3, scrollbar) */
.grid-3-bottom { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr); }
.grid-3-bottom .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3-bottom > .card { min-height: 0; }                       /* Zeilenhoehe bestimmt die Wartungskarte */
.grid-3-bottom > .card:last-child { max-height: 100%; overflow: hidden; }
.scroll-body { overflow: auto; flex: 1 1 auto; min-height: 0; }  /* Auftragsliste scrollt in der Karte */
@media (max-width: 1300px) { .grid-3-bottom { grid-template-columns: 1fr; } .grid-3-bottom > .card { max-height: none; } }

/* ============================================================
   S6 (v1.6.0): Marke fieldtakt – Tokens aus dem Markenpaket
   Field Navy #12314D · Takt Gelb #F2A900 · Off-White #F5F6F4 · Ink #17212B · Plan Grau #E8EDF1
   ============================================================ */
:root {
    --ft-navy: #12314D; --ft-navy-dark: #0F2A44; --ft-yellow: #F2A900; --ft-off: #F5F6F4; --ft-ink: #17212B; --ft-grey: #E8EDF1;
    --ft-yellow-soft: #FFF8E6;   /* v1.338.0: gewaehlt/markiert (App-Editor: Auswahl, Ablage) - Takt Gelb hell */
    /* v1.17.2: Bedienelemente - eine Hoehe je Groesse fuer Knoepfe UND Eingabefelder, damit sie nebeneinander fluchten */
    --ft-navy-hover: #245C8F; --ctl-border: #C9D3DC; --ctl-h: 38px; --ctl-h-sm: 32px; --ctl-h-xs: 28px; --ctl-radius: 8px; --focus-ring: 0 0 0 3px rgba(242, 169, 0, .4);
    --primary: var(--ft-navy); --primary-dark: var(--ft-navy-dark);
    --bg: var(--ft-off); --text: var(--ft-ink); --border: #D9E0E7;
    --sidebar-bg: var(--ft-navy); --sidebar-text: #B9C7D6; --sidebar-active: var(--ft-yellow);
}
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
.sidebar { background: var(--ft-navy); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: inline-flex; flex: none; }
.brand-logo img { width: 36px; height: 36px; display: block; }
.brand-text strong { color: #fff; letter-spacing: -.01em; }
.brand-text small { color: #B9C7D6; }
.nav-item.active { background: rgba(242,169,0,.14); color: #fff; border-left: 3px solid var(--ft-yellow); }
.nav-item.active .ico { color: var(--ft-yellow); }
.nav-item:hover { background: rgba(255,255,255,.06); }
.stat-card { border-left-color: var(--ft-navy); }
.login-page { background: var(--ft-navy); }
.login-icon img { display: block; margin: 0 auto 8px; }
.login-header h1 { color: var(--ft-navy); letter-spacing: -.01em; }
.meter-fill { background: var(--ft-navy); } .meter-warn { background: var(--ft-yellow); } .meter-bad { background: #dc2626; }
.dot-warn { background: var(--ft-yellow); }
a { color: var(--ft-navy); }
.badge-active { background: #E3F3EA; color: #1F6B3E; }
.job-log, .cc-box { background: var(--ft-navy-dark); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .form-grid-3 { grid-template-columns: 1fr; } }
/* M1 (v1.7.0): Mail-Bereich */
.tabs-bar { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; }
.tab-link .ico { flex: none; }
.tabs-right { margin-left: auto; }
.tab-link.active { color: var(--ft-navy); border-bottom-color: var(--ft-yellow); }
.tab-link:hover { color: var(--ft-navy); }
.in { width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 12.5px; }
.in-sm { min-width: 120px; }
.ta { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 13px; }
.tpl-item { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; font-size: 13px; border-left: 3px solid transparent; }
.tpl-item small { display: block; color: var(--text-muted); font-size: 11.5px; }
.tpl-item.active { background: rgba(18,49,77,.06); border-left-color: var(--ft-yellow); }
.tpl-item .badge { margin-right: 4px; }
.text-danger { color: #dc2626; }
.mail-strip { margin-bottom: 24px; }
/* M2/M3 (v1.8.0): Posteingang, Kundenakte */
.nav-pill { margin-left: auto; background: var(--ft-yellow); color: var(--ft-navy); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.row-unread td { background: #FFF8E6; font-weight: 500; }
/* v1.8.1: Einflieger (Toast) + Popup-Fenster */
.toast-container { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(18,49,77,.18); border-left: 4px solid var(--ft-navy); font-size: 13.5px; animation: toastSlideIn .3s ease; }
.toast-success { border-left-color: #16a34a; } .toast-success .toast-icon { color: #16a34a; }
.toast-error { border-left-color: #dc2626; } .toast-error .toast-icon { color: #dc2626; }
.toast-warning { border-left-color: var(--ft-yellow); } .toast-warning .toast-icon { color: var(--ft-yellow); }
.toast-text { flex: 1; } .toast-close { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 2px; }
.toast.removing { animation: toastSlideOut .3s ease forwards; }
@keyframes toastSlideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { to { transform: translateX(110%); opacity: 0; } }
/* Rueckfrage im eigenen Stil (v1.40.0) - ersetzt das Browser-confirm(). Frage fett, Beschreibung normal. */
.ft-ask { position: fixed; inset: 0; background: rgba(18,49,77,.45); z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ft-ask[hidden] { display: none; }
.ft-ask-box { width: min(460px, 100%); background: #fff; border-radius: 14px; padding: 22px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: toastSlideIn .18s ease; }
.ft-ask-title { margin: 0; font-weight: 700; font-size: 15.5px; color: var(--ft-navy); line-height: 1.4; }
.ft-ask-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.ft-ask-desc[hidden] { display: none; }
.ft-ask-input { width: 100%; margin-top: 12px; }
.ft-ask-input[hidden] { display: none; }
.ft-ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ft-modal { position: fixed; inset: 0; background: rgba(18,49,77,.45); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ft-modal[hidden] { display: none; }
.ft-modal-box { width: min(960px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.ft-modal-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--ft-navy); }
.ft-modal-head span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-modal-head a { color: var(--text-muted); display: inline-flex; }
#ft-modal-frame { flex: 1; border: 0; background: #F5F6F4; }
/* T1 (v1.10.0): Ticket-Verlauf */
.tk-thread { display: flex; flex-direction: column; gap: 12px; }
.tk-msg { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.tk-kunde { border-left: 4px solid var(--ft-yellow); background: #FFFBEF; }
.tk-team { border-left: 4px solid var(--ft-navy); }
.tk-internal { background: #F1F5F9; border-style: dashed; }
.tk-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.tk-body { font-size: 14px; line-height: 1.55; white-space: normal; }
/* L1 (v1.12.0): Sprach-Tabs */
.lang-tabs { display: flex; gap: 4px; margin: 6px 0 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lang-tab { border: 0; background: none; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.lang-tab.active { color: var(--ft-navy); border-bottom-color: var(--ft-yellow); font-weight: 600; }
.lang-tab small { color: var(--text-muted); font-weight: 400; }
table .lang-tabs { padding: 0 20px; }
.tk-files { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.tk-files a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; text-decoration: none; }
/* T4 (v1.14.0): Ablageort-Auswahl */
.store-opt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.store-opt input { margin-right: 6px; } .store-opt.active { border-color: var(--ft-navy); background: rgba(18,49,77,.04); } .store-opt.off { opacity: .55; cursor: not-allowed; }
.store-opt small { color: var(--text-muted); font-size: 12px; }
/* A1 (v1.16.0): Rechte-Matrix */
.perm-table th small { display: block; font-weight: 400; color: var(--text-muted); font-size: 11px; margin-top: 4px; }
.perm-table tr.perm-mod td { background: rgba(18,49,77,.05); padding: 8px 20px; }
.perm-table td small { display: block; font-size: 11.5px; }
.link-btn { border: 0; background: none; color: var(--ft-navy); cursor: pointer; font: inherit; font-size: 11px; text-decoration: underline; padding: 0; }
/* A1b (v1.16.2): Rollen & Rechte – Akkordeon und Schalter nach dem Tenant-Muster (feste Spaltenbreite 140 px je Rolle) */
.perm-roles-bar { display: flex; align-items: flex-start; padding: 12px 16px; background: #F5F6F4; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 10; }
.perm-roles-spacer { flex: 1; min-width: 260px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); align-self: center; }
.perm-role-col-head { width: 150px; min-width: 150px; text-align: center; padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--ft-navy); }
.perm-role-col-head input.in { text-align: center; font-weight: 600; font-size: 13px; }
.perm-role-col-head small { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 0 16px 16px; }
.accordion-item { border-bottom: 1px solid var(--border); } .accordion-item:last-child { border-bottom: none; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; background: #FAFBFC; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; color: var(--text); text-align: left; gap: 8px; }
.accordion-header:hover { background: #F1F4F7; }
.accordion-title { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.accordion-badge { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.accordion-chevron { display: flex; align-items: center; color: var(--text-muted); transition: transform .15s; }
.accordion-item:not(.open) .accordion-chevron { transform: rotate(-90deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.accordion-item.open > .accordion-body { max-height: 3000px; }
.perm-matrix { width: 100%; border-collapse: collapse; font-size: 14px; display: block; }
.perm-matrix tbody { display: block; }
.perm-matrix tbody tr { display: flex; align-items: center; border-bottom: 1px solid #EEF1F4; }
.perm-matrix tbody tr:last-child { border-bottom: none; } .perm-matrix tbody tr:hover { background: #F7F9FB; }
.perm-mod-row { background: #F5F6F4; }
.perm-action-cell { flex: 1; min-width: 260px; padding: 12px 16px; line-height: 1.35; }
.perm-action-desc { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.perm-check-cell { width: 150px; min-width: 150px; text-align: center; padding: 10px 6px; }
.perm-always { color: var(--ft-navy); opacity: .5; display: inline-flex; }
.perm-toggle { display: inline-block; cursor: pointer; vertical-align: middle; }
.perm-toggle input { display: none; }
.perm-toggle-track { display: block; width: 38px; height: 22px; background: #CBD5E1; border-radius: 999px; position: relative; transition: background .15s; }
.perm-toggle-track::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.perm-toggle input:checked + .perm-toggle-track { background: #16a34a; }
.perm-toggle input:checked + .perm-toggle-track::after { transform: translateX(16px); }
.sw-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }   /* v1.194.1: Schieber mit Beschriftung (Kundenwiki) */
.sw-row > label:last-child { cursor: pointer; }
.sw-days { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 4px 0; }
.perm-count { font-weight: 600; color: var(--ft-navy); }
.link-btn { border: 0; background: none; color: var(--ft-navy); cursor: pointer; font: inherit; font-size: 11px; text-decoration: underline; padding: 0; }
.check-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 0; }

/* ---- A2 (v1.17.0): Portal-Benutzer, Seiten vor der Anmeldung ---- */
.login-links { margin: 16px 0 0; text-align: center; font-size: 13px; }
.login-links a { color: var(--ft-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.login-links a:hover { text-decoration: underline; }
.login-form .hint { margin-bottom: 16px; line-height: 1.5; }
.users-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .users-grid { grid-template-columns: 1fr; } }
.card-body-flush { padding: 0; }
.users-table td small { font-size: 11.5px; color: var(--text-muted); font-weight: 400; }
.users-table .row-muted td { opacity: .62; }
.users-table .row-muted td.cell-actions { opacity: 1; }
.users-table .row-edit td { background: var(--ft-off, #F5F6F4); padding: 16px 18px; }
.users-table .row-edit .hint { margin: 10px 0 12px; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions .btn, .cell-actions form, .cell-actions details { vertical-align: middle; }
.cell-ellipsis { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-inline { display: inline; margin: 0; }
.form-plain { margin: 0; }
.nowrap { white-space: nowrap; }
.hint-pad { padding: 12px 18px 0; }

/* ============================================================
   Eingabefelder - EIN System (v1.17.2)
   Gilt fuer JEDES input/select/textarea im Inhaltsbereich und auf den Seiten vor der Anmeldung - nicht nur in .form-group.
   Vorher waren Felder ausserhalb von .form-group (Tabellen, Filterleisten, Kacheln) ungestylt (Browser-Optik).
   :where() haelt die Spezifitaet bei 0, damit gezielte Sonderfaelle (DB-Browser-Zellen, Rechte-Schalter) weiter gewinnen.
   ============================================================ */
:where(.main-content, .login-form) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea) {
    height: var(--ctl-h); padding: 0 12px; max-width: 100%; min-width: 0;
    border: 1px solid var(--ctl-border); border-radius: var(--ctl-radius); background: #fff; color: var(--text);
    font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s;
}
:where(.main-content, .login-form) :where(textarea) { height: auto; min-height: 84px; padding: 9px 12px; line-height: 1.5; }
:where(.main-content, .login-form) :where(select) {
    appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312314D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
:where(.main-content, .login-form) :where(select[multiple]) { height: auto; padding: 6px; background-image: none; }
:where(.main-content, .login-form) :where(input, select, textarea):focus { outline: none; border-color: var(--ft-yellow); box-shadow: var(--focus-ring); }
:where(.main-content) :where(input, select, textarea):disabled { background: var(--ft-off); color: var(--text-muted); cursor: not-allowed; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group select, .form-group textarea { width: 100%; }
/* kompakt: in Tabellen, Kartenkoepfen, Filterleisten, Werkzeug-Kacheln und Inline-Formularen */
.data-table select, .data-table input:not([type="checkbox"]):not([type="radio"]), .card-header select, .card-header input:not([type="checkbox"]), .filter-bar select, .filter-bar input,
.tool-card input[type="text"], .form-inline-row input, .form-inline-row select, .inline-form select { height: var(--ctl-h-sm); font-size: 12.5px; padding-left: 10px; }
.tool-card input[type="text"] { width: 100%; }
/* v1.319.1 Bearbeitbare Tabelle (Variante .dt-edit, z. B. Einstellungen -> Feldbreiten): Zahlen schmal, Text und Auswahl fuellen die Zelle -
   nichts ragt aus dem Block (Ralf: "nicht als Endlosliste, sondern als Block") */
.data-table.dt-edit input[type="number"] { width: calc(4ch + 26px); padding: 0 6px; text-align: right; }
.data-table.dt-edit input[type="text"] { width: 100%; min-width: 0; }
.data-table.dt-edit select { width: 100%; min-width: 0; }
.data-table.dt-edit td, .data-table.dt-edit th { padding-left: 6px; padding-right: 6px; }
.login-form input { height: 44px; font-size: 15px; width: 100%; }
/* Datei-Auswahl: sieht aus wie ein Feld, der Browser-Knopf darin wie ein neutraler .btn-sm */
.main-content input[type="file"] { height: var(--ctl-h); max-width: 100%; min-width: 0; padding: 3px; border: 1px solid var(--ctl-border); border-radius: var(--ctl-radius); background: #fff; font: inherit; font-size: 12.5px; color: var(--text-muted); cursor: pointer; }
.main-content input[type="file"]::file-selector-button { height: 30px; margin-right: 10px; padding: 0 12px; border: 1px solid var(--ft-navy); border-radius: 6px; background: #fff; color: var(--ft-navy); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.main-content input[type="file"]::file-selector-button:hover { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; }
/* Werkzeug-Kacheln: Knopf rechts unten, gleiche Art wie ueberall (Aktion = primary) */
.tool-card .btn { align-self: flex-end; margin-top: 4px; }
/* Zeilenformulare (Kundenakte: Status, Lizenz, Kontingent, Pfad, Firma, Code): Beschriftung links in fester Spalte, Feld fuellt,
   Knopf rechts, Hinweise in eigener Zeile darunter - nichts ragt mehr aus der Karte */
.inline-form { flex-wrap: wrap; row-gap: 4px; }
.inline-form > label { flex: 0 0 190px; white-space: normal; }
.inline-form > label.perm-toggle { flex: 0 0 auto; }   /* v1.434.0: Schieber im Zeilenformular nicht auf Spaltenbreite ziehen (Webseite: Coming soon, Suchmaschinen) */
.inline-form > input:not([type="hidden"]), .inline-form > select { flex: 1 1 140px; min-width: 0; }
.inline-form > div, .inline-form > small { flex: 1 1 100%; padding-left: 200px; }
@media (max-width: 900px) { .inline-form > label { flex-basis: 100%; } .inline-form > div, .inline-form > small { padding-left: 0; } }
/* Karten direkt untereinander im Inhaltsbereich bekommen immer Abstand (in Rastern regelt das gap) */
.content-body > .card + .card { margin-top: 20px; }
/* Gefahrenzone (Kunde/Server loeschen): eine Optik statt Inline-Farben */
.card-danger { border: 1px solid #fca5a5; }
.card-danger > .card-header { background: #fef2f2; }
.card-danger > .card-header h2 { color: #991b1b; }
.card-danger .alert { margin-top: 12px; }
.danger-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.danger-row .form-group { flex: 0 1 320px; }
.plain-list { margin: 8px 0 0 18px; padding: 0; } .plain-list li { margin-bottom: 4px; }
.activity-icon .ico { color: var(--ft-navy); }
.login-form .btn { height: 44px; font-size: 14px; }
/* Seitenkopf v1.17.3: Zurueck-Knopf immer an derselben Stelle - links vom Titel (header.php, $backLink) */
.header-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-title h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.btn-back { flex: none; }
/* farbige Knoepfe behalten beim Ueberfahren ihre Farbe (werden dunkler), nur sekundaere fuellen sich Navy */
.btn-danger:hover  { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.btn-warning:hover, .btn-warn:hover { background: var(--ft-yellow); border-color: var(--ft-yellow); color: var(--ft-ink); }
.btn-success:hover { background: var(--success); border-color: var(--success); color: #fff; }
.btn-info:hover    { background: var(--info);    border-color: var(--info);    color: #fff; }
.info-item .btn { align-self: flex-start; }
/* Navigation v1.18.0: Klappgruppen. Offen = Klasse .open (Server setzt sie fuer die Gruppe der aktuellen Seite, admin.js merkt den Rest je Benutzer) */
.nav-group { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.nav-group-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 14px; margin-top: 4px; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.72); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.nav-group-head:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-group-head:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-group-chevron { display: inline-flex; transition: transform .18s; transform: rotate(-90deg); }
.nav-group.open .nav-group-chevron { transform: rotate(0deg); }
.nav-group-count { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.4); }
.nav-group-sum { letter-spacing: 0; }
.nav-group.open .nav-group-count, .nav-group.open .nav-group-sum { display: none; }   /* offen: die Zaehler stehen an den Eintraegen selbst */
.nav-group-items { display: none; padding-bottom: 4px; }
.nav-group.open .nav-group-items { display: block; }
.nav-group-items .nav-item { padding-left: 20px; }
.nav-group.has-active:not(.open) .nav-group-head { color: var(--ft-yellow); }          /* zugeklappt, aber die aktuelle Seite liegt darin */
/* Dashboard v1.19.0: Kennzahl-Kacheln (Entwurf A) - sechs gleiche Kacheln, jede ein Link; .kpi-hot = offene Arbeit (gelber Rand) */
.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1500px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 18px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--ft-navy); color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.kpi-tile:hover { box-shadow: 0 6px 18px rgba(18, 49, 77, .16); transform: translateY(-1px); }
.kpi-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.kpi-hot { border-top-color: var(--ft-yellow); }
.kpi-head { display: flex; align-items: center; gap: 10px; color: var(--ft-navy); min-width: 0; }
.kpi-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--ft-grey); }
.kpi-label { font-size: 13.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-go { margin-left: auto; display: inline-flex; color: var(--text-muted); transition: transform .15s, color .15s; }
.kpi-tile:hover .kpi-go { color: var(--ft-navy); transform: translateX(3px); }
.kpi-value { font-size: 32px; font-weight: 700; line-height: 1; color: var(--ft-navy); }
.kpi-sub { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Nur Ansicht (v1.20.0): Hinweis oben, gesperrte Bedienelemente sichtbar, aber erkennbar aus */
.ro-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--ctl-border); border-left: 4px solid var(--ft-yellow); border-radius: var(--radius); background: #fff; color: var(--ft-navy); font-size: 13px; font-weight: 600; }
form.is-locked input:disabled, form.is-locked select:disabled, form.is-locked textarea:disabled { background: var(--ft-off); color: var(--text-muted); cursor: not-allowed; }
[data-locked] .btn:disabled, [data-locked] .btn.is-locked { opacity: .45; cursor: not-allowed; }
[data-locked] button[onclick]:not(.accordion-header):not([data-ro-ok]) { pointer-events: none; }   /* auch fuer spaeter per Skript eingefuegte Knoepfe */
/* Seitenleiste unten v1.21.0: eigener Name = Link zu "Mein Konto" (Sprache, Passwort, spaeter 2FA/Sitzungen) */
.admin-info-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 4px; border-radius: 8px; color: #fff; text-decoration: none; transition: background-color .15s; }
.admin-info-link:hover, .admin-info-link.active { background: rgba(255,255,255,.08); }
.admin-info-link.active { box-shadow: inset 3px 0 0 var(--ft-yellow); }
.admin-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12); }
.admin-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-who .admin-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-who .admin-badge { align-self: flex-start; }
.admin-gear { margin-left: auto; display: inline-flex; opacity: .55; transition: opacity .15s, transform .2s; }
.admin-info-link:hover .admin-gear { opacity: 1; transform: rotate(30deg); }
/* Icons in Kartenkoepfen v1.21.0: gleiche Optik wie in den Dashboard-Kacheln (Navy-Icon auf grauem Feld) - EINE Regel fuer alle Karten */
.card-header h2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-header h2 > svg.ico:first-child { box-sizing: content-box; flex: none; width: 18px; height: 18px; padding: 8px; border-radius: 9px; background: var(--ft-grey); color: var(--ft-navy); }
.card-danger > .card-header h2 > svg.ico:first-child { background: #fee2e2; color: #991b1b; }
.form-grid + .hint { margin-top: 12px; }
/* [hidden] gilt immer - auch wenn eine Klasse display:flex/grid setzt */
[hidden] { display: none !important; }
/* ---- Assistent "Kunde einrichten" (tenants/wizard.php) - vorher als <style> in der Seite, jetzt mit Marken-Tokens ---- */
.wiz { max-width: 780px; }
.wiz-intro { margin: 0 0 22px; }
.wiz-steps { display: flex; margin-bottom: 26px; }
.wiz-sb { flex: 1; text-align: center; position: relative; padding-top: 34px; font-size: 13px; color: var(--text-muted); }
.wiz-sb::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #cbd5e1; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; z-index: 1; }
.wiz-sb::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #cbd5e1; }
.wiz-sb:first-child::after { display: none; }
.wiz-sb.active::before { background: var(--ft-navy); }
.wiz-sb.done::before { content: "\2713"; background: var(--success); }
.wiz-sb.active { color: var(--text); font-weight: 600; }
.wiz-step { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; opacity: .55; transition: opacity .2s; }
.wiz-step.active { opacity: 1; box-shadow: 0 4px 14px rgba(18, 49, 77, .08); border-color: var(--ctl-border); }
.wiz-step.done { opacity: 1; }
.wiz-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.wiz-step.active .wiz-head, .wiz-step.done .wiz-head { border-bottom: 1px solid var(--border); }
.wiz-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ft-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.wiz-step.done .wiz-num { background: var(--success); }
.wiz-ttl { font-size: 16px; font-weight: 600; }
.wiz-body { padding: 14px 20px 20px; display: none; }
.wiz-step.active .wiz-body { display: block; }
.wiz-sub { font-weight: 600; margin-bottom: 6px; } .wiz-gap { margin-top: 14px; }
.wiz-srv { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px; margin: 10px 0; cursor: pointer; transition: border-color .15s, background-color .15s; }
.wiz-srv:hover, .wiz-srv:has(input:checked) { border-color: var(--ft-navy); background: var(--ft-off); }
.wiz-srv input, .wiz-mod input { width: 18px; height: 18px; flex: none; accent-color: var(--ft-navy); }
.wiz-srv .nm { font-weight: 600; } .wiz-srv .meta { font-size: 13px; color: var(--text-muted); }
.wiz-mod { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.wiz-cred { background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.wiz-cred .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #dcfce7; }
.wiz-cred .row:last-child { border-bottom: none; }
.wiz-cred .k { color: #166534; font-size: 14px; }
.wiz-cred code { background: #fff; padding: 2px 8px; border-radius: 5px; border: 1px solid #bbf7d0; }
.wiz-cred .pw { background: #fef9c3; border-color: #fde047; font-weight: 600; }
.wiz-status { padding: 14px 16px; border-radius: 8px; font-size: 14px; margin: 12px 0; display: none; }
.wiz-status.show { display: block; }
.wiz-status.ok { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.wiz-status.fail { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.wiz-status.wait { background: var(--ft-off); border: 1px solid var(--ctl-border); color: var(--ft-navy); }
.wiz-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--ctl-border); border-top-color: var(--ft-navy); border-radius: 50%; animation: wizspin .7s linear infinite; vertical-align: middle; margin-right: 7px; }
@keyframes wizspin { to { transform: rotate(360deg); } }
.wiz-err { color: #b91c1c; font-size: 14px; margin-top: 8px; min-height: 1px; }
.wiz-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
/* ---- Server-Updates (servers/updates.php) - vorher 76 Inline-Styles ---- */
.upd-target { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.upd-strong { font-weight: 600; }
.upd-ok { color: var(--success); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.upd-bad { color: var(--danger); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.upd-warn { color: #b45309; font-weight: 600; font-size: 13px; }
.upd-results { padding: 8px 16px 14px; }
.upd-result { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.upd-result > div { flex: 1 1 100%; }
.upd-all { margin: 0 0 10px; font-size: 13px; }
.upd-panel { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.upd-panel.is-offline .upd-head { opacity: .6; }
.upd-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; flex-wrap: wrap; transition: background-color .15s; }
.upd-head:hover { background: var(--ft-off); }
.upd-head input[type="checkbox"] { width: 17px; height: 17px; flex: none; accent-color: var(--ft-navy); }
.upd-chevron { display: inline-flex; color: var(--ft-navy); transform: rotate(-90deg); transition: transform .18s; }
.upd-panel.open .upd-chevron { transform: rotate(0deg); }
.upd-name { flex: 1 1 180px; min-width: 150px; } .upd-name small { display: block; font-size: 12px; }
.upd-col { min-width: 150px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.upd-body { border-top: 1px solid var(--border); padding: 4px 14px 14px; }
.upd-sub { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ft-navy); }
.upd-body .data-table code { font-size: 12px; }
.upd-empty { text-align: center; padding: 18px; }
.upd-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upd-right { margin-left: auto; }
/* ---- Server-Details (servers/detail.php): Kunden-Karten und Logdateien - vorher Inline-Styles und <style>-Insel ---- */
.sd-tenant { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.sd-tenant-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sd-tenant-name { font-weight: 600; font-size: 15px; color: var(--ft-navy); }
.sd-facts { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 13px; }
.sd-fact { min-width: 90px; } .sd-fact-wide { flex: 1 1 220px; min-width: 220px; }
.sd-fact-label { font-size: 11px; color: var(--text-muted); margin-bottom: 3px; }
.sd-fact span { font-size: 11px; }
.sd-wrap { overflow-wrap: anywhere; } .sd-normal { font-weight: 400; } .sd-gap, .sd-mods { margin-top: 14px; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sd-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ft-off); border: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
.log-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.log-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--card-bg); border: 0; cursor: pointer; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; color: var(--text); text-align: left; transition: background-color .15s; }
.log-head:hover { background: var(--ft-off); }
.log-toggle { display: inline-flex; color: var(--ft-navy); transform: rotate(-90deg); transition: transform .18s; }
.log-head.open .log-toggle { transform: rotate(0deg); }
.log-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--ft-off); border-top: 1px solid var(--border); }
.log-meta { font-size: 12px; color: var(--text-muted); }
.log-console { margin: 0; padding: 12px; background: var(--ft-navy-dark); color: #E8EDF1; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12px; line-height: 1.5; white-space: pre; overflow: auto; max-height: 360px; }
/* Texte Kunden-Login (tools/gateway-texts.php) */
.gwt-group { margin: 22px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ft-navy); }
.gwt-field { margin-bottom: 10px; }
.gwt-row { display: flex; gap: 8px; align-items: flex-start; } .gwt-row input, .gwt-row textarea { flex: 1 1 auto; width: auto; min-width: 0; } .gwt-row .btn { flex: none; }
.lang-tabs { margin-bottom: 6px; }
/* ---- Wartungsmodus (wartung.php) - vorher <style>-Insel und 14 Inline-Styles ---- */
.maint-clock { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 10px 14px; margin-bottom: 16px; background: var(--ft-off); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.maint-clock strong { font-variant-numeric: tabular-nums; }
.maint-switch { margin-bottom: 2px; font-size: 14px; } .maint-notify { margin: 14px 0 4px; }
.maint-sub { margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ft-navy); }
.maint-banner { display: flex; align-items: flex-start; gap: 10px; max-width: 440px; padding: 12px 14px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; line-height: 1.5; }
.maint-banner .ico { flex: none; margin-top: 2px; }
.maint-card h2 small { font-size: 12.5px; font-weight: 400; }
.maint-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.maint-preview { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .maint-preview p { margin: 0; }
.maint-buttons { display: flex; gap: 8px; flex-wrap: wrap; } .maint-card .lang-tabs { margin-bottom: 6px; }
.alert-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* ---- A3 (v1.23.0): Zwei-Faktor-Anmeldung und Sitzungen ---- */
.input-code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 20px !important; letter-spacing: .3em; text-align: center; }
.twofa-steps { margin: 0 0 14px 18px; padding: 0; font-size: 13.5px; line-height: 1.7; }
.twofa-setup { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.twofa-qr { width: 176px; height: 176px; flex: none; padding: 6px; background: #fff; border: 1px solid var(--ctl-border); border-radius: 8px; } .twofa-qr svg { width: 100%; height: 100%; display: block; }
.twofa-secret { display: block; margin-top: 4px; padding: 8px 10px; background: var(--ft-off); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; letter-spacing: .06em; word-break: break-all; }
.twofa-confirm { max-width: 260px; }
.twofa-codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 16px; } .twofa-codes code { padding: 8px; text-align: center; background: var(--ft-off); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
@media (max-width: 700px) { .twofa-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.users-table td small .ico { vertical-align: -2px; }
/* Mein Konto v1.23.1: zwei Spalten, in jeder Spalte stapeln sich die Karten unabhaengig (links Angaben/2FA/Sitzungen, rechts Passwort/E-Mail) */
.profile-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1100px) { .profile-cols { grid-template-columns: minmax(0, 1fr); } }
/* Sitzungsliste v1.24.0: je Sitzung eine Zeile mit Geraet, Adresse/Land, Anmeldeart, Zeiten */
.sess-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.sess-item.is-current { border-color: #86efac; box-shadow: inset 3px 0 0 #16a34a; }
.sess-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--ft-grey); color: var(--ft-navy); }
.sess-main { flex: 1 1 auto; min-width: 0; }
.sess-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.sess-title form.sess-end { margin-left: auto; }
.sess-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.sess-grid div { min-width: 0; } .sess-grid dt { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.sess-grid dd { margin: 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; } .sess-grid dd small { display: block; font-size: 12px; color: var(--text-muted); }
@media (max-width: 1400px) { .sess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sess-warn { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px; } .sess-warn .ico { flex: none; margin-top: 1px; }
/* Aufklappbarer Abschnitt in einer Karte: <details class="fold"><summary>...</summary><div class="fold-body">...</div></details> (ohne Skript) */
.fold { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.fold > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 13.5px; color: var(--ft-navy); transition: background-color .15s; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--ft-off); }
.fold > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fold-chevron { display: inline-flex; transform: rotate(-90deg); transition: transform .18s; }
.fold[open] .fold-chevron { transform: rotate(0deg); }
.fold[open] > summary { border-bottom: 1px solid var(--border); }
.fold > summary .badge { margin-left: auto; }
.fold-body .hint { padding: 10px 14px 12px; margin: 0; }
/* ---- kleine Helfer (v1.24.2) statt Inline-Styles: Ausrichtung, Abstaende, Zeilen ---- */
.ta-right { text-align: right; }
.ta-center { text-align: center; }
.mono { font-family: ui-monospace, Consolas, Menlo, monospace; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-8 { margin-bottom: 8px; }
.ml-12 { margin-left: 12px; }
.tiny { font-size: 11px; }
.fw-normal { font-weight: 400; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.text-success { color: var(--success); }
.text-warning { color: #b45309; }
/* Sprachumschalter im Kartenkopf der Kunden-Texte (v1.46.0) - klar kleiner als die Reiterleiste der Seite */
.gwt-lang { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.gwt-lang .lang-tabs { border: 0; margin: 0; gap: 2px; }
.gwt-lang .lang-tab { padding: 3px 9px; font-size: 12px; border-radius: 999px; }

/* ---- DB-Browser (tools/db-browser.php) - vorher 75 Inline-Styles ---- */
.dbb-w40 { width: 40px; } .dbb-w50 { width: 50px; }
.dbb-dump { width: 100%; height: 420px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--ft-off); font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12px; white-space: pre; overflow: auto; resize: vertical; }
.dbb-drop { width: 100%; padding: 8px; border: 2px dashed var(--ctl-border); border-radius: var(--radius); cursor: pointer; }
.dbb-pad-lg { padding: 30px; } .dbb-empty { padding: 20px; text-align: center; color: var(--text-muted); }
.dbb-pager { padding: 12px 16px; border-top: 1px solid var(--border); }
.dbb-scroll-x { overflow-x: auto; }
.dbb-result { max-height: 400px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.dbb-sep { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.dbb-note { margin-bottom: 16px; padding: 10px 14px; font-size: 13px; }
.dbb-rowhead { font-weight: 600; background: var(--ft-off); } .dbb-block { display: block; margin-top: 6px; }
.dbb-danger-group { display: flex; gap: 4px; padding-left: 8px; border-left: 1px solid var(--border); }
.dbb-toggle { cursor: pointer; }
/* Assistent "Server einrichten" (servers/wizard.php) - nutzt .wiz; breiter wegen Cloud-Config und Live-Log */
.wiz-wide { max-width: 980px; }
.wiz .cc-box { width: 100%; height: 260px; border: 1px solid var(--ctl-border); border-radius: 8px; }
.sw-live-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; } .sw-live-head .sw-link { margin-left: auto; }
.sw-log { height: 380px; max-height: none; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Ladeanzeige (assets/js/busy.js) - seit v1.123.0, Ralf 29.09.2026: "damit der User weiss, es passiert was" ----
   Balken oben (Takt-Gelb), Kreisel im Knopf und im Suchfeld, Hinweis ueber dem Inhalt ab 400 ms. Gleiche Regeln wie styles.css der Kunden-App. */
.ft-busy-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--ft-yellow); z-index: 10000; opacity: 0; pointer-events: none; }
.ft-busy-bar.is-on { opacity: 1; animation: ft-busy-grow 8s cubic-bezier(.1, .7, .3, 1) forwards; }
.ft-busy-bar.is-done { opacity: 0; width: 100%; transition: width .2s, opacity .3s .2s; }
@keyframes ft-busy-grow { 0% { width: 0; } 100% { width: 92%; } }
@keyframes ft-busy-spin { to { transform: rotate(360deg); } }
.ft-busy-ov { position: fixed; inset: 0; z-index: 9990; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(245, 246, 244, .8); color: var(--ft-navy); font-size: 15px; text-align: center; padding: 24px; }
.ft-busy-ov.is-on { display: flex; }
.ft-busy-spin { will-change: transform; width: 36px; height: 36px; border: 3px solid var(--ft-yellow); border-right-color: transparent; border-radius: 50%; animation: ft-busy-spin .8s linear infinite; }
.ft-busy-title { font-weight: 600; }
.ft-busy-hint { font-size: 13px; color: var(--text-muted); }
.btn.is-busy { cursor: progress; }
.btn.is-busy > svg, .btn.is-busy > .ico { display: none; }
.ft-busy-sp { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ft-busy-spin .7s linear infinite; flex: none; }
.search-box.is-busy { position: relative; }
.search-box.is-busy::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid var(--ft-yellow); border-right-color: transparent; border-radius: 50%; animation: ft-busy-spin .7s linear infinite; }
/* "weniger Bewegung" (Windows: Animationseffekte aus): Balken steht, Kreisel dreht LANGSAMER statt gar nicht - ein stehender
   Kreis sagt nichts (v1.84.1/v1.123.1, Ralf: "der Kreis dreht sich nicht"). Drehung ueber transform = laeuft auch waehrend des Ladens. */
@media (prefers-reduced-motion: reduce) {
    .ft-busy-bar.is-on { animation: none; width: 100%; opacity: .8; }
    .ft-busy-spin, .ft-busy-sp, .search-box.is-busy::after { animation-duration: 1.6s; }
}

/* ============================================================
   v1.168.0 GLOBALE PILLEN-REGEL (Ralf 01.10.2026, Bedien-Muster 79 - wie in der Kunden-App) - steht bewusst am Ende und gilt fuer
   JEDE Pille: .ft-pill (Baustein StatusPill), .badge (Altbestand), .srv-badge (Serverzustand). Ein Aufbau: Symbol + Text, eine Hoehe,
   eine Schrift, ein Rand, fuenf Toene. Groessen-Varianten (badge-lg, tiny) gibt es nicht mehr - nicht neu anlegen.
   ============================================================ */
:root { --pill-ok-bg: #dcfce7; --pill-ok-fg: #166534; --pill-ok-bd: #bbf7d0; --pill-info-bg: #e0f2fe; --pill-info-fg: #075985; --pill-info-bd: #bae6fd;
        --pill-warn-bg: #fef3c7; --pill-warn-fg: #92400e; --pill-warn-bd: #fde68a; --pill-danger-bg: #fee2e2; --pill-danger-fg: #991b1b; --pill-danger-bd: #fecaca;
        --pill-neutral-bg: #f1f5f9; --pill-neutral-fg: #475569; --pill-neutral-bd: #e2e8f0; }
.ft-pill, .badge, .srv-badge {
    display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
    padding: 1px 9px 1px 7px; margin: 0; border-radius: 999px; border: 1px solid transparent;
    font-size: 13px; font-weight: 600; line-height: 1.6;   /* wie Kunden-App: 25 px hoch, 13 px Schrift */ letter-spacing: 0; white-space: nowrap; text-transform: none;
}
.ft-pill > svg, .badge > svg, .srv-badge > svg { flex: none; width: 15px; height: 15px; }
.ft-pill-count { padding: 1px 8px; }
.badge.badge-lg, .badge.tiny { font-size: 13px; padding: 1px 9px 1px 7px; }
.ft-pill-ok, .badge-active, .srv-badge.ok { background: var(--pill-ok-bg); color: var(--pill-ok-fg); border-color: var(--pill-ok-bd); }
.ft-pill-info, .badge-role { background: var(--pill-info-bg); color: var(--pill-info-fg); border-color: var(--pill-info-bd); }
.ft-pill-warn, .badge-trial, .srv-badge.warn { background: var(--pill-warn-bg); color: var(--pill-warn-fg); border-color: var(--pill-warn-bd); }
.ft-pill-danger, .badge-suspended, .srv-badge.crit { background: var(--pill-danger-bg); color: var(--pill-danger-fg); border-color: var(--pill-danger-bd); }
.ft-pill-neutral, .badge-cancelled, .badge:not([class*="badge-"]) { background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); border-color: var(--pill-neutral-bd); }
.ft-pill.mono > span { font-family: var(--font-mono, ui-monospace, monospace); font-weight: 500; }

/* v1.222.0: Mini-Editor Paket-Beschreibung (Ralf: "etwas das ich den text huebsch aufbereiten kann") */
.ft-rte { border: 1px solid var(--border); border-radius: var(--radius, 8px); overflow: hidden; background: var(--bg-card, #fff); }
.ft-rte-leiste { display: flex; gap: 2px; flex-wrap: wrap; padding: 4px; border-bottom: 1px solid var(--border); background: var(--bg-hover, rgba(0,0,0,.03)); }
.ft-rte-feld { min-height: 110px; max-height: 320px; overflow-y: auto; padding: 10px 12px; outline: none; }
.ft-rte-feld h4 { margin: .5em 0 .25em; }
.ft-rte-feld ul, .ft-rte-feld ol { margin: .25em 0 .5em 1.2em; }
.ft-rte-feld p { margin: 0 0 .5em; }
/* v1.255.0: Kategorie-Muster - Einrueckung je Ebene und Bild-Vorschau im Baum (tools/kategorie-muster.php) */
.cp-d0 { font-weight: 600; } .cp-d1 { padding-left: 18px; } .cp-d2 { padding-left: 36px; } .cp-d3 { padding-left: 54px; }
.cp-thumb { width: 40px; height: 40px; border-radius: 8px; display: block; }
/* v1.258.0: Kategorie-Muster als Akkordeon je Produktgruppe - grosse Gruppen nicht abschneiden; Knopf "Bild hinzufuegen/tauschen" je Zeile */
.accordion.cp-acc .accordion-item.open > .accordion-body { max-height: none; }
/* v1.293.0: Akkordeon ohne Hoehengrenze und buendig im Kartenrumpf (lange Listen in einer Gruppe, z. B. Kundenwiki -> Texte) - sonst schneidet max-height 3000px ab */
.accordion.accordion-free .accordion-item.open > .accordion-body { max-height: none; }
.accordion.accordion-free { margin: 12px 0 0; }   /* buendig im Kartenrumpf (Grundform haengt mit 16 px Rand in randlosen Karten) */
/* v1.293.0: Kundenwiki -> Texte - feste Spalten, damit Start-Tabelle und alle Gruppen-Tabellen untereinander fluchten (Ralf 05.10.2026) */
.data-table.tbl-wiki-texte { table-layout: fixed; }
.tbl-wiki-texte th:nth-child(1) { width: 46%; } .tbl-wiki-texte th:nth-child(2) { width: 14%; } .tbl-wiki-texte th:nth-child(3) { width: 18%; }
.tbl-wiki-texte td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v1.294.0: Kundenwiki -> Banner der Startseite - Vorschau eines Bildes im Format des Banners (16:5) */
.bn-thumb { display: block; width: 160px; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--ft-off); }
.kz-prev { display: block; height: 28px; width: auto; }   /* v1.298.0 Vorschau der Kennzeichnung (SVG aus assets/wiki-kennzeichen) */
.accordion.cp-acc .accordion-title .cp-thumb { width: 32px; height: 32px; }
.cp-imgcell { width: 56px; } .cp-noimg { color: var(--text-muted); }
.cp-acts label.btn { cursor: pointer; } .cp-acts { justify-content: flex-end; }
/* v1.259.0: Kategorie-Muster als SVG-Satz - Fassung "dunkel" auf dunklem Grund pruefen, Gewerk-Symbol, Stil-Umschalter */
.cp-bg-dunkel, .cp-gsym-big.cp-svg-dunkel { background: #0B172B; border-radius: 8px; }
.cp-gsym { vertical-align: middle; margin-right: 6px; }
.cp-switch { flex-wrap: wrap; margin-bottom: 10px; }
.cp-hsym { display: inline-flex; padding: 2px; }
/* v1.261.0: Symbol-Archiv - Raster der Symbole je Gruppe, Satz-Reiter, "Neues Symbol" */
.is-sets { margin-bottom: 12px; flex-wrap: wrap; }
.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.is-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--border); border-radius: 8px; }
.is-name { font-size: 11px; text-align: center; word-break: break-all; }
.is-add { flex-wrap: wrap; margin: 8px 0 12px; }
/* v1.270.0: ANSCHAUTAFELN (tools/oberflaeche.php, assets/js/oberflaeche.js) - Bild der Kunden-App/des Portals mit Markierungen je CSS-Block.
   Farben der Stufen: Grundlage grau, Baustein Navy, Bereich Gelb, ausserhalb der Sperre Rot - wie die Pillen (UiBoards::ART). */
.ob-standline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
.ob-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.ob-switch { display: flex; gap: 6px; }
.ob-pick select { min-width: 280px; }
.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ob-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.ob-side .card { margin-bottom: 0; }
.ob-stage { position: relative; line-height: 0; cursor: crosshair; background: var(--ft-grey); }
.ob-stage img { display: block; width: 100%; height: auto; }
.ob-layer { position: absolute; inset: 0; pointer-events: none; }
.ob-r { position: absolute; box-sizing: border-box; border-radius: 3px; }
.ob-all .ob-r { outline: 1px dashed rgba(23, 33, 43, .45); }
.ob-all .ob-r-baustein { outline-color: rgba(18, 49, 77, .7); }
.ob-all .ob-r-bereich { outline-color: rgba(194, 120, 0, .8); }
.ob-all .ob-r-extern { outline-color: rgba(220, 38, 38, .8); }
.ob-r.ob-hov { outline: 2px solid rgba(242, 169, 0, .75); }
.ob-r.ob-hit { outline: 3px solid var(--ft-yellow); outline-offset: 1px; box-shadow: 0 0 0 5px rgba(242, 169, 0, .22); }
.ob-dim .ob-r.ob-hit { background: rgba(242, 169, 0, .08); }
.ob-tag { position: absolute; top: 2px; left: 2px; line-height: 1.2; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
    background: var(--ft-navy); color: var(--ft-yellow); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ob-brief-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 16px; }
.ob-num { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--ft-grey); color: var(--text); }
.ob-num-baustein { background: var(--ft-navy); color: var(--ft-yellow); }
.ob-num-bereich { background: var(--ft-yellow); color: var(--ft-ink, #17212B); }
.ob-num-extern { background: var(--danger); color: #fff; }
.ob-dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: 13px; }
.ob-dl dt { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.ob-dl dd { margin: 0; word-break: break-word; }
.ob-warn { color: var(--danger); font-weight: 600; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 2px 10px 2px 3px; font-size: 13px; cursor: pointer; }
.ob-chip i { font-style: normal; font-size: 11px; font-weight: 800; min-width: 24px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--ft-grey); }
.ob-chip-baustein i { background: var(--ft-navy); color: var(--ft-yellow); }
.ob-chip-bereich i { background: var(--ft-yellow); color: var(--ft-ink, #17212B); }
.ob-chip-extern i { background: var(--danger); color: #fff; }
.ob-chip:hover, .ob-chip[aria-pressed="true"] { border-color: var(--ft-yellow); box-shadow: 0 0 0 2px rgba(242, 169, 0, .35); }
.ob-link { display: block; }
.ob-say { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--ft-off, #F5F6F4); border-left: 3px solid var(--ft-yellow); }
.ob-say-text { margin: 4px 0 8px; font-size: 13px; }
.ob-wish-in { width: 100%; margin-bottom: 8px; resize: vertical; }
.ob-say-bar { justify-content: flex-end; }
.ob-alltext { width: 100%; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }
.ob-wish { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.ob-wish-done { opacity: .65; }
.ob-wish-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ob-wish-acts { margin-left: auto; display: flex; gap: 6px; }
.ob-wish-text { margin: 8px 0 4px; font-size: 14px; }
.ob-compare-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ob-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-compare .ob-stage { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 4px; }
.ob-steps { margin: 0 0 12px 18px; padding: 0; font-size: 14px; }
.ob-steps li { margin-bottom: 6px; }
@media (max-width: 1100px) { .ob-grid, .ob-compare { grid-template-columns: 1fr; } .ob-side { position: static; max-height: none; } }
/* v1.270.1: Steckbrief mit Wunsch als schwebendes Fenster rechts (Ralf: "wo kann ich Fragen eingeben ... Popup") - auch bei Zoom/schmalem Fenster sichtbar */
.ob-brief.ob-pop { position: fixed; right: 20px; top: 84px; width: 400px; max-width: calc(100vw - 40px); max-height: calc(100vh - 104px); overflow-y: auto; z-index: 150;
    box-shadow: 0 12px 36px rgba(15, 26, 36, .28); border: 2px solid var(--ft-yellow); }
.ob-close { margin-left: auto; font-size: 16px; line-height: 1; }
.ob-hint { display: inline-flex; align-items: center; gap: 4px; }
/* v1.271.0: Bloecke des Kundenwikis (fieldtakt-handbuch) auf den Anschautafeln - Gruen wie die Pille ok */
.ob-all .ob-r-wiki { outline-color: rgba(22, 163, 74, .8); }
.ob-num-wiki, .ob-chip-wiki i { background: var(--success); color: #fff; }
/* v1.272.0: Texte (Systemnamen) auf den Anschautafeln - Violett, damit sie sich von den Bloecken abheben */
.ob-all .ob-r-text { outline-color: rgba(124, 58, 237, .75); }
.ob-num-text, .ob-chip-text i { background: #7C3AED; color: #fff; }
.ob-find input { width: 220px; }
.ob-searchform { display: flex; gap: 8px; margin-bottom: 6px; }
.ob-searchform input { flex: 1 1 auto; }

/* v1.273.0: AUFTRAG (Maske mit Bauplan und Regeln) und Reiter REGELN der Anschautafeln */
.ob-order-ov { position: fixed; inset: 0; z-index: 9000; background: rgba(15, 26, 36, .45); display: grid; place-items: center; padding: 20px; }
.ob-order { width: min(1180px, 96vw); max-height: 92vh; display: flex; flex-direction: column; margin: 0; }
.ob-order .card-header h2 { font-size: 16px; }
.ob-order-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; overflow: auto; }
.ob-order-form textarea, .ob-order-form select { width: 100%; }
.ob-order-opts { display: flex; flex-direction: column; gap: 6px; }
.ob-order-text { width: 100%; height: 58vh; resize: vertical; }
.ob-order-foot { padding: 10px 16px; border-top: 1px solid var(--border); }
.ob-artbar { flex-wrap: wrap; margin: 0 0 12px; }
.ob-rules { list-style: none; margin: 0; padding: 0; }
.ob-rule { display: flex; gap: 10px; align-items: flex-start; padding: 10px 6px; border-bottom: 1px solid var(--border); background: #fff; }
.ob-rule-off { opacity: .55; }
.ob-grip { cursor: grab; color: var(--text-muted); letter-spacing: -3px; padding-top: 2px; user-select: none; }
.ob-rule-main { flex: 1 1 auto; min-width: 0; }
.ob-rule-text { font-size: 13.5px; margin-top: 2px; }
.ob-rule-acts { display: flex; gap: 6px; align-items: center; }
.ob-rule-form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 760px; }
.ob-dragging { opacity: .5; outline: 2px dashed var(--ft-yellow); }
.ob-wish-order { border-left: 3px solid var(--ft-navy); }
.ob-prompt-box { margin-top: 6px; }
@media (max-width: 900px) { .ob-order-body { grid-template-columns: 1fr; } .ob-order-text { height: 40vh; } }
.ob-rule-edit summary { cursor: pointer; color: var(--text-muted); margin-top: 4px; }
/* v1.274.0: Schaltzentrale auf den Tafeln (Klassen-Familien, noch ohne Sperre) und Zeitplan */
.ob-all .ob-r-admin { outline-color: rgba(100, 116, 139, .8); }
.ob-num-admin, .ob-chip-admin i { background: var(--text-muted); color: #fff; }
.ob-chip-none { opacity: .5; }
.ob-days { display: flex; flex-wrap: wrap; gap: 4px 14px; }
/* v1.275.0: SAMMELKORB (Positionen links, Kasse mit Vorschau rechts) */
.ob-korb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ob-korb-text { width: 100%; height: 46vh; resize: vertical; margin-top: 4px; }
@media (max-width: 1100px) { .ob-korb { grid-template-columns: 1fr; } }


/* v1.282.0 (Ralf 07.10.2026): Zahnrad direkt am Feld, das eine pflegbare Liste zeigt (Kundenwiki -> Texte -> Entwicklungsstand) und
   Ziehen von Tabellenzeilen (global: tbody[data-drag-rows], Griff .drag-grip - Verhalten in assets/js/admin.js) */
.lbl-gear { display: inline-flex; vertical-align: middle; margin-left: 6px; color: var(--text-muted); transition: color .15s, transform .2s; }
.lbl-gear:hover { color: var(--primary); transform: rotate(30deg); }
.drag-grip { display: inline-flex; cursor: grab; color: var(--text-muted); }
tr.is-dragging { opacity: .5; outline: 2px dashed var(--ft-yellow); }

/* ---- Baustein Tooltip ft_tip() (includes/render-tip.php) – seit v1.289.0 ----
   Fenster mit HTML beim Drueberfahren oder Fokus (Tastatur, Antippen). Erste Nutzung: Aufteilung der Festplatte im Dashboard.
   Karten haben overflow:hidden – mit Tooltip darf er ueber den Kartenrand hinaus. */
.ft-tip { position: relative; cursor: help; outline: none; }
.ft-tip .ico { color: var(--text-muted); vertical-align: -2px; }
.ft-tip:focus-visible { box-shadow: var(--focus-ring); border-radius: 4px; }
.ft-tip-body { display: none; position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; width: max-content; min-width: 260px; max-width: min(360px, 90vw);
    padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); cursor: default; }
.ft-tip:hover > .ft-tip-body, .ft-tip:focus-within > .ft-tip-body { display: block; }
.ft-tip-body .kv { gap: 16px; white-space: nowrap; }
.ft-tip-body .meter { margin-bottom: 4px; }
/* Farben fest: die spaetere Navy-Regel fuer meter-fill ueberstimmt sonst meter-yellow/meter-grey */
.ft-tip-body .meter-fill.meter-yellow { background: var(--ft-yellow); } .ft-tip-body .meter-fill.meter-grey { background: #94a3b8; }
.ft-tip-body .hint { white-space: normal; }
.ft-tip-foot { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; font-weight: 600; }
.card:has(.ft-tip) { overflow: visible; }
/* v1.326.0: Tooltip auch im Akkordeon (Code-Pruefung: Tooltip an der Regel) - Akkordeon schneidet sonst ab; Ecken bleiben rund */
.accordion:has(.ft-tip), .accordion-item.open > .accordion-body:has(.ft-tip) { overflow: visible; }
.accordion-item.open > .accordion-body:has(.ft-tip) { max-height: none; }
.accordion:has(.ft-tip) > .accordion-item:first-child > .accordion-header { border-radius: 12px 12px 0 0; }
.accordion:has(.ft-tip) > .accordion-item:last-child:not(.open) > .accordion-header { border-radius: 0 0 12px 12px; }

/* ---- v1.301.0: globale Bausteine Popup-Formular, Hilfe auf Klick, Datei waehlen, Listenzeile, Filter-Kacheln (erste Nutzung Software-Radar) ----
   .ft-pop          ft_popup_open()/ft_popup_close() - gleiche Abdunklung wie .ft-ask/.ft-modal, Hoehe passt sich dem Inhalt an (eine Scrollleiste)
   .ft-pop-breit    Variante breit (v1.346.0) fuer Tabellen zum Bearbeiten
   .ft-help         ft_help() - ?-Symbol, Fenster schwebt unter dem Symbol, oeffnet nur auf Klick
   .ft-file         ft_file_field() - eigener Knopf statt Browser-Knopf, daneben der gewaehlte Name
   .list-bar        EINE Zeile ueber einer Liste: Knoepfe links, danach Suchfeld (.list-search, 30 % der Breite)
   tr[data-href]    ganze Zeile klickbar (Handzeiger, Farbe beim Ueberfahren)
   .kpi-tile.is-active  aktive Filter-Kachel - Rahmen innen, Hoehe bleibt gleich */
.ft-pop { position: fixed; inset: 0; background: rgba(18,49,77,.45); z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ft-pop[hidden] { display: none; }
.ft-pop-box { width: min(620px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: toastSlideIn .18s ease; }
.ft-pop-breit .ft-pop-box { width: min(1180px, 100%); }   /* v1.346.0: Variante breit (ft_popup_open(..., true)) - Textbuch der App-Werkstatt */
.ft-pop-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--ft-navy); }
.ft-pop-head > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-pop-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; }
.ft-pop-x:hover { background: var(--ft-grey); color: var(--ft-navy); }
.ft-pop-body { padding: 18px; overflow: auto; }
.ft-pop-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ft-help { position: relative; display: inline-block; }
.ft-help > summary { list-style: none; }
.ft-help > summary::-webkit-details-marker { display: none; }
.ft-help-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: var(--text-muted); cursor: pointer; }
.ft-help-btn:hover, .ft-help[open] > .ft-help-btn { color: var(--ft-navy); background: var(--ft-grey); }
.ft-help-body { position: absolute; z-index: 9600; top: calc(100% + 6px); right: 0; width: max-content; max-width: min(420px, 86vw); padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(18,49,77,.18); font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--text); white-space: normal; }
.ft-help-body p { margin: 0 0 8px; } .ft-help-body p:last-child { margin-bottom: 0; }
.ft-file { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.ft-file .btn { flex: none; }
.ft-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.list-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.list-bar .list-search { flex: 0 1 30%; min-width: 220px; }
.data-table tr[data-href] { cursor: pointer; }
.data-table tr[data-href]:hover, .data-table tr[data-href]:focus-visible { background: #eef3f8; outline: none; }
.kpi-tile.is-active { box-shadow: inset 0 0 0 2px var(--ft-navy), var(--shadow); }
.kpi-grid.kpi-grid-filter { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }   /* Filter-Kacheln: "Alle" + hoechstens 5 in EINER Reihe */
@media (max-width: 1200px) { .kpi-grid.kpi-grid-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .kpi-grid.kpi-grid-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-grid-filter .kpi-tile { padding: 12px 14px; gap: 6px; }
.kpi-grid-filter .kpi-value { font-size: 24px; }
/* Software-Radar (tools/radar.php, v1.301.0): Pillen-Zeile unter dem Namen bzw. Aktenkopf, Monatskopf der Chronik, Uebernehmen-Block der Vorschau */
.radar-pills { margin: 0 0 14px; }
.data-table td .radar-pills { margin: 6px 0 0; }
.data-table tr.radar-month th { padding: 14px 12px 8px; background: var(--ft-grey); color: var(--ft-navy); font-size: 13px; text-transform: none; letter-spacing: 0; }
.data-table tr.radar-month:hover { background: none; }
.radar-apply { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
/* CPU/RAM je Dienst (Dashboard, Tooltips an CPU und RAM, v1.302.0): Verlauf 24 h als 96 Saeulen, Zwischenueberschriften, Zeilen mit Umbruch */
/* Tooltip-Fenster faengt die Maus nicht: drei Tooltips untereinander (CPU, Festplatte, RAM) - wer nach unten faehrt, oeffnet den naechsten statt im offenen zu haengen */
.ft-tip-body { pointer-events: none; }
.load-sect { margin: 10px 0 4px; }
.load-proc { font-size: 12px; }
.ft-tip-body .kv.load-proc { white-space: normal; align-items: baseline; }
.ft-tip-body .kv.load-proc > span:last-child { text-align: right; }
.load-when { white-space: nowrap; }
/* v1.303.0: Name + Info-Symbol der Server-Zeilen CPU/RAM bleiben zusammen (Server-Akte: schmale Bloecke) - umbrechen darf nur der Wert */
.srv-disk-head { gap: 8px; }
.srv-disk-head .srv-row-label { white-space: nowrap; }
.srv-disk-head .srv-disk-val { text-align: right; }
.srv-detail-bars { align-items: end; }   /* bricht ein Wert um, stehen die Balken trotzdem auf einer Linie */
.load-spark { display: block; width: 100%; height: 40px; }
.load-spark rect { fill: var(--ft-navy); }
.load-spark rect.load-warn { fill: var(--ft-yellow); }
.load-spark rect.load-bad { fill: #dc2626; }
.load-spark .load-base { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.load-spark-axis { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---- v1.337.0: App-Werkstatt (tools/app-werkstatt.php, assets/js/app-werkstatt.js) - Ralf 11.10.2026, Scheibe W1 ----
   Geraeterahmen in Originalgroesse (Variablen --aw-w/--aw-h je Rahmen), alle mit EINEM Massstab --aw-s (setzt das Skript), damit
   Tablet quer, Tablet hoch und Handy vergleichbar bleiben. Die Rahmen zeigen die App-Vorschau im iframe (sandbox, eigene Farben der App). */
.aw-leiste { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.aw-leiste .form-group { margin: 0; }
.aw-rahmenwahl { border: 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.aw-rahmenwahl legend { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; padding: 0; }
.aw-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.aw-buehne { --aw-s: .5; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; overflow: hidden; }
.aw-geraet { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.aw-geraet[hidden] { display: none; }
.aw-quer { --aw-w: 1280; --aw-h: 800; }
.aw-hoch { --aw-w: 800; --aw-h: 1280; }
.aw-handy { --aw-w: 412; --aw-h: 915; }
.aw-tafel { --aw-w: 1280; --aw-h: 1640; width: 100%; }
.aw-titel { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.aw-gross { margin-left: auto; color: var(--text-muted); display: inline-flex; }
.aw-gross:hover { color: var(--ft-navy); }
.aw-schirm { box-sizing: content-box; width: calc(var(--aw-w) * var(--aw-s) * 1px); height: calc(var(--aw-h) * var(--aw-s) * 1px); overflow: hidden; border-radius: 14px; border: 6px solid var(--bg-dark); background: var(--bg-dark); box-shadow: var(--shadow-lg); }
.aw-schirm iframe { display: block; width: calc(var(--aw-w) * 1px); height: calc(var(--aw-h) * 1px); border: 0; transform: scale(var(--aw-s)); transform-origin: 0 0; }
.aw-tafel .aw-schirm { height: 78vh; }
.aw-tafel .aw-schirm iframe { height: calc(78vh / var(--aw-s)); }

/* ---- v1.338.0: App-Werkstatt, Reiter Bearbeiten (includes/render-app-editor.php, assets/js/app-editor.js) - W2, Ralf 11.10.2026 ----
   Raster: links Bildschirme/Teile + Palette, Mitte Vorschau + Aufbau-Liste, rechts Eigenschaften. Auswahl/Ablage in Takt Gelb wie in der App. */
.ae-leiste-karte .card-body { padding: 10px 14px; }
.ae-leiste { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.ae-leiste .form-group { margin: 0; }
.ae-stand { font-size: 13px; color: var(--text-muted); padding-bottom: 6px; }
.ae-rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ae-fehler { margin: 0; border-radius: 0; font-size: 12.5px; }
.ae-fehler ul { margin: 4px 0 0 18px; }
.ae-entwurf { display: flex; align-items: center; gap: 10px; }
.ae-entwurf .btn { margin-left: auto; }
.ae-raster { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.ae-links, .ae-mitte, .ae-rechts-spalte { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ae-unterkopf { border-top: 1px solid var(--border); }
.ae-liste { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.ae-eintrag { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ae-eintrag:hover { background: var(--bg); }
.ae-eintrag.an { background: var(--ft-yellow-soft); color: var(--ft-navy); font-weight: 600; }
.ae-palette { padding: 8px 12px 12px; }
.ae-gruppe { font-size: 12px; color: var(--text-muted); margin: 8px 0 5px; }
.ae-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ae-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 1px solid var(--ctl-border); border-radius: 6px; background: var(--ft-off); color: var(--text); font: inherit; font-size: 12.5px; cursor: grab; }
.ae-chip:hover { border-color: var(--ft-yellow); background: var(--ft-yellow-soft); }
.ae-griff { color: var(--text-muted); letter-spacing: -2px; }
.ae-vorschau-leiste { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 10px; }
.ae-vorschau-leiste .form-group { margin: 0; }
.ae-buehne { justify-content: center; }
.ae-baum { position: relative; max-height: 380px; overflow: auto; padding: 6px 10px; font-size: 13px; }
.ae-knoten { --tiefe: 0; display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 2px 8px 2px calc(8px + var(--tiefe) * 18px); border-radius: 5px; cursor: pointer; }
.ae-knoten:hover { background: var(--bg); }
.ae-knoten.an { background: var(--ft-yellow-soft); outline: 1px solid var(--ft-yellow); font-weight: 600; }
.ae-knoten-notiz { color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ae-knoten-kopf { font-weight: 600; color: var(--ft-navy); }
.ae-knoten-leer { color: var(--text-muted); font-style: italic; border: 1px dashed var(--ctl-border); margin: 2px 0 2px calc(var(--tiefe) * 18px); cursor: default; }
.ae-knoten-gruppe { --tiefe: 0; padding-left: calc(8px + var(--tiefe) * 18px); font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.ae-marke { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.ae-baum-linie { position: absolute; left: 8px; right: 8px; height: 4px; border-radius: 2px; background: var(--ft-yellow); pointer-events: none; }
.ae-props { display: flex; flex-direction: column; gap: 10px; max-height: 78vh; overflow: auto; }
.ae-feld { margin: 0; }
.ae-feld select, .ae-feld input[type="text"] { width: 100%; }
.ae-pfad { word-break: break-all; }
.ae-text { display: flex; flex-direction: column; gap: 6px; }
.ae-text-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ae-text-paar[hidden] { display: none; }
.ae-symbole { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ae-symbol { display: flex; align-items: center; justify-content: center; min-height: 30px; border: 1px solid var(--border); border-radius: 5px; background: var(--ft-off); color: var(--ft-navy); font: inherit; font-size: 11px; cursor: pointer; }
.ae-symbol:first-child { grid-column: span 2; }
.ae-symbol.an { border: 2px solid var(--ft-yellow); background: var(--ft-yellow-soft); }
.ae-bedingung { display: flex; flex-direction: column; gap: 6px; }
.ae-mehrfach { display: flex; flex-direction: column; gap: 3px; max-height: 180px; overflow: auto; padding: 4px 0; }
.ae-objekte { display: flex; flex-direction: column; gap: 8px; }
.ae-objekt { border: 1px solid var(--border); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ae-objekt-kopf { display: flex; align-items: center; gap: 6px; }
.ae-objekt-kopf .btn-danger { margin-left: auto; }
.ae-knopfspalte { display: flex; flex-direction: column; gap: 8px; }
.ae-wunsch-art { border: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; }
.ae-wunsch-art legend { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
/* v1.345.0 (E0): App-Symbol der Bauplan-Version - Vorschau eckig / rund / Test-App (Karte links und Popup ae-pop-symbol) */
.ae-symbol-vorschau { display: flex; flex-wrap: wrap; gap: 12px; min-height: 84px; align-items: flex-start; }
.ae-symbol-bild { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ae-symbol-bild img { width: 64px; height: 64px; display: block; border-radius: 8px; background: var(--bg); }
.ae-symbol-art { margin: 8px 0 0; }
.ae-symbol-farbe { display: flex; gap: 8px; align-items: center; }
.form-group .ae-symbol-farbe input[type="color"] { width: 44px; height: 36px; padding: 2px; flex: none; }
.form-group .ae-symbol-farbe input[type="text"] { width: 110px; flex: none; }
/* v1.346.0 (E1): Textbuch der App (Popup ae-pop-texte, Variante ft-pop-breit) - Zeilen mit eigenem Text in Takt Gelb wie die Auswahl im Editor */
.ae-tx-leiste { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin-bottom: 10px; }
.ae-tx-leiste .form-group { margin: 0; }
.ae-tx-leiste .form-group input[type="search"] { width: 280px; }
.ae-tx-tabelle td { vertical-align: top; }
.ae-tx-tabelle td:nth-child(2), .ae-tx-tabelle td:nth-child(3) { width: 38%; }
.ae-tx-tabelle input[type="text"], .ae-tx-tabelle textarea { width: 100%; font-size: 13px; }
.ae-tx-tabelle textarea { resize: vertical; }
.ae-tx-schluessel code { font-size: 11.5px; word-break: break-all; }
.ae-tx-an { background: var(--ft-yellow-soft); }
.ae-tx-zahl { font-weight: 600; }
@media (max-width: 1400px) { .ae-raster { grid-template-columns: 220px minmax(0, 1fr); } .ae-rechts-spalte { grid-column: 1 / -1; } }

/* ---- v1.339.0: Daten der Vorschau - Probe / Demo-Kunde live (includes/render-app-live.php, assets/js/app-live.js) ---- */
.al-leiste { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.al-leiste .form-group { margin: 0; }
#al-tech-gruppe[hidden], #al-datum-gruppe[hidden] { display: none; }
.al-hinweis { padding-bottom: 8px; }

/* ---- v1.364.0: App-Werkstatt, Reiter Hilfe (includes/render-app-hilfe.php, assets/js/app-hilfe.js) - H2/H3, Ralf 12.10.2026 ----
   Optik nach der freigegebenen Einsteiger-Anleitung vom 12.10.2026: Kapitel als .card mit Nummer, Begriffe-Kacheln, Ablauf, Ja/Nein,
   Editor-Skizze mit nummerierten Bereichen (Takt Gelb), Bedingungs-Spiel, Stufen-Leiste. Live-Rahmen nutzen die Bausteine .aw-buehne/.aw-geraet. */
.ah-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; font-size: 14px; }
.ah-toc a { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--text); text-decoration: none; }
.ah-toc a:hover { color: var(--ft-navy-hover); }
.ah-toc a[hidden] { display: none; }
.ah-toc-karte .card-header { gap: 10px; }
.ah-nr { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--ft-yellow); color: var(--ft-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ah-kapitel { scroll-margin-top: 12px; }
.ah-kapitel .card-body > p { max-width: 82ch; }
.ah-neu { border-color: var(--pill-info-bd); }
.ah-neu-liste { list-style: none; display: grid; gap: 8px; }
.ah-neu-pille { margin-left: 4px; }
.ah-h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ah-nowrap { white-space: nowrap; }
.ah-tabelle td { vertical-align: top; }
.ah-tabelle th { white-space: nowrap; }
.ah-begriffe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.ah-begriff { background: var(--ft-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.ah-begriff h3 { font-size: 15px; margin: 8px 0 4px; }
.ah-ikon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; background: var(--ft-navy); color: var(--ft-yellow); }
.ah-fluss { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 14px 0; }
.ah-schritt { flex: 1 1 150px; min-width: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; color: var(--text-muted); }
.ah-schritt b { display: block; color: var(--ft-navy); font-size: 14px; }
.ah-pfeil { align-self: center; color: var(--ft-yellow); display: inline-flex; }
.ah-merke { background: var(--ft-yellow-soft); border-left: 4px solid var(--ft-yellow); border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; margin: 14px 0; max-width: 86ch; font-size: 13.5px; }
.ah-merke b { display: inline-flex; gap: 6px; align-items: center; color: var(--ft-navy); }
.ah-janein { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
.ah-ja, .ah-nein { border-radius: var(--radius); padding: 12px 16px; font-size: 13.5px; }
.ah-ja { background: var(--pill-ok-bg); color: var(--pill-ok-fg); }
.ah-nein { background: var(--ft-off); border: 1px dashed var(--ctl-border); }
.ah-ja h3, .ah-nein h3 { font-size: 14px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.ah-ja ul, .ah-nein ul { margin: 0 0 6px 18px; }
.ah-reiter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ah-reiter-karte { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 13px; }
.ah-tab { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ft-navy); border-bottom: 3px solid var(--ft-yellow); padding-bottom: 2px; margin-bottom: 6px; }
.ah-buehne { margin: 10px 0; }
.ah-vergleich { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.ah-vergleich > p { max-width: 36ch; margin: 0; }
.ah-marke { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--ft-grey); color: var(--text-muted); }
.ah-marke-nach { background: var(--ft-yellow); color: var(--ft-ink); }
.ah-beispiel { border-top: 1px solid var(--border); padding-top: 6px; margin-top: 18px; }
.ah-beispiel:first-of-type { border-top: 0; margin-top: 4px; }
.ah-bnr { background: var(--ft-navy); color: var(--ft-yellow); font-size: 12px; border-radius: 6px; padding: 2px 8px; }
.ah-schritte { margin: 6px 0 12px 22px; max-width: 82ch; font-size: 13.5px; }
.ah-schritte li { margin: 4px 0; }
.ah-legende { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 14px 0; font-size: 13.5px; }
.ah-legende li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
/* Editor-Skizze (Kapitel 3) */
.ah-skizze-rahmen { overflow-x: auto; }
.ah-skizze { min-width: 760px; background: var(--ft-off); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; font-size: 12.5px; }
.ah-zone { position: relative; background: var(--card-bg); border: 1.5px solid var(--ctl-border); border-radius: 8px; padding: 10px; }
.ah-zone-nr { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ft-yellow); color: var(--ft-ink); font-weight: 700; font-size: 12.5px; }
.ah-zone > .ah-zone-nr { position: absolute; top: -10px; left: -10px; box-shadow: 0 0 0 3px var(--ft-off); }
.ah-zone-t { font-weight: 600; color: var(--ft-navy); margin-bottom: 6px; }
.ah-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ah-sk-rechts { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ah-sk-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--ctl-border); border-radius: 6px; padding: 3px 8px; background: var(--card-bg); white-space: nowrap; }
.ah-sk-prim { background: var(--ft-navy); border-color: var(--ft-navy); color: var(--card-bg); }
.ah-sk-raster { display: grid; grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 12px; }
.ah-sk-spalte { display: grid; gap: 12px; align-content: start; }
.ah-chip { display: inline-block; border: 1px solid var(--ctl-border); background: var(--card-bg); border-radius: 6px; padding: 1px 7px; margin: 2px; font-size: 12px; }
.ah-chip-an { background: var(--ft-yellow-soft); border-color: var(--ft-yellow); font-weight: 600; }
.ah-chip-pflicht { border-color: var(--ft-navy); font-weight: 600; }
.ah-sk-geraet { background: var(--ft-navy); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.ah-sk-kopf { height: 14px; border-radius: 3px; background: var(--ft-navy-hover); border-bottom: 2px solid var(--ft-yellow); }
.ah-sk-block { height: 18px; border-radius: 4px; background: var(--card-bg); }
.ah-sk-gewaehlt { outline: 2px solid var(--ft-yellow); outline-offset: 1px; }
.ah-sk-linie { height: 2px; background: var(--ft-yellow); }
.ah-sk-baum { font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.7; }
.ah-sk-feld { display: grid; gap: 2px; margin-bottom: 6px; }
.ah-sk-feld span { font-size: 11px; color: var(--text-muted); }
.ah-sk-feld i { font-style: normal; border: 1px solid var(--ctl-border); border-radius: 5px; padding: 2px 6px; }
/* Bausteine, Baum, Listen (Kapitel 4-6, automatisch) */
.ah-props { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.ah-gruppe { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--ft-grey); color: var(--ft-navy); }
.ah-gruppe-rahmen { background: var(--pill-info-bg); color: var(--pill-info-fg); }
.ah-gruppe-auftrag { background: var(--ft-yellow-soft); color: var(--pill-warn-fg); }
.ah-gruppe-erfassen { background: var(--pill-ok-bg); color: var(--pill-ok-fg); }
.ah-symbol { display: inline-flex; color: var(--ft-navy); vertical-align: middle; }
.ah-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; }
.ah-details > summary { cursor: pointer; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.ah-details[open] > summary { margin-bottom: 8px; }
.ah-baum { font-size: 13px; }
.ah-baum ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed var(--ctl-border); }
.ah-baum > ul { padding-left: 0; border-left: 0; }
.ah-baum li { margin: 4px 0; }
.ah-baum-t { font-weight: 600; color: var(--ft-navy); }
.ah-baum-w { font-size: 12px; color: var(--text-muted); }
.ah-bed { display: inline-block; font-size: 11px; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--pill-info-bg); color: var(--pill-info-fg); }
.ah-bed-zu { background: var(--pill-danger-bg); color: var(--pill-danger-fg); }
/* Bedingungs-Spiel */
.ah-spiel { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 18px; background: var(--ft-off); border-radius: var(--radius); padding: 14px; margin: 10px 0 16px; }
.ah-spiel-wahl .form-group { margin-bottom: 10px; }
.ah-spiel-app { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.ah-sp-knoepfe { display: grid; gap: 8px; }
.ah-sp-haupt { border-radius: 10px; padding: 14px; text-align: center; font-weight: 700; font-size: 16px; background: var(--ft-navy); color: var(--card-bg); }
.ah-sp-aus { background: var(--ft-grey); color: var(--text-muted); }
.ah-sp-reihe { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-sp-neben { flex: 1 1 90px; text-align: center; border: 1px solid var(--ctl-border); border-radius: 8px; padding: 7px 4px; font-size: 13px; font-weight: 600; }
.ah-sp-achtung { border-color: var(--danger); color: var(--pill-danger-fg); }
.ah-sp-log { margin-top: 10px; color: var(--text-muted); }
/* Stufen (Kapitel 8), Stolperfallen, Fuss */
.ah-stufen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.ah-stufe { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ah-stufe h3 { font-size: 14px; margin: 4px 0 0; }
.ah-anzahl { margin-top: auto; font-weight: 600; color: var(--ft-navy); font-variant-numeric: tabular-nums; }
.ah-faq dt { font-weight: 600; color: var(--ft-navy); margin-top: 12px; }
.ah-faq dd { margin: 3px 0 0; max-width: 86ch; font-size: 13.5px; }
.ah-fuss { margin: 6px 0 24px; }
@media (max-width: 1100px) {
    .ah-reiter, .ah-stufen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ah-begriffe, .ah-janein, .ah-legende, .ah-spiel, .ah-reiter, .ah-stufen { grid-template-columns: 1fr; }
}
/* v1.365.0 (Ralf 12.10.2026: "sprungmarken innerhalb der seite ... seitlich ein button der wieder nach oben fahren laesst"):
   breit = Inhalt als mitlaufende Leiste links, aktuelles Kapitel gelb markiert; schmal = Inhalt oben wie bisher. Knopf "Nach oben" unten rechts. */
.ah-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ah-inhalt { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ah-inhalt > .card { margin: 0; }
.ah-toc a { border-radius: 6px; padding: 4px 6px; }
.ah-toc a.ah-toc-an { background: var(--ft-yellow-soft); color: var(--ft-navy); font-weight: 600; }
@media (min-width: 1280px) {
    .ah-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .ah-toc-karte { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
    .ah-toc { grid-template-columns: 1fr; gap: 2px; }
    .ah-toc-karte .card-header { flex-wrap: wrap; }
}
.ah-hoch { position: fixed; right: 24px; bottom: 24px; z-index: 50; box-shadow: var(--shadow-lg); }
.ah-hoch[hidden] { display: none; }
/* v1.365.0: Zahlen der Editor-Skizze und der Erklaerung sind Spruenge (hin und zurueck), das Ziel blinkt kurz gelb */
a.ah-zone-nr { text-decoration: none; cursor: pointer; }
a.ah-zone-nr:hover, a.ah-zone-nr:focus-visible { background: var(--ft-navy); color: var(--ft-yellow); }
.ah-legende li, .ah-zone { scroll-margin: 80px; border-radius: 8px; }
.ah-blink { animation: ah-blink 1.6s ease-out; }
@keyframes ah-blink { 0%, 40% { box-shadow: 0 0 0 4px var(--ft-yellow); background-color: var(--ft-yellow-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ah-blink { animation: none; outline: 3px solid var(--ft-yellow); } }
/* v1.366.0 (Kundenwiki WA3): Stellen im Bild unter "Ablaeufe" im Texte-Editor (tools/wiki.php) - Namen fuer [[Stelle]] zum Kopieren */
.wiki-stellen { margin-top: 6px; }
.wiki-stellen ul { margin: 6px 0 0 18px; column-width: 260px; }

/* ---- v1.371.0 Dokumente-Ablage (tools/dokumente.php, Ralf 13.10.2026: "Darstellung schoen MD-strukturiert wie bei dir im Chat ... in einem Popup")
   .ft-drop         GLOBALER Baustein ft_drop_zone() (includes/render-file.php): Ablageflaeche zum Ziehen/Klicken, .is-over beim Ziehen, .is-busy beim Senden
   .dok-name/-sub   Listenzeile: Symbol, Titel, Dateiname klein (Festbreite)
   .dok-meta        Angabenzeile oben im Popup (Gruppe, Schlagworte, Fassung, Stand, Knoepfe Herunterladen/Kopieren)
   .dok-layout      Popup-Inhalt: links Gliederung (.dok-toc, laeuft mit), rechts der Text (.dok-md) - schmal untereinander
   .dok-md          Markdown wie im Chat (includes/Markdown.php): Ueberschriften, Tabellen (.dok-table), Code, Zitate, Aufgaben (.dok-task)
   Nur Variablen - keine festen Farben. */
.ft-drop { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin: 0 0 16px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--card-bg); color: var(--text-muted); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ft-drop > span { flex: 1; min-width: 0; }
.ft-drop strong { color: var(--ft-navy); }
.ft-drop:hover, .ft-drop:focus-visible, .ft-drop.is-over { border-color: var(--ft-yellow); background: var(--ft-off); outline: none; }
.ft-drop.is-busy { opacity: .6; pointer-events: none; }
.dok-name { display: flex; gap: 10px; align-items: flex-start; }
.dok-name > .ico { flex: none; margin-top: 2px; color: var(--text-muted); }
.dok-name strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* lange Titel (H1 mit Stand) zweizeilig gekuerzt, voll im Popup */
.dok-sub { display: block; font-size: 12px; color: var(--text-muted); font-family: ui-monospace, Consolas, Menlo, monospace; }
.dok-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dok-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -18px -18px 0; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--ft-off); }
.dok-meta-text { flex: 1; min-width: 200px; text-align: right; }
.dok-meta-acts { display: flex; gap: 6px; }
.dok-tabs .tabs-bar { margin: 0 0 18px; }
.dok-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.dok-layout-voll { grid-template-columns: minmax(0, 1fr); }
.dok-toc { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow: auto; padding-right: 14px; border-right: 1px solid var(--border); font-size: 13px; }
.dok-toc-t { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.dok-toc a { padding: 4px 8px; border-radius: 6px; color: var(--text); text-decoration: none; }
.dok-toc a.is-sub { padding-left: 20px; color: var(--text-muted); }
.dok-toc a:hover { background: var(--ft-grey); color: var(--ft-navy); }
.dok-md { max-width: 860px; font-size: 14.5px; line-height: 1.65; color: var(--ft-ink); overflow-wrap: anywhere; }
.dok-md h1, .dok-md h2, .dok-md h3, .dok-md h4, .dok-md h5, .dok-md h6 { scroll-margin-top: 8px; color: var(--ft-navy); }
.dok-md h1 { margin: 0 0 14px; font-size: 24px; }
.dok-md h2 { margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); font-size: 18px; }
.dok-md h3 { margin: 18px 0 8px; font-size: 15.5px; }
.dok-md h4, .dok-md h5, .dok-md h6 { margin: 14px 0 6px; font-size: 14.5px; }
.dok-md p { margin: 0 0 12px; }
.dok-md ul, .dok-md ol { margin: 0 0 12px 22px; }
.dok-md li { margin: 3px 0; }
.dok-md li > ul, .dok-md li > ol { margin: 4px 0 4px 20px; }
.dok-md .dok-task-li { list-style: none; margin-left: -20px; }
.dok-task { display: inline-flex; vertical-align: -2px; color: var(--text-muted); }
.dok-task.is-done { color: var(--success); }
.dok-md code { padding: 1px 6px; border-radius: 5px; background: var(--ft-grey); font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; }
.dok-md pre { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--ft-navy-dark); color: var(--ft-grey); overflow: auto; }
.dok-md pre code { padding: 0; background: none; color: inherit; }
.dok-md blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid var(--ft-yellow); border-radius: 0 8px 8px 0; background: var(--ft-off); }
.dok-md blockquote p:last-child { margin-bottom: 0; }
.dok-md hr { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.dok-md a { color: var(--primary); }
.dok-md a.dok-x { text-decoration: none; border-bottom: 1px dotted currentColor; }
.dok-table { margin: 0 0 14px; overflow-x: auto; }
.dok-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dok-table th, .dok-table td { padding: 6px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.dok-table th { background: var(--ft-off); }
.dok-table .ta-right { text-align: right; }
.dok-table .ta-center { text-align: center; }
.dok-txt { margin: 0; white-space: pre-wrap; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; }
.dok-hide { margin-top: 16px; }
@media (max-width: 900px) {
    .dok-layout { grid-template-columns: minmax(0, 1fr); }
    .dok-toc { position: static; max-height: none; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--border); }
    .dok-meta-text { text-align: left; }
}
/* ---- v1.372.0 Dokumente-Ablage D2: Vergleich (.dok-diff), Vorschlaege (.dok-resolve), Verweise (.dok-refs). Nur Variablen; die zarten
   Hintergruende entstehen per color-mix aus --success/--danger und der Kartenfarbe (keine festen Farben). */
.dok-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.dok-cmp select { height: var(--ctl-h); max-width: 340px; }
.dok-cmp .sw-row { margin: 0; }
.dok-cmp-count { display: inline-flex; gap: 6px; flex: 1; }
.dok-diff { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12.5px; line-height: 1.55; }
.dok-diff-hunk { padding: 5px 12px; background: var(--ft-grey); color: var(--ft-navy); font-weight: 600; border-top: 1px solid var(--border); }
.dok-diff-hunk:first-child { border-top: 0; }
.dok-diff-row { display: grid; grid-template-columns: 44px 44px 18px minmax(0, 1fr); border-left: 3px solid transparent; }
.dok-diff-row.is-add { background: color-mix(in srgb, var(--success) 11%, var(--card-bg)); border-left-color: var(--success); }
.dok-diff-row.is-del { background: color-mix(in srgb, var(--danger) 10%, var(--card-bg)); border-left-color: var(--danger); }
.dok-diff-row.is-del .dok-diff-txt { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.dok-diff-row.is-ctx { color: var(--text-muted); }
.dok-diff-nr { padding: 1px 8px 1px 0; text-align: right; color: var(--text-muted); user-select: none; border-right: 1px solid var(--border); }
.dok-diff-sign { text-align: center; user-select: none; }
.dok-diff-txt { padding: 1px 12px 1px 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dok-resolve { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 6px 2px 0; }
.dok-resolve select { height: var(--ctl-h); max-width: 320px; }
.dok-refs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dok-refs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.dok-refs .dok-sub { display: inline; }
/* v1.373.0 Dokumente: Zustaendige als Schieber-Liste im Reiter Angaben (laengere Listen scrollen in sich) */
.dok-assign { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; padding: 4px 0; }
.dok-assign .sw-row { margin: 2px 0; }
.dok-state { margin-top: 4px; }   /* v1.373.0: Zustands-Pillen (neu, aktualisiert, weicht ab) unter dem Dateinamen statt eigener Spalte */
/* ---- v1.374.0 Dokumente-Ablage D3: PDF/Bild im Popup, Listenpflege, ungesehen ---- */
.dok-bin { display: flex; justify-content: center; padding: 8px; background: var(--ft-off); border-radius: 8px; }
.dok-img { max-width: 100%; max-height: 70vh; height: auto; border-radius: 4px; box-shadow: var(--shadow); }
.dok-pdf { display: block; width: 100%; height: 70vh; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); }
.dok-list-icon { display: inline-flex; vertical-align: middle; margin-right: 6px; color: var(--ft-navy); }
.dok-star { display: inline-flex; cursor: pointer; color: var(--border); }
.dok-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dok-star input:checked + .ico { color: var(--ft-yellow); fill: var(--ft-yellow); }
.dok-star input:focus-visible + .ico { outline: 2px solid var(--ft-yellow); outline-offset: 2px; border-radius: 4px; }
.dok-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ft-yellow); vertical-align: 2px; }
.dok-md-bin { max-width: none; }   /* PDF/Bild nutzt die volle Breite des Fensters */
.dok-ltab input[type="text"] { width: 100%; max-width: 190px; }   /* Listenpflege: Namensfelder schmal, damit Stern/aktiv/Loeschen sichtbar bleiben */
.dok-ltab select { max-width: 150px; }
/* ---- v1.375.0 Hinweise zu Dokumenten (Popup ft_doc_notice_popup) und Online-Leiste unten im Menue ---- */
.dok-notice-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dok-notice-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--ft-off); }
.dok-notice-ico { display: inline-flex; flex: none; color: var(--ft-navy); }
.dok-notice-text { flex: 1; min-width: 0; }
.nav-online { display: flex; align-items: center; gap: 6px; padding: 6px 12px 10px; font-size: 12px; color: var(--sidebar-text); min-width: 0; }
.nav-online-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.nav-online-label { flex: none; font-weight: 600; }
.nav-online-names { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-presence { margin-left: 4px; font-size: 12px; color: var(--text-muted); }   /* v1.375.0: "online" bzw. "zuletzt online ..." am Namen */
.dok-presence.is-online { color: var(--success); font-weight: 600; }

/* v1.422.0 Webseite W3 (tools/webseite.php, includes/render-web-editor.php): Bildwahl als Kacheln, Bilder der Webseite, Eintraege im Popup */
.web-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.web-pick-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--border); border-radius: var(--ctl-radius); cursor: pointer; background: var(--ft-off); }
.web-pick-opt input { position: absolute; opacity: 0; }
.web-pick-opt img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--ft-grey); }
.web-pick-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--ft-grey); color: var(--text-muted); }
.web-pick-name { font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-pick-opt:has(input:checked) { border-color: var(--ft-yellow); background: var(--ft-yellow-soft); }
.web-pick-opt:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.web-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.web-asset { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--ctl-radius); overflow: hidden; background: var(--ft-off); }
.web-asset img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ft-grey); }
.web-asset figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: 13px; }
.web-ed-items { display: flex; flex-direction: column; gap: 10px; }
.web-ed-item { border: 1px solid var(--border); border-radius: var(--ctl-radius); padding: 10px 12px; margin: 0; min-width: 0; }
.web-ed-item legend { font-weight: 600; font-size: 13px; padding: 0 4px; }

/* v1.432.0 Betriebs-Check Beispiele (tools/webseite-check.php?tab=beispiele, includes/render-check-beispiele.php):
   links die Einstellung, Pfeil, rechts die Wirkung beim Besucher; .ck-ex-vis = kleine Besucher-Ansicht (Frage, Antworten, Loesung) */
.ck-ex { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 16px; align-items: stretch; margin-top: 12px; }
.ck-ex-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ck-ex-col > p { margin: 0; }
.ck-ex-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.ck-ex-arrow { display: flex; align-items: center; justify-content: center; color: var(--ft-yellow); }
.ck-ex-vis { margin: 0; background: var(--ft-off); border: 1px solid var(--border); border-left: 4px solid var(--ft-navy); border-radius: var(--ctl-radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ck-ex-q { margin: 0; font-weight: 600; color: var(--ft-navy); }
.ck-ex-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-ex-ans { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--ctl-border); border-radius: 999px; background: var(--card-bg); font-size: 13px; }
.ck-ex-ans.is-on { background: var(--ft-yellow-soft); border-color: var(--ft-yellow); font-weight: 600; }
.ck-ex-sol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card-bg); border: 1px dashed var(--ft-yellow); border-radius: var(--ctl-radius); font-size: 13px; }
.ck-ex-note { margin: 0; font-size: 13px; color: var(--text-muted); }
.ck-ex-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) {
    .ck-ex { grid-template-columns: minmax(0, 1fr); }
    .ck-ex-arrow { transform: rotate(90deg); }
}

/* v1.434.0 (WB1) Karte als Akkordeon: ft_acc_open()/ft_acc_close() in includes/render-acc.php - Kopfzeile klappt, rechts kurze Zusammenfassung */
.card-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.card-acc > summary::-webkit-details-marker { display: none; }
.card-acc > summary:hover { background: var(--ft-off); }
.card-acc > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.card-acc:not([open]) > summary { border-bottom: 0; }
.card-acc-chev { display: inline-flex; color: var(--text-muted); transform: rotate(-90deg); transition: transform .18s; }
.card-acc[open] .card-acc-chev { transform: rotate(0deg); }
.card-acc-right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .card-acc-chev { transition: none; } }
@media (max-width: 700px) { .card-acc > summary { flex-wrap: wrap; } .card-acc-right { flex-basis: 100%; justify-content: flex-start; margin-left: 0; } }
/* v1.434.0 (WB1, Ralf: "Tooltip rueckt aus dem Bild"): ?-Fenster nach rechts aufklappen, wenn links kein Platz ist (admin.js setzt die Klasse) */
.ft-help-body.ft-help-l { right: auto; left: 0; }
