/* Publikationen and Werkzeuge pages. Same tokens and type levels as the home page (DESIGN.md). */
:root {
  --navy: #0C1929; --blue: #0F3963; --neutral: #F5F7FA; --camel: #B17948; --sand: #DFAE82;
  --slate: #425466; --muted: #64748B; --border: #CBD5E1; --border-strong: #94A3B8;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --t-display: clamp(2.3rem, 1.3rem + 3.6vw, 4.4rem);
  --t-head: clamp(1.75rem, 1.2rem + 2.1vw, 3rem);
  --t-body: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  --t-small: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font-family: "Inter", system-ui, sans-serif; font-size: var(--t-body); line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11"; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sand); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem var(--gutter); border-bottom: 1px solid var(--border); }
.mark { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--navy); font-size: var(--t-small); white-space: nowrap; }
.mark .logo { width: 32px; height: 32px; flex: none; }
.bar__r { display: flex; align-items: center; gap: 1.5rem; }
.bar__link { color: var(--navy); font-size: var(--t-small); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.bar__link[aria-current="page"] { text-decoration-color: var(--camel); text-decoration-thickness: 2px; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.1rem; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--r); text-decoration: none; font-weight: 500; font-size: var(--t-small); white-space: nowrap; }
@media (hover:hover) and (pointer:fine) { .cta:hover { background: var(--blue); border-color: var(--blue); } }
@media (max-width: 560px) { .mark__name { display: none; } .bar__r { gap: 1rem; } }

