:root {
    --bg-color: #000000;
    --text-color: #00ff00; /* Terminal Green */
    --alert-color: #ff3333; /* Rot für Fehler/Löschen */
    --warn-color: #ffff00;  /* Gelb für Warnungen/Geprüft */
    --font-stack: 'Courier New', Courier, monospace;
}

/* --- GRUNDLAGEN (ZWINGT SCHWARZ) --- */
html, body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    line-height: 1.4;
    min-height: 100vh;
}

h1, h2, h3 { 
    text-transform: uppercase; 
    border-bottom: 2px solid var(--text-color); 
    padding-bottom: 10px; 
    margin-top: 30px;
}

a { color: var(--text-color); text-decoration: none; border-bottom: 1px dotted var(--text-color); }
a:hover { background-color: var(--text-color); color: var(--bg-color); }

.container { max-width: 900px; margin: 0 auto; padding-bottom: 50px; }

/* --- FORMULAR ELEMENTE --- */
.card { 
    border: 1px solid var(--text-color); 
    padding: 15px; 
    margin-bottom: 20px; 
    background: #000;
}

input, select, textarea, button {
    background: #111;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 12px;
    font-family: var(--font-stack);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 1rem;
}

button { 
    cursor: pointer; 
    text-transform: uppercase; 
    font-weight: bold; 
    border-width: 2px;
}
button:hover { background: var(--text-color); color: var(--bg-color); }

/* --- CHECKBOXEN GRID --- */
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.checkbox-item label { display: flex; align-items: center; cursor: pointer; }
.checkbox-item input { width: auto; margin-right: 10px; }
/* Mobil untereinander */
@media (max-width: 600px) { .checkbox-group { grid-template-columns: 1fr; } }

/* --- ALERTS & MELDUNGEN --- */
.alert { color: var(--alert-color); border-color: var(--alert-color); }
.success { color: #fff; border-color: #fff; }

/* --- BILD VORSCHAU FIX (MOBILE) --- */
/* Verhindert, dass Bilder das Layout sprengen */
.staged-files-info {
    border: 1px dashed var(--text-color);
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden; 
}

.gallery-preview { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 10px; 
}

/* Erzwingt kleine Thumbnails bei der Upload-Vorschau */
.gallery-preview img, .staged-files-info img { 
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border: 1px solid var(--text-color);
    margin: 2px;
}

/* --- AUTOCOMPLETE (ADRESS VORSCHLÄGE) --- */
.autocomplete-container {
    position: relative;
    width: 100%;
}

#suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 1px solid var(--text-color);
    border-top: none;
    z-index: 1000; /* Muss über dem Button liegen */
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Standardmäßig aus */
}

#suggestions-list li {
    padding: 10px;
    border-bottom: 1px dotted #333;
    cursor: pointer;
    font-size: 0.9rem;
}

#suggestions-list li:hover {
    background: var(--text-color);
    color: #000;
}

/* --- ADMIN BEREICH (ACCORDION & STATUS) --- */
.report-entry { border: 1px solid var(--text-color); margin-bottom: 15px; background: #000; }

.report-header {
    padding: 15px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #050505; 
    user-select: none;
}
.report-header:hover { background: #111; }
.report-header .meta-short { font-weight: bold; font-size: 1.1em; }

/* Status Badges */
.status-badge { padding: 2px 8px; border: 1px solid currentColor; text-transform: uppercase; font-size: 0.8em; margin-left: 10px; }
.st-open { color: var(--alert-color); border-color: var(--alert-color); }
.st-checked { color: var(--warn-color); border-color: var(--warn-color); }
.st-fixed { color: var(--text-color); border-color: var(--text-color); }

/* Ausklappbarer Bereich */
.report-body { display: none; padding: 15px; border-top: 1px dashed #333; }
.report-body.active { display: block; }

/* Admin Bildergalerie (etwas größer als Thumbnails) */
.report-gallery { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #333; }
.report-gallery img { height: 150px; width: auto; object-fit: cover; border: 1px solid #333; }

/* Grid für Details */
.report-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.detail-block label { display: block; font-size: 0.7em; opacity: 0.7; }
.detail-block span { font-size: 1.1em; font-weight: bold; }

/* Button Leiste unten im Admin */
.action-bar { margin-top: 20px; padding-top: 10px; border-top: 1px dotted #333; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.status-actions a { margin-right: 10px; font-size: 0.9em; padding: 3px; border: 1px solid transparent; }
.status-actions a:hover { border-color: currentColor; }
.btn-del { color: var(--alert-color) !important; border-color: var(--alert-color) !important; }
