/* ==========================================================================
   ProBot Glas-Design
   Ein großes Milchglas-Fenster über einem gedämpften, warm beleuchteten Raum.
   Weißer Text, ein Akzent (Signalblau), Rot/Grün nur mit Bedeutung.
   ========================================================================== */

:root {
    --accent: #4c8dff;
    --accent-strong: #2f74f5;
    --accent-soft: rgba(76, 141, 255, 0.22);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.72);
    --text-3: rgba(255, 255, 255, 0.5);
    --surface: rgba(255, 255, 255, 0.11);
    --surface-hover: rgba(255, 255, 255, 0.15);
    --well: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.17);
    --line-soft: rgba(255, 255, 255, 0.1);
    --danger: #ff8f8f;
    --success: #7fe3a8;
    --menu: rgba(44, 47, 54, 0.97);
    --radius-window: 34px;
    --radius-card: 26px;
}

/* --------------------------------------------------------------------------
   Grundgerüst
   -------------------------------------------------------------------------- */
html, body.gs { height: 100%; }
body.gs {
    margin: 0;
    color: var(--text);
    font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'tnum' 0;
    background: #26292e;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
.gs-num { font-variant-numeric: tabular-nums; }

/* Der "Raum" hinter dem Glas: warmes Lampenlicht links und rechts, dunkler Boden, Sofa-Schatten */
.gs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(38% 34% at 9% 14%, rgba(255, 213, 160, 0.42), transparent 70%),
        radial-gradient(22% 26% at 30% 6%, rgba(255, 236, 205, 0.22), transparent 70%),
        radial-gradient(30% 30% at 91% 10%, rgba(255, 222, 186, 0.3), transparent 70%),
        radial-gradient(60% 22% at 50% 92%, rgba(0, 0, 0, 0.45), transparent 75%),
        radial-gradient(80% 60% at 50% 120%, rgba(150, 156, 166, 0.35), transparent 70%),
        linear-gradient(180deg, #45484d 0%, #34373c 42%, #25282c 100%);
}
.gs-backdrop::after {
    /* feines Korn, damit das Glas "echt" wirkt */
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gs-backdrop.has-photo {
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.62) saturate(0.7);
    transform: scale(1.06);
}

.gs-window {
    position: fixed;
    inset: 14px;
    z-index: 1;
    display: flex;
    border-radius: var(--radius-window);
    background: rgba(255, 255, 255, 0.075);
    -webkit-backdrop-filter: blur(42px) saturate(150%);
    backdrop-filter: blur(42px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 40px 120px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Icon-Leiste links
   -------------------------------------------------------------------------- */
.gs-rail {
    width: 78px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    gap: 14px;
}
.gs-rail-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #15171b;
    background: linear-gradient(160deg, #ffffff, #d9dde3);
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
    text-decoration: none;
    flex-shrink: 0;
}
.gs-rail-nav {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.gs-rail-nav::-webkit-scrollbar { display: none; }
.gs-rail-sep {
    width: 26px;
    height: 1px;
    background: var(--line);
    margin: 6px 0;
    flex-shrink: 0;
}
.gs-rail-link {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.gs-rail-link:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.gs-rail-link.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: #16181c;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
}
.gs-rail-link:focus-visible, .gs-tab:focus-visible, .gs-user-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.gs-rail-foot { flex-shrink: 0; }
.gs-rail-foot img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: block;
}
.gs-icon { width: 21px; height: 21px; stroke-width: 1.7; }

/* Beschriftung beim Überfahren der Icons (wird per JS positioniert) */
.gs-tip {
    position: fixed;
    z-index: 200;
    pointer-events: none;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #16181c;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}
.gs-tip.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Kopfzeile: Bereichs-Tabs, Status, Benutzer
   -------------------------------------------------------------------------- */
.gs-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px 10px 8px;
}
.gs-top-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.gs-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.gs-tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-soft);
    overflow-x: auto;
    scrollbar-width: none;
}
.gs-tabs::-webkit-scrollbar { display: none; }
.gs-tab {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}
.gs-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.gs-tab.is-active { color: var(--text); background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.gs-top-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gs-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
}
.gs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(127, 227, 168, 0.2);
}
.gs-user { position: relative; }
.gs-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.gs-user-btn img { width: 34px; height: 34px; border-radius: 50%; }
.gs-user-btn .gs-icon { width: 16px; height: 16px; color: var(--text-2); }
.gs-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    padding: 6px;
    border-radius: 18px;
    background: var(--menu);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    z-index: 150;
    display: none;
}
.gs-menu.is-open { display: block; }
.gs-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.gs-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.gs-menu .gs-icon { width: 18px; height: 18px; color: var(--danger); }

