@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

/* ================================================
   Reset & Base
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: rgba(23, 23, 23, 0.8);
    background: #fff;
    line-height: 1.5;
}

/* ================================================
   Top Bar
   ================================================ */
.topbar {
    background: #1a1a1a;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    min-height: 46px;
}

.topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.topbar-email {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ================================================
   Hero
   ================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 360px;
    background: #111 center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.hero-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
}

.hero-text strong {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ================================================
   Main Content
   ================================================ */
.timehub-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 44px 24px 80px;
}

.timehub-wrap.has-stats {
    padding-bottom: 0;
}

.page-heading {
    font-size: 28px;
    font-weight: 700;
    color: #171717;
    margin-bottom: 22px;
    line-height: 1.2;
}

/* ================================================
   Dropdown-Filter
   ================================================ */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
}

.filter-select {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #171717;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 7px 32px 7px 12px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    min-width: 160px;
    transition: border-color 0.15s;
}

.filter-select:focus {
    outline: none;
    border-color: #171717;
}

.filter-select:hover {
    border-color: #aaa;
}

/* ================================================
   Jahr-Filter
   ================================================ */
.year-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: rgba(23, 23, 23, 0.8);
}

.year-controls label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.year-controls input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.year-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 6px;
}

/* ================================================
   Monats-Sektion
   ================================================ */
.month-section {
    display: block;
}

.month-header {
    font-size: 22px;
    font-weight: 700;
    color: #171717;
    margin: 38px 0 14px;
}

/* ================================================
   Tabelle
   ================================================ */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: rgba(23, 23, 23, 0.8);
}

.data-table th {
    background: #f4f4f4;
    text-align: left;
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(23, 23, 23, 0.8);
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 14px;
    font-size: 13px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    color: rgba(23, 23, 23, 0.8);
    line-height: 1.3;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ================================================
   Zellen
   ================================================ */
.cell-title {
    font-weight: 600;
    color: #171717;
    display: block;
    font-size: 13px;
}

.cell-note {
    font-size: 12px;
    color: rgba(23, 23, 23, 0.5);
    display: block;
}

.nowrap { white-space: nowrap; }

/* ================================================
   Status Toggle
   ================================================ */
.toggle-switch {
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

/* ================================================
   Stunden-Kreis
   ================================================ */
.circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.circle-outline {
    border: 1.5px solid rgba(23, 23, 23, 0.75);
    color: rgba(23, 23, 23, 0.8);
    background: transparent;
}

.circle-filled {
    background: #171717;
    color: #fff;
    border: none;
}

/* ================================================
   Summenzeile
   ================================================ */
.sum-row td {
    border-top: 2px solid #171717 !important;
    border-bottom: none !important;
    padding-top: 14px;
    padding-bottom: 14px;
    background: transparent !important;
}

.sum-price {
    font-weight: 700;
    white-space: nowrap;
}

/* ================================================
   Statistik-Box
   ================================================ */
.stats-box-wrap {
    background: #f5f5f5;
    width: 100%;
}

.stats-box {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.sb-totals {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    align-items: flex-end;
    margin-left: auto;
}

.sb-total-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 28px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 200px;
    align-items: flex-end;
    text-align: right;
}

.sb-total-highlight {
    background: #171717;
    border-color: #171717;
}

.sb-total-highlight .sb-total-label,
.sb-total-highlight .sb-total-value {
    color: #fff;
}

.sb-total-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(23, 23, 23, 0.5);
}

.sb-total-value {
    font-size: 26px;
    font-weight: 700;
    color: #171717;
    line-height: 1.1;
}

.sb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    max-width: 640px;
}

.sb-table thead th {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(23, 23, 23, 0.5);
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.sb-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #d8d8d8;
    color: rgba(23, 23, 23, 0.8);
}

.sb-table tbody tr:last-child td {
    border-bottom: none;
}

.sb-num {
    text-align: right;
}

.sb-leistung {
    font-weight: 600;
    color: #171717;
}

.sb-betrag {
    font-weight: 700;
    color: #171717;
}

/* ================================================
   Fehlermeldungen
   ================================================ */
.notice {
    padding: 14px 18px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #444;
    font-size: 14px;
}

.notice.error {
    background: #fff0f0;
    color: #c00;
    border-left: 4px solid #c00;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.75);
    padding: 52px 0 28px;
    margin-top: 0;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-icon svg {
    flex-shrink: 0;
}

.footer-logo {
    align-self: center;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1300px;
    margin: 22px auto 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 640px) {
    .topbar { padding: 10px 16px; }
    .timehub-wrap { padding: 28px 16px 60px; }
    .page-heading { font-size: 22px; }
    .month-header { font-size: 18px; }
    .hero { height: 180px; }
    .hero-text { font-size: 14px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-logo { align-self: flex-start; }
}
