:root {
    --anthrazit: #1e1e1e;
    --dunkel: #2a2a2a;
    --lila: #8e44ad;
    --gruen: #27ae60;
    --text: #f0f0f0;
}

/* ==================== LIGHT MODE ==================== */
body.light-mode {
    --anthrazit: #f0f0f0;
    --dunkel: #ffffff;
    --lila: #8e44ad;
    --gruen: #27ae60;
    --text: #1a1a1a;
}

body.light-mode { background-color: #f0f0f0; color: #1a1a1a; }
body.light-mode .job-card { background: #ffffff; border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
body.light-mode .header { background: #ffffff; border-bottom: 4px solid #8e44ad; }
body.light-mode .tab-bar { background: #ffffff; border-bottom: 2px solid #ddd; }
body.light-mode .tab-btn { color: #555; }
body.light-mode .tab-btn.active { color: #8e44ad; }
body.light-mode .tab-btn:hover { background: #f5f0fa; }
body.light-mode .purple-divider { background: #8e44ad; }
body.light-mode .role-card, body.light-mode .wmw-card { background: #fff; border-color: #ddd; }
body.light-mode .role-input, body.light-mode .wmw-input { background: #f5f5f5; border-color: #ccc; color: #1a1a1a; }
body.light-mode .bem-input { background: #f5f5f5; border-color: #ccc; color: #1a1a1a; }
body.light-mode .bem-eintrag { border-bottom-color: #eee; }
body.light-mode .bem-text { color: #1a1a1a; }
body.light-mode .bemerkungen-liste { background: #f5f5f5; }
body.light-mode .day-column { background: #fff !important; border-color: #ddd !important; }
body.light-mode .day-header { background: #f8f8f8 !important; border-bottom-color: #ddd !important; }
body.light-mode .day-heute  { background: #f3e8ff !important; border-color: #8e44ad !important; }
body.light-mode .day-name   { color: #333 !important; }
body.light-mode .day-date   { color: #333 !important; }
body.light-mode .no-jobs-day { color: #999 !important; }
body.light-mode .calendar-job-card { background: #f5f5f5 !important; color: #111 !important; }
body.light-mode .day-name { color: #555; }
body.light-mode .calendar-job-card { background: #f0f0f0; }
body.light-mode .no-jobs-day { color: #bbb; }
body.light-mode .job-search-bar, body.light-mode #job-search { background: #fff; border-color: #ccc; color: #1a1a1a; }
body.light-mode .archiv-card { background: #fff; }
body.light-mode .footer-info { color: #888; }
body.light-mode footer { background: #e8e8e8; color: #888; }
body.light-mode .tab-content { background: #f0f0f0; }
body.light-mode .wmw-container h2, body.light-mode .wmw-name { color: #1a1a1a; }
body.light-mode .kfz { background: #e8e8e8; color: #1a1a1a; }
body.light-mode .status-by { color: #555; }
body.light-mode .kunde { color: #333; }
body.light-mode .techniker { color: #333; }
body.light-mode .datum-container { color: #555; }
body.light-mode .search-bar-wrap #job-search { background: #fff; color: #1a1a1a; }
body.light-mode #search-clear { background: #e8e8e8; color: #555; }
body.light-mode .pagination-bar .page-btn { background: #fff; border-color: #ccc; color: #555; }
body.light-mode .page-dot { background: #ccc; }
body.light-mode .page-dot.active { background: #8e44ad; }
body.light-mode .kal-nav-btn { background: #fff; border-color: #ccc; color: #555; }
body.light-mode .kalender-nav .kal-nav-titel { color: #1a1a1a; }
body.light-mode .todo-item { background: #fff; }
body.light-mode .todo-text { color: #1a1a1a; }
body.light-mode .schnittstelle-container { color: #1a1a1a; }
body.light-mode .pdf-drop-zone { background: #fff; }
body.light-mode .pdf-entry { background: #fff; }
body.light-mode #bug-btn { background: #fff; border-color: #ccc; color: #555; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--anthrazit);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    padding: 18px 30px;        /* etwas höher gemacht */
    border-bottom: 4px solid var(--lila);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.logo {
    height: 62px;
    width: auto;
}

header h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
    margin-left: 15px;
}

/* ==================== TOP BAR MIT ROLLEN ==================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    border-bottom: 4px solid var(--lila);
    flex-shrink: 0;
    position: relative;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 62px;
    width: auto;
}

h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
}

/* Rollen rechts */
.roles-topright {
    display: flex;
    gap: 9px;
}

.role-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 6px 9px;
    width: 93px;
    text-align: center;
}

.role-icon {
    font-size: 1.19rem;
    margin-bottom: 2px;
}

.role-name {
    font-size: 0.60rem;
    color: #ccc;
    margin-bottom: 5px;
}

.role-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-input {
    padding: 3px 6px;
    font-size: 0.60rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.role-save-btn {
    padding: 3px 6px;
    font-size: 0.54rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.role-save-btn:hover {
    background: #9b59b6;
}

/* Lilane Trennlinie unter dem Header */
.purple-divider {
    height: 4px;
    background: var(--lila);
    width: 100%;
    flex-shrink: 0;
}

/* Dashboard Content mit Abstand */
.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}
/* ==================== DASHBOARD JOBS ==================== */

.dashboard {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    display: flex;
    position: relative;
    margin-top: 20px;         /* Abstand nach oben */
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
    width: 100%;
    height: calc(100% - 48px);
}

.techniker-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    padding: 3px 0;
}

.techniker-status-row .techniker {
    flex-shrink: 0;
    white-space: nowrap;
}

.techniker-status-row .status-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.techniker-status-row .status-group label {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    font-size: 0.88rem;
    cursor: pointer;
}

.job-card-empty {
    background: transparent;
    border: 2px dashed #2a2a2a;
    border-radius: 12px;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    margin-top: 8px;
}

.page-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}
.page-dot.active { background: #8e44ad; transform: scale(1.3); }
.page-dot:hover  { background: #a569bd; }

.page-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.page-btn:hover { background: #8e44ad; color: white; }

.page-info { color: #666; font-size: 0.9rem; min-width: 40px; text-align: center; }

.job-card {
    background: var(--dunkel);
    border-radius: 12px;
    padding: 10px 14px;
    border: 2px solid #333;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    font-size: 0.92rem;
    height: 100%;
    overflow: hidden;
    gap: 4px;
}

/* Rest der Job-CSS (unverändert) */
.job-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.job-nummer {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lila);
    min-width: 60px;
}

.kfz {
    font-size: 1.75rem;
    font-weight: 500;
    background: #333;
    padding: 6px 16px;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-text {
    font-size: 1.35rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.status-text:has(✅) {
    color: var(--gruen);
}

.status-text:has(❌) {
    color: #e74c3c;
}

.bemerkungen-liste {
    background: #252525;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.bem-eintrag {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 8px;
    border-bottom: 1px solid #2e2e2e;
    font-size: 0.82rem;
    line-height: 1.3;
}

.bem-eintrag:last-child { border-bottom: none; }

.bem-text {
    flex: 1;
    color: #e0e0e0;
    word-break: break-word;
}

.bem-meta {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    padding-top: 2px;
    flex-shrink: 0;
}

.bem-del-btn {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.bem-del-btn:hover { opacity: 1; }

.bem-input-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.bem-input {
    flex: 1;
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 4px 8px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.bem-input:focus { border-color: #8e44ad; }

.bem-add-btn {
    background: #8e44ad;
    border: none;
    color: white;
    border-radius: 6px;
    width: 34px;
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.bem-add-btn:hover { background: #6c3483; }

.footer-info {
    font-size: 0.78rem;
    color: #888;
    text-align: right;
    flex-shrink: 0;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #e74c3c;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    transform: scale(1.15);
}

footer {
    text-align: center;
    padding: 12px;
    background: #181818;
    font-size: 1.05rem;
    color: #666;
    flex-shrink: 0;
    position: relative;
}



.no-jobs {
    text-align: center;
    font-size: 2.8rem;
    margin-top: 140px;
    color: #777;
}

/* KFZ rechts neben Job-Nummer */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.job-nummer {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--lila);
}

.kfz {
    font-size: 1rem;
    font-weight: 500;
    background: #333;
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: auto;
    margin-right: 10px;
}

/* ==================== HEADER + ROLLEN ==================== */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    border-bottom: 4px solid var(--lila);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 62px;
    width: auto;
}

h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
}

/* Rollen rechts */
.roles-topright {
    position: absolute;
    top: 25px;
    right: 30px;
    display: flex;
    gap: 16px;
    z-index: 200;
}

.role-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 6px 9px;
    width: 93px;
    text-align: center;
}

.role-icon {
    font-size: 1.19rem;
    margin-bottom: 2px;
}

.role-name {
    font-size: 0.60rem;
    color: #ccc;
    margin-bottom: 5px;
}

.role-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-input {
    padding: 3px 6px;
    font-size: 0.60rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.role-save-btn {
    padding: 3px 6px;
    font-size: 0.54rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.role-save-btn:hover {
    background: #9b59b6;
}

/* Datum Anzeige */
.datum {
    font-size: 1.25rem;
    color: #bbb;
    margin: 8px 0 12px 0;
    font-weight: 500;
}

/* ==================== HEADER + ROLLEN + TRENNLINIE ==================== */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    border-bottom: 4px solid var(--lila);
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 62px;
    width: auto;
}

h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
}

.roles-topright {
    display: flex;
    gap: 9px;
}

.role-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 6px 9px;
    width: 93px;
    text-align: center;
}

.role-icon {
    font-size: 1.19rem;
    margin-bottom: 2px;
}

.role-name {
    font-size: 0.60rem;
    color: #ccc;
    margin-bottom: 5px;
}

.role-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-input {
    padding: 3px 6px;
    font-size: 0.60rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.role-save-btn {
    padding: 3px 6px;
    font-size: 0.54rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.role-save-btn:hover {
    background: #9b59b6;
}

/* Lila Trennlinie */
.purple-divider {
    height: 4px;
    background: var(--lila);
    width: 100%;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

/* Datum Anzeige */
.datum {
    font-size: 1.28rem;
    color: #bbb;
    margin: 8px 0 12px 0;
    font-weight: 500;
}

/* ==================== HEADER + ROLLEN + TRENNLINIE ==================== */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    border-bottom: 4px solid var(--lila);
    flex-shrink: 0;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 62px;
    width: auto;
}

h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
}

.roles-topright {
    display: flex;
    gap: 9px;
}

.role-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 6px 9px;
    width: 93px;
    text-align: center;
}

.role-icon {
    font-size: 1.19rem;
    margin-bottom: 2px;
}

.role-name {
    font-size: 0.60rem;
    color: #ccc;
    margin-bottom: 5px;
}

.role-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-input {
    padding: 3px 6px;
    font-size: 0.60rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.role-save-btn {
    padding: 3px 6px;
    font-size: 0.54rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.role-save-btn:hover {
    background: #9b59b6;
}

/* Lila Trennlinie unter dem Header */
.purple-divider {
    height: 4px;
    background: var(--lila);
    width: 100%;
    flex-shrink: 0;
}

/* Datum Box wie KFZ */
.datum-box {
    font-size: 1.35rem;
    font-weight: 500;
    background: #333;
    padding: 6px 14px;
    border-radius: 8px;
    color: #ddd;
    margin-left: 15px;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

/* ==================== HEADER + ROLLEN + TABS ==================== */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to right, #2a2a2a, #1e1e1e);
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 62px;
    width: auto;
}

h1 {
    font-size: 2.05rem;
    font-weight: 500;
    color: white;
}

/* Rollen unter dem Strich */
.roles-bar {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 12px 30px;
    background: #252525;
    border-bottom: 4px solid var(--lila);
    flex-shrink: 0;
}

.role-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 6px 9px;
    width: 93px;
    text-align: center;
}

.role-icon {
    font-size: 1.19rem;
    margin-bottom: 2px;
}

.role-name {
    font-size: 0.60rem;
    color: #ccc;
    margin-bottom: 5px;
}

.role-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.role-input {
    padding: 3px 6px;
    font-size: 0.60rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    text-align: center;
}

.role-save-btn {
    padding: 3px 6px;
    font-size: 0.54rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.role-save-btn:hover {
    background: #9b59b6;
}

/* Tabs */
.tab-bar {
    display: flex;
    background: #1e1e1e;
    padding: 0 30px;
    flex-shrink: 0;
}

.tab-icon  { display: block; font-size: 1.3rem; line-height: 1; }
.tab-label { display: block; font-size: 0.72rem; margin-top: 3px; }

.tab-btn {
    padding: 10px 22px;
    font-size: 1rem;
    background: transparent;
    color: #ccc;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: white;
    border-bottom: 4px solid var(--lila);
    background: rgba(142, 68, 173, 0.15);
}

.tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: none;
}

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

/* Datum Box */
.datum-box {
    font-size: 1.75rem;
    font-weight: 500;
    background: #333;
    padding: 6px 16px;
    border-radius: 8px;
    color: #ddd;
    margin-left: 15px;
    white-space: nowrap;
}

/* ==================== KALENDER – FINAL VERSION MIT SCROLLBAR ==================== */

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-top: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-column {
    background: #252525;
    border-radius: 10px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: 620px;          /* Feste maximale Höhe */
    overflow: hidden;
}

.day-header {
    background: #1e1e1e;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 5px solid var(--lila);
    flex-shrink: 0;
}

.day-name {
    font-size: 1.35rem;
    font-weight: bold;
    color: #ddd;
}

.day-date {
    font-size: 1.75rem;
    color: var(--gruen);
    margin-top: 6px;
}

/* Scrollbar-Bereich - das ist der wichtigste Teil */
.day-jobs {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto !important;
    max-height: 440px;           /* WICHTIG: Begrenzt die Höhe stark */
    scrollbar-width: thin;
    scrollbar-color: var(--lila) #333;
}

/* Scrollbar für Chrome / Edge */
.day-jobs::-webkit-scrollbar {
    width: 10px;
}

.day-jobs::-webkit-scrollbar-thumb {
    background: var(--lila);
    border-radius: 5px;
}

.kal-drag-card[draggable="true"]:hover {
    box-shadow: 0 0 0 2px #8e44ad;
    transform: scale(1.02);
    transition: transform 0.1s;
}

.calendar-job-card {
    background: #2a2a2a;
    padding: 16px 14px;
    border-radius: 10px;
    border-left: 6px solid var(--lila);
    font-size: 1.2rem;
    line-height: 1.45;
    flex-shrink: 0;
}

.no-jobs-day {
    text-align: center;
    color: #777;
    padding: 60px 20px;
    font-size: 1.2rem;
}

.job-grid-scrollable {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - 280px);   /* Passt sich der Bildschirmhöhe an */
    overflow-y: auto;
    padding-right: 10px;
}

.job-grid-scrollable::-webkit-scrollbar {
    width: 10px;
}

.job-grid-scrollable::-webkit-scrollbar-thumb {
    background: var(--lila);
    border-radius: 5px;
}

/* ==================== SCROLLBARE LISTE ALLER JOBS ==================== */

.scroll-section {
    margin-top: 30px;
}

/* ==================== NETZWERK TAB ==================== */
.netz-card {
    background: #1e1e1e;
    border-radius: 14px;
    padding: 20px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s;
}
.netz-card:hover { border-color: #8e44ad; }
.netz-icon  { font-size: 1.4rem; margin-bottom: 4px; }
.netz-label { font-size: 0.72rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.08em; }
.netz-val   { font-size: 2rem; font-weight: 700; color: #fff; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.netz-unit  { font-size: 0.72rem; color: #555; }
.netz-bar-wrap {
    margin-top: 8px;
    height: 5px;
    background: #2a2a2a;
    border-radius: 3px;
    overflow: hidden;
}
.netz-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.netz-bar--up   { background: #8e44ad; }
.netz-bar--down { background: #27ae60; }

body.light-mode .netz-card { background: #fff; border-color: #e0e0e0; }
body.light-mode .netz-val  { color: #1a1a1a; }
body.light-mode .netz-bar-wrap { background: #eee; }

.scroll-title {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 12px;
    padding-left: 5px;
}

.all-jobs-scroll {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 45vh;               /* Höhe der Scroll-Liste */
    overflow-y: auto;
    padding-right: 10px;
}

.all-jobs-scroll .job-card {
    margin: 0;
}

/* ==================== TO DO ==================== */

.todo-container {
    padding: 10px 0;
}

.todo-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.todo-container h2 {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.todo-manage-btn {
    background: #8e44ad;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s;
}
.todo-manage-btn:hover { background: #6c3483; }

.todo-section-label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    font-size: 1.4rem;
    padding: 14px 18px;
    background: #2a2a2a;
    border-radius: 10px;
    border-left: 5px solid var(--lila);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.2s;
}

.todo-cb {
    width: 22px;
    height: 22px;
    accent-color: var(--lila);
    cursor: pointer;
    flex-shrink: 0;
}

.todo-item.todo-done {
    opacity: 0.45;
    border-left-color: #444;
    text-decoration: line-through;
    color: #777;
}

.todo-prio { font-size: 1.1rem; flex-shrink: 0; }

.todo-text { flex: 1; word-break: break-word; color: #e0e0e0; }

.todo-meta {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.todo-empty {
    color: #666;
    font-size: 1.2rem;
    padding: 30px 0;
}

/* Datum in zwei Zeilen */
.datum-container {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #bbb;
    margin-left: 10px;
    line-height: 1.3;
}

.datum-line {
    white-space: nowrap;
}

/* ==================== LOGIN BUTTON – SEHR GROSS ==================== */
.login-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    font-size: 2.1rem !important;     /* 4x größer */
    padding: 18px 35px !important;
    background: linear-gradient(#8e44ad, #6c3483);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
    transition: all 0.2s;
}

.login-btn:hover {
    transform: scale(1.05);
    background: #9b59b6;
}

.logout-btn {
    font-size: 1.4rem;
    padding: 10px 20px;
    background: #e74c3c;
}

.pdf-btn {
    font-size: 1.2rem;
    padding: 10px 18px;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #445;
    transition: background 0.2s;
}
.pdf-btn:hover { background: #3d5166; }

.logged-in {
    font-size: 1.5rem;
    color: #2ecc71;
}
/* ==================== WER MACHT WAS? ==================== */
.wmw-container {
    padding: 30px 40px;
}

.wmw-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 30px;
}

.wmw-roles {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.wmw-card {
    background: var(--dunkel);
    border: 2px solid #444;
    border-radius: 14px;
    padding: 24px 20px;
    width: 220px;
    text-align: center;
}

.wmw-icon {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.wmw-name {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 16px;
    font-weight: 500;
}

.wmw-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wmw-input {
    padding: 10px 14px;
    font-size: 1.1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.wmw-input:focus {
    outline: none;
    border-color: #8e44ad;
}

.wmw-save-btn {
    padding: 10px 14px;
    font-size: 1.0rem;
    background: var(--lila);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.wmw-save-btn:hover {
    background: #9b59b6;
}

/* ==================== RENTABLE SCHNITTSTELLE ==================== */
.schnittstelle-container {
    padding: 40px;
}

.schnittstelle-title {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 10px;
}

.schnittstelle-subtitle {
    color: #666;
    font-size: 1rem;
}

/* ==================== PDF DROP ZONE ==================== */
.pdf-drop-zone {
    border: 2px dashed #8e44ad;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #1e1e1e;
    max-width: 600px;
    margin-bottom: 24px;
}

.pdf-drop-zone:hover, .pdf-drop-zone.dragover {
    border-color: #a569bd;
    background: #2a1a3a;
}

.pdf-drop-zone.dragover {
    transform: scale(1.02);
}

.pdf-drop-icon { font-size: 3rem; margin-bottom: 10px; }

.pdf-drop-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 4px;
}

.pdf-drop-hint {
    font-size: 0.85rem;
    color: #666;
}

/* PDF Liste */
.pdf-list { max-width: 600px; }

.pdf-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2a2a2a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-left: 4px solid #8e44ad;
}

.pdf-icon { font-size: 1.5rem; flex-shrink: 0; }

.pdf-info { flex: 1; overflow: hidden; }

.pdf-name {
    display: block;
    color: #a569bd;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-name:hover { text-decoration: underline; }

.pdf-meta {
    font-size: 0.8rem;
    color: #666;
}

.pdf-del-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.pdf-del-btn:hover { opacity: 1; }

.pdf-empty { color: #555; font-size: 0.95rem; }

/* ==================== ARCHIV ==================== */
.archiv-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archiv-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 12px 16px;
    border-left: 4px solid #27ae60;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.archiv-card:hover { opacity: 1; }

.archiv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.archiv-nummer {
    color: #27ae60;
    font-weight: bold;
    font-size: 1rem;
}

.archiv-kfz {
    background: #333;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.archiv-datum {
    font-size: 0.85rem;
    color: #888;
}

.archiv-badge {
    background: #1a4a1a;
    color: #27ae60;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.archiv-body {
    font-size: 0.82rem;
    color: #666;
}

/* ==================== ESSEN ALARM ==================== */
.essen-alarm-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border: none;
    color: white;
    padding: 16px 40px;
    font-size: 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
    transition: all 0.2s;
}

.essen-alarm-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(230, 126, 34, 0.6);
}

.essen-alarm-btn:active {
    transform: scale(0.98);
}

/* ==================== MOBILE (max 768px) ==================== */
@media (max-width: 768px) {

    /* Header */
    .header {
        padding: 8px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header img {
        height: 36px !important;
        width: auto;
    }

    .header h1 {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .logged-in {
        font-size: 0.8rem !important;
    }

    .logout-btn {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    .login-btn {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    /* Tab-Leiste scrollbar */
    .tab-bar {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .tab-bar::-webkit-scrollbar { display: none; }

    .tab-btn {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 7px 10px !important;
        white-space: nowrap;
    }

    /* Job-Grid: 1 Spalte auf Handy */
    .job-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        height: auto !important;
        gap: 12px;
    }

    .job-card {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .job-card-empty {
        display: none; /* Leere Slots auf Mobile verstecken */
    }

    .job-nummer {
        font-size: 1.1rem !important;
    }

    .kfz {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
        white-space: nowrap;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .datum-container {
        font-size: 0.75rem !important;
    }

    /* Techniker + Status untereinander auf Mobile */
    .techniker-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .techniker-status-row .status-group {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* Bemerkungen */
    .bem-input {
        font-size: 0.8rem !important;
    }

    .footer-info {
        font-size: 0.72rem !important;
    }

    /* Pagination */
    .pagination-bar {
        gap: 6px;
        height: 36px;
    }

    .page-btn {
        padding: 4px 10px !important;
        font-size: 1rem !important;
    }

    /* Tab-Inhalte */
    .tab-content {
        padding: 12px 10px !important;
    }

    /* Kalender */
    .week-grid {
        grid-template-columns: repeat(7, 120px) !important;
        overflow-x: auto;
        gap: 6px !important;
    }

    .day-column {
        min-width: 120px !important;
    }

    .day-header {
        padding: 8px 6px !important;
    }

    .day-name {
        font-size: 0.9rem !important;
    }

    .day-date {
        font-size: 1rem !important;
    }

    .calendar-job-card {
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }

    .calendar-job-card strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100px;
    }

    .calendar-job-card small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100px;
    }

    .no-jobs-day {
        font-size: 0.75rem !important;
    }

    /* Rollen */
    .wmw-roles {
        gap: 12px !important;
    }

    .wmw-card {
        width: 140px !important;
        padding: 14px 12px !important;
    }

    .wmw-icon { font-size: 2rem !important; }
    .wmw-name { font-size: 0.85rem !important; }
    .wmw-input { font-size: 0.85rem !important; padding: 7px 10px !important; }
    .wmw-save-btn { font-size: 0.85rem !important; }

    .essen-alarm-btn {
        font-size: 1.1rem !important;
        padding: 12px 24px !important;
    }

    /* Footer */
    footer {
        font-size: 0.75rem !important;
        padding: 8px !important;
    }

    /* Essen Alarm Banner */
    #essen-banner div {
        padding: 14px 16px !important;
        gap: 10px !important;
    }

    #essen-banner .banner-text {
        font-size: 1.3rem !important;
    }
}

/* ==================== SUCHLEISTE ==================== */
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

#job-search {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    color: white;
    padding: 10px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#job-search:focus {
    border-color: #8e44ad;
}

#job-search::placeholder {
    color: #555;
}

#search-clear {
    background: #3a3a3a;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1rem;
    cursor: pointer;
    display: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

#search-clear:hover {
    background: #c0392b;
    color: white;
    border-color: #c0392b;
}

@media (max-width: 768px) {
    #job-search {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
}

/* ==================== BUG BUTTON ==================== */
#bug-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9000;
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bug-btn:hover {
    background: #8e44ad;
    border-color: #8e44ad;
    transform: scale(1.1);
}

/* ==================== KALENDER NAVIGATION ==================== */
.kalender-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.kal-nav-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.kal-nav-btn:hover { background: #8e44ad; border-color: #8e44ad; color: white; }

.kal-nav-titel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.kal-heute-btn {
    background: none;
    border: 1px solid #555;
    color: #aaa;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.kal-heute-btn:hover { border-color: #8e44ad; color: #a569bd; }

.day-heute { border: 1px solid #8e44ad !important; }

@media (max-width: 768px) {
    .kal-nav-btn { padding: 7px 12px !important; font-size: 0.85rem !important; }
    .kal-nav-titel { font-size: 0.85rem !important; }
}

/* ==================== FEIERTAGE ==================== */
.day-feiertag {
    border: 1px solid #5c1a1a !important;
    background: #2a1a1a !important;
}

.feiertag-name {
    font-size: 0.65rem;
    color: #e74c3c;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==================== THEME TOGGLE BUTTON ==================== */
#theme-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    transition: all 0.2s;
}

#theme-btn:hover {
    background: #8e44ad;
    border-color: #8e44ad;
    transform: scale(1.1);
}

body.light-mode #theme-btn {
    background: #fff;
    border-color: #ccc;
    color: #555;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}


/* ═══════════════════════════════════════════════════════
   📱 MOBIL-OPTIMIERUNG (nur für Bildschirme < 600px)
   ═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {

    /* Header kompakter */
    .main-header {
        padding: 6px 10px !important;
        flex-wrap: nowrap !important;
    }
    .logo {
        height: 36px !important;
        width: auto !important;
    }
    .header-title {
        font-size: 1rem !important;
    }
    .header-right {
        font-size: 0.7rem !important;
        gap: 6px !important;
    }
    .logout-btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    /* Tab-Leiste: horizontal scrollbar, größere Tipp-Fläche */
    .tab-nav {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 4px !important;
        scrollbar-width: none !important;
    }
    .tab-nav::-webkit-scrollbar { display: none; }
    .tab-btn {
        padding: 8px 12px !important;
        min-width: fit-content !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    /* Inhalt volle Breite */
    .tab-content {
        padding: 10px !important;
    }

    /* Job-Kacheln: eine Spalte */
    .job-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Profil: Eingabefelder volle Breite */
    #profil-tab input[type="password"],
    #profil-tab input[type="text"] {
        font-size: 16px !important; /* verhindert iOS-Zoom beim Tippen */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    #profil-tab button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1rem !important;
        margin-top: 4px !important;
    }

    /* Rentable-Name: Stack statt Reihe */
    #profil-tab .flex-row-inputs {
        flex-direction: column !important;
    }

    /* Foto-Modal volle Breite */
    #foto-modal > div {
        width: 96% !important;
        padding: 16px !important;
    }
    #foto-modal button {
        padding: 14px !important;
        font-size: 1rem !important;
    }
}

/* Schwebender Abmelden-Button auf Mobil - Mitte unten, orange wie Mittagsalarm */
@media (max-width: 600px) {
    #mobile-logout-btn {
        position: fixed !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9000 !important;
        border-radius: 50px !important;
        padding: 12px 32px !important;
        font-size: 0.95rem !important;
        font-weight: bold !important;
        background: linear-gradient(135deg, #e67e22, #d35400) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 4px 20px rgba(230, 126, 34, 0.5) !important;
        width: auto !important;
        cursor: pointer !important;
    }

    /* Header-Abmelden auf Mobil verstecken */
    .header-right .logout-btn {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════════
   📱 VOLLSTÄNDIGE MOBILE-OPTIMIERUNG (alle Handys)
   Zielgeräte: iPhone SE (375px) – Galaxy S (360px) –
               iPhone 14 Pro Max (430px) – Pixel 7 (412px)
   ══════════════════════════════════════════════════════ */

/* Dynamische Viewport-Höhe – URL-Leiste in Mobile-Browsern abziehen */
@supports (height: 100dvh) {
    body { height: 100dvh; }
}

/* ── Tablets & große Handys: bis 768px ── */
@media (max-width: 768px) {

    /* HEADER */
    .main-header {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .main-header .logo,
    .header-left .logo,
    .logo {
        height: 36px !important;
    }
    .main-header h1,
    .header-left h1 {
        font-size: 1.05rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    .login-area {
        gap: 6px !important;
        flex-shrink: 0;
    }
    .logged-in {
        font-size: 0.78rem !important;
        white-space: nowrap;
    }
    .login-btn {
        font-size: 1rem !important;
        padding: 10px 16px !important;
    }
    .logout-btn {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    /* TAB-LEISTE – horizontal scrollbar */
    .tab-bar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 4px !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab-btn {
        padding: 7px 10px !important;
        flex-shrink: 0 !important;
    }
    .tab-icon  { font-size: 1.2rem !important; }
    .tab-label { font-size: 0.68rem !important; }

    /* TAB-INHALT */
    .tab-content { padding: 12px 10px !important; }

    /* JOB-GRID: eine Spalte */
    .job-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        height: auto !important;
        gap: 12px !important;
    }
    .job-card-empty { display: none !important; }
    .job-card {
        height: auto !important;
        min-height: 0 !important;
        font-size: 0.88rem !important;
    }
    .job-nummer { font-size: 1.1rem !important; }
    .kfz {
        font-size: 0.82rem !important;
        padding: 3px 8px !important;
        max-width: 140px;
    }

    /* TODO */
    .todo-item {
        font-size: 1rem !important;
        padding: 10px 12px !important;
        gap: 10px !important;
    }
    .todo-container h2 { font-size: 1.4rem !important; }

    /* WER MACHT WAS */
    .wmw-container { padding: 12px 10px !important; }
    .wmw-roles { gap: 10px !important; }
    .wmw-card  { width: 130px !important; padding: 12px 10px !important; }
    .wmw-icon  { font-size: 2rem !important; }
    .wmw-name  { font-size: 0.82rem !important; }
    .wmw-input { font-size: 0.85rem !important; padding: 7px 10px !important; }

    /* NETZWERK */
    .netz-val  { font-size: 1.4rem !important; }
    .netz-label { font-size: 0.68rem !important; }

    /* SCHNITTSTELLE / RENTABLE */
    .schnittstelle-container { padding: 14px 10px !important; }
    .schnittstelle-title     { font-size: 1.3rem !important; }

    /* ARCHIV */
    .archiv-card { font-size: 0.85rem !important; }

    /* DOWNLOAD */
    #download-tab h2 { font-size: 1.3rem !important; }

    /* KALENDER – horizontal scrollbar */
    .week-grid {
        grid-template-columns: repeat(7, 110px) !important;
        gap: 6px !important;
    }
    .day-column     { min-width: 110px !important; }
    .day-name       { font-size: 0.9rem !important; }
    .day-date       { font-size: 1rem !important; }
    .day-header     { padding: 8px 6px !important; }
    .calendar-job-card {
        font-size: 0.72rem !important;
        padding: 6px !important;
    }
    .no-jobs-day    { font-size: 0.75rem !important; }
    .kal-nav-btn    { padding: 7px 12px !important; font-size: 0.85rem !important; }

    /* SKETCH – Geräte-Panel über Canvas stapeln */
    #skz-editor {
        flex-direction: column !important;
        height: auto !important;
        min-height: calc(100dvh - 130px) !important;
    }
    #skz-geraete-panel {
        width: 100% !important;
        max-height: 160px !important;
        border-right: none !important;
        border-bottom: 1px solid #2a2a2a !important;
    }
    #skz-canvas-wrap {
        flex: 1 !important;
        min-height: 320px !important;
    }

    /* Inputs: iOS-Zoom beim Tippen verhindern (font-size >= 16px) */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* PDF-Dropzone volle Breite */
    .pdf-drop-zone { max-width: 100% !important; }
    .pdf-list      { max-width: 100% !important; }

    /* Footer */
    footer { font-size: 0.75rem !important; padding: 8px !important; }
}

/* ── Kleine Handys: bis 420px ── */
@media (max-width: 420px) {

    /* Seitentitel ausblenden – Logo genügt */
    .main-header h1,
    .header-left h1 { display: none !important; }

    /* Tab-Buttons noch kompakter */
    .tab-icon  { font-size: 1.1rem !important; }
    .tab-label { font-size: 0.60rem !important; }
    .tab-btn   { padding: 6px 8px !important; }

    /* Login-Button passend */
    .login-btn {
        font-size: 0.88rem !important;
        padding: 8px 12px !important;
    }

    /* Job-Karten: kleinere Schrift */
    .job-card { font-size: 0.82rem !important; }

    /* Suchleiste: kein Zoom */
    #job-search { font-size: 16px !important; padding: 8px 12px !important; }

    /* Todo kompakter */
    .todo-item  { font-size: 0.92rem !important; }
    .todo-cb    { width: 18px !important; height: 18px !important; }

    /* Netzwerk-Grid: 2 Spalten statt 4 */
    #netz-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Essen-Alarm */
    .essen-alarm-btn { font-size: 1rem !important; padding: 12px 20px !important; }

    /* Schwebender Logout-Button */
    #mobile-logout-btn {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
    }
}