/* --------------------------------------------------------------------------
   Inhaltsbereich
   -------------------------------------------------------------------------- */
.gs-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}
.gs-content { padding: 6px 12px 0 0; }
.gs-content > div[class*="max-w-"] { padding-top: 22px !important; }
.gs-foot {
    padding: 8px 32px 26px;
    font-size: 12px;
    color: var(--text-3);
}

/* Scrollleisten */
.gs .custom-scrollbar::-webkit-scrollbar, .gs .emoji-box::-webkit-scrollbar { width: 6px; height: 6px; }
.gs .custom-scrollbar::-webkit-scrollbar-track, .gs .emoji-box::-webkit-scrollbar-track { background: transparent; }
.gs .custom-scrollbar::-webkit-scrollbar-thumb, .gs .emoji-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 10px; }
.gs .no-scrollbar::-webkit-scrollbar { display: none; }
.gs .no-scrollbar { scrollbar-width: none; }

/* --------------------------------------------------------------------------
   Bausteine der Seiten (gleiche Klassennamen wie vorher, neues Aussehen)
   -------------------------------------------------------------------------- */
.gs .glass-card {
    background: var(--surface);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 44px -26px rgba(0, 0, 0, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.gs .glass-card[class*="border-t-["], .gs .glass-card[class*="border-l-["], .gs .glass-card[class*="border-t-4"] {
    border-width: 1px !important;
    border-color: var(--line) !important;
}
.gs .glass-card:hover { border-color: rgba(255, 255, 255, 0.24) !important; }

.gs .glass-panel {
    background: var(--well);
    border: 1px solid var(--line-soft);
    box-shadow: none;
}
/* Aufklapp-Menüs müssen deckend bleiben */
.gs .glass-panel.absolute,
.gs .absolute[class~="bg-black/95"],
.gs .absolute[class~="bg-black/80"],
.gs .gs-content [class~="bg-black/95"],
.gs .gs-content [class~="bg-black/80"] {
    background: var(--menu) !important;
    border-color: var(--line) !important;
}

/* Eingabefelder */
.gs .glass-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.gs .glass-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.gs .glass-input:focus, .gs .glass-input:focus-within {
    outline: none;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.gs select.glass-input:not([multiple]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}
.gs option { background-color: #2c2f36; color: #fff; }
.gs input[type="checkbox"], .gs input[type="radio"] { accent-color: var(--accent) !important; }
.gs input[type="color"] { border-radius: 10px; }
.gs input[type="date"]::-webkit-calendar-picker-indicator,
.gs input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; cursor: pointer; }

/* Hauptbuttons */
.gs .btn-glow,
.gs [class*="btn-glow-"],
.gs .gs-content button[class*="bg-gradient-to-"],
.gs .gs-content [class~="bg-indigo-600"],
.gs .gs-content [class~="bg-blue-600"] {
    background: var(--accent) !important;
    background-image: none !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 28px -16px rgba(76, 141, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    animation: none !important;
    transform: none !important;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gs .btn-glow:hover,
.gs [class*="btn-glow-"]:hover,
.gs .gs-content button[class*="bg-gradient-to-"]:hover,
.gs .gs-content [class~="bg-indigo-600"]:hover,
.gs .gs-content [class~="bg-blue-600"]:hover { background: var(--accent-strong) !important; }
.gs .btn-glow:disabled, .gs [class*="btn-glow-"]:disabled { opacity: 0.45; }

/* Überschriften: weiß, ruhig, ohne Leuchten */
.gs .glow-text { text-shadow: none; }
.gs .gs-content h1 {
    color: var(--text) !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em;
}
.gs .gs-content h1 + p { color: var(--text-2) !important; font-size: 15px !important; max-width: 62ch; }
.gs .gs-content :is(h2, h3, h4) { color: var(--text) !important; font-weight: 600 !important; letter-spacing: -0.015em; filter: grayscale(1) brightness(1.15); }
.gs .font-black { font-weight: 700 !important; }
.gs .font-extrabold { font-weight: 650 !important; }

/* Keine Versalien-Labels mehr: normaler Satz, lesbare Größe */
.gs .gs-content .uppercase { text-transform: none !important; letter-spacing: 0 !important; }
.gs .gs-content [class*="tracking-wid"] { letter-spacing: 0 !important; }
.gs .gs-content .uppercase[class*="text-[9px]"],
.gs .gs-content .uppercase[class*="text-[10px]"],
.gs .gs-content .uppercase[class*="text-[11px]"] { font-size: 12.5px !important; font-weight: 500 !important; }
.gs .gs-content :is(label, p).uppercase { color: var(--text-2) !important; }

/* Graue Texte */
.gs .gs-content [class*="text-gray-300"] { color: rgba(255, 255, 255, 0.82) !important; }
.gs .gs-content [class*="text-gray-400"] { color: var(--text-2) !important; }
.gs .gs-content [class*="text-gray-500"], .gs .gs-content [class*="text-gray-600"] { color: var(--text-3) !important; }

/* Dekorative Akzentfarben -> Weiß (Bedeutung tragen nur noch Rot und Grün) */
.gs .gs-content :is([class*="text-indigo-"], [class*="text-purple-"], [class*="text-pink-"], [class*="text-fuchsia-"],
    [class*="text-violet-"], [class*="text-sky-"], [class*="text-cyan-"], [class*="text-teal-"], [class*="text-amber-"],
    [class*="text-yellow-"], [class*="text-orange-"], [class*="text-emerald-"], [class*="text-blue-"], [class*="text-lime-"],
    [class*="text-slate-"], [class*="text-rose-"]) {
    color: var(--text) !important;
}
.gs .gs-content :is([class*="text-red-"]) { color: var(--danger) !important; }
.gs .gs-content :is([class*="text-green-"]) { color: var(--success) !important; }
.gs .gs-content :is(h1, h2, h3, h4, label)[class*="text-red-"],
.gs .gs-content :is(h1, h2, h3, h4)[class*="text-green-"] { color: var(--text) !important; }

/* Farbige Hintergrund-Tönungen -> neutrales Glas; Rot/Grün bleiben dezent erkennbar */
.gs .gs-content :is([class*="bg-indigo-500/"], [class*="bg-purple-500/"], [class*="bg-pink-500/"], [class*="bg-fuchsia-500/"],
    [class*="bg-violet-500/"], [class*="bg-sky-500/"], [class*="bg-cyan-500/"], [class*="bg-teal-500/"], [class*="bg-amber-500/"],
    [class*="bg-yellow-500/"], [class*="bg-orange-500/"], [class*="bg-emerald-500/"], [class*="bg-blue-500/"], [class*="bg-gray-500/"],
    [class*="bg-slate-500/"], [class*="bg-orange-400/"], [class*="bg-indigo-950/"], [class*="bg-rose-500/"]) {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
.gs .gs-content :is([class*="bg-red-500/"]) { background-color: rgba(255, 120, 120, 0.12) !important; }
.gs .gs-content :is([class*="bg-green-500/"]) { background-color: rgba(127, 227, 168, 0.12) !important; }
.gs .gs-content [class~="bg-red-950/10"] { background-color: rgba(255, 255, 255, 0.05) !important; }

/* Farbige Rahmen -> Glaskante */
.gs .gs-content :is([class*="border-indigo-"], [class*="border-purple-"], [class*="border-pink-"], [class*="border-fuchsia-"],
    [class*="border-violet-"], [class*="border-sky-"], [class*="border-cyan-"], [class*="border-teal-"], [class*="border-amber-"],
    [class*="border-yellow-"], [class*="border-orange-"], [class*="border-emerald-"], [class*="border-blue-"], [class*="border-gray-"],
    [class*="border-slate-"], [class*="border-rose-"]):not(.glass-input) {
    border-color: var(--line) !important;
}
.gs .gs-content :is([class*="border-red-"]):not(.glass-input) { border-color: rgba(255, 143, 143, 0.28) !important; }
.gs .gs-content :is([class*="border-green-"]):not(.glass-input) { border-color: rgba(127, 227, 168, 0.28) !important; }

/* Dunkle Mulden -> helle Glas-Mulden */
.gs .gs-content :is([class~="bg-black/20"], [class~="bg-black/30"], [class~="bg-black/40"], [class~="bg-black/50"], [class~="bg-black/60"]) {
    background-color: var(--well) !important;
}
.gs .gs-content [class~="hover:bg-black/60"]:hover { background-color: rgba(255, 255, 255, 0.1) !important; }

/* Farbige Leucht-Schatten entfernen */
.gs .gs-content [class*="shadow-[0_0"] { box-shadow: none !important; }
.gs .gs-content [class*="drop-shadow"]:not(h1):not(h2):not(h3):not(h4) { filter: none; }
.gs .gs-content :is(h2, h3, h4)[class*="drop-shadow"] { filter: grayscale(1) brightness(1.15); }

/* Erfolgs-/Fehlermeldungen oben auf den Seiten */
.gs .gs-content .animate-fade-in-down {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    animation: gs-in 0.35s ease both;
}
.gs .gs-content .animate-fade-in-down span { color: var(--text) !important; }
@keyframes gs-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Hover-Effekte der alten Seiten: ruhig, ohne Farbschein */
.gs [class*="hover-glow-"]:hover,
.gs [class*="glow-"]:not(.glow-text):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 44px -26px rgba(0, 0, 0, 0.55); }
.gs .role-item, .gs .day-card { transition: background 0.2s ease; }
.gs .role-item:hover, .gs .day-card:hover { background: rgba(255, 255, 255, 0.1); }

/* Tabellen */
.gs .gs-content table thead tr { background: transparent !important; color: var(--text-3); }

/* --------------------------------------------------------------------------
   Übersicht (Bento-Raster)
   -------------------------------------------------------------------------- */
.ov-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.ov-card {
    position: relative;
    padding: 22px;
    border-radius: var(--radius-card);
    background: var(--surface);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 44px -26px rgba(0, 0, 0, 0.55);
    min-width: 0;
}
a.ov-card { color: inherit; text-decoration: none; transition: background 0.2s ease; }
a.ov-card:hover { background: var(--surface-hover); }
.ov-span-3 { grid-column: span 3; }
.ov-span-4 { grid-column: span 4; }
.ov-span-5 { grid-column: span 5; }
.ov-span-6 { grid-column: span 6; }
.ov-span-7 { grid-column: span 7; }
.ov-span-8 { grid-column: span 8; }
.ov-span-12 { grid-column: span 12; }
.ov-title { font-size: 14px; font-weight: 500; color: var(--text-2); margin: 0; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ov-big { font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; margin: 0; font-variant-numeric: tabular-nums; }
.ov-big small { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: 6px; }
.ov-sub { font-size: 13px; color: var(--text-3); margin: 6px 0 0; }
.ov-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line-soft);
    white-space: nowrap;
}
.ov-pill.is-accent { background: var(--accent-soft); color: #fff; border-color: rgba(76, 141, 255, 0.4); }
.ov-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ov-stat { padding: 12px 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--line-soft); }
.ov-stat b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ov-stat span { font-size: 12.5px; color: var(--text-3); }

/* Hero: Server + Linie */
.ov-hero { display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.ov-spark { width: 100%; height: 120px; display: block; margin-top: 10px; }
.ov-spark .line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ov-spark .area { fill: url(#ovFade); }
.ov-spark .dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.ov-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

/* Ring */
.ov-ring-wrap { display: grid; place-items: center; margin: 6px 0 4px; }
.ov-ring { width: 168px; height: 168px; transform: rotate(-90deg); }
.ov-ring .track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 12; }
.ov-ring .ticks { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 6; stroke-dasharray: 1 7.85; }
.ov-ring .value { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ov-ring-label { position: absolute; text-align: center; }
.ov-ring-label b { display: block; font-size: 38px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ov-ring-label span { font-size: 12.5px; color: var(--text-3); }

/* Balken */
.ov-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 8px; }
.ov-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.ov-bar i {
    display: block;
    width: 100%;
    max-width: 34px;
    min-height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.ov-bar.is-today i { background: var(--accent); }
.ov-bar span { font-size: 11.5px; color: var(--text-3); }
.ov-bar em { font-style: normal; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Schalter-Liste (Systemstatus) */
.ov-switches { display: flex; flex-direction: column; gap: 4px; }
.ov-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 6px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.ov-switch-row:hover { background: rgba(255, 255, 255, 0.07); }
.ov-switch-row small { display: block; font-size: 12px; color: var(--text-3); }
.gs-switch {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.gs-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}
.gs-switch.is-on { background: var(--accent); }
.gs-switch.is-on::after { transform: translateX(18px); }

/* Formular in Karten der Übersicht */
.ov-form { display: grid; gap: 12px; }
.ov-form label { display: block; font-size: 12.5px; color: var(--text-2); margin: 0 0 6px 4px; }
.ov-form .glass-input { width: 100%; padding: 11px 14px; font-size: 14px; }
.ov-actions { display: flex; justify-content: flex-end; }
.ov-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 14px 28px -16px rgba(76, 141, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ov-btn:hover { background: var(--accent-strong); }
.ov-btn .gs-icon { width: 17px; height: 17px; }
.ov-list { display: flex; flex-direction: column; gap: 8px; }
.ov-list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--well); border: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.ov-list-item:hover { background: rgba(255, 255, 255, 0.1); }
.ov-list-item b { font-weight: 500; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-list-item span { font-size: 12.5px; color: var(--text-3); }
.ov-empty { font-size: 13.5px; color: var(--text-3); padding: 14px 4px; }

/* --------------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .ov-span-3, .ov-span-4, .ov-span-5 { grid-column: span 6; }
    .ov-span-7, .ov-span-8 { grid-column: span 12; }
}
@media (max-width: 860px) {
    body.gs { overflow: hidden; }
    .gs-window { inset: 0; border-radius: 0; flex-direction: column; border: 0; }
    .gs-rail {
        order: 2;
        width: 100%;
        flex-direction: row;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
        border-top: 1px solid var(--line-soft);
        background: rgba(30, 32, 37, 0.55);
    }
    .gs-rail-logo, .gs-rail-foot { display: none; }
    .gs-rail-nav { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 4px; justify-content: flex-start; }
    .gs-rail-sep { width: 1px; height: 26px; margin: 0 4px; }
    .gs-main { order: 1; min-height: 0; }
    .gs-top { padding: 12px 14px 6px; flex-wrap: wrap; }
    .gs-top-left { width: 100%; order: 2; }
    .gs-top-right { width: 100%; justify-content: space-between; order: 1; }
    .gs-brand { display: none; }
    .gs-user-name { display: none; }
    .gs-content { padding: 0; }
    .gs-tip { display: none; }
    .ov-span-3, .ov-span-4, .ov-span-5, .ov-span-6, .ov-span-7, .ov-span-8 { grid-column: span 12; }
    .ov-big { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
