/* Duftklar. Tokens and rules follow docs/brand/duftklar-design-system.
   Layout: one document column with a narrow margin column for labels.
   Yellow marks only what is still open. Blue is the dated stamp. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-condensed-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4f5f7;
  --card: #ffffff;
  --ink: #111c33;
  --soft: #4d586c;
  --faint: #606b82;
  --line: #cfd5df;
  --mark: #ffd84d;
  --mark-ink: #111c33;
  --stamp: #2743a6;
  --band: #111c33;
  --band-ink: #f4f5f7;
  --band-soft: #b9c1d0;
  --band-line: #33405f;
  --klar: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --etikett: "IBM Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --wortlaut: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1424; --card: #151e33; --ink: #eceef2; --soft: #aab3c5; --faint: #8c96ab; --line: #2a3550;
    --stamp: #9fb3ff; --band: #1a2540; --band-ink: #eceef2; --band-soft: #aab3c5; --band-line: #34415f;
  }
}
@media print {
  :root {
    --paper: #ffffff; --card: #ffffff; --ink: #111c33; --soft: #4d586c; --faint: #606b82; --line: #cfd5df;
    --stamp: #2743a6; --band: #ffffff; --band-ink: #111c33; --band-soft: #4d586c; --band-line: #cfd5df;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--klar); font-size: 1.125rem; line-height: 1.55;
}
.wrap {
  max-width: 68rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-weight: 800; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
p, li, dd { max-width: 62ch; }
a { color: var(--stamp); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0.02em 0.14em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cap { font-family: var(--etikett); font-size: 0.86rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em; color: var(--soft); }
.skip { position: absolute; left: -999rem; top: 0; background: var(--card); color: var(--ink); padding: 0.6rem 1rem; z-index: 5; }
.skip:focus { left: 0; }
.platz { border: 1px dashed var(--stamp); border-radius: 3px; color: var(--stamp); padding: 0 0.35em; font-family: var(--etikett); letter-spacing: 0.03em; }

/* masthead */
.mast .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between; padding-block: 1.4rem 1.1rem; }
.wordmark { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark mark { padding-inline: 0.12em 0.06em; margin-right: 0.02em; }
.mast nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.mast nav a { font-family: var(--etikett); font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.mast nav a:hover, .mast nav a[aria-current="page"] { border-bottom-color: var(--mark); }

/* hero: who it is for, what Duftklar does, the status, and how an entry comes about */
.hero .wrap { padding-block: clamp(0.75rem, 3vw, 2.5rem) clamp(2.5rem, 7vw, 4.5rem); display: grid; gap: clamp(1.1rem, 2.6vw, 1.75rem); }
.hero .vor { font-size: 1rem; font-weight: 600; line-height: 1.3; max-width: none; }
.hero h1 { font-size: clamp(2.125rem, 6.2vw, 4.25rem); line-height: 1.16; letter-spacing: -0.018em; }
.hero h1 mark { padding-block: 0; }
.hero-cols { display: grid; gap: 1.4rem 4rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .hero-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.lead { display: grid; gap: 1.1rem; align-content: start; }
.lead .sub { font-size: 1.22rem; line-height: 1.5; }
.lead a { font-weight: 700; }
.ablauf { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1rem, 3vw, 1.6rem); display: grid; gap: 0.9rem; }
.ablauf h2 { line-height: 1.35; text-wrap: wrap; }
.ablauf ol { list-style: none; padding: 0; display: grid; counter-reset: schritt; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0 0.6rem; padding-block: 0.7rem; border-top: 1px solid var(--line); max-width: none; }
.ablauf li:first-child { border-top: 2px solid var(--ink); }
.ablauf li:last-child { padding-bottom: 0; }
.ablauf li::before { content: counter(schritt); font-weight: 800; font-size: 1.3rem; line-height: 1.25; grid-row: span 2; }
.ablauf li b { font-size: 1.15rem; line-height: 1.3; }
.ablauf li span { color: var(--soft); font-size: 1rem; line-height: 1.4; grid-column: 2; }

/* stamp */
.stamp {
  display: inline-grid; gap: 0.1rem; justify-self: start; font-family: var(--etikett); text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 4px; padding: 0.35rem 0.8rem 0.3rem;
  outline: 1px solid var(--stamp); outline-offset: 2px; transform: rotate(-2.2deg); line-height: 1.2;
}
.stamp b { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.1em; }
.stamp span { font-size: 0.86rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.stamp.offen { color: var(--soft); border-style: dashed; border-color: var(--soft); outline: 0; transform: none; }

/* sections with a margin column */
.sec { border-top: 1px solid var(--line); }
.sec .wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem); display: grid; gap: 1rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
.sec .body { display: grid; gap: 1.5rem; min-width: 0; }
.sec .body > .more { font-weight: 700; }
@media (min-width: 60rem) {
  .sec .wrap { grid-template-columns: 10.5rem minmax(0, 1fr); }
  .sec .cap { padding-top: 0.7rem; }
}
.sec.eng .wrap { padding-block: clamp(1.8rem, 5vw, 3rem); }
.sec.eng .body { gap: 1rem; }
.sec.eng h2 { font-size: clamp(1.35rem, 3.4vw, 1.75rem); max-width: 30ch; }
.sec.eng .cap { padding-top: 0.45rem; }

/* page head of a content page */
.kopf .wrap { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 6vw, 3.5rem); display: grid; gap: 1.2rem; }
.kopf h1 { font-size: clamp(2.05rem, 6vw, 3.6rem); max-width: 22ch; }
.kopf .einstieg { font-size: 1.22rem; line-height: 1.5; max-width: 58ch; }
.byline { font-family: var(--etikett); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.liste { display: grid; gap: 0.5rem; padding-left: 1.2rem; }
.adresse { font-style: normal; display: grid; gap: 0.1rem; }

/* count */
.count { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); align-items: center; }
.count svg { width: 100%; max-width: 26rem; height: auto; display: block; }
.count .m { fill: var(--mark); }
.count .o { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.count figcaption { display: grid; gap: 0.7rem; }
.count .big { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
.count .small, .klein { font-size: 1rem; color: var(--soft); }

/* table */
.tabelle { overflow-x: auto; }
.tabelle table { border-collapse: collapse; width: 100%; min-width: 34rem; font-variant-numeric: tabular-nums; }
.tabelle caption { text-align: left; padding-bottom: 0.8rem; font-size: 1rem; color: var(--soft); max-width: 62ch; }
.tabelle th { font-family: var(--etikett); font-size: 0.86rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; color: var(--soft); text-align: right; vertical-align: bottom; padding: 0.5rem 0 0.6rem 1.2rem; border-bottom: 2px solid var(--ink); }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; padding-left: 0; }
.tabelle td { text-align: right; padding: 0.7rem 0 0.7rem 1.2rem; border-bottom: 1px solid var(--line); }
.tabelle tbody th { border-bottom: 1px solid var(--line); vertical-align: baseline; padding: 0.7rem 0; }
.tabelle td.kern { font-weight: 800; }

/* entry: three steps and the specimen */
.steps { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; }
.steps li { display: grid; gap: 0.4rem; align-content: start; border-top: 2px solid var(--ink); padding-top: 0.8rem; max-width: none; }
.steps p { font-size: 1.05rem; }
.muster { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.1rem, 3.5vw, 2rem); display: grid; gap: 1.3rem; overflow: hidden; }
.muster::before { content: "Muster"; position: absolute; right: -0.04em; bottom: -0.2em; font-family: var(--etikett); font-weight: 600; text-transform: uppercase; font-size: clamp(5rem, 22vw, 13rem); line-height: 1; letter-spacing: 0.02em; color: var(--line); opacity: 0.55; pointer-events: none; }
.muster > * { position: relative; }
.muster-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; align-items: baseline; }
.tag { font-family: var(--etikett); font-size: 0.86rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; border: 1px dashed currentColor; border-radius: 3px; padding: 0.05rem 0.45rem; color: var(--soft); }
.inci { font-family: var(--etikett); text-transform: uppercase; font-size: 1.12rem; line-height: 1.4; letter-spacing: 0.02em; color: var(--faint); max-width: 56ch; }
.inci mark { font-weight: 600; }
.inci sup { font-family: var(--klar); font-weight: 700; color: var(--ink); font-size: 0.7em; }
.verlauf { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.verlauf li { display: grid; gap: 0.1rem 1.2rem; grid-template-columns: minmax(0, 1fr); max-width: none; }
.verlauf .t { font-family: var(--etikett); font-size: 1rem; letter-spacing: 0.06em; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 40rem) { .verlauf li { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; } }
.wort { border-left: 3px solid var(--ink); padding-left: 1.1rem; display: grid; gap: 0.6rem; }
.wort blockquote { font-family: var(--wortlaut); font-size: clamp(1.2rem, 3.2vw, 1.45rem); line-height: 1.45; max-width: 46ch; }
.wort .src { font-size: 1rem; color: var(--soft); }
.muster-foot { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.muster-foot p { font-size: 1rem; color: var(--soft); max-width: 44ch; }

/* rules */
.regeln { list-style: none; padding: 0; display: grid; gap: 0; }
.regeln li { border-top: 1px solid var(--line); padding-block: 1.1rem; display: grid; gap: 0.3rem; max-width: none; }
.regeln li:first-child { border-top: 2px solid var(--ink); }
.regeln b { font-size: clamp(1.25rem, 3.4vw, 1.6rem); font-weight: 700; line-height: 1.25; max-width: 30ch; text-wrap: balance; }
.regeln span { color: var(--soft); max-width: 58ch; }

/* manufacturers: the one dark band */
.band { background: var(--band); color: var(--band-ink); border-top: 0; }
.band .cap { color: var(--band-soft); }
.band a { color: var(--band-ink); }
.band :focus-visible { outline-color: var(--mark); }
.band .intro { font-size: 1.22rem; max-width: 52ch; }
.fragen { display: grid; gap: 0; }
.fragen > div { display: grid; gap: 0.3rem 2rem; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--band-line); padding-block: 1.1rem; }
.fragen dt { font-weight: 700; }
.fragen dd { display: grid; gap: 0.7rem; }
@media (min-width: 48rem) { .fragen > div { grid-template-columns: 15rem minmax(0, 1fr); } }
.stoffe { font-family: var(--etikett); text-transform: uppercase; font-size: 1.05rem; line-height: 1.45; letter-spacing: 0.03em; color: var(--faint); }
.band .stoffe { color: var(--band-soft); }
.post { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* who, status, footer */
.wer p { font-size: 1.15rem; }
.stand .body { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: center; gap: 1.5rem 3rem; }
.stand-text { display: grid; gap: 0.8rem; }
.foot { border-top: 2px solid var(--ink); }
.foot .wrap { padding-block: 1.6rem 3rem; display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }
.foot p, .foot a { font-size: 1rem; }
.foot p { color: var(--soft); max-width: 46ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-content: start; }

@media print {
  body { font-size: 11pt; }
  .mast nav, .skip, .foot nav { display: none; }
  .band { border-top: 1px solid var(--line); }
  .sec .wrap, .hero .wrap, .kopf .wrap { padding-block: 14pt; }
  .muster, .regeln li, .fragen > div { break-inside: avoid; }
  a { color: inherit; }
}
