/* ============================================================================
   Shape Miner Account — Web-UI-Stylesheet
   Aufgabe: Apple-Clean + Cyan-Glow — konsistent mit Editor und Spiel.
   Kein externes CSS, keine fremden Fonts: nur der System-Font-Stack.
   ============================================================================ */

/* ---- Design-Variablen ------------------------------------------------------ */
:root {
    --hintergrund:   #05060E;
    --flaeche:       #0A1428;
    --flaeche-tief:  #060B1C;
    --akzent:        #66E0FF;
    --akzent-dunkel: #0E3A4A;
    --text:          rgba(255, 255, 255, 0.92);
    --text-60:       rgba(255, 255, 255, 0.60);
    --text-45:       rgba(255, 255, 255, 0.45);
    --erfolg:        #5CFF8F;
    --fehler:        #FF5A5A;
    --warnung:       #FFB347;
    --linie:         rgba(102, 224, 255, 0.14);
    --linie-zart:    rgba(255, 255, 255, 0.08);
    --radius:        14px;
    --radius-klein:  9px;
    --sidebar-breite: 240px;
}

/* ---- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: 0.01em; }
p { margin: 0 0 12px; }
ul, li { margin: 0; padding: 0; list-style: none; }

/* ---- Grundgerüst ----------------------------------------------------------- */
body {
    background: var(--hintergrund);
    background-image:
        radial-gradient(900px 500px at 80% -10%, rgba(102, 224, 255, 0.07), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(157, 78, 221, 0.05), transparent 60%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    min-height: 100vh;
}

body.mit-sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-breite) 1fr;
    grid-template-rows: 1fr auto;
}

body.ohne-sidebar {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

/* ---- Sidebar --------------------------------------------------------------- */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.95), rgba(6, 11, 28, 0.95));
    border-right: 1px solid var(--linie);
    grid-row: 1 / 3;
}

.marke {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px 20px;
}

.marke-logo { width: 36px; height: 36px; flex-shrink: 0; }

.marke-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
}

.marke-text span {
    font-size: 10.5px;
    color: var(--text-45);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.nav-liste { flex: 1; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-klein);
    color: var(--text-60);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: rgba(102, 224, 255, 0.08);
    color: var(--text);
    text-decoration: none;
}

.nav-link.aktiv {
    background: var(--akzent-dunkel);
    color: var(--akzent);
}

.sidebar-fuss {
    padding: 16px 10px 4px;
    border-top: 1px solid var(--linie-zart);
}

.konto-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-60);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abmelden-link {
    font-size: 12px;
    color: var(--text-45);
}

.abmelden-link:hover { color: var(--fehler); text-decoration: none; }

/* ---- Hauptinhalt ----------------------------------------------------------- */
.inhalt {
    padding: 40px 48px;
    max-width: 760px;
}

.seitenkopf { margin-bottom: 32px; }
.seitenkopf h1 { font-size: 22px; margin-bottom: 4px; }
.seitenkopf p  { color: var(--text-60); font-size: 13px; }

/* ---- Karte ----------------------------------------------------------------- */
.karte {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.karte h2 {
    font-size: 14px;
    color: var(--akzent);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- Formular -------------------------------------------------------------- */
.formular { display: flex; flex-direction: column; gap: 16px; }

.formular-gruppe { display: flex; flex-direction: column; gap: 6px; }

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-60);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: var(--flaeche-tief);
    border: 1px solid var(--linie);
    border-radius: var(--radius-klein);
    color: var(--text);
    font-size: 14.5px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--akzent);
}

.feld-fehler {
    font-size: 11.5px;
    color: var(--fehler);
    margin-top: 2px;
}

/* ---- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-klein);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, filter 0.15s;
    text-align: center;
}

.btn:hover { opacity: 0.88; }
.btn:active { filter: brightness(0.9); }

.btn-primaer {
    background: var(--akzent);
    color: #05060E;
    width: 100%;
}

.btn-sekundaer {
    background: transparent;
    border: 1px solid var(--linie);
    color: var(--text-60);
    width: 100%;
}

.btn-gefahr {
    background: rgba(255, 90, 90, 0.12);
    border: 1px solid rgba(255, 90, 90, 0.3);
    color: var(--fehler);
    width: 100%;
}

/* ---- Hinweis-Banner -------------------------------------------------------- */
.hinweis {
    padding: 12px 16px;
    border-radius: var(--radius-klein);
    font-size: 13.5px;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.hinweis-erfolg {
    background: rgba(92, 255, 143, 0.08);
    border-color: rgba(92, 255, 143, 0.25);
    color: var(--erfolg);
}

.hinweis-fehler {
    background: rgba(255, 90, 90, 0.08);
    border-color: rgba(255, 90, 90, 0.25);
    color: var(--fehler);
}

.hinweis-warnung {
    background: rgba(255, 179, 71, 0.08);
    border-color: rgba(255, 179, 71, 0.25);
    color: var(--warnung);
}

/* Rechtstexte (AGB / Datenschutz) — gut lesbarer Fließtext */
.rechtstext {
    color: var(--text-75);
    font-size: 14px;
    line-height: 1.7;
}
.rechtstext h2 {
    color: var(--text);
    font-size: 16px;
    margin: 22px 0 8px;
}
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext p { margin: 0 0 12px; }
.rechtstext ul { margin: 0 0 12px 18px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext a { color: var(--akzent); }

/* ---- Login-/Registrierung-Karte (ohne Sidebar) ----------------------------- */
.auth-karte {
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 40px 44px;
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.auth-logo svg { width: 48px; height: 48px; }

.auth-logo strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-logo span {
    font-size: 11px;
    color: var(--text-45);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-fuss {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-45);
}

/* ---- Profil-Übersicht ------------------------------------------------------ */
.profil-zeile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--linie-zart);
    font-size: 13.5px;
}

.profil-zeile:last-child { border-bottom: none; }

.profil-label { color: var(--text-45); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.profil-wert  { color: var(--text); font-weight: 500; }

/* ---- 2FA-QR-Code ----------------------------------------------------------- */
.qr-bereich {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-klein);
    margin: 16px 0;
    max-width: 200px;
}

.qr-bereich img { width: 160px; height: 160px; }

/* ---- Fußzeile -------------------------------------------------------------- */
.seiten-fuss {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    padding: 16px 48px;
    font-size: 11.5px;
    color: var(--text-45);
    border-top: 1px solid var(--linie-zart);
}

body.ohne-sidebar .seiten-fuss {
    grid-column: 1;
    justify-content: center;
    gap: 24px;
    background: none;
    border: none;
}

/* Cache-leeren-Knopf im Seitenfuß */
.cache-leeren {
    margin-left: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: inherit;
    border-radius: 8px;
    padding: 2px 10px;
    font: inherit;
    cursor: pointer;
    opacity: 0.75;
}
.cache-leeren:hover { opacity: 1; }
