* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #090909;
    color: #f5f5f5;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    background: #050505;
    border-right: 1px solid #222;
    position: fixed;
    left: 0;
    top: 0;
    padding: 25px;
}

.logo-image {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
}

.shield {
    font-size: 50px;
}

.logo h2 {
    margin: 10px 0 0;
    letter-spacing: 2px;
}

.logo span {
    color: #ff6a00;
}

.logo p {
    color: #999;
    font-size: 12px;
    letter-spacing: 4px;
}

nav {
    width: 100%;
}

.nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-width: 0;

    color: #bbb;
    text-decoration: none;

    padding: 14px 20px;
    margin-bottom: 6px;

    border-left: 4px solid transparent;
    border-radius: 10px;

    transition: all 0.25s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #ff6a00;
    border-left-color: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,106,0,0.15);
}

nav a.active {
    background: rgba(255,255,255,0.08);
    color: #ff6a00;
    border-left-color: #ff6a00;
}

.menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 20px 0;
}

.logout-link {
    color: #999 !important;
}

.logout-link:hover {
    color: #ff6a00 !important;
}

.content {
    margin-left: 250px;
    padding: 30px 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    border-bottom: 1px solid #222;
    
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.header-title i {
    font-size: 22px;
    color: #bdbdbd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-title i:hover {
    color: #ff6a00;
}

.header-title h3 {
    margin: 0;
}

.user {
    color: #aaa;
}

.user-panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #aaa;
}

.avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #ff6a00;
}

.welcome {
    margin-top: 30px;
}

.welcome h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.welcome p {
    color: #aaa;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #111111;
    border: 1px solid #262626;
    border-radius: 6px;

    padding: 24px;

    min-height: 140px;

    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: #ff6a00;

    box-shadow: 0 8px 25px rgba(255,106,0,0.15);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 24px;
}

.card-icon {
    font-size: 42px;
    width: 60px;
    text-align: center;
}

.card-icon.orange {
    color: #ff6a00;
}

.stat-card h3 {
    text-transform: uppercase;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 34px;
    margin: 0;
    color: #fff;
}

.stat-card span {
    color: #ff6a00;
    font-size: 14px;
}



.panel {
    margin-top: 30px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 25px;
}

.plan-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #111;
    border: 1px solid #262626;
    border-radius: 8px;

    padding: 18px;
    margin-top: 30px;
}

.plan-toolbar h2 {
    margin: 0;
    color: #fff;
}

.plan-toolbar p {
    margin: 4px 0 0;
    color: #888;
}

.toolbar-btn,
.add-btn {
    border: 1px solid #333;
    background: #171717;
    color: #ddd;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.add-btn {
    margin-left: auto;
    background: #ff6a00;
    color: #000;
    font-weight: bold;
}

.dienstplan-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.mini-card {
    background: #111;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 18px;
}

.mini-card span {
    color: #888;
    font-size: 14px;
}

.mini-card strong {
    display: block;
    font-size: 34px;
    color: #ff6a00;
    margin-top: 8px;
}

.week-plan {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.day-column {
    background: #0f0f0f;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 14px;
    min-height: 420px;
}

.day-column.today {
    border-color: #ff6a00;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #aaa;
    border-bottom: 1px solid #262626;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.day-header strong {
    font-size: 24px;
    color: #fff;
}

.shift-card {
    background: #171717;
    border: 1px solid #303030;
    border-left: 4px solid #777;
    border-radius: 8px;

    padding: 14px;
    margin-bottom: 12px;

    transition: all 0.25s ease;
}

.shift-card:hover {
    transform: translateY(-3px);
    border-color: #ff6a00;
    box-shadow: 0 8px 20px rgba(255,106,0,0.15);
}

.shift-card.active {
    border-left-color: #21c55d;
}

.shift-card.urgent {
    border-left-color: #ef4444;
}

.shift-time {
    color: #ff6a00;
    font-size: 13px;
    font-weight: bold;
}

.shift-card h3 {
    margin: 10px 0 6px;
    font-size: 16px;
}

.shift-card p {
    margin: 0 0 12px;
    color: #999;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.badge.green {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.badge.yellow {
    background: rgba(234,179,8,0.15);
    color: #eab308;
}

.badge.red {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.toolbar-btn {
    text-decoration: none;
}

.day-link {
    color: inherit;
    text-decoration: none;
}

.day-link:hover strong {
    color: #ff6a00;
}

.nfc-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.nfc-main-card,
.nfc-status-card {
    background: #111;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 24px;
}

.nfc-main-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.nfc-main-card h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.nfc-reader-box {
    min-height: 360px;
    border: 1px solid currentColor;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle, rgba(255,106,0,0.10), transparent 55%);
    box-shadow: 0 0 40px currentColor, inset 0 0 18px rgba(255,255,255,0.06);
}

.nfc-reader-box i {
    font-size: 72px;
    color: #ff6a00;
    margin-bottom: 20px;
}

.nfc-reader-box p {
    color: #888;
}

.nfc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nfc-form label {
    color: #aaa;
    font-size: 14px;
}

.nfc-form select,
.nfc-form textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    padding: 13px;
}

