/* Layout: eine Spalte, Bänder über die volle Breite, Motive in einem 2er-Raster. */
:root {
    --paper: #f7f4ec;
    --card: #fffdf8;
    --ink: #111111;
    --muted: rgba(0, 0, 0, 0.68);
    --line: #111111;
    --hair: rgba(0, 0, 0, 0.16);
    --depth: #2470db;
    --warm: #d89122;
    --teal: #0b778d;
    --display: "Roboto Flex", "Helvetica Neue", Arial, sans-serif;
    --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #14161a;
        --card: #1c1f25;
        --ink: #f3efe5;
        --muted: rgba(243, 239, 229, 0.72);
        --line: #f3efe5;
        --hair: rgba(243, 239, 229, 0.2);
        --depth: #6ba2f5;
        --warm: #e5ab53;
        --teal: #4fb6cb;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #14161a;
    --card: #1c1f25;
    --ink: #f3efe5;
    --muted: rgba(243, 239, 229, 0.72);
    --line: #f3efe5;
    --hair: rgba(243, 239, 229, 0.2);
    --depth: #6ba2f5;
    --warm: #e5ab53;
    --teal: #4fb6cb;
    color-scheme: dark;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.band { border-top: 3px solid var(--line); }
.band > .wrap { padding-block: clamp(40px, 6vw, 72px); }

/* Kopf */
.masthead > .wrap { padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.kicker {
    display: inline-flex; align-items: center; gap: 0.6em;
    padding: 8px 13px; border: 3px solid var(--line); background: var(--card);
    font-weight: 800; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
.kicker i { width: 0.65em; height: 0.65em; border-radius: 999px; background: var(--teal); }
h1 {
    font-family: var(--display); font-weight: 900;
    font-size: clamp(34px, 6.4vw, 72px); line-height: 0.96; letter-spacing: -0.015em;
    margin: 22px 0 0; max-width: 23ch; text-wrap: balance;
}
.standfirst { margin: 20px 0 0; max-width: 62ch; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); font-weight: 500; }
.meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* Testfrage */
.question > .wrap { padding-block: clamp(36px, 5vw, 60px); }
.question { background: var(--card); }
.question p.q {
    margin: 0; font-family: var(--display); font-weight: 800;
    font-size: clamp(22px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.012em; max-width: 24ch;
}
.question .lab { margin: 0 0 14px; font-weight: 800; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }

h2 {
    font-family: var(--display); font-weight: 900;
    font-size: clamp(26px, 3.6vw, 44px); line-height: 1.04; letter-spacing: -0.012em;
    margin: 0; max-width: 24ch; text-wrap: balance;
}
.lede { margin: 16px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; }
.seclabel { margin: 0 0 12px; font-weight: 800; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--depth); }

/* Anzeigen */
.ads { margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.adcard { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.adcard figure { margin: 0; border: 3px solid var(--line); background: var(--card); }
.adhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adhead b { font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.adhead span { font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fields { margin: 0; display: grid; gap: 12px; }
.fields > div { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--hair); }
.fields dt { font-weight: 800; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fields dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
.fields dd .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 700; }

/* Formate */
.formats { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.formats + .formats { margin-top: 26px; }
.formats figure { margin: 0; min-width: 0; }
.formats img { border: 3px solid var(--line); }
.formats figcaption { margin-top: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Landingpage */
.lp { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.lp figure { margin: 0; min-width: 0; }
.lp .shot { border: 3px solid var(--line); max-height: 760px; overflow: hidden; background: var(--card); }
.lp figcaption { margin-top: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Listen */
.cols { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 3px solid var(--line); background: var(--card); }
.cols > article { min-width: 0; padding: 26px 24px; border-right: 3px solid var(--line); display: grid; gap: 9px; align-content: start; }
.cols > article:last-child { border-right: 0; }
.cols h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; }
.cols p { margin: 0; font-size: 15.5px; color: var(--muted); }
.cols b.num { font-family: var(--display); font-weight: 900; font-size: 14px; letter-spacing: 0.1em; color: var(--depth); }

/* Tabelle */
.tbl { margin-top: 30px; width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.tbl th { width: 180px; font-weight: 800; font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tblwrap { overflow-x: auto; }

/* Code */
pre {
    margin: 26px 0 0; padding: 20px 22px; overflow-x: auto;
    border: 3px solid var(--line); background: var(--card);
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; line-height: 1.7;
}
pre b { color: var(--depth); font-weight: 700; }

footer > .wrap { padding-block: 30px 56px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
a { color: inherit; text-underline-offset: 4px; }

@media (max-width: 760px) {
    .ads { grid-template-columns: 1fr; }
    .formats { grid-template-columns: 1fr; }
    .lp { grid-template-columns: 1fr; }
    .lp .shot { max-height: 520px; }
    .cols > article { border-right: 0; border-bottom: 3px solid var(--line); }
    .cols > article:last-child { border-bottom: 0; }
}

/* Sprachumschalter */
.langs {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.langs [aria-current] { color: var(--ink); }
