:root {
    --ink: #16130f;
    --muted: #6d6357;
    --line: #e3dccf;
    --paper: #fbf9f4;
    --card: #ffffff;
    --gruen: #1c6b3f;
    --gruen-bg: #e6f2ea;
    --gelb: #8a5b00;
    --gelb-bg: #fdf1d6;
    --rot: #8d2222;
    --rot-bg: #fbe7e4;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 19px; }
.brand span { color: var(--muted); font-weight: 500; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover { color: var(--ink); }

main { padding: 36px 0 64px; }

h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.gruen { color: var(--gruen); background: var(--gruen-bg); }
.badge.gelb { color: var(--gelb); background: var(--gelb-bg); }
.badge.rot { color: var(--rot); background: var(--rot-bg); }

.meta { color: var(--muted); font-size: 15px; }

.search { display: flex; gap: 8px; margin: 0 0 24px; }
.search input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 16px; }
.search button { padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }

ul.films { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ul.films li { border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; gap: 14px; align-items: baseline; justify-content: space-between; }
ul.films a { text-decoration: none; font-weight: 600; }
ul.films a:hover { text-decoration: underline; }
ul.films .year { color: var(--muted); font-weight: 400; }

.verdict-box { border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: 12px; padding: 18px 20px; background: var(--card); margin: 0 0 28px; }
.verdict-box.gruen { border-left-color: var(--gruen); }
.verdict-box.gelb { border-left-color: var(--gelb); }
.verdict-box.rot { border-left-color: var(--rot); }
.verdict-box .age { font-weight: 700; margin-top: 10px; }
.verdict-box p { margin: 8px 0 0; }

table.flags { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 16px; }
table.flags th, table.flags td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.flags th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
table.flags td.level { white-space: nowrap; font-weight: 600; }
.lvl-1 { color: var(--gruen); }
.lvl-2 { color: var(--gelb); }
.lvl-3 { color: var(--rot); }

.card { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 18px 20px; margin: 0 0 20px; }
.card h2 { margin-top: 0; }

.intent input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; margin-bottom: 10px; }
.intent button { width: 100%; padding: 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.notice { background: var(--gruen-bg); color: var(--gruen); padding: 10px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 12px; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); }

.tag { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin: 0 6px 6px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); }
.kpi .n { font-size: 26px; font-weight: 800; }
.kpi .l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
    max-width: 560px; margin: 0 auto; background: var(--card); color: var(--ink);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); font-size: 15px;
    display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--muted); flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; }
.consent button { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: transparent; font-size: 14px; cursor: pointer; }
.consent button.primary { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

@media (max-width: 520px) {
    h1 { font-size: 26px; }
    nav.site { gap: 12px; }
}
