/* /public/css/styles.css  ────────────────────────────────────────── */

/* ---------- Farb- & Design-Variablen ---------- */
:root {
    --primary:       #0d6efd;   /* Hauptfarbe (Bootstrap-Blau)   */
    --primary-dark:  #0b5ed7;
    --bg-light:      #f8f9fa;
    --bg-dark:       #121212;
    --surface-light: #ffffff;
    --surface-dark:  #1e1e1e;
    --text-light:    #212529;
    --text-dark:     #e9ecef;
    --radius:        .65rem;
    --shadow:        0 10px 25px rgba(0, 0, 0, .08);
}

/* ---------- Grundlayout ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ---------- Card-Container ---------- */
.container {
    background: var(--surface-light);
    width: min(600px, 100%);
    padding: 2rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Typografie ---------- */
h1 { margin-top: 0; font-size: 1.6rem; }

label { display: block; margin: .9rem 0 .3rem; font-weight: 500; }

p { margin: 1rem 0; line-height: 1.5; }

/* ---------- Formular-Controls ---------- */
input[type=text],
input[type=password] {
    width: 100%;
    padding: .55rem .8rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    background: #fff;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .25);
}


/* ---------- Buttons & Links ---------- */
button,
a.buttonlike {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: .55rem 1.4rem;
    font-size: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease-in-out, transform .15s ease;
}

button:hover,
a.buttonlike:hover { background: var(--primary-dark); }

button:active,
a.buttonlike:active { transform: scale(.97); }

button[disabled] {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Dark-Mode (automatisch) ---------- */
@media (prefers-color-scheme: dark) {
    body            { background: var(--bg-dark);  color: var(--text-dark); }
    .container      { background: var(--surface-dark); box-shadow: 0 10px 25px rgba(0, 0, 0, .3); }
    input           { background: #2c2c2c; border-color: #444; color: var(--text-dark); }
    input:focus     { box-shadow: 0 0 0 .15rem rgba(13,110,253,.35); }
}
		
		/* ---------- Schönere Formular-Gruppen (Login) ---------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: 1.2rem;
}

.form-group label {
    font-weight: 600;
    letter-spacing: .02rem;
}
/*
@media (min-width: 500px) {
    .login-grid {
        display: grid;
        grid-template-columns: 150px 1fr;
        align-items: center;
        column-gap: 1rem;
    }
    .login-grid .form-group {
        margin-bottom: .9rem;
    }
    .login-grid .form-group label {
        grid-column: 1 / 2;
        align-self: start;
        margin-top: .35rem;
    }
    .login-grid .form-group input {
        grid-column: 2 / 3;
    }
}*/	
		
@media (min-width: 500px) {
    .login-grid {
        display: grid;
        grid-template-columns: 1fr;  /* nur noch eine Spalte */
    }
}
		/* --- Login-Felder auf volle Breite bringen --------------------------- */
@media (min-width: 500px) {
    /* Label + Input sollen die ganze Grid-Breite benutzen,
       statt in zwei Spalten aufgeteilt zu werden */
    .login-grid .form-group label,
    .login-grid .form-group input {
        grid-column: 1 / -1;   /* spannt über alle Spalten */
    }

    /* Die zweispaltige Definition bleibt bestehen,
       wir nutzen aber faktisch nur eine Spalte */
}
	

/* ---------- Mehrzeilig eingerückter Checkbox-Text ---------- */
label.checkbox{
    display: grid;                  /* WICHTIG: Grid aktiviert        */
    grid-template-columns: auto 1fr;/* Kästchen | Textblock           */
    column-gap: .6rem;
    align-items: start;
    margin-top: 1rem;
    line-height: 1.45;
}

label.checkbox input{
    margin-top: .2em;               /* Kästchen optisch mittig        */
}
		
/* ---------- language switch top-right ---------- */
.lang-switch{
    position:absolute; top:1rem; right:2rem;
    font-size:.85rem; color:#6c757d;
}
.lang-switch a{ color:inherit; text-decoration:none; }
.lang-switch a:hover{ text-decoration:underline; }