/* ----------------------------------------------------------------
 * Briefing — Neumorphism + Glassmorphism
 * Farbpalette: helles Blaugrau (#e8edf2), wie Schwesterprojekt
 * Glassmorphism-Buttons: beschriftete "Glasplaettchen" auf der
 * Neumorphism-Flaeche. Klick = kurzer gruener Puls. Toggle = haelt
 * das gruene Leuchten, bis erneut geklickt.
 * ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8edf2;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.login-card {
    width: 340px;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(232, 237, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 8px 8px 20px #c8cdd2, -8px -8px 20px #ffffff;
}

.brief-card {
    width: min(720px, 92vw);
    margin: 2rem 0;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    background: rgba(232, 237, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 8px 8px 20px #c8cdd2, -8px -8px 20px #ffffff;
}

.brief-card h1 {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.baustein {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: #e8edf2;
    box-shadow: inset 3px 3px 6px #c8cdd2, inset -3px -3px 6px #ffffff;
}

.baustein h2 {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.baustein pre {
    font-size: 0.8rem;
    color: #2d3748;
    white-space: pre-wrap;
    word-break: break-word;
}

.zeitstempel {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #8a9bb0;
}

.termine {
    list-style: none;
    font-size: 0.9rem;
    color: #2d3748;
}

.termine li { margin-bottom: 0.4rem; }

.termine .ort { color: #8a9bb0; font-size: 0.8rem; }

.aufgaben-liste {
    list-style: none;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.aufgaben-liste li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.aufgabe-check {
    width: auto;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
}

.aufgabe-form {
    display: flex;
    gap: 0.6rem;
}

.aufgabe-form input[type="text"] {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: none;
    border-radius: 10px;
    background: #e8edf2;
    box-shadow: inset 3px 3px 6px #c8cdd2, inset -3px -3px 6px #ffffff;
    font-size: 0.9rem;
    color: #2d3748;
    outline: none;
}

.aufgabe-form button { width: auto; padding: 0.6rem 1.1rem; }

.hinweis-grau {
    font-size: 0.85rem;
    color: #a0aec0;
    font-style: italic;
}

.icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}

h1 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.subtitle {
    text-align: center;
    font-size: 0.78rem;
    color: #8a9bb0;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.input-wrap { position: relative; margin-bottom: 1.25rem; }

input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: #e8edf2;
    box-shadow: inset 4px 4px 8px #c8cdd2, inset -4px -4px 8px #ffffff;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    transition: box-shadow 0.2s;
}

input[type="password"]:focus {
    box-shadow:
        inset 6px 6px 12px #c0c5ca,
        inset -4px -4px 8px #ffffff,
        0 0 0 3px rgba(99, 152, 219, 0.25);
}

input[type="password"]::placeholder { color: #a0aec0; }

.link-row {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
}

.link-row a {
    color: #4a7fcb;
    text-decoration: none;
}

.link-row a:hover { text-decoration: underline; }

.hinweis {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: rgba(72, 187, 120, 0.1);
    box-shadow: inset 2px 2px 4px rgba(72, 187, 120, 0.12), inset -2px -2px 4px rgba(255,255,255,0.6);
    color: #22543d;
    font-size: 0.85rem;
    text-align: center;
}

.fehler {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: rgba(229, 62, 62, 0.08);
    box-shadow: inset 2px 2px 4px rgba(229, 62, 62, 0.1), inset -2px -2px 4px rgba(255,255,255,0.6);
    color: #c53030;
    font-size: 0.85rem;
    text-align: center;
}

/* ----------------------------------------------------------------
 * Glassmorphism-Button — "Glasplaettchen"
 * Basiszustand: Glas-Optik ueber der Neumorphism-Flaeche.
 * .pulse   = kurzer Klick-Puls (wird per JS nach ~400ms entfernt)
 * .active  = dauerhaftes Leuchten fuer Toggle-Buttons
 * ---------------------------------------------------------------- */
.glass-btn {
    width: 100%;
    padding: 0.9rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 6px 6px 14px #c8cdd2, -6px -6px 14px #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a7fcb;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
}

.glass-btn:hover {
    box-shadow: 4px 4px 10px #c8cdd2, -4px -4px 10px #ffffff;
}

.glass-btn:active {
    box-shadow: inset 4px 4px 8px #c8cdd2, inset -4px -4px 8px #ffffff;
    transform: scale(0.98);
}

/* Klick-Puls: kurzes gruenes Aufblinken */
.glass-btn.pulse {
    background: rgba(72, 187, 120, 0.45);
    border-color: rgba(72, 187, 120, 0.6);
    color: #22543d;
    box-shadow: 0 0 16px rgba(72, 187, 120, 0.55), 6px 6px 14px #c8cdd2, -6px -6px 14px #ffffff;
}

/* Toggle-Zustand: dauerhaftes gruenes Leuchten bis erneuter Klick */
.glass-btn.active {
    background: rgba(72, 187, 120, 0.35);
    border-color: rgba(72, 187, 120, 0.55);
    color: #22543d;
    box-shadow: 0 0 12px rgba(72, 187, 120, 0.45), 6px 6px 14px #c8cdd2, -6px -6px 14px #ffffff;
}
