/* ==========================================================================
   Heimatwetter 2027 — Benefiz-Wandkalender
   Wetterportal Kreis Steinfurt
   --------------------------------------------------------------------------
   Aufbau:  1 Tokens · 2 Reset · 3 Typografie · 4 Layout · 5 Kopf
            6 Titelblock · 7 Inhaltsbereiche · 8 Tabellen · 9 Galerie
            10 Bestellformular · 11 Partner · 12 Fuß · 13 Sonderseiten
            14 Hilfsklassen · 15 Dark Mode · 16 Druck
   ========================================================================== */

/* 1 ── Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* Papier & Tinte */
  --paper:        #f7f4ed;
  --paper-2:      #f0ebe0;
  --paper-3:      #e7e0d1;
  --ink:          #17222c;
  --ink-soft:     #4d5c68;
  --ink-faint:    #7d8994;

  /* Flächen */
  --navy:         #10384f;
  --navy-2:       #0b2939;
  --navy-ink:     #dce7ee;

  /* Akzent */
  --brick:        #a4441c;
  --brick-2:      #8a3814;
  --brick-wash:   #f3e3da;

  /* Linien */
  --rule:         #d8cfbd;
  --rule-strong:  #b9ad95;

  /* Signal */
  --good:         #2f6b46;
  --warn:         #8a6a12;

  /* Maße */
  --wrap:         74rem;
  --wrap-text:    38rem;
  --gap:          clamp(1.25rem, 3vw, 2.5rem);
  --pad-x:        clamp(1.15rem, 4vw, 3rem);
  --section-y:    clamp(3.5rem, 7vw, 6rem);
  --radius:       0;

  /* Schrift */
  --serif:  "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:   "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:   ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  color-scheme: light;
}

/* 2 ── Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-variant-numeric: oldstyle-nums proportional-nums;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

::selection { background: var(--brick); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
  border-radius: 1px;
}

/* 3 ── Typografie ───────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.008em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brick-2); }

strong, b { font-weight: 700; }
small { font-size: .875rem; }

.lead {
  font-size: clamp(1.125rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Kleine Kapitälchen-Auszeichnung über Überschriften */
.eyebrow {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.eyebrow--plain::after { display: none; }

.num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 4 ── Layout ───────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section--ruled { border-top: 1px solid var(--rule); padding-top: var(--section-y); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section--tint + .section { padding-top: var(--section-y); }

.prose { max-width: var(--wrap-text); }

.skip-link {
  position: absolute;
  left: .75rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* 5 ── Kopf ─────────────────────────────────────────────────────────────── */

.topbar {
  background: var(--navy-2);
  color: var(--navy-ink);
  font-size: .8125rem;
  letter-spacing: .01em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 2.35rem;
}
.topbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar a:hover { border-bottom-color: #fff; color: #fff; }
.topbar__note { display: block; }
.topbar__dot {
  display: inline-block;
  width: .45rem; height: .45rem; border-radius: 50%;
  background: #e4a12c;
  margin-right: .45rem;
  vertical-align: .08em;
}
@media (max-width: 34rem) {
  .topbar__long { display: none; }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 3px double var(--rule-strong);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font: 700 1.0625rem/1.15 var(--sans); letter-spacing: -.01em; overflow-wrap: break-word; }
.brand__sub {
  font-size: .6875rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .2rem;
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.75rem); }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brick); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .45rem .7rem;
  gap: .5rem;
  align-items: center;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
}
.nav-toggle__bars { display: grid; gap: 3px; width: 15px; }
.nav-toggle__bars span { height: 2px; background: currentColor; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--pad-x) 1.25rem;
    box-shadow: 0 14px 24px -18px rgba(11,41,57,.55);
  }
  .masthead { position: relative; }
  .masthead.is-open { position: sticky; }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--rule);
    border-left: 2px solid transparent;
  }
  .nav a:hover, .nav a[aria-current="page"] {
    border-bottom-color: var(--rule);
    border-left-color: var(--brick);
    padding-left: .6rem;
  }
}

