/* ==========================================================================
   ZENTRALES MASTER-DESIGN – OPTIMIERT FÜR 10-ZOLL (100% BILDSCHIRMBREITE)
   (Kompakt, platzsparend, randlos und maximaler Kontrast)
   ========================================================================== */

/* Globale Basis-Einstellungen */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    margin: 0; 
    padding: 8px; /* Minimaler Rand, damit der Text nicht am Plastikrahmen klebt */
    background-color: #f8fafc; 
    color: #0f172a; /* Maximaler Kontrast (tiefes Dunkelblau/Schwarz) */
    line-height: 1.4; 
    font-size: 14px; 
}

/* Container-Layouts – JETZT AUF VOLLE BREITE GEZOGEN */
.table-container { 
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box;
    background: #ffffff; 
    padding: 10px; 
    border-radius: 6px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.form-container { 
    background: #ffffff; 
    padding: 12px; 
    border-radius: 6px; 
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); 
    width: 100%; 
    max-width: 100%; /* Formular nutzt jetzt auch die volle Breite beim Eintragen/Bearbeiten */
    box-sizing: border-box;
    margin: 5px auto;
}

/* Dashboard / Login-Spezialbox (bleibt zentriert, da sonst zu gestreckt) */
.dashboard { 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); 
    text-align: center; 
    max-width: 400px; 
    width: 100%; 
    box-sizing: border-box; 
    margin: 5% auto;
}

/* Überschriften */
h1, h2 { 
    color: #0f172a; 
    margin-top: 5px; 
    margin-bottom: 10px;
    font-weight: 800; /* Extra fett für maximale Lesbarkeit */
    letter-spacing: -0.02em; /* Schiebt die Buchstaben für einen modernen Look minimal zusammen */
    text-align: center; /* Macht alle Überschriften perfekt mittig */
}
h1 { 
    font-size: 24px; /* Von 19px auf 24px erhöht */
}
h2 { 
    font-size: 30px; /* Von 17px auf 30px erhöht */
    border-bottom: 2px solid #cbd5e1; /* Ein etwas dunklerer Strich für saubere Trennung */
    padding-bottom: 4px; 
    margin-bottom: 15px; 
}

