/* Black-Screen for Battery Saving and Night Vision */
body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 10px 20px 20px 20px;
    transition: filter 0.3s ease; 
}

body.dimmed {
    filter: brightness(0.15); 
}

.container {
    max-width: 400px;
    margin: 0 auto;
}

.tab-bar {
    display: flex;
    border-bottom: 2px solid #222;
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #fff;
    border-bottom-color: #007bff;
}

input[type="number"], input[type="text"] {
    font-size: 24px;
    padding: 10px;
    width: 150px;
    text-align: center;
    border-radius: 8px;
    border: none;
    margin-top: 10px;
    background-color: #222;
    color: #fff;
}

input[type="text"] {
    text-transform: uppercase; 
    width: 200px;
    letter-spacing: 2px;
}

button {
    font-size: 20px;
    padding: 15px 30px;
    border: none; /* KORREKTUR: Stellt sicher, dass kein Button einen Rahmen hat */
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-primary { background-color: #007bff; color: white; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-dark { background-color: #2d2d2d; color: #fff; border: none; } /* Rahmen entfernt */

.btn-test {
    font-size: 14px;
    padding: 8px 15px;
    width: auto;
    margin: 10px auto;
    display: block;
    background-color: #222;
    color: #aaa;
    border: none; /* Rahmen entfernt */
}

.icon-gray {
    filter: grayscale(100%);
    display: inline-block; 
}

/* KORREKTUR: Einzeilige PIN auf Handy A (kleiner & fetter, nur PIN grün) */
.pin-line {
    font-size: 20px;
    color: #fff;
    margin: 15px 0;
}

.pin-display {
    font-size: 20px;
    letter-spacing: 2px;
    color: #00cc00; /* Weiches Grün */
    font-weight: bold; /* Fetter */
    text-transform: uppercase;
}

.distance-display {
    font-size: 64px;
    font-weight: bold;
    margin: 20px 0;
}

.note { color: #888; font-size: 14px; margin-bottom: 30px; }

.status-ok { background-color: #0b3d0b; }
.status-warning { background-color: #664d03; } 
.status-alarm { 
    background-color: #ff0000; 
    animation: flash 1s infinite; 
}
.status-offline { background-color: #333333; }

@keyframes flash {
    0% { background-color: #ff0000; }
    50% { background-color: #4a0000; }
    100% { background-color: #ff0000; }
}

body.status-alarm #stopBtn,
body.status-alarm #disconnectBtn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important; /* Rahmen entfernt */
}

.accordion {
    margin-top: 40px;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.accordion summary {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    text-align: center;
}
.accordion-content {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
    line-height: 1.5;
}