.nfc-form textarea {
    min-height: 100px;
    resize: vertical;
}

.reader-online {
    margin: 30px 0;
    color: #7ed957;
    font-size: 22px;
    font-weight: bold;
}

.reader-online i {
    margin-right: 10px;
}

.green-text {
    color: #7ed957;
}

.nfc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.nfc-table th,
.nfc-table td {
    padding: 14px;
    border-bottom: 1px solid #262626;
    text-align: left;
}

.nfc-table th {
    color: #aaa;
    font-size: 14px;
}

.reader-online {
    margin: 30px 0;
    color: #7ed957;
    font-size: 22px;
    font-weight: bold;
}

.reader-offline {
    margin: 30px 0;
    color: #ef4444;
    font-size: 22px;
    font-weight: bold;
}

.reader-online i,
.reader-offline i {
    margin-right: 10px;
}

.nfc-reader-box.nfc-waiting {
    border-color: #333;
}

.nfc-reader-box.nfc-success {
    border-color: #7ed957;
    background: radial-gradient(circle, rgba(126,217,87,0.16), transparent 55%);
}

.nfc-reader-box.nfc-success i {
    color: #7ed957;
}

.nfc-reader-box.nfc-error {
    border-color: #ef4444;
    background: radial-gradient(circle, rgba(239,68,68,0.14), transparent 55%);
}

.nfc-reader-box.nfc-error i {
    color: #ef4444;
}

#nfc-uid {
    margin-top: 12px;
    color: #ff6a00;
    font-weight: bold;
}

.login-body {
    margin: 0;
    background: #050505;
    height: 100vh;
    overflow: hidden;
}

.login-screen {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Startbereich */
.intro-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 1s ease;
}

.login-logo {
    width: 620px;
    max-width: 80vw;
    transition: all 1.1s ease;
    filter: drop-shadow(0 0 18px rgba(255,106,0,0.18));
}

.intro-area:hover .login-logo {
    transform: translateY(-4px) scale(1.02);
    filter: drop-shadow(0 0 28px rgba(255,106,0,0.35));
}

.start-hint {
    margin-top: 20px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    animation: pulseHint 1.8s infinite;
}

.intro-area.started {
    transform: translateY(-120px);
    cursor: default;
}

.intro-area.started .login-logo {
    width: 240px;
    filter: drop-shadow(0 0 12px rgba(255,106,0,0.25));
}

.intro-area.started .start-hint {
    opacity: 0;
}

/* Loginbox */
.login-box {
    width: 360px;
    background: #111;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;

    transition: all 0.8s ease;
}

.login-box.show-login {
    opacity: 1;
    transform: translateY(-80px);
    pointer-events: auto;
}

.login-box h2 {
    margin: 0 0 10px;
}

.login-box input {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 14px;
    border-radius: 6px;
}

.login-box button {
    background: #ff6a00;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.login-error {
    color: #ef4444;
    font-size: 14px;
}

@keyframes pulseHint {
    0%, 100% {
        opacity: 0.45;
    }
    50% {
        opacity: 1;
    }
}

.nfc-reader-box.nfc-writing {
    border-color: #ff6a00;
    background: radial-gradient(circle, rgba(255,106,0,0.18), transparent 55%);
}

.nfc-reader-box.nfc-writing i {
    color: #ff6a00;
}

.write-progress {
    display: none;
    width: 70%;
    height: 8px;
    background: #222;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 20px;
}

.write-progress-bar {
    width: 0%;
    height: 100%;
    background: #ff6a00;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.nfc-profile-card {
    margin-top: 18px;
    width: 100%;
    text-align: center;
}

.nfc-profile-avatar {
    width: 86px;
    height: 86px;
    margin: 0 auto 18px;

    border-radius: 50%;
    background: rgba(255, 106, 0, 0.14);
    border: 2px solid currentColor;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 36px;
}

.nfc-profile-avatar.danger {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.14);
}

.nfc-profile-card h3 {
    margin: 10px 0 20px;
    font-size: 26px;
}

.nfc-profile-card p {
    color: #aaa;
}

.nfc-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;

    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);

    font-size: 16px;
}

.nfc-profile-row span {
    color: #aaa;
}

.nfc-profile-row strong {
    color: #fff;
}

/* Gerät erkannt / normal */
.nfc-reader-box.nfc-success {
    border-color: #7ed957;
    color: #7ed957;
}

/* Büro */
.nfc-reader-box.nfc-buero {
    border-color: #3b82f6;
    color: #3b82f6;
    background: radial-gradient(circle, rgba(59,130,246,0.16), transparent 58%);
}

/* Außendienst */
.nfc-reader-box.nfc-aussendienst {
    border-color: #ff6a00;
    color: #ff6a00;
    background: radial-gradient(circle, rgba(255,106,0,0.18), transparent 58%);
}

