/* =========================================================
   🌐 Globales Design – Moderner Glas-Style
   ========================================================= */
body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, #d4e9ff 0%, #e6f0ff 40%, #c7e1ff 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================================
   📦 Container (Login / Register / Dashboard)
   ========================================================= */
.container {
    background: rgba(255, 255, 255, 0.25);
    margin: 6% auto;
    padding: 40px;
    border-radius: 16px;
    width: 380px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   🏷 Überschriften
   ========================================================= */
h1 {
    color: #0077ff;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 600;
    margin-bottom: 20px;
}

/* =========================================================
   ✏️ Eingabefelder
   ========================================================= */
input {
    margin: 10px 0;
    padding: 12px;
    width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(80, 80, 80, 0.7);
}

input:focus {
    background: rgba(255, 255, 255, 0.75);
    border-color: #4da3ff;
    box-shadow: 0 0 10px rgba(77,163,255,0.4);
}

/* =========================================================
   🔘 Buttons
   ========================================================= */
button {
    margin-top: 10px;
    padding: 12px;
    width: 84%;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #0090ff, #006eff);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 144, 255, 0.4);
}

button:disabled {
    background: #bbb;
    cursor: not-allowed;
}

/* =========================================================
   🔗 Navigation & Links
   ========================================================= */
a {
    color: #0090ff;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   🧭 Glas-Navigation (Dashboard)
   ========================================================= */
.glass-nav {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 500;
    color: #333;
}

.nav-left {
    font-size: 18px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right a,
.dropdown button {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 14px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-right a:hover,
.dropdown button:hover {
    background: rgba(77,163,255,0.2);
}

/* =========================================================
   ⚙️ Dropdown-Menü im Glas-Design
   ========================================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown button {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #222;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.dropdown button:hover {
    background: rgba(77,163,255,0.25);
    color: #004c99;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 10;
    text-align: left;
}

.dropdown-content a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(77,163,255,0.15);
    color: #0077ff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================================================
   🧊 Glascontainer (Dashboard)
   ========================================================= */
.container.glass-box,
.user-info.glass-box {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 35px 40px;
    margin: 50px auto;
    max-width: 1100px;
    width: 90%;
    color: #333;
}

/* =========================================================
   👤 Benutzerinfo
   ========================================================= */
.user-info a {
    color: #0077b6;
    text-decoration: none;
}

.user-info a:hover {
    text-decoration: underline;
}

/* =========================================================
   📈 Tabellen – optimiert und gleichmäßig verteilt
   ========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    table-layout: fixed;
}

th, td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

th {
    background: rgba(77,163,255,0.9);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
}

td {
    background: rgba(255, 255, 255, 0.5);
    color: #222;
    font-size: 15px;
}

th:nth-child(1), td:nth-child(1) { width: 25%; }
th:nth-child(2), td:nth-child(2) { width: 15%; }
th:nth-child(3), td:nth-child(3) { width: 20%; }
th:nth-child(4), td:nth-child(4) { width: 25%; }
th:nth-child(5), td:nth-child(5) { width: 15%; }

tr:hover {
    background: rgba(77, 163, 255, 0.12);
}

/* =========================================================
   💬 Zusammenfassung
   ========================================================= */
.summary {
    background: rgba(77,163,255,0.15);
    border-left: 4px solid #4da3ff;
    padding: 10px 15px;
    margin: 15px auto 25px auto;
    font-weight: 600;
    color: #0a3d62;
    max-width: 500px;
    border-radius: 8px;
}
/* =========================================================
   🧭 Feinschliff für Navbar & Dropdown (Dashboard)
   ========================================================= */

/* Navbar-Schrift dezenter & kompakter */
.glass-nav {
    font-weight: 300;
    color: #222;
    font-size: 16px;
    padding: 10px 25px;
}

/* Linke Seite (Titel) */
.nav-left {
    font-size: 17px;
    font-weight: 600;
    color: #003366;
}

/* Optionen-Button & Logout-Bereich etwas angeglichen */
.nav-right a,
.dropdown button {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 14px;
    border-radius: 8px;
    color: #222;
    font-weight: 500;
    font-size: 14px;
}

.nav-right a:hover,
.dropdown button:hover {
    background: rgba(77,163,255,0.25);
    color: #004c99;
}

/* Dropdown-Box mit höherem Layer, damit sie nie verdeckt wird */
.dropdown-content {
    z-index: 1000;
    top: 45px;
}

/* =========================================================
   👤 Benutzerinfo kompakter & schöner
   ========================================================= */
.user-info.glass-box {
    padding: 15px 20px;
    margin: 25px auto 35px auto;
    max-width: 600px;
    font-size: 15px;
    display: inline-block;
}

.user-info strong {
    font-weight: 600;
    color: #111;
}

.user-info a {
    color: #0077ff;
    font-weight: 500;
}
