:root {
    --bg: #f0eadf;
    --panel: rgba(255, 251, 245, 0.92);
    --panel-strong: #fffaf0;
    --ink: #1a1f1c;
    --muted: #58615d;
    --accent: #c24d2c;
    --accent-soft: #f2cbbd;
    --line: rgba(26, 31, 28, 0.12);
    --shadow: 0 18px 40px rgba(45, 39, 30, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(194, 77, 44, 0.18), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(100, 132, 116, 0.22), transparent 32rem),
        linear-gradient(135deg, #efe4d0, var(--bg));
}

.screen {
    width: min(1400px, calc(100vw - 3rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.module-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.eyebrow {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    margin: 0.3rem 0 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.95;
}

.module-shell {
    border-radius: 1.8rem;
    padding: 1.5rem;
}

.module-body {
    margin-top: 1.5rem;
}

.paging-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.paging-button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.2rem;
    background: var(--ink);
    color: #fffaf0;
    font: inherit;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease;
}

.paging-button:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.paging-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.paging-status {
    margin: 0;
    color: var(--muted);
}

.loading-state,
.error-state,
.empty-state {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.loading-state {
    background: rgba(88, 97, 93, 0.08);
}

.error-state {
    background: rgba(194, 77, 44, 0.12);
    color: #7b2c17;
}

.empty-state {
    background: rgba(100, 132, 116, 0.14);
}

.sabbath-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.sabbath-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1.4rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.card-topline {
    display: flex;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: start;
}

.date-chip,
.guest-chip {
    margin: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    width: fit-content;
    font-size: 0.9rem;
}

.date-chip {
    background: rgba(26, 31, 28, 0.07);
}

.guest-chip {
    background: var(--accent-soft);
    color: #6d2714;
}

.commentary {
    margin: 0;
    padding-left: 0.9rem;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

.kollekt-block {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(194, 77, 44, 0.08);
}

.kollekt-label,
.kollekt-value {
    margin: 0;
}

.kollekt-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.kollekt-value {
    margin-top: 0.35rem;
    font-size: 1.05rem;
}

.responsibility-list {
    margin: 0;
}

.responsibility-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--line);
}

.responsibility-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.responsibility-row dt {
    color: var(--muted);
}

.responsibility-row dt,
.responsibility-row dd {
    margin: 0;
}

.unassigned {
    color: var(--muted);
    font-style: italic;
}

@media (max-width: 820px) {
    .screen {
        width: min(100vw - 1.5rem, 1400px);
        padding-top: 1rem;
    }

    .paging-controls {
        flex-direction: column;
    }
}