/* KRITIS */
.nfc-reader-box.nfc-kritis {
    border-color: #ef4444;
    color: #ef4444;
    background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 58%);
}

/* Chefs */
.nfc-reader-box.nfc-geschaeftsfuehrung {
    border-color: #d4af37;
    color: #d4af37;
    background: radial-gradient(circle, rgba(250,204,21,0.2), transparent 58%);
    box-shadow: 0 0 25px rgba(250,204,21,0.18);
}

/* Unbekannt / Fehler */
.nfc-reader-box.nfc-unknown {
    border-color: #ef4444;
    color: #ef4444;
    background: radial-gradient(circle, rgba(239,68,68,0.2), transparent 58%);
    animation: nfcDangerPulse 1.2s infinite;
}

@keyframes nfcDangerPulse {
    0% {
        box-shadow: 0 0 0 rgba(239,68,68,0.0);
    }
    50% {
        box-shadow: 0 0 28px rgba(239,68,68,0.45);
    }
    100% {
        box-shadow: 0 0 0 rgba(239,68,68,0.0);
    }
}

/* NFC Info-Kacheln */

#nfc-text {
    width: 100%;
}

.nfc-info-card {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    max-width: 330px;
    margin: 10px auto;
    padding: 12px 14px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;

    text-align: left;
}

.nfc-info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    border:1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
}

.nfc-info-icon i {
    font-size: 17px !important;
    margin: 0 !important;
    color: currentColor !important;
}

.nfc-info-text {
    text-align: left;
}

.nfc-info-label {
    display: block;
    font-size: 11px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nfc-info-value {
    display: block;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.nfc-profile-avatar i {
    font-size: 30px !important;
    margin: 0 !important;
    color: currentColor !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.show {
    display: flex;
}

.employee-modal {
    width: 760px;
    background: #111;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 0 35px rgba(255,106,0,0.22);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.employee-form-grid label {
    display: block;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 7px;
}

.employee-form-grid input,
.employee-form-grid select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    padding: 13px;
}

.modal-save {
    margin-top: 22px;
    width: 100%;
}

.employee-modal input,
.employee-modal select,
.employee-modal textarea {
    font-size: 17px;
    color: #fff;
}

.employee-modal input::placeholder {
    font-size: 16px;
    color: #9d9d9d;
}

.employee-modal label {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
}

.employee-modal h2 {
    font-size: 38px;
}

.modal-save {
    font-size: 17px;
    font-weight: bold;
}

/* =========================
   Mitarbeiterakte
========================= */

.employee-profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: 30px;
}

.employee-profile-card,
.employee-file-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 26px;
}

.employee-profile-card {
    text-align: center;
    box-shadow: 0 0 24px rgba(255,106,0,0.10);
}

.employee-profile-photo,
.employee-profile-placeholder {
    width: 150px;
    height: 190px;
    margin: 0 auto 22px;
    border-radius: 10px;
    border: 2px solid #ff6a00;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 0 24px rgba(255,106,0,0.25);
}

.employee-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #ff6a00;
    background: rgba(255,106,0,0.10);
}

.employee-profile-card h2 {
    margin: 0;
    font-size: 28px;
}

.employee-profile-card p {
    color: #ff6a00;
    font-weight: bold;
}

.employee-profile-info {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.employee-profile-info div,
.employee-data-grid div {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 14px;
}

.employee-profile-info span,
.employee-data-grid span {
    display: block;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.employee-profile-info strong,
.employee-data-grid strong {
    color: #fff;
    font-size: 17px;
}

.employee-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.employee-tabs button {
    background: #171717;
    border: 1px solid #333;
    color: #aaa;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
}

.employee-tabs button.active {
    background: #ff6a00;
    color: #000;
    border-color: #ff6a00;
}

.employee-tab-content h2 {
    margin-top: 0;
}

.employee-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.employee-tab-content {
    display: none;
}

.employee-tab-content.active {
    display: block;
}

.employee-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 18px;
    width: 100%;

    text-decoration: none;
}

.akte-progress {
    margin-top: 22px;
    padding: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    text-align: left;
}

.akte-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.akte-progress-top span {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.akte-progress-top strong {
    color: #ff6a00;
    font-size: 20px;
}

.akte-progress-bar {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 999px;
    overflow: hidden;
}

.akte-progress-bar div {
    height: 100%;
    background: #ff6a00;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(255,106,0,0.55);
}

.akte-progress p {
    margin: 10px 0 0;
    color: #aaa;
    font-size: 13px;
}

.id-card-body {
    background: #111;
    padding: 30px;
}

.print-btn {
    margin-bottom: 20px;
    background: #ff6a00;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.id-print-area {
    display: flex;
    gap: 30px;
}

.id-card {
    position: relative;
    width: 638px;
    height: 1016px;
    background: #171717;
    color: white;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid #222;
    padding: 26px;
}

.id-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/core/images/ritter.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1400px;
    opacity: 0.08;
}

.id-card > * {
    position: relative;
    z-index: 2;
}

.id-logo {
    display: block;
    width: 190px;
    margin: 0 auto 120px;
}

.id-logo.small {
    width: 140px;
    margin-bottom: 60px;
}

.id-photo-box {
    position: absolute;
    left: 26px;
    top: 285px;
    width: 260px;
    height: 335px;
    border: 4px solid #ff6a00;
    border-radius: 22px;
    overflow: hidden;
    background: #d8f1ff;
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.id-data {
    position: absolute;
    left: 306px;
    top: 280px;
    width: 255px;
}

.id-data span {
    display: block;
    color: #ff6a00;
    font-size: 24px;
    margin-top: 22px;
    border-bottom: 2px solid #ff6a00;
}

.id-data strong {
    display: block;
    font-size: 26px;
    font-weight: 400;
    margin-top: 6px;
}

.id-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #ff6a00;
    font-size: 20px;
}

.id-nfc {
    position: absolute;
    right: 28px;
    bottom: 34px;
    color: #ff6a00;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
}

.id-back-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    color: #ff6a00;
    font-size: 24px;
    line-height: 1.7;
}

