/* Generiert aus sv_core/html/theme.css – nicht von Hand bearbeiten. */
/* Gemeinsames Theme. Stil aus Claude Design (designs/stil), Logo Richtung B „Route“.
   Wird von allen sv_-Oberflächen genutzt. Hier Farben ändern, nicht in den einzelnen Dateien. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;1,600;1,700;1,800&family=IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #0D0E10;
    --card: #15171A;
    --field: #1C1F23;
    --deep: #08090A;
    --hover: #24282D;
    --line: #2A2E34;
    --line-2: #3D424A;
    --head-from: #0D0E10;

    --text: #F2F3F5;
    --text-2: #C3C7CD;
    --muted: #8B919A;
    --faint: #5A6069;

    --accent: #EE2E24;
    --accent-hover: #FF4A3D;
    --accent-text: #0D0E10;
    --accent-soft: rgba(238, 46, 36, 0.14);
    --accent-line: rgba(238, 46, 36, 0.55);

    --ok: #5DAF7B;
    --ok-soft: rgba(93, 175, 123, 0.14);
    --warn: #D9A93F;
    --warn-soft: rgba(217, 169, 63, 0.14);
    --err: #E5675C;
    --err-soft: rgba(229, 103, 92, 0.14);
    --err-line: rgba(229, 103, 92, 0.55);

    --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    --r-window: 4px;
    --r-card: 2px;
    --r-ctrl: 2px;
    --r-tile: 0;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}


[hidden] { display: none !important; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { flex: none; }
.num { font-variant-numeric: tabular-nums; }
.mono, .plate { font-family: var(--mono); }
.plate { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; }

/* Display-Schrift wie im Logo: fett, kursiv, Versalien */
.disp {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* Kleine Überschrift über einem Abschnitt */
.cap, .label {
    font: 600 12px/1 var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }

kbd {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    border-radius: var(--r-ctrl);
    background: var(--field);
    color: var(--text);
    font: 600 12px/1 var(--mono);
}

/* ---------- Fenster ---------- */

.window {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-window);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.window-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
    padding: 0 16px 0 20px;
    border-bottom: 1px solid var(--line);
}

/* Roter Strich oben links: die Markenlinie */
.window-head::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 2px;
    background: var(--accent);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; }

.brand-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.brand-sub { font-size: 14px; color: var(--muted); }
.head-sep { width: 1px; height: 24px; background: var(--line); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-ctrl);
    background: var(--field);
    color: var(--text);
    font: italic 700 17px/1 var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.btn:hover { background: var(--hover); border-color: var(--muted); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn:disabled { background: var(--deep); border-color: var(--line); color: var(--faint); pointer-events: none; }
.btn svg { color: currentColor; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: transparent; border-color: var(--err-line); color: var(--err); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.btn-lg { height: 44px; padding: 0 24px; font-size: 19px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 15px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }

/* ---------- Eingaben ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }

.input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: var(--r-ctrl);
    outline: 0;
    color: var(--text);
    font: 400 14px var(--font);
    user-select: text;
    transition: border-color 0.1s;
}
.input:focus { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.input::placeholder { color: var(--faint); }
.input.is-invalid { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.hint { font-size: 12px; color: var(--muted); }
.hint.err { color: var(--err); }

.segment {
    display: flex;
    gap: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-ctrl);
}
.segment button {
    flex: 1;
    height: 34px;
    padding: 0 14px;
    color: var(--muted);
    font: italic 700 16px/1 var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.segment button + button { border-left: 1px solid var(--line-2); }
.segment button.active { background: var(--text); color: var(--bg); }

/* ---------- Listen und Tabellen ---------- */

.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    transition: background 0.1s;
}
.li:hover { background: var(--hover); }
.li .r { color: var(--muted); font-size: 13px; }
.li.sel { background: var(--text); color: var(--bg); }
.li.sel .r { color: var(--bg); }
.li.off { color: var(--faint); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--line-2);
    text-align: left;
    font: 600 11px/1 var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.tbl td { height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl .r { text-align: right; }
.tbl tr:hover td { background: var(--hover); }

/* ---------- Fortschritt ---------- */

.track { height: 4px; background: var(--line); }
.fill { height: 100%; background: var(--accent); }
.track.ok .fill { background: var(--ok); }
.track.warn .fill { background: var(--warn); }

/* ---------- Ältere Bausteine (sparsam verwenden) ---------- */

.tile {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-tile);
    background: var(--field);
    color: var(--muted);
}
.tile-accent { background: var(--accent-soft); color: var(--accent); }
.tile-ok { background: var(--ok-soft); color: var(--ok); }
.tile-warn { background: var(--warn-soft); color: var(--warn); }
.tile-err { background: var(--err-soft); color: var(--err); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.badge-accent { color: var(--accent); }
.badge-ok { color: var(--ok); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Benachrichtigungen ---------- */

.toasts {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    transform: translateY(-50%);
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    color: var(--text);
    overflow: hidden;
    animation: toast-in 0.15s ease-out;
}
.toast.out { animation: toast-out 0.15s ease-in forwards; }
.toast.ok { color: var(--ok); }
.toast.warn { color: var(--warn); }
.toast.err { color: var(--err); }
.toast .tile { display: none; }
.toast-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.toast-title { font: italic 700 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; color: inherit; }
.toast-time { font-size: 12px; color: var(--faint); }
.toast-text { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; }

@keyframes toast-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(10px); } }
