﻿/* WorkGuard – Anthrazit + Secum-Blau Theme (responsive) */

/* === Farb- und Abstands-Variablen === */
:root {
    --bg: #1e1e1e; /* Anthrazit (VS-ähnlich) */
    --bg-elev: #242424;
    --panel: #2a2a2a;
    --text: #e6e6e6;
    --muted: #b7b7b7;
    --border: #3a3a3a;
    --accent: #0a76c9; /* Secum-ähnliches Blau */
    --accent-600: #0861a6;
    --accent-300: #4ea3e6;
    --input-bg: #2f2f2f; /* heller als Hintergrund */
    --input-border: #3f3f3f;
    --input-focus: var(--accent);
    --radius: 14px;
    --gap: 18px;
}

/* === Global === */
html, body {
    background: var(--bg);
    color: var(--text);
    min-height: 100%;
    margin: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

    a:hover {
        color: var(--accent-300);
    }

.container-wg {
    max-width: 1100px;
    margin-inline: auto;
    padding: 24px;
}

.card-wg {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* === Hero (Index) === */
.hero {
    position: relative;
    min-height: 92dvh;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: center/cover no-repeat var(--bg-elev);
        filter: brightness(0.45);
    }

    .hero > .content {
        position: relative;
        width: min(1200px, 92vw);
        display: grid;
        gap: 22px;
        place-items: center; /* sorgt für horizontale Mitte */
        text-align: center; /* Textblöcke mittig */
    }

    .hero h1 {
        font-weight: 800;
        line-height: 1.05;
        font-size: clamp(32px, 4.6vw, 56px);
        letter-spacing: .5px;
    }

.kicker {
    font-size: clamp(14px, 1.4vw, 18px);
    color: var(--muted);
}

/* === Form Controls === */
.form-grid {
    display: grid;
    gap: var(--gap);
}

.input-wg {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 12px 14px;
    outline: none;
}

    .input-wg:focus {
        border-color: var(--input-focus);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
    }

/* === Buttons === */
.btn-wg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: white;
    font-weight: 700;
    transition: .2s ease;
}

    .btn-wg:hover {
        background: var(--accent-600);
        border-color: var(--accent-600);
    }

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

    .btn-ghost:hover {
        background: color-mix(in srgb, var(--accent) 10%, transparent);
    }

/* === Auth Frames === */
.auth-wrap {
    min-height: 92dvh;
    display: grid;
    place-items: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--bg);
}

.auth {
    width: min(520px, 92vw);
}

    .auth h2 {
        margin: 8px 4px 18px;
        font-weight: 800;
    }

/* === Checkboxes === */
.checkbox-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--muted);
}

/* === Utility === */
.stack {
    display: grid;
    gap: var(--gap);
}

.center {
    display: grid;
    place-items: center;
}

.muted {
    color: var(--muted);
    font-size: .95rem;
}

/* === Responsive Tuning === */
@media (min-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

/* === Auth Form Responsive Fix === */
.auth {
    width: 100%;
    max-width: 380px; /* passt für 360–412px Phones */
    margin: 0 auto; /* zentrieren */
}

    .auth input,
    .auth .btn-wg {
        max-width: 100%;
    }

/* Extra Sicherheitsnetz für ganz kleine Phones */
@media (max-width: 360px) {
    .auth {
        max-width: 95vw;
    }
}

.hero-title {
    text-align: center; /* Überschrift mittig */
}

.brand-main {
    color: white;
}

.brand-ai {
    color: var(--accent);
    margin-left: 2px; /* minimaler optischer Abstand, nicht wie ein Leerzeichen */
}

.hero-buttons {
    justify-content: center; /* Grid-Inhalt mittig */
    text-align: center; /* Safety für Inline-Elemente */
}

    .hero-buttons .btn-wg {
        width: 100%;
        max-width: 260px; /* beide Buttons gleich breit, mittig */
        margin-inline: auto; /* mittig ausgerichtet */
    }

/* Passwort-Auge im Feld */
.input-with-toggle {
    position: relative;
}

    .input-with-toggle .input-wg {
        padding-right: 44px; /* Platz rechts fürs Icon */
    }

    .input-with-toggle .pw-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: 0;
        padding: 6px;
        cursor: pointer;
        color: var(--muted);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .input-with-toggle .pw-toggle:hover {
            color: var(--text);
        }
/* Topbar / Navbar */
.topbar.navbar {
    background: #0b0b0b !important; /* tiefes Schwarz */
    border-bottom: 1px solid #1b1b1b;
}

.topbar .navbar-brand {
    color: white !important;
    font-weight: 700;
}

.topbar .nav-link {
    color: #e6e6e6 !important;
}

    .topbar .nav-link:hover {
        color: var(--accent-300) !important; /* dein Blau */
    }