.signature-label {
    color: #ff6a00;
    font-size: 26px;
    margin: 28px 0 8px;
}

.signature-box {
    height: 120px;
    border: 4px solid #ff6a00;
    background: white;
    color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.id-note {
    color: #ff6a00;
    text-align: center;
    font-size: 20px;
    margin-top: 40px;
}

@media print {
    .print-btn {
        display: none;
    }

    body {
        background: white;
        padding: 0;
    }

    .id-print-area {
        gap: 0;
    }

    .id-card {
        page-break-after: always;
    }
}

.icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.icon-btn:hover {
    color: #ff6a00;
}

.icon-btn.danger:hover {
    color: #ef4444;
}

.actions a,
.actions button {
    color: #ffffff;
    font-size: 17px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    margin: 0 4px;
}
.actions .view-btn:hover{
    color:#ff8c1a;
}

.actions .edit-btn:hover{
    color:#ff8c1a;
}

.actions .delete-btn:hover{
    color:#ff3b30;
}

.actions a,
.actions button {
    color: #ffffff !important;
}

.actions i {
    color: inherit !important;
}

.actions .view-btn:hover,
.actions .edit-btn:hover {
    color: #ff6a00 !important;
}

.actions .delete-btn:hover {
    color: #ef4444 !important;
}

.actions a,
.actions button {
    color: #ffffff !important;
    font-size: 17px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    margin: 0 4px;
}

.actions i {
    color: inherit !important;
}

.actions .view-btn:hover,
.actions .edit-btn:hover {
    color: #ff6a00 !important;
}

.actions .delete-btn:hover {
    color: #ef4444 !important;
}

.employee-search {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.employee-search input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    padding: 13px;
    font-size: 16px;
}

.document-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
    padding:15px;
    background:#181818;
    border:1px solid #2b2b2b;
    border-radius:10px;
}

.document-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.document-actions form{
    margin:0;
}

