/* --- 1. Basis & Layout --- */
* { box-sizing: border-box; }
html, body { 
    margin: 0; padding: 0; height: 100%; width: 100%; 
    font-family: 'Segoe UI', Arial, sans-serif; 
}
.wrapper { display: flex; flex-direction: column; height: 100vh; }

/* --- 2. Login Layout (Zentriert) --- */
.centered-form {
    display: flex !important; justify-content: center !important; align-items: center !important;
    width: 100vw; height: 100vh; background-color: #333; position: fixed; top: 0; left: 0; z-index: 2000;
}
.login-card {
    background: #fff; padding: 40px; border-radius: 10px; width: 100%; max-width: 400px; 
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.login-logo { width: 100%; max-width: 250px; margin-bottom: 20px; }
.flag-container { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* --- 3. Header & Navigation (Rechtsbündig) --- */
.header {
    height: 60px; background-color: #C0C0C0; display: flex;
    justify-content: space-between; align-items: center; padding: 0 20px;
    flex-shrink: 0; border-bottom: 1px solid #999;
}
.header-right { display: flex; align-items: center; }
.liste { display: flex !important; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0 12px; }
.img-container { 
    position: relative; width: 45px; height: 45px; 
    display: flex; align-items: center; justify-content: center; 
}
.img-container img { width: 32px; height: 32px; cursor: pointer; }

.nav-hover {
    position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
    background: #000; color: #fff; padding: 4px 8px; font-size: 11px;
    border-radius: 4px; opacity: 0; pointer-events: none; transition: 0.2s;
    white-space: nowrap; z-index: 1000;
}
.img-container:hover .nav-hover { opacity: 1; }
.account-links { margin-left: 20px; font-size: 14px; font-weight: bold; border-left: 1px solid #999; padding-left: 15px; }
.account-links a { color: #333; text-decoration: none; }

/* --- 4. Modal System (Groß & Zentriert) --- */
.jquery-modal.blocker {
    display: flex !important; justify-content: center !important; align-items: center !important;
    background: rgba(0,0,0,0.8) !important; z-index: 9999 !important;
}
/* Versteckt das Modal nur, wenn es NICHT innerhalb des jQuery-Modal-Blockers ist */
#modal:not(.current) {
    display: none;
}

/* Falls Bootstrap dazwischenfunkt, entziehen wir dem Modal die Bootstrap-Standard-Stile, 
   solange es nicht aktiv ist */
#modal {
    visibility: hidden;
}

/* Sobald jQuery-Modal das Fenster anzeigt, wird es sichtbar */
.jquery-modal #modal {
    visibility: visible;
    display: inline-block;
}
.modal {
    display: inline-block !important; width: 98% !important; max-width: 1400px !important;
    height: 90vh !important; padding: 0 !important; border-radius: 12px;
    background: #fff; position: relative !important; vertical-align: middle;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#modal-content { height: 100%; padding: 40px; overflow-y: auto; }

/* --- 5. Custom Close Button --- */
.modal a.close-modal {
    top: 20px !important; right: 20px !important; width: 45px !important; height: 45px !important;
    background-color: #333 !important; background-image: none !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important;
    justify-content: center !important; color: #fff !important; text-indent: 0 !important;
    font-size: 30px !important; font-weight: 300 !important; border: 2px solid #fff !important;
    transition: 0.3s;
}
.modal a.close-modal:before { content: "×"; }
.modal a.close-modal:hover { background-color: #e74c3c !important; transform: rotate(90deg); }

/* --- 6. Kalender & Footer --- */
.content-area { flex-grow: 1; overflow: hidden; background: #fff; }
#calendar { height: 100%; }
.footer { height: 30px; background: #333; color: #ccc; font-size: 11px; display: flex; align-items: center; padding: 0 20px; }

/* --- 7. Droppale Divs --- */
#external-events {
    padding: 10px;
    width: 200px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.fc-event {
    margin: 5px 0;
    cursor: move;
    padding: 5px;
    color: white;
    border-radius: 4px;
}