/* ============================================
   STÖRUNGSPORTAL - ZENTRALES STYLESHEET
   ============================================ */

/* ----------------------------------------
   1. RESET & GRUNDEINSTELLUNGEN
   ---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 80px; /* Höhe des Footers einplanen */
}

/* ----------------------------------------
   2. NAVIGATION (NAVBAR)
   ---------------------------------------- */
.navbar {
    background-color: #2c3e50;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Links: Dropdown-Menüs */
.navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar-links a:hover {
    background-color: #34495e;
}

/* Rechts: Benutzerinfo + Buttons */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Einheitliche Darstellung für Benutzerinfo */
.navbar-right .user-info {
    color: #ecf0f1;
    font-size: 18px !important; /* Einheitliche Schriftgröße */
    font-weight: 600; /* Hervorhebung */
    margin-right: 15px;
    white-space: nowrap; /* Verhindert Umbruch */
}

/* Buttons in der Navbar */
.navbar-right .nav-btn,
.navbar-right .logout-btn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.navbar-right .nav-btn:hover {
    background-color: #2980b9;
}

.navbar-right .logout-btn {
    background-color: #e74c3c;
}

.navbar-right .logout-btn:hover {
    background-color: #c0392b;
}

/* ----------------------------------------
   3. DROPDOWN-MENÜS
   ---------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown > a::after {
    content: " ▼";
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 400px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #2c3e50;
}

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

/* ----------------------------------------
   4. BUTTONS (Global)
   ---------------------------------------- */
.login-btn,
.logout-btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #2980b9;
}

.logout-btn {
    background-color: #e74c3c;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.new-entry-btn {
    background-color: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 4px;
    display: inline-block;
}

.new-entry-btn:hover {
    background-color: #d35400;
}

.btn {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.action-btn {
    display: inline-block;
    width: 90px;
    text-align: center;
    padding: 8px 0;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: white;
}

.edit-btn {
    background-color: #f39c12;
}

.edit-btn:hover {
    background-color: #e67e22;
}

.delete-btn {
    background-color: #e74c3c;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* ----------------------------------------
   5. LOGOS
   ---------------------------------------- */
.logo-left,
.logo-right {
    position: fixed;
    top: 80px;
    z-index: 500;
}

.logo-left {
    left: 40px;
}

.logo-right {
    right: 25px;
}

.logo-left img {
    height: 80px;
}

.logo-right img {
    height: 250px;
}

/* ----------------------------------------
   6. CONTAINER & LAYOUT
   ---------------------------------------- */
.container {
    width: 78%;
    margin: 100px auto 20px; /* Platz für Navbar */
    padding: 20px;
}

/* ----------------------------------------
   7. ÜBERSCHRIFTEN
   ---------------------------------------- */
h1 {
    position: sticky;
    top: 60px;
    background-color: #f5f5f5;
    text-align: center;
    z-index: 900;
    padding: 10px 0;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

/* ----------------------------------------
   8. TABELLEN
   ---------------------------------------- */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 76vh;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.table-container::-webkit-scrollbar {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    background-color: #34495e;
    color: white;
    z-index: 2;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    word-wrap: break-word;
    white-space: normal;
}

tr:hover {
    background-color: #f8f9fa;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* ----------------------------------------
   9. STATUS-FARBEN
   ---------------------------------------- */
.row-geplant {
    background-color: #d6eaf8;
    color: #2980b9;
    font-weight: bold;
}

.row-offen {
    background-color: #f5b7b1;
    color: #e74c3c;
    font-weight: bold;
}

.row-behoben {
    background-color: #abebc6;
    color: #27ae60;
    font-weight: bold;
}

.row-abgebrochen {
    background-color: #d5d8dc;
    color: #000;
    font-weight: bold;
}

.row-verschoben {
    background-color: #f9e79f;
    color: #e67e22;
    font-weight: bold;
}

/* ----------------------------------------
   10. FORMULARE
   ---------------------------------------- */
.form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    width: 95%;
    margin: 0 auto 30px auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    color: #34495e;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ----------------------------------------
   11. MELDUNGEN
   ---------------------------------------- */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ----------------------------------------
   13. FOOTER
   ---------------------------------------- */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-quote {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer-copyright {
    font-size: 0.9em;
    color: #bdc3c7;
}