.rank-patch {
    width: 96px;
    height: 150px;
    border: 2px solid currentColor;
    border-radius: 14px 14px 7px 7px;
    background: linear-gradient(180deg, #101010, #050505);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 9px 7px;
    color: #ddd;
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
}

.rank-patch-inner {
    width: 100%;
    height: 112px;
    border: 2px solid currentColor;
    border-radius: 10px 10px 5px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rank-patch span {
    font-size: 11px;
    text-align: center;
    color: #fff;
    line-height: 1.1;
}

.rank-chevron {
    position: relative;
    width: 52px;
    height: 38px;
}

.rank-chevron.one::before,
.rank-chevron.one::after,
.rank-chevron.two::before,
.rank-chevron.two::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 8px;
    background: currentColor;
    border-radius: 4px;
    top: 16px;
}

.rank-chevron.one::before,
.rank-chevron.two::before {
    left: 0;
    transform: rotate(28deg);
}

.rank-chevron.one::after,
.rank-chevron.two::after {
    right: 0;
    transform: rotate(-28deg);
}

.rank-chevron.two::before,
.rank-chevron.two::after {
    top: 6px;
    box-shadow: 0 22px 0 currentColor;
}

.rank-lines {
    width: 28px;
    height: 78px;
    border-left: 5px solid currentColor;
    border-right: 5px solid currentColor;
}

.rank-patch i {
    font-size: 36px;
}

/* Bereichsfarben */
.rank-buero,
.rank-geschaeftsfuehrung {
    color: #3b82f6;
}

.rank-aussendienst {
    color: #d1d5db;
}

.rank-kritis {
    color: #ff6a00;
}

.rank-buero {
    color: #3b82f6 !important;
}

.rank-kritis {
    color: #ff6a00 !important;
}

.rank-aussendienst {
    color: #f5f5f5 !important;
}

.rank-chef {
    color: #d4af37 !important;
}
.rank-CHF {
    color: #d4af37 !important;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212,175,55,0.35);
}

.rank-chief {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.rank-chief i {
    font-size: 36px;
    color: #d4af37;
}

.chief-stars {
    color: #f5f5f5;
    font-size: 18px;
    letter-spacing: 3px;
}

.career-card {
    margin-top: 18px;
    padding: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    text-align: left;
}

.career-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.career-card-top span {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.career-card-top strong {
    color: #ff6a00;
    font-size: 16px;
}

.career-ready {
    color: #22c55e !important;
}

.career-rank small {
    color: #888;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.career-rank strong {
    display: block;
    color: #fff;
    font-size: 18px;
    margin-top: 4px;
}

.career-progress-bar {
    width: 100%;
    height: 10px;
    background: #222;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}

.career-progress-bar div {
    height: 100%;
    background: #ff6a00;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(255,106,0,0.55);
}

.career-card p {
    color: #aaa;
    font-size: 13px;
    margin: 10px 0 0;
}

.career-btn {
    width: 100%;
    margin-top: 14px;
    background: #ff6a00;
    color: #000;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.career-textarea {
    width: 100%;
    margin-top: 12px;
    min-height: 80px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    resize: vertical;
}

.customer-profile-logo {
    width: 170px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 22px;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
    border: 2px solid #ff6a00;
    box-shadow: 0 0 24px rgba(255,106,0,0.22);
}

.nfc-profile-photo {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff6a00;
}

.nfc-rank-badge {
    width: 78px;
    height: auto;
    margin: 10px auto 6px;
    display: block;
}

.nfc-rang-text {
    color: #ff6a00 !important;
    font-size: 14px;
    font-weight: bold;
    margin-top: -8px;
    margin-bottom: 14px;
}

.nfc-profile-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff6a00;
    background: rgba(255,106,0,0.14);

    display: flex;
    align-items: center;
    justify-content: center;
}

.nfc-profile-avatar img,
.nfc-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nfc-profile-card {
    position: relative;
    z-index: 5;
}

.nfc-rank-patch {
    margin: 10px auto 14px;
    transform: scale(0.82);
}

.pin-box {
    margin: 24px 0;
    padding: 26px;
    background: #050505;
    border: 2px solid #ff6a00;
    border-radius: 14px;
    color: #ff6a00;
    font-size: 46px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 8px;
    box-shadow: 0 0 24px rgba(255,106,0,0.22);
}

.security-card {
    margin-top: 18px;
    padding: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    text-align: left;
}

.security-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-card-top span {
    color: #aaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-card p {
    color: #aaa;
    font-size: 13px;
}

.security-card strong {
    color: #ff6a00;
}

.nfc-login-box {
    width: 420px;
    margin-top: -40px;
    padding: 32px;
    background: #111;
    border: 1px solid #262626;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 28px rgba(255,106,0,0.18);
}

.nfc-login-box i {
    font-size: 64px;
    color: #ff6a00;
    margin-bottom: 18px;
}

.nfc-login-box h2 {
    margin: 0;
}

.nfc-login-box p {
    color: #aaa;
}

.login-avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #ff6a00;
    margin-bottom:18px;
}

.login-avatar-placeholder{
    width:120px;
    height:120px;
    margin:auto;
    margin-bottom:18px;
    border-radius:50%;
    border:4px solid #ff6a00;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:55px;
    color:#ff6a00;
}

.login-rang{
    color:#ff6a00;
    font-size:20px;
    font-weight:bold;
    margin-top:-6px;
    margin-bottom:10px;
}

.login-bsid{
    color:#9c9c9c;
    margin-bottom:25px;
}

.pin-input{
    width:100%;
    padding:15px;
    border-radius:10px;
    border:1px solid #333;
    background:#1b1b1b;
    color:white;
    text-align:center;
    letter-spacing:8px;
    font-size:22px;
    margin-bottom:18px;
}

.fleet-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 22px;
}

.fleet-list-panel,
.fleet-detail-panel {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px;
}

.fleet-list-header,
.fleet-search-row,
.fleet-visual-header,
.fleet-two-cols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.add-btn.small {
    padding: 12px 16px;
    font-size: 14px;
}

.add-btn.full {
    display: block;
    text-align: center;
    margin-top: 18px;
}

.fleet-search {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #111;
    color: white;
}

.fleet-filter-btn {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #151515;
    color: white;
}

.fleet-list {
    margin-top: 16px;
}

.fleet-list-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.fleet-list-item.active {
    border: 1px solid #ff6a00;
    background: rgba(255,106,0,0.08);
}

.fleet-thumb {
    width: 70px;
    height: 48px;
    border-radius: 10px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6a00;
    overflow: hidden;
}

.fleet-thumb img,
.vehicle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-item-info strong,
.fleet-item-info span,
.fleet-item-info small {
    display: block;
}

.fleet-item-info small,
.fleet-status,
.fleet-hint {
    color: #aaa;
    font-size: 13px;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-frei { background: #3b8cff; }
.status-im_einsatz { background: #31c56b; }
.status-werkstatt { background: #ffc83d; }
.status-defekt { background: #ff4d4d; }
.status-ausser_dienst { background: #777; }

.fleet-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 22px;
}

.fleet-tabs button {
    background: none;
    border: none;
    color: #ccc;
    padding: 12px 0;
    font-weight: bold;
}

.fleet-tabs button.active {
    color: #ff6a00;
    border-bottom: 2px solid #ff6a00;
}

.fleet-detail-grid {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 28px;
}

.fleet-form-card label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.fleet-form-card input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #111;
    color: white;
}

.fleet-visual-header button {
    padding: 11px 14px;
    border-radius: 10px;
    background: #1b1b1b;
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
}

.vehicle-hero {
    height: 310px;
    border-radius: 14px;
    background: radial-gradient(circle at center, #202020, #090909);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ff6a00;
    font-size: 90px;
}

.vehicle-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-thumbs {
    display: flex;
    gap: 14px;
    margin: 18px 0;
}

.vehicle-thumb {
    width: 110px;
    height: 86px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: #111;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.vehicle-thumb.active {
    border-color: #ff6a00;
    color: #ff6a00;
}

.fleet-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
}

.fleet-info-grid div {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fleet-info-grid i {
    color: #ff6a00;
    font-size: 24px;
    margin-right: 10px;
}

.fleet-info-grid span {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-top: 8px;
}

.fleet-info-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.fleet-create-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
}

.fleet-create-form,
.fleet-create-visual {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
}

.fleet-create-form form label {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.fleet-create-form input,
.fleet-create-form select,
.fleet-create-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #111;
    color: white;
}

.fleet-create-form textarea {
    min-height: 82px;
    resize: vertical;
}

.fleet-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.cancel-btn {
    padding: 13px 20px;
    border-radius: 10px;
    background: #222;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
}

.fleet-auto-info {
    margin-top: 22px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #ff6a00;
    border-radius: 14px;
    background: rgba(255,106,0,0.08);
}

.fleet-auto-info i {
    color: #ff6a00;
    font-size: 32px;
}

.fleet-auto-info strong,
.fleet-auto-info span {
    display: block;
}

.fleet-auto-info span {
    margin-top: 5px;
    color: #aaa;
    font-size: 14px;
}

.create-preview {
    margin-top: 18px;
}

.vehicle-3d-viewer {
    width: 100%;
    height: 100%;
    min-height: 310px;
}

.fleet-pro {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
}

.fleet-pro-list,
.fleet-pro-detail {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 18px;
}

.fleet-pro-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-new-btn {
    background: #ff6a00;
    color: #111;
    padding: 12px 15px;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 800;
}

.fleet-pro-search {
    display: grid;
    grid-template-columns: 36px 1fr 46px;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
}

.fleet-pro-search input,
.fleet-pro-search button {
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.35);
    color: white;
}

.fleet-pro-search i {
    color: #aaa;
}

.fleet-pro-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.22);
}

.fleet-pro-item.active {
    border-color: #ff6a00;
    box-shadow: 0 0 0 1px rgba(255,106,0,.25), 0 0 24px rgba(255,106,0,.12);
}

.fleet-pro-img {
    width: 66px;
    height: 54px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(255,106,0,.20), rgba(0,0,0,.5));
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.fleet-pro-item strong,
.fleet-pro-item span,
.fleet-pro-item small {
    display: block;
}

.fleet-pro-item span,
.fleet-pro-item small,
.fleet-pro-item p {
    color: #aaa;
    font-size: 13px;
}

.dot {
    display:inline-block;
    width:9px;
    height:9px;
    border-radius:50%;
    margin-right:6px;
}

.dot.blue { background:#3b8cff; }

.fleet-pro-tabs {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 24px;
}

.fleet-pro-tabs button {
    background: none;
    border: none;
    color: #bbb;
    padding: 12px 0;
    font-weight: 800;
}

.fleet-pro-tabs button.active {
    color: #ff6a00;
    border-bottom: 2px solid #ff6a00;
}

.fleet-pro-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 26px;
}

.fleet-data-card,
.fleet-visual-card-pro {
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 18px;
}

.fleet-field {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}

.fleet-field label {
    display: block;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.fleet-field strong {
    display: block;
    color: white;
    margin-top: 5px;
}

.fleet-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fleet-save-btn {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #ff6a00;
    color: #111;
    font-weight: 900;
}

.fleet-visual-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.fleet-visual-top button {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color:white;
    border-radius: 10px;
    padding: 10px 14px;
}

.fleet-big-visual {
    margin-top: 18px;
    height: 300px;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(255,106,0,.13), rgba(0,0,0,.55));
    border: 1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ff6a00;
    font-size: 95px;
}

.fleet-note {
    color:#aaa;
    font-size:13px;
}

.fleet-view-buttons {
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.fleet-view-buttons button {
    height: 82px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    color:#ddd;
    font-weight:700;
}

.fleet-view-buttons button i,
.fleet-view-buttons button span {
    display:block;
}

.fleet-view-buttons button.active {
    border-color:#ff6a00;
    color:#ff6a00;
    box-shadow:0 0 20px rgba(255,106,0,.15);
}

.fleet-info-cards {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fleet-info-cards div {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);
}

.fleet-info-cards i {
    color:#ff6a00;
    font-size:24px;
}

.fleet-info-cards span {
    display:block;
    color:#aaa;
    margin-top:10px;
    font-size:13px;
}

.fleet-info-cards strong {
    display:block;
    margin-top:4px;
    font-size:18px;
}

.edit-field{

width:100%;
background:#202020;
border:1px solid rgba(255,255,255,.08);
padding:12px;
border-radius:10px;
color:white;
font-size:15px;

}

.edit-field:disabled{

background:transparent;
border:none;
padding:0;
font-weight:600;
font-size:16px;
color:white;

}

.fleet-cancel-btn{

margin-top:10px;
width:100%;
padding:14px;
border:none;
border-radius:12px;
background:#444;
color:white;
cursor:pointer;

}

.day-column {
    text-decoration: none;
    color: inherit;
}

.day-column.today {
    border: 2px solid #ff6a00;
    box-shadow: 0 0 22px rgba(255, 106, 0, 0.28);
}

.day-column.today .day-header strong {
    color: #ff6a00;
}

.bs-plan-header {
    display: grid;
    grid-template-columns: 48px 1fr 48px auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.bs-plan-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
}

.bs-plan-header p {
    margin: 5px 0 0;
    color: #aaa;
}

.bs-week-btn {
    height: 48px;
    width: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.bs-week-btn:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

.bs-add-duty {
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: #ff6a00;
    color: #111;
    font-weight: 900;
    cursor: pointer;
}

.bs-plan-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.bs-plan-stats div {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.bs-plan-stats span {
    display: block;
    color: #aaa;
    font-size: 14px;
}

.bs-plan-stats strong {
    display: block;
    margin-top: 8px;
    font-size: 36px;
    color: #ff6a00;
}

.bs-week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.bs-day-card {
    min-height: 330px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.09);
    text-decoration: none;
    color: white;
    transition: .2s ease;
}

.bs-day-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,106,0,.8);
    box-shadow: 0 0 28px rgba(255,106,0,.18);
}

.bs-day-card.today {
    border: 2px solid #ff6a00;
    box-shadow: 0 0 30px rgba(255,106,0,.25);
}

.bs-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 22px;
}

.bs-day-top span {
    color: #aaa;
    font-size: 16px;
    font-weight: 800;
}

.bs-day-top strong {
    display: block;
    margin-top: 4px;
    font-size: 34px;
    font-weight: 900;
}

.bs-day-top small {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,106,0,.15);
    color: #ff6a00;
    font-weight: 900;
    font-size: 12px;
}

