:root {
    --ink: #071d41;
    --muted: #4f5f74;
    --blue: #0d59a8;
    --blue-dark: #05356d;
    --blue-soft: #eaf4ff;
    --red: #a41034;
    --line: #d9e4f1;
    --panel: rgba(255, 255, 255, 0.94);
    --shadow: 0 18px 45px rgba(7, 29, 65, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #f7fbff;
}

button, input, select, textarea, a { font: inherit; }
a { color: inherit; }

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 16px rgba(7, 29, 65, 0.06);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { display: block; width: clamp(170px, 18vw, 260px); height: auto; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a, .nav-button {
    position: relative;
    color: #111a2a;
    text-decoration: none;
    font-size: 18px;
    padding: 16px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.main-nav .active { color: var(--red); font-weight: 700; }
.main-nav .active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--red);
}

.profile-button {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
}

.hero, .auth-main, .dashboard-main,
.work-page, .time-page, .profile-page {
    position: relative;
    flex: 1;
    padding: 50px clamp(20px, 5vw, 72px) 28px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0.72) 100%),
        repeating-linear-gradient(90deg, rgba(13,89,168,0.08) 0 2px, transparent 2px 150px),
        linear-gradient(135deg, #f9fcff 0%, #edf6ff 45%, #d8e7f5 100%);
}

.hero::before, .auth-main::before, .dashboard-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 22%, rgba(13,89,168,0.18) 0 3px, transparent 4px),
        linear-gradient(115deg, transparent 0 44%, rgba(13,89,168,0.08) 44% 45%, transparent 45% 100%);
    background-size: 34px 34px, 100% 100%;
    pointer-events: none;
}

.hero-grid, .auth-grid, .dashboard-shell,
.work-shell, .time-shell, .profile-shell {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.94fr);
    gap: clamp(28px, 5vw, 74px);
    align-items: center;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 520px);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-copy h1, .auth-copy h1, .dashboard-title,
.work-header h1, .time-header h1, .profile-card h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: 0;
}