@media (max-width: 26rem) {
  .masthead .wrap { gap: .75rem; }
  .brand__mark { width: 1.6rem; height: 1.6rem; }
  .brand__name { font-size: .9375rem; }
  .brand__sub { font-size: .625rem; }
  .nav-toggle { padding: .4rem .55rem; }
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: 700 1rem/1 var(--sans);
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn--primary:hover { background: var(--brick-2); border-color: var(--brick-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.btn--wide { width: 100%; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* 6 ── Titelblock ───────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* sehr flache Horizontlinie im Hintergrund, kein Verlauf-Gedöns */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: var(--paper-2);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero__title { margin-bottom: .35em; }
.hero__title em {
  display: block;
  font-style: normal;
  font-size: .42em;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .55em;
}
.hero__year {
  color: var(--brick);
  font-variant-numeric: lining-nums;
}

.hero__facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.hero__facts li {
  padding: .85rem 1.25rem .85rem 0;
  margin-right: 1.25rem;
  border-right: 1px solid var(--rule);
}
.hero__facts li:last-child { border-right: 0; margin-right: 0; }
.hero__facts b {
  display: block;
  font: 700 1.35rem/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.hero__facts span { font-size: .8125rem; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }

.hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--serif);
}
.price__value { font-size: 2.5rem; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.price__note { font-family: var(--sans); font-size: .8125rem; color: var(--ink-faint); }

/* Kalender-Cover mit Druck-Anmutung */
.cover {
  position: relative;
  max-width: 27rem;
  margin-inline: auto;
}
.cover__sheet {
  border: 1px solid var(--rule-strong);
  background: #fff;
  padding: .5rem;
  box-shadow: 0 22px 40px -26px rgba(16,56,79,.55);
}
.cover__sheet img { width: 100%; }
.cover__ring {
  position: absolute;
  top: -.55rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.6rem;
}
.cover__ring i {
  display: block;
  width: .55rem;
  height: 1.15rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-2);
}
.cover__stamp {
  position: absolute;
  right: -.6rem;
  bottom: -.9rem;
  background: var(--navy);
  color: #fff;
  font: 700 .75rem/1.35 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem .85rem;
  text-align: center;
  border-radius: var(--radius);
}
.cover__stamp b { display: block; font-size: 1.05rem; letter-spacing: .02em; }

/* 7 ── Inhaltsbereiche ──────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 58rem) { .split { grid-template-columns: 1fr; } }

.split__aside { position: sticky; top: 6rem; }
@media (max-width: 58rem) { .split__aside { position: static; } }

.columns-2 {
  columns: 2;
  column-gap: clamp(1.75rem, 4vw, 3rem);
  column-rule: 1px solid var(--rule);
}
@media (max-width: 46rem) { .columns-2 { columns: 1; column-rule: 0; } }
.columns-2 p { break-inside: avoid; }

.pullquote {
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 1.5rem;
  border-left: 3px solid var(--brick);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: .8rem;
  font: 600 .8125rem/1.4 var(--sans);
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Ablauf: hängende Ziffern im Rand, wie in einer gedruckten Anleitung */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: 46rem;
  border-top: 2px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 400 1.75rem/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--rule-strong);
  padding-top: .1rem;
}
.steps h3 {
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 700;
  margin: 0 0 .25rem;
}
.steps p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 34rem) {
  .steps li { grid-template-columns: 2.5rem 1fr; gap: 0 .9rem; }
  .steps li::before { font-size: 1.4rem; }
}

/* Hinweiskasten */
.note {
  border-left: 2px solid var(--navy);
  padding: .35rem 0 .35rem 1.25rem;
  font-size: .9375rem;
}
.note--warn { border-left-color: var(--brick); }
.note h4 { margin-bottom: .35rem; }

/* 8 ── Tabellen ─────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}
table.data caption {
  text-align: left;
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: .8rem;
}
table.data th, table.data td {
  text-align: left;
  padding: .8rem 1rem .8rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
table.data th {
  font-weight: 600;
  color: var(--ink-soft);
  width: 38%;
  white-space: nowrap;
}
table.data td { font-variant-numeric: lining-nums tabular-nums; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* 9 ── Galerie ──────────────────────────────────────────────────────────── */

.sheets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.sheet button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}
.sheet__img {
  border: 1px solid var(--rule-strong);
  background: #fff;
  padding: .35rem;
  transition: box-shadow .18s, transform .18s;
}
.sheet button:hover .sheet__img {
  box-shadow: 0 16px 26px -20px rgba(16,56,79,.7);
  transform: translateY(-2px);
}
.sheet__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .6rem;
  font-size: .875rem;
}
.sheet__month { font-weight: 700; }
.sheet__credit { color: var(--ink-faint); font-size: .8125rem; text-align: right; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,26,36,.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(.75rem, 2vw, 1.5rem);
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
  letter-spacing: .04em;
}
.lightbox__fig {
  display: grid;
  place-items: center;
  min-height: 0;
  padding-block: 1rem;
}
.lightbox__fig img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: .4rem;
}
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .9375rem;
}
.lightbox__btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: var(--radius);
  padding: .55rem .9rem;
  cursor: pointer;
  font-weight: 600;
}
.lightbox__btn:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.lightbox__count { font-variant-numeric: tabular-nums; opacity: .8; }