.bs-empty-duty {
    height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,.16);
    background: rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.bs-plus-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,106,0,.12);
    border: 1px solid rgba(255,106,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6a00;
    font-size: 22px;
}

.bs-empty-duty h3 {
    margin: 4px 0 0;
    font-size: 18px;
}

.bs-empty-duty p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
    max-width: 180px;
}

.bs-status-open {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,193,7,.14);
    color: #ffc107;
    font-size: 12px;
    font-weight: 900;
}

.day-plan-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.back-btn {
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: white;
    text-decoration: none;
    font-weight: 800;
}

.back-btn:hover {
    color: #ff6a00;
    border-color: #ff6a00;
}

.day-plan-title span {
    color: #ff6a00;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.day-plan-title h1 {
    margin: 6px 0;
    font-size: 38px;
    font-weight: 900;
}

.day-plan-title p {
    margin: 0;
    color: #aaa;
}

.day-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.day-plan-card,
.day-plan-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 20px;
}

.day-plan-card input[type="time"]{
    height:60px;
    font-size:22px;
    font-weight:700;
}

.day-plan-card h2{
    font-size:24px;
    font-weight:700;
}

.day-plan-card p{
    font-size:16px;
    color:#bfbfbf;
}

.day-plan-title h1{
    font-size:48px;
}