.eyebrow { margin: 0 0 26px; color: #126bd1; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.25; }
.description { max-width: 690px; margin: 0 0 28px; color: #1e2737; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; }

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.primary-button { color: #fff; background: linear-gradient(135deg, var(--red), #8d0d2c); border: 0; box-shadow: 0 12px 24px rgba(164, 16, 52, 0.22); }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }

.portal-visual { position: relative; min-height: 420px; }
.factory-lines { position: absolute; inset: 0; opacity: 0.48; background: linear-gradient(90deg, transparent 0 19%, rgba(13,89,168,0.22) 19% 20%, transparent 20% 100%), linear-gradient(0deg, transparent 0 70%, rgba(13,89,168,0.18) 70% 71%, transparent 71% 100%); }
.desk { position: absolute; right: 0; bottom: 0; width: min(640px, 100%); height: 118px; background: linear-gradient(180deg, #eef5fb, #dbe9f5); border-radius: 42px 0 0 0; box-shadow: inset 0 1px 0 #fff; }
.monitor { position: absolute; right: 16px; top: 56px; width: min(510px, 86vw); aspect-ratio: 16 / 9; padding: 18px; background: #081a34; border-radius: 14px; box-shadow: 0 28px 50px rgba(7, 29, 65, 0.28); transform: perspective(900px) rotateY(-5deg) rotateZ(-1deg); }
.screen { width: 100%; height: 100%; padding: 18px; background: linear-gradient(135deg, #f8fbff, #e8f2fd); border-radius: 8px; overflow: hidden; }
.screen-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.screen-card { min-height: 78px; padding: 10px; background: #fff; border: 1px solid #d9e4f1; border-radius: 7px; box-shadow: 0 8px 18px rgba(7, 29, 65, 0.08); }
.screen-card span { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 700; }
.screen-card strong { font-size: 24px; }
.screen-lines { display: grid; gap: 8px; margin-top: 16px; }
.screen-lines i { display: block; height: 6px; border-radius: 999px; background: #c5d4e7; }
.stand { position: absolute; right: 225px; bottom: 52px; width: 80px; height: 80px; background: linear-gradient(90deg, #0b1e39, #17335c); clip-path: polygon(34% 0, 66% 0, 78% 100%, 22% 100%); }
.plant, .cup { position: absolute; bottom: 78px; border-radius: 0 0 20px 20px; }
.plant { left: 16px; width: 76px; height: 58px; background: linear-gradient(90deg, #d7dde4, #fff); box-shadow: 0 8px 18px rgba(7, 29, 65, 0.12); }
.plant::before { content: ""; position: absolute; left: 10px; bottom: 44px; width: 56px; height: 70px; background: radial-gradient(ellipse at center, #4a9a55 0 34%, transparent 36%); background-size: 28px 48px; }
.cup { right: 18px; width: 70px; height: 62px; background: #073d7b; }
.cup::after { content: ""; position: absolute; right: -28px; top: 12px; width: 30px; height: 28px; border: 8px solid #073d7b; border-left: 0; border-radius: 0 22px 22px 0; }
.floating-icons { position: absolute; left: 4%; top: 10%; display: grid; gap: 22px; }
.float-icon { width: 92px; height: 92px; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, 0.78); border: 2px solid rgba(13, 89, 168, 0.28); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); box-shadow: 0 16px 30px rgba(7, 29, 65, 0.11); }

.features { position: relative; max-width: 1500px; margin: 18px auto 22px; display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 18px; }
.feature-card { min-height: 188px; padding: 26px 20px 22px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); text-align: center; cursor: pointer; text-decoration: none; }
.feature-icon, .notice-icon, .toast-icon, .stat-icon { width: 68px; height: 68px; display: inline-grid; place-items: center; margin-bottom: 16px; color: #07488f; background: var(--blue-soft); border-radius: 50%; }
.feature-card h2 { margin: 0 0 9px; font-size: 22px; line-height: 1.2; }
.feature-card p { margin: 0; color: #3d4656; font-size: 16px; line-height: 1.45; }

.notice, .auth-card, .dashboard-card, .module-card,
.work-header, .time-header, .profile-card, .clock-card,
.time-card, .time-table, .time-summary, .work-card,
.work-table, .detail-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.notice { position: relative; max-width: 1500px; min-height: 102px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 20px 28px; background: rgba(232, 244, 255, 0.9); border-color: #bed7f2; }
.notice p { margin: 0; font-size: 18px; line-height: 1.55; }
.construction-art { margin-left: auto; color: #07488f; opacity: 0.9; }

.auth-card, .dashboard-card { padding: clamp(24px, 4vw, 42px); }
.form-group { display: grid; gap: 8px; margin-bottom: 18px; }
.form-group label { font-weight: 700; }
.form-group input, .form-group select, .form-group textarea,
input, select, textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c8d7e8;
    border-radius: 8px;
}
textarea { min-height: 130px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(13, 89, 168, 0.18); border-color: var(--blue); }
.alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 8px; line-height: 1.45; }
.alert-error { color: #7d0824; background: #fff0f3; border: 1px solid #f0b7c3; }
.alert-success { color: #064f2d; background: #edfdf4; border: 1px solid #a9e7c5; }
.auth-actions, .work-actions, .time-actions, .profile-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

.dashboard-shell, .work-shell, .time-shell, .profile-shell { display: grid; gap: 24px; }
.dashboard-header, .title-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.dashboard-meta { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 18px; margin-top: 24px; }
.meta-box, .module-card, .work-header, .time-header, .profile-card,
.clock-card, .time-card, .time-table, .time-summary, .work-card, .work-table, .detail-panel { padding: 20px; }
.meta-label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.meta-value { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.module-grid, .work-grid, .time-grid, .clock-layout, .profile-grid, .detail-grid, .two { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 18px; }
.work-grid, .time-grid, .profile-grid, .detail-grid, .two { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.module-card h2 { margin: 0 0 10px; font-size: 21px; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.logout-form { margin: 0; }

.admin-table-wrap, .table-scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.admin-table, table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td, th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th, th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0; background: #f3f8fe; }
.admin-table tr:last-child td, tr:last-child td { border-bottom: 0; }
.admin-user-form { display: contents; }
.admin-table select { width: 100%; min-height: 42px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid #c8d7e8; border-radius: 8px; }
.admin-save { min-height: 42px; padding: 0 18px; font-size: 15px; }
.status-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; color: var(--ink); background: var(--blue-soft); border: 1px solid #c7dff6; border-radius: 999px; font-weight: 700; }
.status-active { color: #064f2d; background: #edfdf4; border-color: #a9e7c5; }

.row-actions, .clock-buttons, .document-list { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form { display: grid; gap: 10px; }
.presence-list { display: grid; gap: 10px; }
.detail-item { display: grid; gap: 6px; }
.detail-item span { color: var(--muted); font-size: 14px; font-weight: 700; }
.detail-item strong { font-size: 18px; overflow-wrap: anywhere; }
.clock-card strong, .time-summary strong { font-size: 32px; }
.work-logo, .time-logo { max-width: 170px; height: auto; }

.toast { position: fixed; right: clamp(18px, 5vw, 70px); bottom: 104px; z-index: 30; width: min(430px, calc(100vw - 36px)); display: flex; align-items: center; gap: 18px; padding: 22px 24px; color: var(--ink); background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast p { margin: 0; flex: 1; font-size: 18px; }
.toast-close { width: 34px; height: 34px; color: #6a7890; background: transparent; border: 0; cursor: pointer; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 20px clamp(20px, 5vw, 72px); color: #fff; background: linear-gradient(135deg, var(--blue-dark) 0%, #041c3f 78%); }
.footer-item { display: flex; align-items: center; gap: 16px; font-size: 18px; line-height: 1.35; }

svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover, .feature-card:focus-visible, .primary-button:hover, .primary-button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible, .main-nav a:hover, .main-nav a:focus-visible, .nav-button:hover, .nav-button:focus-visible, .profile-button:hover, .profile-button:focus-visible { outline: 2px solid rgba(13, 89, 168, 0.28); outline-offset: 3px; }

.app-check-grid {
    gap: 14px !important;
}

.app-check-grid label,
.app-card fieldset > label,
.privacy-help label {
    min-height: 58px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    color: var(--ink) !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    cursor: pointer !important;
}

.app-check-grid input[type="checkbox"],
.app-card fieldset > label input[type="checkbox"],
.privacy-help label input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 1em !important;
    height: 1em !important;
    min-height: 1em !important;
    margin: 0.18em 0 0 !important;
    accent-color: var(--red);
    cursor: pointer !important;
}

.privacy-help label,
.app-card fieldset > label {
    background: #fffdf7 !important;
    border-color: #f2d184 !important;
}

form.work-card[action="arbeitsauftraege.php"] fieldset:last-of-type::after {
    content: "Beim Anlegen eines Arbeitsauftrags oder beim Ändern der verantwortlichen Person wird eine E-Mail an die ausgewählte verantwortliche Person gesendet.";
    display: block;
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 14px 16px;
    color: #07488f;
    background: #eaf4ff;
    border: 1px solid #bed7f2;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .site-header { align-items: flex-start; flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; padding-bottom: 2px; }
    .hero-grid, .auth-grid { grid-template-columns: 1fr; }
    .portal-visual { min-height: 330px; }
    .monitor { right: 0; top: 20px; }
    .floating-icons { left: 0; }
    .features { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
    .module-grid, .work-grid, .time-grid, .profile-grid, .detail-grid, .two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { overflow-x: hidden; }

    .site-header {
        min-height: 72px;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .brand img { width: 132px; }

    .profile-button {
        width: 42px;
        height: 42px;
        position: absolute;
        right: 12px;
        top: 14px;
    }

    .main-nav {
        order: 3;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding: 4px 2px 6px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar { display: none; }

    .main-nav a, .nav-button {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .main-nav .active {
        color: #fff;
        background: var(--ink);
        border-color: var(--ink);
    }

    .main-nav .active::after { display: none; }

    .hero, .auth-main, .dashboard-main,
    .work-page, .time-page, .profile-page {
        padding: 18px 12px 24px !important;
        background: #f7fbff !important;
    }

    .hero-grid, .auth-grid, .dashboard-shell,
    .work-shell, .time-shell, .profile-shell {
        width: 100% !important;
        gap: 14px !important;
    }

    .hero-copy h1, .auth-copy h1, .dashboard-title,
    .work-header h1, .time-header h1, .profile-card h1 {
        font-size: 30px !important;
        line-height: 1.12 !important;
        margin-bottom: 10px !important;
    }

    .eyebrow { font-size: 17px !important; margin-bottom: 8px !important; }
    .description { font-size: 16px; }

    .portal-visual { display: none; }
    .floating-icons, .plant, .cup, .stand, .construction-art { display: none; }

    .features {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 12px auto 16px;
    }

    .feature-card {
        min-height: 124px;
        padding: 18px 16px;
        text-align: left;
        display: grid;
        grid-template-columns: 52px 1fr;
        column-gap: 14px;
        align-items: center;
    }

    .feature-card .feature-icon {
        width: 52px;
        height: 52px;
        margin: 0;
        grid-row: span 2;
    }

    .feature-card h2 { margin: 0 0 4px; font-size: 18px; }
    .feature-card p { font-size: 14px; }

    .notice, .auth-card, .dashboard-card, .module-card,
    .work-header, .time-header, .profile-card, .clock-card,
    .time-card, .time-table, .time-summary, .work-card,
    .work-table, .detail-panel {
        width: 100%;
        padding: 16px !important;
        border-radius: 8px !important;
        box-shadow: 0 10px 24px rgba(7, 29, 65, 0.08) !important;
    }

    .dashboard-header, .title-row {
        display: grid;
        gap: 12px;
    }

    .module-grid, .work-grid, .time-grid, .clock-layout,
    .profile-grid, .dashboard-meta, .detail-grid, .two {
        grid-template-columns: 1fr !important;
    }

    .module-card h2 { font-size: 18px; }
    .module-card p { font-size: 14px; }

    .auth-actions, .work-actions, .time-actions, .profile-actions,
    .logout-form, .row-actions, .clock-buttons, .document-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100%;
        margin-top: 12px !important;
    }

    .primary-button, .secondary-button,
    button.primary-button, button.secondary-button,
    .auth-actions a, .auth-actions button,
    .work-actions a, .work-actions button,
    .time-actions a, .time-actions button,
    .profile-actions a, .profile-actions button,
    .row-actions a, .document-list a,
    .inline-form button, .clock-comment button,
    .clock-layout button, .logout-form button,
    .logout-form a {
        width: 100% !important;
        min-height: 52px !important;
        justify-content: center !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        padding: 0 18px !important;
        white-space: normal !important;
        text-align: center;
    }

    input, select, textarea,
    .form-group input, .form-group select, .form-group textarea {
        min-height: 52px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    textarea { min-height: 120px !important; }

    .app-check-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .app-check-grid label,
    .app-card fieldset > label,
    .privacy-help label {
        min-height: 62px !important;
        padding: 15px 16px !important;
        gap: 15px !important;
        font-size: 21px !important;
    }

    .app-check-grid input[type="checkbox"],
    .app-card fieldset > label input[type="checkbox"],
    .privacy-help label input[type="checkbox"] {
        width: 1em !important;
        height: 1em !important;
        min-height: 1em !important;
    }

    .table-scroll { overflow: visible !important; border: 0; background: transparent; margin-top: 12px; }

    .work-table table, .time-table table,
    table {
        min-width: 0 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
    }

    .work-table thead, .time-table thead,
    thead { display: none !important; }

    .work-table tbody, .time-table tbody, tbody,
    .work-table tr, .time-table tr, tr,
    .work-table td, .time-table td, td {
        display: block !important;
        width: 100% !important;
    }

    .work-table tr, .time-table tr, tr {
        padding: 14px !important;
        background: #fff !important;
        border: 1px solid var(--line) !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 20px rgba(7, 29, 65, 0.08) !important;
        margin-bottom: 12px;
    }

    .work-table td, .time-table td, td {
        display: grid !important;
        grid-template-columns: minmax(104px, 38%) 1fr !important;
        gap: 10px !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #eef3f8 !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
    }

    .work-table td:last-child, .time-table td:last-child, td:last-child { border-bottom: 0 !important; }

    .work-table td::before, .time-table td::before {
        color: var(--muted) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    .work-table td:nth-child(1)::before { content: "Datum"; }
    .work-table td:nth-child(2)::before { content: "Nr."; }
    .work-table td:nth-child(3)::before { content: "Team"; }
    .work-table td:nth-child(4)::before { content: "Bereich"; }
    .work-table td:nth-child(5)::before { content: "Titel"; }
    .work-table td:nth-child(6)::before { content: "Verantwortlich"; }
    .work-table td:nth-child(7)::before { content: "Priorität"; }
    .work-table td:nth-child(8)::before { content: "Status"; }
    .work-table td:nth-child(9)::before { content: "Dokumente"; }
    .work-table td:nth-child(10)::before { content: "Aktion"; }

    .time-table td:nth-child(1)::before { content: "Datum"; }
    .time-table td:nth-child(2)::before { content: "Benutzer"; }
    .time-table td:nth-child(3)::before { content: "Auftrag"; }
    .time-table td:nth-child(4)::before { content: "Beginn"; }
    .time-table td:nth-child(5)::before { content: "Ende"; }
    .time-table td:nth-child(6)::before { content: "Pause"; }
    .time-table td:nth-child(7)::before { content: "Arbeitszeit"; }
    .time-table td:nth-child(8)::before { content: "Tätigkeit"; }
    .time-table td:nth-child(9)::before { content: "Bemerkung"; }
    .time-table td:nth-child(10)::before { content: "Status"; }
    .time-table td:nth-child(11)::before { content: "Prüfung"; }

    .meta-value, .detail-item strong { font-size: 17px !important; }
    .clock-card strong, .time-summary strong { font-size: 28px !important; }
    .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 12px; font-size: 14px; }
    .footer-item { font-size: 14px; }
    .toast { left: 12px; right: 12px; bottom: 18px; width: auto; }
}

@media (max-width: 720px) {
    .page {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 60;
        min-height: 62px;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
    }

    .brand img { width: 124px; }

    .profile-button {
        width: 42px;
        height: 42px;
        right: 14px;
        top: 10px;
        box-shadow: 0 8px 18px rgba(7, 29, 65, 0.10);
    }

    .main-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        display: flex;
        width: 100%;
        height: calc(74px + env(safe-area-inset-bottom));
        gap: 4px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        overflow-x: auto;
        overscroll-behavior-x: contain;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--line);
        border-bottom: 0;
        box-shadow: 0 -10px 26px rgba(7, 29, 65, 0.12);
        scrollbar-width: none;
    }

    .main-nav a, .nav-button {
        flex: 0 0 82px;
        min-width: 82px;
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 8px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .main-nav .active {
        color: var(--ink);
        background: var(--blue-soft);
        border: 1px solid #c7dff6;
        box-shadow: inset 0 0 0 1px rgba(13, 89, 168, 0.08);
    }

    .hero, .auth-main, .dashboard-main,
    .work-page, .time-page, .profile-page {
        padding-bottom: 20px !important;
    }

    .site-footer {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .toast {
        bottom: calc(90px + env(safe-area-inset-bottom));
    }
}
