:root {
    color-scheme: light;
    --page-bg: #f4f1eb;
    --card-bg: #fffdf8;
    --text: #232323;
    --muted: #626262;
    --border: #d8d1c4;
    --accent: #6c442b;
    --accent-dark: #4e2f1e;
    --tag-bg: #eee4d7;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.58;
}
a { color: var(--accent-dark); }
a:hover, a:focus { text-decoration-thickness: 2px; }
.site-shell { width: min(100% - 32px, 980px); margin: 34px auto 56px; }
.site-header { margin-bottom: 24px; }
.site-header h1 { margin: 0 0 6px; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.35rem); line-height: 1.1; }
.site-header p { margin: 0; color: var(--muted); }
.site-nav { margin-top: 12px; }
.site-nav a { margin-right: 18px; }
.site-card {
    margin: 0 0 22px;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 7px 24px rgba(54, 42, 29, 0.06);
}
.site-card h2 { margin-top: 0; font-family: Georgia, serif; font-size: clamp(1.35rem, 4vw, 1.9rem); }
.zitat-des-tages {
    margin: 0;
    padding: 18px 20px;
    border-left: 5px solid var(--accent);
    background: #f8f4ed;
    font-size: 1.08rem;
}
.zitat-des-tages footer { margin-top: 12px; color: var(--muted); font-style: italic; }
.tag-cloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 13px; padding: 8px 0 2px; }
.tag-cloud a {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--accent-dark);
    font-size: var(--tag-size, 1rem);
    font-weight: var(--tag-weight, 500);
    line-height: 1.25;
    text-decoration: none;
}
.tag-cloud a:hover, .tag-cloud a:focus { background: var(--tag-bg); outline: 2px solid transparent; }
.tag-cloud .tag-level-1 { --tag-size: .92rem; --tag-weight: 400; }
.tag-cloud .tag-level-2 { --tag-size: 1.02rem; --tag-weight: 500; }
.tag-cloud .tag-level-3 { --tag-size: 1.14rem; --tag-weight: 500; }
.tag-cloud .tag-level-4 { --tag-size: 1.28rem; --tag-weight: 600; }
.tag-cloud .tag-level-5 { --tag-size: 1.43rem; --tag-weight: 600; }
.tag-cloud .tag-level-6 { --tag-size: 1.62rem; --tag-weight: 700; }
.tag-cloud .tag-level-7 { --tag-size: 1.85rem; --tag-weight: 700; }
.tag-description, .result-count { color: var(--muted); }
.quote-list { display: grid; gap: 16px; }
.quote-entry { padding: 18px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.quote-entry .zitat-des-tages { padding: 12px 16px; border-left-width: 4px; background: #faf7f2; }
.quote-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.quote-tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #d7c8b7;
    border-radius: 999px;
    background: var(--tag-bg);
    font-size: .82rem;
    line-height: 1.3;
    text-decoration: none;
}
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 38px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; text-align: center; text-decoration: none; }
.pagination .current { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.empty-note { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-shell { width: min(100% - 20px, 980px); margin-top: 18px; }
    .site-card { border-radius: 8px; }
    .tag-cloud { justify-content: flex-start; }
}
