/* Grundlegende Resets und Box-Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Moderne Schriftart */
    background-color: #f4f7f6; /* Heller Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Volle Höhe */
    color: #333;
}

.login-container {
    background-color: #ffffff; /* Weiße Box */
    padding: 40px;
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Dezenter Schatten */
    width: 100%;
    max-width: 400px; /* Maximale Breite */
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    color: #2c3e50; /* Dunkelblaue Überschrift */
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease; /* Sanfter Übergang */
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #3498db; /* Blauer Rand bei Fokus */
    outline: none; /* Standard-Outline entfernen */
}

.btn-login {
    background-color: #ea582b; /* Oranger Button */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease; /* Sanfter Übergang */
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #2980b9; /* Dunklerer Blauton beim Hover */
}

.error-message {
    background-color: #f8d7da; /* Heller Roter Hintergrund */
    color: #721c24; /* Dunkelrote Schrift */
    border: 1px solid #f5c6cb; /* Roter Rand */
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}
/* === Styles für das Download-Portal === */

/* Container für den Hauptinhalt des Portals */
.portal-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Etwas breiter für Dateilisten */
    margin: 40px auto; /* Abstand oben/unten und zentriert */
}

/* Überschrift im Portal */
.portal-container h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem; /* Etwas größer */
    border-bottom: 1px solid #eee; /* Dezente Trennlinie */
    padding-bottom: 15px;
}
.portal-container h1 i { /* Icon in der Überschrift */
    margin-right: 10px;
    color: #3498db;
}


.portal-container h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}


/* Header-Styling (Willkommen & Logout) */
.portal-header {
    background-color: #34495e; /* Dunklerer Header */
    color: #ecf0f1; /* Heller Text */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.portal-header span {
    font-weight: 700;
}

.btn-logout {
    background-color: #e74c3c; /* Roter Logout-Button */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.btn-logout i {
    margin-right: 5px;
}

.btn-logout:hover {
    background-color: #c0392b; /* Dunkleres Rot */
}

/* Styling für die Download-Liste */
.download-list {
    list-style: none; /* Keine Aufzählungszeichen */
    padding: 0;
    margin-top: 20px;
}

.download-item {
    display: flex;
    justify-content: space-between; /* Elemente auseinander schieben */
    align-items: center; /* Vertikal zentrieren */
    padding: 15px 10px;
    border-bottom: 1px solid #ecf0f1; /* Leichte Trennlinie */
    transition: background-color 0.2s ease;
}

.download-item:last-child {
    border-bottom: none; /* Keine Linie beim letzten Element */
}

.download-item:hover {
    background-color: #f9f9f9; /* Leichter Hover-Effekt */
}

.file-info {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Nimmt verfügbaren Platz ein */
    margin-right: 15px; /* Abstand zum Download-Button */
}

.file-icon {
    font-size: 1.8rem; /* Größe des PDF-Icons */
    color: #e74c3c; /* Rote Farbe für PDF-Icons (typisch) */
    margin-right: 15px;
    min-width: 30px; /* Sicherstellen, dass Icons Platz haben */
    text-align: center;
}

.file-name {
    color: #2c3e50;
    font-weight: 500;
    /* Optional: Verhindern, dass sehr lange Namen den Button verschieben */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 450px; /* Maximalbreite anpassen, falls nötig */
}

/* Styling für den Download-Link/Button */
.download-link {
    display: inline-flex; /* Damit Icon und Text nebeneinander passen */
    align-items: center;
    background-color: #f39c12; /* Helles Orange */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap; /* Verhindert Umbruch bei schmalen Bildschirmen */
}

.download-link i {
    margin-right: 8px; /* Abstand zwischen Icon und Text */
}

.download-link:hover {
    background-color: #e67e22; /* Dunkleres Orange */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Styling für Info-Meldungen (z.B. keine Dateien) */
.info-message {
    background-color: #eaf5ff;
    color: #3498db;
    border: 1px solid #aed6f1;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}

/* Styling für die Debug-Box (optional, aber hilfreich) */
.debug-box {
    background-color: #fef9e7;
    border: 1px solid #fdebd0;
    color: #b9770e;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto; /* Scrollbar, falls zu viele Meldungen */
}

/* Responsivität (Beispiel für kleine Bildschirme) */
@media (max-width: 600px) {
    .portal-container {
        padding: 20px;
        margin: 20px 10px;
    }

    .portal-header {
        padding: 10px 15px;
        flex-direction: column; /* Untereinander auf kleinen Schirmen */
        align-items: flex-start;
    }
    .portal-header span {
        margin-bottom: 10px;
    }

    .download-item {
        flex-direction: column; /* Elemente untereinander */
        align-items: flex-start; /* Links ausrichten */
    }

    .file-info {
        margin-bottom: 10px; /* Abstand nach unten */
         margin-right: 0;
    }
     .file-name {
        white-space: normal; /* Erlaube Umbruch bei langen Namen */
        overflow: visible;
        text-overflow: clip;
        max-width: 100%;
    }

    .download-link {
        width: 100%; /* Button auf volle Breite */
        justify-content: center; /* Inhalt zentrieren */
        padding: 10px;
    }

     .portal-container h1 {
        font-size: 1.5rem;
     }
      .portal-container h2 {
        font-size: 1.2rem;
     }
}
/* --- CSS für die fixierte User-Info --- */

/* Entferne oder kommentiere die alten Regeln für .portal-header und .btn-logout aus */
/*
.portal-header { ... }
.btn-logout { ... }
*/


.fixed-user-info {
    position: fixed; /* Fixiert die Box relativ zum Browserfenster */
    bottom: 15px;    /* Abstand vom unteren Rand */
    right: 15px;     /* Abstand vom rechten Rand */
    background-color: rgba(44, 62, 80, 0.9); /* Dunkelblau-grau mit leichter Transparenz */
    color: #ecf0f1; /* Heller Text */
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Stellt sicher, dass es über anderem Inhalt liegt */
    display: flex; /* Elemente nebeneinander */
    align-items: center; /* Vertikal zentrieren */
    font-size: 0.9em;
}

.welcome-text {
    margin-right: 15px; /* Abstand zum Logout-Button */
}

.welcome-text strong {
    font-weight: 700;
}

.btn-logout-fixed { /* Eigener Style für den Logout-Button in der fixierten Box */
    background-color: #e74c3c; /* Rot */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85em;
    transition: background-color 0.3s ease;
    display: inline-flex; /* Für Icon und Text */
    align-items: center;
}

.btn-logout-fixed i {
    margin-right: 5px;
}

.btn-logout-fixed:hover {
    background-color: #c0392b; /* Dunkleres Rot */
}

/* --- Ende CSS für die fixierte User-Info --- */

/* --- Optional: Stelle sicher, dass genug Platz am Ende der Seite ist --- */
/* Füge einen unteren Margin zum Hauptcontainer hinzu, damit die fixe Box nichts Wichtiges verdeckt, wenn man ganz nach unten scrollt */
.portal-container {
    /* Deine bisherigen portal-container Styles... */
    margin-bottom: 80px; /* Füge dies hinzu oder erhöhe einen bestehenden margin-bottom. Höhe anpassen! */
}