/* --- DARK MODE STYLE.CSS --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Dunkler Hintergrund mit leichtem Schein in der Mitte */
    background: radial-gradient(circle at center, #2a2a35 0%, #121212 100%);
    color: #e0e0e0; /* Heller Text */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid #333; /* Dunkler Rahmen für Avatar */
}

h1 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
h2 { margin-top: 0; color: #fff;}
p { color: #aaa; margin-bottom: 2rem; } /* Etwas grauerer Text */

/* Link Buttons - Dunkel */
.link-item {
    display: block;
    background: #1e1e24; /* Dunkle Boxen */
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff; /* Weißer Text auf den Buttons */
    font-weight: 600;
    border: 1px solid #333;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}

.link-item:hover {
    transform: translateY(-3px);
    background: #25252d;
    box-shadow: 0 8px 12px rgba(0,0,0,0.4);
}

/* Admin Styles - angepasst für Dark Mode */
input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 4px;
    background: #121212;
    color: #fff;
}

button, .btn {
    width: 100%;
    padding: 10px;
    /* Ein etwas knalligeres Blau/Lila für den Dark Mode */
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    font-weight: bold;
}

button:hover, .btn:hover { opacity: 0.9; }

.card {
    background: #1e1e24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e24;
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #fff;
}

.delete-btn {
    color: #ff4444;
    text-decoration: none;
    font-size: 0.9rem;
}
footer a { color: #666 !important; }

/* --- NEU: Drag & Drop und Edit Styles --- */
.admin-item {
    gap: 10px; /* Abstand zwischen den Elementen */
}

/* Der Griff zum Ziehen */
.drag-handle {
    cursor: move;
    color: #888;
    font-size: 1.2rem;
    padding: 0 5px;
    user-select: none;
}
.drag-handle:hover { color: #fff; }

/* Bearbeiten Button */
.edit-btn {
    color: #4a00e0; /* Lila passend zum Theme */
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
}
.edit-btn:hover { color: #8e2de2; }

/* Wenn ein Element gezogen wird */
.sortable-ghost {
    opacity: 0.4;
    background: #333;
}

/* --- HAMBURGER MENÜ (UPDATE) --- */

/* Der Button oben links (3 Striche) */
.menu-icon {
    position: fixed; 
    top: 20px;
    left: 20px;
    font-size: 50px; /* <--- Hier deutlich größer gemacht (vorher 30px) */
    cursor: pointer;
    color: white; 
    z-index: 200;
    line-height: 1; /* Verhindert komische Abstände */
}

/* Das eigentliche Menü */
.sidenav {
    height: 100%;
    width: 0; /* Startet geschlossen */
    position: fixed;
    z-index: 300;
    top: 0;
    left: 0;
    background-color: #111;
    
    /* WICHTIG: Damit der Text verschwindet, wenn Breite 0 ist */
    overflow-x: hidden; 
    white-space: nowrap; /* Verhindert Textumbruch beim Öffnen */
    
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    text-align: left;
}

/* Die Links im Menü */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem; /* Auch die Schrift etwas größer */
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
    background: rgba(255,255,255,0.1);
}

/* Der Schließen-Button (X) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 50px; /* Auch das X größer machen */
    margin-left: 50px;
    color: #fff;
}