html, body {
    background-color: #f4f5f7;
    -webkit-text-size-adjust: 100%;
}

#page-content {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
}

.top-bar {
    max-width: 520px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-content {
    padding: 0 12px 90px 12px;
}

/* ---------- Wochenplan ---------- */
.day-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.day-header {
    font-weight: 600;
    padding: 8px 12px;
    background-color: #eef0f3;
    border-radius: 6px 6px 0 0;
}

.day-today {
    background-color: #d7ecff;
    border-left: 4px solid #0d6efd;
}

.day-diners-badge {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 400;
    color: #555;
    background-color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    white-space: nowrap;
}

.day-diners-badge:hover {
    background-color: #e9ecef;
}

.meal-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #eee;
}

.meal-cell {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    min-width: 0;
}

.meal-cell:hover {
    background-color: #f8f9fa;
}

.meal-label {
    color: #888;
    font-size: 0.85rem;
    min-width: 70px;
}

.meal-value {
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.meal-placeholder {
    flex: 1;
    text-align: right;
    color: #bbb;
    font-style: italic;
}

/* ---------- Einkaufsliste ---------- */
.shop-check {
    cursor: pointer;
    font-size: 1.2rem;
    width: 28px;
}

.shop-item {
    flex: 1;
}

.shop-item-checked {
    flex: 1;
    text-decoration: line-through;
    color: #aaa;
}

.shop-category-header {
    background-color: #eef0f3;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
    padding-top: 6px;
    padding-bottom: 6px;
}

.share-remove {
    cursor: pointer;
    margin-left: 4px;
}

/* ---------- Floating Action Button ---------- */
.fab {
    position: fixed;
    bottom: 84px;
    right: max(24px, calc((100vw - 520px) / 2 + 24px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 15;
}

/* ---------- Tab-Leiste unten ---------- */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #ddd;
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 10;
}

.tab-link {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 6px 0;
    color: #888;
    font-size: 0.7rem;
}

.tab-item i {
    font-size: 1.3rem;
}

.tab-active {
    color: #0d6efd;
}

.tab-label {
    margin-top: 2px;
}