/* 10 ── Bestellformular ─────────────────────────────────────────────────── */

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 62rem) { .order { grid-template-columns: 1fr; } }

fieldset {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.75rem;
  padding: 1.5rem 0 0;
}
fieldset:first-of-type { border-top: 0; padding-top: 0; }
legend {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  padding: 0 0 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.1rem;
}
.field-row--3 { grid-template-columns: minmax(11rem, max-content) 1fr; }
@media (max-width: 32rem) { .field-row--3 { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; }
.field > label,
.fieldset-label {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.field .hint { font-size: .8125rem; color: var(--ink-faint); }
.req { color: var(--brick); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,56,79,.14);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(164,68,28,.13);
}
textarea { resize: vertical; min-height: 6rem; }

.error-msg {
  font-size: .8125rem;
  color: var(--brick-2);
  font-weight: 600;
  min-height: 0;
}
.error-msg:empty { display: none; }

/* Auswahl als Kartenreihe, aber kantig */
.choice-group { display: grid; gap: .6rem; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--ink-faint); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--paper-2); box-shadow: inset 3px 0 0 var(--navy); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brick); outline-offset: 2px; }
.choice input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; margin: 0; }
.choice__label { font-weight: 600; font-size: .9375rem; }
.choice__desc { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-soft); margin-top: .15rem; }
.choice__price { font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }

/* Mengenwähler */
.qty {
  display: inline-grid;
  grid-template-columns: auto 4.5rem auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.qty button {
  background: var(--paper-2);
  border: 0;
  width: 2.75rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.qty button:hover { background: var(--paper-3); }
.qty input {
  border: 0;
  border-inline: 1px solid var(--rule-strong);
  border-radius: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input:focus { box-shadow: none; }
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Zustimmungen */
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin-bottom: .9rem; font-size: .9rem; }
.consent input { margin-top: .28rem; accent-color: var(--navy); width: 1.05rem; height: 1.05rem; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Pflichtangaben unmittelbar vor dem Bestellknopf (§ 312j Abs. 2 BGB) */
.checkout {
  border: 1px solid var(--ink);
  padding: 1.25rem 1.35rem;
  margin: 2rem 0 1.25rem;
  background: var(--paper-2);
}
.checkout h3 {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.checkout__artikel {
  font-size: .9375rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.checkout__zeilen { margin: 0; }
.checkout__zeilen > div {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .3rem 0;
  font-size: .9375rem;
}
.checkout__zeilen dt { flex: none; }
/* Punktlinie zwischen Bezeichnung und Betrag, wie auf einem Lieferschein */
.checkout__zeilen > div::after {
  content: "";
  flex: 1;
  align-self: flex-end;
  margin-bottom: .28em;
  border-bottom: 1px dotted var(--rule-strong);
  min-width: 1.5rem;
}
.checkout__zeilen dd {
  margin: 0;
  flex: none;
  order: 3;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.checkout__summe {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: .85rem 0 0;
  padding-top: .85rem;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.checkout__fuss {
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: .9rem 0 0;
}

/* Zusammenfassung */
.summary {
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--navy);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.35rem;
  position: sticky;
  top: 6rem;
}
@media (max-width: 62rem) { .summary { position: static; } }
.summary h3 {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.summary__line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  font-size: .9375rem;
  border-bottom: 1px solid var(--rule);
}
.summary__line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0 1.15rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary__hint { font-size: .8125rem; color: var(--ink-soft); margin-top: 1rem; }

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  border: 1px solid;
}
.form-status[hidden] { display: none; }
.form-status--err { background: var(--brick-wash); border-color: var(--brick); color: var(--brick-2); }
.form-status--ok { background: #e6f0e9; border-color: var(--good); color: var(--good); }

/* 11 ── Partner ─────────────────────────────────────────────────────────── */

.partner-tier + .partner-tier { margin-top: 2.75rem; }
.partner-tier__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.partner-tier__head h3 {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.partner-tier__head::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.partners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.partners--lead { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
.partners li {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.partners a, .partners .partner-static {
  display: grid;
  place-items: center;
  gap: .6rem;
  min-height: 8rem;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--ink-soft);
  background: #fff;
  transition: background-color .15s;
}
.partners--lead a, .partners--lead .partner-static { min-height: 10rem; }
.partners a:hover { background: var(--paper-2); color: var(--ink); }
.partners img { max-height: 3.6rem; width: auto; filter: saturate(.15) contrast(1.05); transition: filter .2s; }
.partners--lead img { max-height: 4.75rem; }
.partners a:hover img { filter: none; }
.partners figcaption, .partners .partner-name {
  font-size: .8125rem;
  text-align: center;
  letter-spacing: .02em;
}

.partner-cta {
  margin-top: 2.5rem;
  border-top: 2px solid var(--ink);
  padding: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.partner-cta p { max-width: 44ch; font-size: .9375rem; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.0625rem;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 1.55rem;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--brick);
  border-bottom: 2px solid var(--brick);
  transform: rotate(45deg);
  transition: transform .18s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); max-width: 62ch; }

/* 12 ── Fuß ─────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-2);
  color: var(--navy-ink);
  margin-top: var(--section-y);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.5rem;
  font-size: .9375rem;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer h3 {
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__intro p { color: rgba(255,255,255,.75); max-width: 34ch; }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.5); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* 13 ── Sonderseiten ────────────────────────────────────────────────────── */

.page-head {
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--paper-2);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.page-head p { color: var(--ink-soft); max-width: 56ch; margin: 0; }

.legal { max-width: 44rem; padding-block: var(--section-y); }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-top: 2.5rem; }
.legal h3 { font-size: 1.125rem; margin-top: 1.75rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45em; }
.legal address { font-style: normal; }
.legal .toc {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.legal .toc ul { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 40rem) { .legal .toc ul { columns: 1; } }
.legal .toc li { margin-bottom: .35em; font-size: .9375rem; }

.formfill {
  display: block;
  border-bottom: 1px solid var(--rule-strong);
  height: 1.5rem;
  margin: .3rem 0 1.1rem;
  max-width: 26rem;
}

.todo {
  background: #fff6d9;
  color: var(--ink);
  border-bottom: 1px dotted var(--warn);
  padding: 0 .15em;
  font-weight: 600;
}

.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 9rem);
}
.error-page__code {
  font: 600 clamp(5rem, 18vw, 11rem)/1 var(--serif);
  color: var(--navy);
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
  margin: 0 0 .1em;
  opacity: .95;
}
.error-page p { max-width: 46ch; margin-inline: auto; }
.error-page__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }

.thanks-box {
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--good);
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2.5rem;
}
.order-no {
  font: 700 1.5rem/1 var(--mono);
  letter-spacing: .04em;
  display: inline-block;
  padding: .5rem .75rem;
  background: var(--paper-2);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  margin: .35rem 0 0;
}

/* 14 ── Hilfsklassen ────────────────────────────────────────────────────── */

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 1.4rem; }
.measure-52 { max-width: 52ch; }
.measure-56 { max-width: 56ch; }
.eyebrow--center { justify-content: center; }
.h-plain { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 700 .75rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.badge--good { color: var(--good); border-color: currentColor; }

/* 15 ── Dark Mode ───────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #14191d;
    --paper-2:     #1b2227;
    --paper-3:     #232b31;
    --ink:         #e9e4d9;
    --ink-soft:    #b3aca0;
    --ink-faint:   #8d8779;
    --navy:        #16405a;
    --navy-2:      #0d1e29;
    --navy-ink:    #cfdde6;
    --brick:       #d97a4d;
    --brick-2:     #eb9066;
    --brick-wash:  #2c1d15;
    --rule:        #2b3238;
    --rule-strong: #3d464d;
    --good:        #6fbc8d;
    color-scheme: dark;
  }
  body { background: var(--paper); color: var(--ink); }
  .masthead { background: var(--paper); }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="number"], select, textarea,
  .choice, .partners a, .partners .partner-static, .thanks-box,
  .cover__sheet { background: var(--paper-2); }
  .cover__sheet img, .sheet__img img, .lightbox__fig img { background: #fff; }
  .sheet__img { background: var(--paper-2); }
  .partners img { filter: saturate(.15) contrast(1.05) brightness(1.6); }
  .partners a:hover img { filter: brightness(1.1); }
  .form-status--ok { background: #17281e; }
  .formfill {
  display: block;
  border-bottom: 1px solid var(--rule-strong);
  height: 1.5rem;
  margin: .3rem 0 1.1rem;
  max-width: 26rem;
}

.todo { background: #3a3316; border-bottom-color: #b99a3a; }
  .qty button { background: var(--paper-3); }
  .cover__stamp { background: var(--navy); }
}

/* 16 ── Bewegung & Druck ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .masthead, .footer, .lightbox, .btn, .partner-cta, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