/* Formular-Elemente */
.form-group { margin-bottom: 10px; }
.form-row { display: flex; gap: 8px; }
label { display: block; margin-bottom: 3px; font-weight: 600; color: #334155; font-size: 13px; }

input[type="text"], 
input[type="password"], 
textarea { 
    width: 100%; 
    padding: 6px 10px; 
    border: 1px solid #94a3b8; /* Deutlicher Rahmen */
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 20px; /* Von 14px auf 20px erhöht – deutlich größere Tippschrift */ 
    background-color: #fff;
    color: #0f172a;
    transition: all 0.15s ease-in-out;
}
input[type="text"]:focus, 
input[type="password"]:focus, 
textarea:focus { 
    border-color: #2563eb; 
    outline: none; 
    box-shadow: 0 0 0 2px rgb(37 99 235 / 0.15);
}

/* Ausstattung (Checkboxen) */
.checkbox-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin: 4px 0 10px 0; 
    background: #f1f5f9; 
    padding: 6px; 
    border-radius: 6px; 
}
.checkbox-item { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    font-weight: 600; 
    font-size: 13px;
    cursor: pointer; 
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}
.checkbox-item input[type="checkbox"] { transform: scale(1.1); cursor: pointer; }
.cb-achtung { border-color: #fca5a5; color: #dc2626; background: #fff5f5; }

/* Dynamische Zeilen */
.dynamic-group { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.input-num { flex: 2; }
.input-typ { flex: 1; }

.menu-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }

/* Koordinaten Grid-System (Maximale Breitenausnutzung für 10 Zoll) */
.koor-grid { 
    display: grid; 
    grid-template-columns: 1.8fr 1.2fr 1.2fr 1.2fr 1.2fr auto; 
    gap: 4px; 
    margin-bottom: 6px; 
    align-items: center; 
    background: #f8fafc; 
    padding: 4px; 
    border-radius: 4px; 
    border: 1px solid #cbd5e1;
}
.koor-grid input { padding: 5px 6px; font-size: 20px; } 

/* Buttons & Interaktionen */
.btn-action { padding: 6px 10px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; }
.btn-add { background-color: #0f172a; color: white; margin-top: 4px; margin-bottom: 10px; }
.btn-remove { background-color: #ef4444; color: white; padding: 5px 8px; }

button[type="submit"], .btn-submit { 
    background-color: #2563eb; 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    border-radius: 6px; 
    cursor: pointer; 
    width: 100%; 
    font-size: 15px; 
    font-weight: 600;
}

.menu-btn { 
    display: block; 
    background-color: #2563eb; 
    color: white; 
    text-decoration: none; 
    padding: 12px; 
    border-radius: 6px; 
    font-size: 15px; 
    font-weight: 600; 
}
.menu-btn.secondary { background-color: #10b981; }

.btn-edit { background-color: #0f172a; color: white; padding: 5px 10px; border: none; border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-block; }
/* Die normalen Formular-Buttons (Speichern / Löschen) nebeneinander */
.btn-box { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    width: auto; /* Hebt die künstliche Streckung oder Begrenzung auf */
    max-width: 100%;
}

/* Die normalen Buttons behalten ihre kompakte Textbreite (+ Polsterung) */
.btn-box .btn-save,
.btn-box .btn-delete {
    width: auto; 
    padding: 6px 14px; /* Angenehmes, kompaktes Maß */
}

/* --- EXKLUSIV FÜR DIE ALARM-BOX --- */
/* Hier wollen wir die volle Breite behalten, um Fehlklicks zu vermeiden */
.alarm-footer {
    background-color: #f1f5f9;
    padding: 12px;
    display: flex;
    flex-direction: column; 
    gap: 10px;
}
.alarm-btn-confirm, 
.alarm-btn-cancel {
    width: 100% !important; /* Erzwingt die volle Breite NUR im Alarm-Pop-up */
    box-sizing: border-box;
}
.btn-logout { display: inline-block; margin-top: 15px; color: #64748b; text-decoration: none; font-size: 13px; font-weight: 600; }

/* Navigation & Links */
.back-link { display: inline-block; margin-bottom: 10px; color: #64748b; text-decoration: none; font-weight: 600; font-size: 13px; }

/* Tabellen-Styling (Jetzt komplett randlos auf 100% Breite gezogen) */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; border-radius: 4px; overflow: hidden; border: 1px solid #cbd5e1; }
/* Tabellendaten */
th, td { 
    padding: 7px 8px; 
    text-align: left; 
    border-bottom: 1px solid #e2e8f0; 
    vertical-align: top; 
    font-size: 15px;
}
/* Spaltentitel */
th { 
    background-color: #0f172a; 
    color: #ffffff; 
    font-weight: 700; 
    font-size: 13px;
    text-transform: uppercase; 
    letter-spacing: 0.03em;
    white-space: nowrap;
}
tr:nth-child(even) { background-color: #f8fafc; }
tr:hover { background-color: #f1f5f9; }

/* Sortierbare Spaltenköpfe */
th.sortierbar {
    cursor: pointer;
    user-select: none;
    position: relative;
}
th.sortierbar:hover { background: #1e293b; }
th.sortierbar::after {
    content: ' ◅▸';
    opacity: 1;
    font-size: 11px;
    margin-left: 3px;
}
th.sortierbar.asc::after  { content: ' ▲'; opacity: 1; }
th.sortierbar.desc::after { content: ' ▼'; opacity: 1; }

/* Filter / Suchbox */
.search-box { margin-bottom: 12px; background: #f1f5f9; padding: 8px; border-radius: 6px; display: flex; gap: 10px; align-items: center; border: 1px solid #cbd5e1; }
.search-input { padding: 6px 10px; font-size: 14px; border: 1px solid #94a3b8; border-radius: 4px; flex: 1; }
.search-counter { font-size: 13px; color: #334155; font-weight: 600; background: #ffffff; padding: 5px 8px; border-radius: 4px; border: 1px solid #cbd5e1; }

/* Badges */
.badge { padding: 2px 5px; border-radius: 4px; font-size: 13px; }
.bg-active { background-color: #e6f4ea; border: 1px solid #34a853; color: #137333; }
.bg-inactive { background-color: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; opacity: 0.4; }
.bg-danger { background-color: #fee2e2; border: 1px solid #ef4444; color: #b91c1c; font-weight: 700; font-size: 11px; padding: 2px 5px; animation: blinker 2s linear infinite; }

/* Telefonnummer-Tags in der Tabelle (Vergrößert für das Netbook) */
.tag-item { 
    display: block; 
    background: #f8fafc; 
    color: #0f172a; 
    padding: 6px 10px; /* Etwas mehr Klick- und Lesefläche */
    border-radius: 4px; 
    font-size: 20px; /* Von 13px auf 15px erhöht – exakt so groß wie die Adresse */
    font-weight: 700; /* Extra fett gedruckt, damit die Nummern rausstechen */
    margin-bottom: 4px; 
    border: 1px solid #cbd5e1; /* Etwas deutlicherer Rahmen */
}
.tel-desc { 
    font-weight: 800; 
    color: #2563eb; /* Ein kräftiges Blau für den Typ (z.B. BÜRO:) */
    margin-right: 6px; 
    font-size: 15px; /* Die Typ-Bezeichnung bleibt kompakt, um Platz für die Nummer zu lassen */
    text-transform: uppercase; 
}

/* Koordinaten-Darstellungsblöcke */
.koor-block { 
    background: #f0fdf4; /* Ein angenehmes, helles Mintgrün für den Block */
    border: 1px solid #166534; /* Dunkelgrüner, scharfer Rahmen */
    color: #14532d; /* Tiefdunkles Grün für maximalen Textkontrast */
    padding: 6px 10px; 
    border-radius: 4px; 
    font-size: 20px; /* Von 13px auf 20px erhöht – exzellent ablesbar! */
    font-weight: 700; /* Zahlenketten werden fett gedruckt */
    margin-bottom: 5px; 
    font-family: 'Consolas', 'Courier New', monospace; /* Festbreitenschrift: Alle Zahlen stehen perfekt untereinander */
    line-height: 1.4; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.koor-title { 
    font-weight: 800; 
    color: #166534; /* Kräftiges Grün für die Beschriftung (z.B. UTM oder GPS) */
    border-bottom: 1px dashed #166534; /* Deutlichere Trennlinie im Block */
    margin-bottom: 4px; 
    padding-bottom: 2px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* Normale Schrift für den Titel */
    font-size: 15px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

/* Status-Meldungen */
.alert { padding: 8px; margin-bottom: 12px; border-radius: 4px; font-weight: 600; font-size: 14px; }
.success { background-color: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.error { background-color: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.zeile-warnung { background-color: #fff5f5 !important; }
@keyframes blinker { 50% { opacity: 0.4; } }

/* "Zurück"-Button Anpassung für komfortables Klicken */
.back-btn { 
    display: inline-block; 
    background-color: #00FF00; /* Ein neutrales Schiefergrau */
    color: black; 
    padding: 6px 12px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13px; 
    margin-bottom: 12px; 
    transition: background 0.15s;
}
.back-btn:hover { 
    background-color: #334155;
    color: white; 
}

/* ==========================================================================
   EINHEITLICHE BUTTON-DEFINITIONEN (Farblich optimiert für Netbook)
   ========================================================================== */

/* Gemeinsame Basis für alle Aktions-Buttons in Formularen und Tabellen */
.btn-action, .btn-save, .btn-delete, .btn-edit, .back-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700; /* Schön fett gedruckt für schnelle Erfassbarkeit */
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.15); /* Feiner, dezenter Rand für Struktur */
    box-sizing: border-box;
    transition: background 0.15s ease-in-out;
}

/* 1. ZURÜCK-Button (#ADFF2F - Neongrün / Schwarz) */
.back-btn { 
    background-color: #ADFF2F; 
    color: #000000; 
    margin-bottom: 12px; 
}
.back-btn:hover { background-color: #9bee00; }

/* 2. LÖSCHEN-Button (#FF0000 - Reinrot / Weiß) */
.btn-delete { 
    background-color: #FF0000; 
    color: #FFFFFF; 
}
.btn-delete:hover { background-color: #cc0000; }

/* 3. BEARBEITEN-Button (#FF7F50 - Koralle / Schwarz) */
.btn-edit { 
    background-color: #FF7F50; 
    color: #000000; 
}
.btn-edit:hover { background-color: #ff6633; }

/* 4. SPEICHERN-Button (#00FFFF - Cyan/Hellblau / Schwarz) */
.btn-save { 
    background-color: #00FFFF; 
    color: #000000; 
}
.btn-save:hover { background-color: #00cccc; }

/* Spezial-Buttons für Zeilen-Aktionen (Plus/Minus im Formular) */
.btn-add { background-color: #0f172a; color: white; margin-top: 4px; margin-bottom: 10px; }
.btn-add:hover { background-color: #1e293b; }
.btn-remove { background-color: #FF0000; color: white; padding: 5px 8px; }

/* ==========================================================================
   ULTRA-AUFFÄLLIGES LÖSCH-ALARM-FENSTER (Netbook Optimiert)
   ========================================================================== */

/* Dunkler Hintergrund, der die gesamte App blockiert */
.alarm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Sehr dunkles Ausblenden der Liste */
    z-index: 9999; /* Immer ganz oben auf dem Bildschirm */
}

/* Die Alarm-Box in der Mitte */
.alarm-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    width: 90%;
    max-width: 480px; /* Perfekt für das 10" Netbook */
    border: 5px solid #FF0000; /* Dicker, roter Alarm-Rand */
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    animation: alarmBlink 1.5s infinite; /* Der Rand pulsiert bedrohlich */
}

/* Kopfzeile im Warnwesten-Look */
.alarm-header {
    background-color: #ADFF2F; /* Dein Neongrün/Gelb */
    color: #000000;
    font-size: 18px;
    font-weight: 900;
    padding: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid #FF0000;
}

/* Hinweistext im Alarm-Fenster */
.alarm-body {
    padding: 15px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
}
.alarm-body strong {
    color: #FF0000; /* Macht die kritischen Wörter rot */
}

/* Die riesigen, unübersehbaren Antwort-Buttons */
.alarm-footer {
    background-color: #f1f5f9;
    padding: 12px;
    display: flex;
    flex-direction: column; /* Buttons untereinander auf dem Netbook = leichter zu treffen */
    gap: 10px;
}

/* Der finale "Vernichten"-Button */
.alarm-btn-confirm {
    width: 100%;
    background-color: #FF0000;
    color: #ffffff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.alarm-btn-confirm:hover { background-color: #b91c1c; }

/* Der sichere "Rettungs"-Button (Riesig, damit man ihn schnell erwischt) */
.alarm-btn-cancel {
    width: 100%;
    background-color: #10b981; /* Beruhigendes, sicheres Grün */
    color: #ffffff;
    border: none;
    padding: 14px; /* Noch ein Stück größer als der Löschen-Button! */
    font-size: 16px;
    font-weight: 900;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}
.alarm-btn-cancel:hover { background-color: #059669; }

/* Pulsierende Animation für die Box-Umrandung */
@keyframes alarmBlink {
    0% { border-color: #FF0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { border-color: #ADFF2F; box-shadow: 0 0 30px rgba(173, 255, 47, 0.7); }
    100% { border-color: #FF0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
}
/* ==========================================================================
   NEUE MODERNE KOPFZEILE (Überschrift und Button nebeneinander)
   ========================================================================== */

.page-header-row {
    display: flex;
    align-items: center;       /* Zentriert Text und Button perfekt auf einer Höhe */
    flex-wrap: wrap;           /* Umbricht auf dem Netbook statt abzuschneiden */
    gap: 15px;                 /* Abstand zwischen Überschrift und Button */
    margin-bottom: 15px;       /* Abstand nach unten */
    border-bottom: 2px solid #cbd5e1; /* Der saubere Trennstrich */
    padding-bottom: 8px;
}

.page-header-row h1,
.page-header-row h2 {
    margin: 0 !important;      /* Entfernt alte Abstände */
    padding: 0 !important;
    text-align: left !important; /* Text steht immer links */
    font-size: 24px !important;  /* Perfekte Netbook-Größe */
    border-bottom: none !important; /* Entfernt alten doppelten Unterstrich */
}

.page-header-row .back-btn,
.page-header-row .btn-back {
    margin: 0 !important;      /* Keine störenden Außenabstände mehr */
}
/* ==========================================================================
   SPEZIAL-BUTTON FÜR NEUEINTRAG IN DER SUCHLEISTE
   ========================================================================== */
.btn-create-new {
    background-color: #f0FFf0; /* Ein kräftiges, professionelles Blau */
    color: #000000 !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    white-space: nowrap; /* Verhindert Zeilenumbruch im Button text */
    transition: background 0.15s;
}
.btn-create-new:hover {
    background-color: #32cd32;
}
/* ==========================================================================
   OPTIMIERTER RESET-BUTTON (Identisch zum grünen Neuer-Eintrag-Button)
   ========================================================================== */
.btn-reset {
    background-color: #FFE4E1; /* Signalrot */
    color: #000000 !important;  /* Weiße Schrift */
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    white-space: nowrap; 
    cursor: pointer;
    display: inline-block; /* HIER GEÄNDERT: Jetzt immer sichtbar! */
    transition: background 0.15s;
    box-sizing: border-box;
}
.btn-reset:hover {
    background-color: #cc0000;
}

/* ==========================================================================
   DATENSATZ-NAVIGATION (⏮ ◀ ▶ ⏭)
   ========================================================================== */
.nav-btn-group {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.nav-btn {
    background: #e2e8f0;
    border: 1px solid #94a3b8;
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    color: #0f172a;
    line-height: 1;
    transition: background 0.1s;
}
.nav-btn:hover { background: #cbd5e1; }
.nav-btn:disabled { opacity: 0.35; cursor: default; }

/* ==========================================================================
   TOOLBAR-BUTTONS (Kopfzeile: Bearbeiten, Neu, Karte, Zulassung)
   ========================================================================== */
.btn-nav-bearbeiten {
    background: #FF7F50;
    color: #000;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-nav-bearbeiten:hover { background: #ff6633; }

.btn-nav-neu {
    background: #f0fff0;
    color: #000;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-nav-neu:hover { background: #32cd32; }

.btn-karte {
    background: #2563eb;
    color: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-karte:hover { background: #1d4ed8; }
.btn-karte:disabled { opacity: 0.4; cursor: default; }

.btn-zulassung {
    background: #FF7F50;
    color: #000;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-zulassung:hover { background: #ff6633; }
.btn-zulassung:disabled { opacity: 0.4; cursor: default; }

/* ==========================================================================
   MODAL-BUTTONS (Speichern, Abbrechen, Update, Schließen)
   ========================================================================== */
.btn-speichern {
    background: #00FFFF;
    color: #000;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-speichern:hover { background: #00cccc; }
.btn-speichern:disabled { opacity: 0.5; cursor: default; }
.btn-speichern.lila {
    background: #7c3aed;
    color: #fff;
}
.btn-speichern.lila:hover { background: #6d28d9; }

.btn-abbrechen, .btn-abbruch {
    background: #e2e8f0;
    color: #0f172a;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.btn-abbrechen:hover, .btn-abbruch:hover { background: #cbd5e1; }

.btn-update {
    background: #FF7F50;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-update:hover { background: #ff6633; }
.btn-update:disabled { opacity: 0.5; cursor: default; }

.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 4px;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   FILTER-BUTTONS
   ========================================================================== */
.btn-filter-toggle {
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-filter-toggle:hover { background: #ddd6fe; }
.btn-filter-toggle.aktiv { background: #7c3aed; color: #fff; border-color: #6d28d9; }

.btn-filter-reset {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-filter-reset:hover { background: #fecaca; }

/* ==========================================================================
   INLINE-AKTIONS-BUTTONS (Neue Tankstelle, Toggle)
   ========================================================================== */
.btn-neue-ts {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    transition: background 0.15s;
}
.btn-neue-ts:hover { background: #a7f3d0; }

.toggle-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #FF7F50;
    color: #000;
    transition: all 0.15s;
    white-space: nowrap;
}
.toggle-btn.aktiv {
    background: #ADFF2F;
    color: #000;
}
.toggle-btn:hover:not(.aktiv) { background: #ff6633; }

/* ==========================================================================
   REMINDER-BUTTONS (Tagesbericht)
   ========================================================================== */
.btn-reminder-stay { background: #10b981; color: #fff; }
.btn-reminder-go { background: #64748b; color: #fff; }

/* ==========================================================================
   SPLITVIEW-TABELLE (scrollbare Liste unter der Detailkarte)
   ========================================================================== */
.tabelle-container {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}
.tabelle-container table { margin-top: 0; border: none; }
.tabelle-container thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px;
    font-size: 13px;
    white-space: nowrap;
}
.tabelle-container tbody tr { cursor: pointer; }
.tabelle-container tbody tr:hover td { background: #f1f5f9; }
.tabelle-container tbody tr.aktive-zeile { background: #dbeafe !important; }
.tabelle-container td {
    font-size: 15px;
    padding: 7px 8px;
    white-space: nowrap;
}
.tabelle-container td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   JAHR-TABS (Auswertungen) — Referenz: auswertung_adressen.php
   ========================================================================== */
.jahr-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.jahr-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s;
}
.jahr-tab:first-child { border-radius: 6px 0 0 0; }
.jahr-tab:last-child { border-radius: 0 6px 0 0; }
.jahr-tab:hover { background: #e2e8f0; }
.jahr-tab.aktiv {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}