/* page frame */
.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.crumb { font-size: var(--t-small); color: var(--muted); margin: 0; padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.crumb a { color: var(--slate); }
.kicker { font-size: var(--t-small); font-weight: 500; color: var(--slate); margin: 0; }
h1, .h1 { font-size: var(--t-display); font-weight: 600; line-height: 1.03; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
h2, .h2 { font-size: var(--t-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.028em; margin: 0; text-wrap: balance; }
h3 { font-size: var(--t-body); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.lede { font-size: var(--t-body); color: var(--slate); max-width: 52ch; margin: 0; text-wrap: pretty; }
.lede--ink { color: var(--navy); }
.small { font-size: var(--t-small); line-height: 1.5; }
.muted { color: var(--muted); }
p { margin: 0; }
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
section + section { border-top: 1px solid var(--border); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.sec-head .lede { max-width: 56ch; }
.sec-head--stack { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.sec-head--stack h2 { max-width: 24ch; }

/* intro (landing) */
.intro { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; }
.intro .stack { display: grid; gap: 1.25rem; }

/* feature: cover beside text, asymmetric */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: center; }
.feature__text { display: grid; gap: 1.1rem; align-content: start; }
.cover { margin: 0; }
.cover img { width: 100%; border-radius: 2px; box-shadow: 0 1px 2px hsl(215 60% 12% / .12), 0 18px 40px -18px hsl(215 60% 12% / .45); }
.cover--portrait { max-width: 22rem; }
.facts-line { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--t-small); color: var(--slate); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: .25rem; }
.btn2 { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--navy); border-radius: var(--r); color: var(--navy); text-decoration: none; font-weight: 500; font-size: var(--t-small); }
@media (hover:hover) and (pointer:fine) { .btn2:hover { border-color: var(--blue); color: var(--blue); } }
.link { color: var(--blue); font-weight: 500; font-size: var(--t-small); min-height: 44px; display: inline-flex; align-items: center; }

/* entries: library rows, tools, downloads. Lines, not boxes. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.rows > li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: .4rem clamp(1rem, 3vw, 2.5rem); padding: 1.25rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.rows .type { font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.rows .title { display: grid; gap: .3rem; }
.rows .title a { color: var(--navy); font-weight: 600; letter-spacing: -0.015em; text-decoration-color: var(--border-strong); }
@media (hover:hover) and (pointer:fine) { .rows .title a:hover { text-decoration-color: var(--camel); } }
.rows .title p { font-size: var(--t-small); color: var(--slate); max-width: 60ch; }
.rows .meta { font-size: var(--t-small); color: var(--slate); font-variant-numeric: tabular-nums; }

.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.files li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; gap: .35rem clamp(1rem, 3vw, 2rem); padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.files .name { font-weight: 500; line-height: 1.35; }
.files .name span { display: block; font-size: var(--t-small); color: var(--slate); font-weight: 400; margin-top: .15rem; }
.files .fmt { font-size: var(--t-small); color: var(--slate); font-variant-numeric: tabular-nums; }
.files .dl { justify-self: end; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.files .dl a { font-weight: 500; font-size: var(--t-small); min-height: 44px; display: inline-flex; align-items: center; }

/* findings */
.findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); }
.findings li { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--border); display: grid; gap: .6rem; align-content: start; }
.findings .no { font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.findings .fig { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.findings .fig small { font-size: var(--t-small); font-weight: 500; letter-spacing: 0; color: var(--slate); margin-left: .5rem; }
.findings p { font-size: var(--t-small); line-height: 1.6; color: var(--navy); max-width: 62ch; }
.findings .ev { color: var(--muted); font-weight: 500; display: flex; gap: .5rem; align-items: baseline; }
.findings .ev::before { content: ""; flex: none; width: .45rem; height: .45rem; background: var(--camel); }

/* definition list for publication facts */
.dl-facts { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 0 1.5rem; margin: 0; border-top: 1px solid var(--border); font-size: var(--t-small); }
.dl-facts dt, .dl-facts dd { padding: .7rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.dl-facts dt { color: var(--muted); }

/* steps (tool) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--navy); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s); font-weight: 600; font-size: var(--t-body); font-variant-numeric: tabular-nums; color: var(--camel); }
.steps b { font-weight: 600; display: block; margin-bottom: .2rem; }
.steps span { font-size: var(--t-small); color: var(--slate); }

/* a publication's tool, shown as part of the publication */
.tool { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--navy); }
.tool__body { display: grid; gap: 1rem; }
.tool__body .kicker { color: var(--muted); }
.tool__body h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; }
.tool__body h3 a { color: var(--navy); text-decoration: none; }
.tool .dl-facts { margin-top: .25rem; }
.free { font-size: var(--t-small); color: var(--slate); }
.alt { display: block; font-size: var(--t-small); font-weight: 400; margin-top: .2rem; }
.alt a { color: var(--slate); }
.pair { font-size: var(--t-small); color: var(--slate); max-width: 60ch; }

/* the quiet written-enquiry invitation */
.ask { background: var(--neutral); }
.ask .inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.ask p { max-width: 52ch; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 1.5rem var(--gutter); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: var(--muted); font-size: var(--t-small); }
.foot .brand { display: inline-flex; align-items: center; gap: .75rem; }
.foot .brand .logo { width: 32px; height: 32px; flex: none; }
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot a { color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.foot a[aria-current="page"] { font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
  .intro, .feature, .sec-head, .ask .inner { grid-template-columns: minmax(0, 1fr); }
  .intro { align-items: start; }
  .feature .cover { order: -1; }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool .cover { max-width: 18rem; }
  .findings { grid-template-columns: minmax(0, 1fr); }
  .rows > li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .files li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .files .dl { justify-self: start; }
  .dl-facts { grid-template-columns: minmax(0, 1fr); }
  .dl-facts dt { border-bottom: 0; padding-bottom: 0; }
  .dl-facts dd { padding-top: .15rem; }
}

/* download buttons: the label may wrap on narrow phones, the file size stays in one piece */
.actions .cta, .actions .btn2 { white-space: normal; flex-wrap: wrap; justify-content: flex-start; text-align: left; column-gap: .5rem; }
.actions .cta span, .actions .btn2 span { white-space: nowrap; display: inline-block; }

/* portrait covers (A4 upright reports) */
.feature--portrait { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature--portrait.cover-left { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.cover--portrait img { max-width: 22rem; }
@media (max-width: 860px) { .feature--portrait, .feature--portrait.cover-left { grid-template-columns: minmax(0, 1fr); } .cover--portrait img { max-width: 15rem; } }

/* findings stated as sentences, without a headline figure */
.findings .claim { font-size: var(--t-body); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--navy); max-width: 40ch; }

/* pages inside a report that work as tools */
.inreport { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.inreport li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 2fr); gap: .3rem clamp(1rem, 3vw, 2rem); padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.inreport b { font-weight: 600; display: block; }
.inreport span { font-size: var(--t-small); color: var(--slate); }
.inreport .pg { justify-self: end; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .inreport li { grid-template-columns: minmax(0, 1fr); } .inreport .pg { justify-self: start; } }

/* Language switch (DE | EN): a real link to the counterpart page, 44px targets.
   Narrow phones show only the other language's code; the bar's Publications link
   is then in the breadcrumb and the footer. */
.lang { display: inline-flex; align-items: center; font-size: var(--t-small); font-weight: 500; color: var(--navy); }
.lang > * { min-width: 2.25rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.lang [aria-current] { font-weight: 600; }
.lang i { min-width: 0; font-style: normal; opacity: .45; }
@media (max-width: 560px) { .lang [aria-current], .lang i { display: none; } .bar__link { display: none; } }
