/* ============================================================================
   startpage.css — Stylesheet der Standalone-Startseite (index.html)
   (Phase 4, Inline-Styles Scheibe 3)

   Strikt werterhaltender Umzug des frueheren Inline-<style>-Blocks aus
   core/templates/index.html (Landing-/Login-Seite, Route "/"). Die Seite ist
   STANDALONE (erbt nicht von base.html) und ist der EINZIGE Konsument dieser
   Datei -> Klassen bewusst flach/ungescoped (.startseite, .modal, .btn, ...);
   NICHT auf anderen Seiten einbinden, die Namen sind generisch.

   Hintergrundbild: im Template hing das background-image an einem
   {% static %}-Tag (img/archiv.jpg) -- hier stattdessen als RELATIVE URL;
   der Manifest-Storage (Whitenoise) schreibt sie beim collectstatic auf den
   gehashten Dateinamen um. Das JS-Preload im Template ({% static %}) ergibt
   dieselbe URL -> ein Request, Cache-Hit.
   ACHTUNG: Der Manifest-Rewriter matcht "url("-Muster AUCH IN KOMMENTAREN --
   deshalb hier nirgends eine solche Sequenz woertlich zitieren.

   Tokenisierung nur wert-exakt + rollenkonform (Muster ADR-0012, wie auth.css):
   #4f80ff -> var(--ds-color-accent) (.loading-spinner, .btn, input:focus),
   #3a6cd9 -> var(--ds-color-accent-hover) (.btn:hover). Status-Farben waren
   schon tokenisiert (--ds-error-*, --ds-success-* usw.).
   Bewusst literal bleiben (Grau-Skala/Flaechen sind noch keine Tokens):
   #fff, #f3f3f3, #999, #333, #444, #ddd sowie alle rgba()-Schatten/Overlays.

   Die .messages/.message-Regeln (Django-Messages) sind eine bewusst
   ABWEICHENDE Schwester-Variante der base.html-Regeln (jetzt core/css/
   base.css): in-flow statt fixed, border-left statt border, slideDown statt
   fadeIn — KEIN Duplikat. Vereinheitlichung waere eine sichtbare Aenderung
   -> Follow-up in docs/TODO.md.
   System-Message-BASIS kommt aus core/css/system_messages.css (ADR-0015);
   hier liegt nur der Seiten-Override (schmal + zentriert).
   ============================================================================ */

@font-face {
    font-family: 'DINNextLTPro';
    font-display: swap;
    src: url('https://assets.rndtech.de/one/fonts/DINNextLTPro/DINNextLTPro-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'DINNextLTPro';
    font-display: swap;
    src: url('https://assets.rndtech.de/one/fonts/DINNextLTPro/DINNextLTPro-Regular.ttf') format('truetype');
    font-weight: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DINNextLTPro', Arial, sans-serif;
}
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}
.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--ds-color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.startseite {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-image: url("../../img/archiv.499c8c1cca67.jpg");
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}
.startseite.loaded {
    opacity: 1;
}
.header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 50px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(10px);
    margin: -20px;
    z-index: 1;
}
.logo {
    width: 80px;
    height: auto;
    margin-right: 20px;
    position: relative;
    z-index: 2;
}
.slogan {
    font-family: 'DINNextLTPro', Arial, sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}
.buttons {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.btn {
    padding: 12px 30px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    background-color: var(--ds-color-accent);
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: var(--ds-color-accent-hover);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s;
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
    height: 24px;
    width: 24px;
    text-align: center;
}
.modal-close:hover {
    color: #333;
}
.modal-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-weight: bold;
}
.modal form {
    width: 100%;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.form-group input:focus {
    border-color: var(--ds-color-accent);
    outline: none;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.checkbox-group input {
    margin-right: 8px;
}
.error-message {
    color: var(--ds-error-text);
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--ds-error-bg);
    border-radius: 4px;
    font-size: 0.9em;
}

/* Message Styles */
.messages {
    width: 90%;
    max-width: 600px;
    margin: 0 auto 30px auto;
    z-index: 5;
    position: relative;
}
.message {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message.success {
    background-color: var(--ds-success-bg);
    color: var(--ds-success-text);
    border-left: 4px solid var(--ds-success-icon);
}
.message.error {
    background-color: var(--ds-error-bg);
    color: var(--ds-error-text);
    border-left: 4px solid var(--ds-error-icon);
}
.message.warning {
    background-color: var(--ds-warning-bg);
    color: var(--ds-warning-text);
    border-left: 4px solid var(--ds-warning-icon);
}
.message.info {
    background-color: var(--ds-info-bg);
    color: var(--ds-info-text);
    border-left: 4px solid var(--ds-info-icon);
}

/* System-Messages: Basis kommt aus core/css/system_messages.css (ADR-0015);
   Seiten-Override: schmal + zentriert auf der Startseite */
.system-message {
    width: 90%;
    max-width: 600px;
}