.day-plan-title p{
    font-size:18px;
}

.card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.card-top i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,106,0,.12);
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.card-top h2 {
    margin: 0;
    font-size: 20px;
}

.card-top p {
    margin: 4px 0 0;
    color: #aaa;
    font-size: 13px;
}

.day-plan-card select,
.day-plan-card input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.35);
    color: white;
    padding: 0 12px;
}

.time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.empty-duty-large {
    min-height: 220px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: #aaa;
}

.empty-duty-large i {
    font-size: 44px;
    color: #ff6a00;
}

.empty-duty-large h3 {
    color: white;
    margin: 0;
}

.day-plan-actions {
    margin: 22px 0;
    display: flex;
    justify-content: flex-end;
}

.save-duty-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 14px;
    background: #ff6a00;
    color: #111;
    font-weight: 900;
    cursor: pointer;
    font-size: 16px;
}

.planned-duty-list {
    display: grid;
    gap: 14px;
}

.planned-duty-card {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
}

.planned-duty-time {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,106,0,.10);
    border: 1px solid rgba(255,106,0,.25);
    text-align: center;
}

.planned-duty-time strong {
    display: block;
    font-size: 26px;
    color: #ff6a00;
}

.planned-duty-time span {
    color: #aaa;
    font-size: 13px;
}

