/* Gemeinsames Stylesheet für die Mobile-PWA-Sektion (Login/Dashboard/Zeiterfassung). */

:root {
    --mob-dunkel: #23262b;
    --mob-akzent: #2f5fd7;
    --mob-akzent-hell: #e3e9fd;
    --mob-text: #2b2f38;
    --mob-text-schwach: #767c88;
    --mob-rand: #e3e6ec;
    --mob-hintergrund: #f5f6f8;
    --mob-gruen: #1f9254;
    --mob-rot: #d3455b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--mob-hintergrund);
    color: var(--mob-text);
    -webkit-tap-highlight-color: transparent;
}

/* -- Login -- */
.mob-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--mob-dunkel);
    padding: 24px;
}
.mob-login-logo { width: 96px; margin-bottom: 24px; }
.mob-login-card {
    background: white;
    border-radius: 14px;
    padding: 28px 22px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.mob-login-card h2 { margin: 0 0 4px; font-size: 20px; }
.mob-login-card p { margin: 0 0 20px; color: var(--mob-text-schwach); font-size: 14px; }
.mob-alert {
    border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: none;
}
.mob-alert.fehler { background: #fdecef; color: var(--mob-rot); }
.mob-alert.erfolg { background: #e6f4ea; color: #1b5e20; }

/* -- Formulare, Touch-Maße -- */
.mob-field { margin-bottom: 16px; }
.mob-field label { display: block; font-size: 13px; color: var(--mob-text-schwach); margin-bottom: 6px; }
.mob-field input, .mob-field select {
    width: 100%; min-height: 48px; border: 1px solid var(--mob-rand); border-radius: 8px;
    padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--mob-text);
}
.mob-field input:focus, .mob-field select:focus { outline: 2px solid var(--mob-akzent); border-color: var(--mob-akzent); }

.mob-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 20px; border-radius: 8px; border: none;
    font-size: 15px; font-weight: bold; cursor: pointer; width: 100%;
}
.mob-btn-primary { background: var(--mob-akzent); color: white; }
.mob-btn-primary:active { background: #2650b8; }
.mob-btn-outline { background: white; border: 1px solid var(--mob-rand); color: var(--mob-text); }
.mob-btn-danger { background: #fdecef; color: var(--mob-rot); }

/* -- Layout aller eingeloggten Seiten -- */
.mob-topbar {
    background: var(--mob-dunkel); color: white; padding: 14px 18px;
    font-size: 16px; font-weight: bold; display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 10;
}
.mob-topbar img { width: 28px; }
.mob-content {
    padding: 16px 16px calc(80px + env(safe-area-inset-bottom));
    max-width: 560px; margin: 0 auto;
}

/* -- Karten -- */
.mob-card {
    background: white; border: 1px solid var(--mob-rand); border-radius: 12px;
    padding: 16px 18px; margin-bottom: 14px;
}
.mob-card h3 { margin: 0 0 12px; font-size: 15px; }
.mob-stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.mob-stat-row + .mob-stat-row { border-top: 1px solid #f0f1f4; }
.mob-stat-label { font-size: 13px; color: var(--mob-text-schwach); }
.mob-stat-value { font-size: 18px; font-weight: bold; }
.mob-stat-value.positiv { color: var(--mob-gruen); }
.mob-stat-value.negativ { color: var(--mob-rot); }
.mob-hinweis-leer { color: var(--mob-text-schwach); font-size: 13px; }
.mob-link-card { color: var(--mob-akzent); font-size: 14px; text-decoration: none; display: block; margin-top: 4px; }

/* -- Tabs -- */
.mob-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.mob-tab-btn {
    flex: 1; min-height: 44px; border-radius: 8px; border: 1px solid var(--mob-rand);
    background: white; font-size: 14px; font-weight: bold; color: var(--mob-text-schwach); cursor: pointer;
}
.mob-tab-btn.aktiv { background: var(--mob-akzent); border-color: var(--mob-akzent); color: white; }

/* -- Tagesraster-Stepper -- */
.mob-raster-card {
    display: flex; align-items: center; justify-content: space-between;
    background: white; border: 1px solid var(--mob-rand); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 10px;
}
.mob-raster-label { font-size: 14px; font-weight: bold; }
.mob-raster-stepper { display: flex; align-items: center; gap: 10px; }
.mob-stepper-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mob-rand);
    background: var(--mob-akzent-hell); color: var(--mob-akzent); font-size: 20px; font-weight: bold;
    display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; flex: none;
}
.mob-stepper-btn:active { background: #cfdcff; }
.mob-raster-wert { min-width: 44px; text-align: center; font-size: 16px; font-weight: bold; }

/* -- EB/SB-Liste -- */
.mob-eintrag-card { display: flex; justify-content: space-between; align-items: center; }
.mob-eintrag-info { font-size: 13px; }
.mob-eintrag-info b { font-size: 14px; }
.mob-eintrag-loeschen { background: none; border: none; color: var(--mob-rot); font-size: 20px; cursor: pointer; padding: 6px 10px; }

/* -- Bottom-Nav (von mobile-nav.js befüllt) -- */
#ajuto-mobile-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; background: var(--mob-dunkel);
    padding-bottom: env(safe-area-inset-bottom);
}
.mob-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 10px 0; color: #9aa1ac; font-size: 11px; text-decoration: none;
}
.mob-nav-item .mob-nav-icon { font-size: 20px; }
.mob-nav-item.aktiv { color: white; }