.planned-duty-info h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.planned-duty-info p {
    margin: 5px 0;
    color: #ccc;
}

.planned-duty-info i {
    color: #ff6a00;
    width: 24px;
}

.planned-duty-actions {
    display: flex;
    gap: 10px;
}

.planned-duty-actions button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.35);
    color: white;
    cursor: pointer;
}

.planned-duty-actions button:hover {
    color: #ff6a00;
    border-color: #ff6a00;
}

.login-topbar{
    position:fixed;
    top:25px;
    left:35px;
    right:35px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    z-index:999;
}



/* ====================================================
   Nachträglich ergänzte Styles für Klassen, die im HTML
   verwendet wurden, aber im Stylesheet noch fehlten.
   ==================================================== */

/* Programmiermodus-Karte + Schiebeschalter (NFC-Karten-Seite) */
.program-mode-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #111;
    border: 1px solid #262626;
    border-radius: 8px;

    padding: 16px 20px;
    margin-bottom: 20px;
}

.program-mode-card strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.program-mode-card span {
    color: #888;
    font-size: 13px;
}

.modern-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-color: #262626;
    border: 1px solid #333;
    border-radius: 34px;

    transition: all 0.25s ease;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;

    background-color: #bbb;
    border-radius: 50%;

    transition: all 0.25s ease;
}

.modern-switch input:checked + .switch-slider {
    background-color: #ff6a00;
    border-color: #ff6a00;
}

.modern-switch input:checked + .switch-slider::before {
    transform: translateX(22px);
    background-color: #111;
}

/* Mini-Dienst-Einträge in den Tageskarten des Dienstplans */
.bs-duty-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-duty-mini {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.bs-duty-mini strong {
    display: block;
    color: #ff6a00;
    font-size: 14px;
    margin-bottom: 4px;
}

.bs-duty-mini span {
    color: #ddd;
}

.bs-duty-mini small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    margin-top: 6px;
}

/* Foto + Rang-Abzeichen nebeneinander (Mitarbeiterakte) */
.employee-photo-rank-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.rank-badge-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Dokumente-Reiter in der Mitarbeiterakte */
.document-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    background: #111;
    border: 1px solid #262626;
    border-radius: 10px;

    padding: 16px;
    margin-bottom: 20px;
}

.document-upload-form select,
.document-upload-form input[type="text"],
.document-upload-form input[type="date"] {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.document-upload-form input[type="file"] {
    color: #ddd;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* "Neuer Kunde"-Formular */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Status-Zeile auf der erkannten NFC-Karte */
.nfc-card-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #22c55e;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    margin-bottom: 12px;
}

/* "Zur Homepage"-Link auf der NFC-Login-Seite */
.website-back {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.website-back:hover {
    color: #ff6a00;
}


/* ====================================================
   Mobile Ansicht (Smartphones / kleine Tablets)
   ==================================================== */

.menu-overlay {
    display: none;
}

@media (max-width: 900px) {

    /* Sidebar wird zum ausklappbaren Menü */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 100;
        width: 240px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        padding: 20px;
    }

    .header-title i.fa-bars {
        display: inline-block !important;
        cursor: pointer;
    }

    .menu-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 90;
    }

    header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .user-panel span {
        display: none;
    }

    /* Alle mehrspaltigen Layouts werden einspaltig */
    .cards,
    .dienstplan-stats,
    .week-plan,
    .nfc-layout,
    .nfc-main-card,
    .employee-form-grid,
    .employee-profile-layout,
    .employee-data-grid,
    .id-back-grid,
    .fleet-layout,
    .fleet-list-item,
    .fleet-detail-grid,
    .fleet-info-grid,
    .fleet-create-layout,
    .fleet-pro,
    .fleet-pro-search,
    .fleet-pro-item,
    .fleet-pro-grid,
    .fleet-small-grid,
    .fleet-view-buttons,
    .fleet-info-cards,
    .bs-plan-header,
    .bs-plan-stats,
    .bs-week-grid,
    .day-plan-grid,
    .time-grid,
    .planned-duty-card {
        grid-template-columns: 1fr !important;
    }

    /* Tabellen: horizontal scrollbar statt gequetscht */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .day-plan-title h1,
    .services h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 14px;
    }

    .logo-image {
        width: 160px;
    }
}

#usernameInput {
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
}

.pin-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pin-box {
    width: 44px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 0 !important;
    letter-spacing: 0;
}

.pin-toggle-btn {
    background: none !important;
    border: none !important;
    color: #ff6a00;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 !important;
    text-align: center;
    margin-top: -6px;
}
