/* Shared components and the global chrome (header, mobile menu, Themen dropdown, footer).
   Source: docs/design/referenz/05-zustaende.html (identical in 01 and 02). */

/* ---------- Small shared pieces ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: var(--r);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--f-body);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-sm { font-size: 13px; padding: 8px 12px; }

/* Hover (not in the references): a 2px ink frame like .dt:hover. Darkening --brand would drop
   the text contrast below 4.5:1, so the fill stays. */
.btn { transition: border-color .15s, background-color .15s; }
.btn-primary:hover { border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); }

.link-arrow { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--brand); white-space: nowrap; transition: border-color .15s; }
.link-arrow:hover { border-bottom-color: var(--ink); }

.start-pill {
  display: inline-block;
  background: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.pill { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.pill.dark { background: var(--ink); color: var(--bg); }

/* Amazon product image (hamstern_product_image): product shot on white, shown whole on a white
   frame instead of cropped. Absolutely placed so the frame's aspect ratio wins over the image's.
   The tripled class (0,3,1) outranks the per-block `.x .y img { object-fit: cover }` (0,2,1), which
   loads later and would win a tie; the doubled one in :has() outranks frame background rules. */
:has(> img.amz-img.amz-img) { position: relative; background: var(--surface); }
img.amz-img.amz-img.amz-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }

/* Product badge (compact boxes, recommendation cards, Bestenlisten) */
.badge-s { justify-self: start; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1.5px solid var(--ink); }
.badge-s.pl { background: var(--badge-pl); border-color: var(--badge-pl); color: var(--badge-pl-ink); }
.badge-s.ag { background: var(--badge-ag); border-color: var(--badge-ag); color: var(--badge-ag-ink); }
.badge-s.up { background: var(--badge-up); border-color: var(--badge-up); color: var(--badge-up-ink); }
.badge-s.top { background: var(--badge-top); border-color: var(--badge-top); }

/* Recommendation mini card (template-parts/archive/mini.php): Themenwelt archive, /trending/ */
/* Top-aligned, so badge and title start at the same height in every card of a row (JP 30.10.2026). */
.mini { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; text-decoration: none; }
.mini:hover { border-color: var(--ink); }
.mini-img { width: 88px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.mini-img img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.mini > div:last-child { display: grid; gap: 4px; justify-items: start; min-width: 0; padding-top: 6px; }
/* Quiet type (JP 30.10.2026): body font only, name and price in one style, the list line in one style. */
.mini h3 { font: 600 15px/1.3 var(--f-body); }
.mini .badge-s { margin-bottom: 4px; }
.mini .from { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.mini .from b { font-weight: inherit; color: inherit; }
.mp { font: 600 15px var(--f-body); font-variant-numeric: tabular-nums; }
/* Small list name under the price, only when every card of the band comes from a Bestenliste. */
.mini-list { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.band-note { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
@container page (min-width: 900px) {
  .mini { grid-template-columns: 112px minmax(0, 1fr); padding: 12px; }
  .mini-img { width: 112px; }
  .mini > div:last-child { padding-top: 10px; }
}

/* Breadcrumb (single post, Themenwelt archive) */
.crumbs { font-size: 12px; color: var(--ink); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { opacity: .5; }
.crumbs span.here { opacity: 1; }

/* Ad note (single/werbekennzeichnung): posts, archives, Bestenlisten */
.adnote { border-bottom: 1px solid var(--line); background: var(--surface); }
.adnote .wrap { padding-block: 10px; font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.adnote b { font-weight: 600; color: var(--ink); }
.adnote a { color: var(--ink); white-space: nowrap; }
.adnote-sample { display: block; margin-top: 4px; }

/* Horizontal swipe rail (mobile); grids replace it on desktop per component */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--w, 78%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  padding-inline: var(--gut);
  margin-inline: calc(var(--gut) * -1);
  padding-bottom: 4px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }

/* Filter chips in a rail (archive format filter, Magazin, Lagebild sources); a plain row from 900 px */
.chips { grid-auto-columns: max-content; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 600 13px var(--f-body); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip span { color: var(--ink-3); font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.on span { color: var(--bg); opacity: .7; }

/* Dots under a swipe rail (assets/js/swipe-dots.js); hidden where the rail becomes a grid */
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots:empty { display: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .2s, background-color .2s; }
.dots i.on { width: 18px; background: var(--brand-deep); }

/* Layout blocks: shared spacing and section heading (every block in template-parts/layouts/) */
.lb { margin-block: 36px; }
/* Jan-Philipp 26.10.2026: a product box sits close to the text about it and keeps its distance to the next
   block; the buyer report box (button on its edge) also gets more room below. Margins collapse, so the gap
   above a product box is set on the block before it; two boxes in a row stay close together. */
.lb.prod, .lb.prodc, .lb.ur { margin-bottom: 56px; }
.lb.prod, .lb.prodc { margin-top: 16px; }
.lb:has(+ .lb.prod, + .lb.prodc) { margin-bottom: 16px; }
.lb-head { font-size: 24px; font-weight: 800; margin-bottom: 12px; scroll-margin-top: 80px; }

/* Post card (related posts, archives) */
.card { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card .im { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--line); max-width: 100%; }
.card .im img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 16px; font-weight: 700; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--c, var(--brand)); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Post card list (card.php variant grid): archives, Magazin, front-page feed */
.grid { display: grid; gap: 0; }
.grid .card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 14px; border-top: 1px solid var(--line); }
.grid > :first-child { border-top: 0; padding-top: 4px; }
.grid .im { width: 100%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; max-width: 100%; }
.grid .im.ph { font-size: 10px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-3); background: repeating-linear-gradient(135deg, var(--sunk) 0 10px, transparent 10px 20px), var(--sunk); }
.grid .card:hover h3 { text-decoration: underline; text-decoration-color: var(--c, var(--brand)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.c-txt { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.c-txt h3 { font-size: 16px; font-weight: 700; }

/* „Start hier“ box (global/start-hier.php) */
.start { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; overflow: hidden; margin-top: 40px; }
.start h2 { font-size: 18px; font-weight: 800; margin: 8px 0 12px; }
.start ol { list-style: none; margin-block: 0; counter-reset: s; --w: 62%; }
.start li { counter-increment: s; background: var(--sunk); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.start li::before { content: counter(s); font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--brand-deep); }
.start li.here { background: var(--brand-soft); outline: 2px solid var(--brand); }
.start li small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.start li a { text-decoration: none; }
.start li a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Planner box in a sidebar (leitfaden/sidebar_planer, single/planner_teaser) */
.side-cta { background: var(--brand-soft); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 8px; }
.side-cta .eyebrow { color: var(--brand-ink); }
.side-cta p:not(.eyebrow) { font-size: 14px; line-height: 1.45; }
.side-cta p.note { font-size: 12px; color: var(--ink-2); }
.side-cta .btn { justify-self: start; }
.side-cta.pt-inline, .side-ad.sp-inline { margin-top: 16px; }

/* Ad box with one product in a sidebar (template-parts/products/side-ad.php): Warenkunde „Passt dazu“, article side_product */
.side-ad { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--surface); }
.ad-label { font: 600 10px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.side-ad-img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--sunk); }
.side-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-ad-img.portrait { background: var(--surface); }
.side-ad-img.portrait img { object-fit: contain; padding: 6%; }
/* Two or three article ads: compact, small image beside the name, so the stack stays short in the sidebar. */
.side-ad.sp-multi { grid-template-columns: 76px 1fr; grid-template-areas: "label label" "img name" "text text" "buy buy"; column-gap: 12px; padding: 12px; }
.side-ad.sp-multi .ad-label { grid-area: label; }
.side-ad.sp-multi .side-ad-img { grid-area: img; aspect-ratio: 1; }
.side-ad.sp-multi h3 { grid-area: name; align-self: center; font-size: 14px; line-height: 1.25; }
.side-ad.sp-multi:not(:has(.side-ad-img)) h3 { grid-column: 1 / -1; }
.side-ad.sp-multi p { grid-area: text; }
.side-ad.sp-multi .side-ad-buy { grid-area: buy; margin-top: 0; }
.side-ad h3 { font-size: 16px; font-weight: 800; }
.side-ad p { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.side-ad-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.side-ad .price { font: 800 17px var(--f-display); display: grid; }
.side-ad .price small { font: 500 11px var(--f-body); color: var(--ink-3); }
.side-ad .price-ext { font: 600 13px var(--f-body); }

/* Safety note of a product type (global/safety-note.php): Bestenliste and Produktcheck, red like „Was wir nicht empfehlen“ */
.safety { background: var(--neg-soft); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; margin-top: 20px; }
.safety h2 { font: 800 16px var(--f-display); display: flex; gap: 8px; align-items: center; margin: 0; }
.safety h2 i { width: 22px; height: 22px; border-radius: 50%; background: var(--neg); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.safety p { font-size: 15px; }

/* „Start hier“, variant home (front page under the hero): step texts, guide link, dots */
.start.home { margin-top: -28px; position: relative; z-index: 2; padding: 18px 16px 16px; box-shadow: 0 8px 24px rgba(138, 75, 0, .08); }
.start-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.start.home h2 { font-size: 20px; margin: 0; }
.start-head .link-arrow { display: none; }
.start.home ol { --w: 72%; }
.start.home li { padding: 14px; gap: 4px; font-size: 13px; font-weight: 400; line-height: 1.55; }
.start.home li::before { font-size: 30px; }
.start.home h3 { font-size: 16px; font-weight: 700; line-height: 1.1; }
.start.home li p { color: var(--ink-2); }
.start.home li small { margin-top: auto; padding-top: 6px; }

/* Lagebild band (template-parts/lagebild/band.php): hinweis (default), .calm, .acute. Not sticky. */
.lage { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.lage .wrap { padding-block: 10px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.lage-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.lage-label a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12px; text-decoration: none; border-bottom: 2px solid var(--t-ro); color: var(--ink); }
.lage .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-ro); animation: lage-pulse 2.4s infinite; }
@keyframes lage-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 112, 63, .55); } 70% { box-shadow: 0 0 0 8px rgba(242, 112, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 112, 63, 0); } }
.lage .rail { --w: 88%; gap: 8px; }
.lage-item { background: var(--surface); border-radius: var(--r); padding: 10px 12px; font-size: 13px; line-height: 1.4; text-decoration: none; display: block; }
.lage-item b { font-weight: 600; }
.lage-item span { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.lage-item:hover span { color: var(--ink); }
.lage-text { font-size: 14px; line-height: 1.45; }
.lage-text a { white-space: nowrap; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--t-ro); font-size: 13px; }
.lage-text .lage-more { font-weight: 400; }
.lage.calm { background: var(--pos-soft); }
.lage.calm .lage-label { color: var(--pos); }
.lage.calm .dot { background: var(--pos); animation: none; }
.lage.calm a { border-color: var(--pos); }
.lage.stale { background: var(--sunk); }
.lage.stale .lage-label { color: var(--ink-2); }
.lage.stale .dot { background: var(--ink-3); animation: none; }
.lage.stale a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink-3); }
.lage.acute { background: var(--h-ro); }
.lage.acute .wrap { padding-right: calc(max(var(--gut), env(safe-area-inset-right, 0px)) + 44px); }
.lage.acute .lage-label { color: var(--ink); font-weight: 700; }
.lage.acute .dot { background: var(--ink); }
.lage.acute a { border-color: var(--ink); font-weight: 600; }
.lvl { position: absolute; right: max(var(--gut), env(safe-area-inset-right, 0px)); top: 12px; display: flex; gap: 3px; align-items: flex-end; }
.lvl i { width: 6px; border-radius: 2px; background: rgba(38, 33, 27, .2); }
.lvl i:nth-child(1) { height: 8px; }
.lvl i:nth-child(2) { height: 12px; }
.lvl i:nth-child(3) { height: 16px; }
.lvl i:nth-child(4) { height: 20px; }
.lvl i.on { background: var(--ink); }

/* Sub-page band, hinweis only (global/lagebild_band, 02-artikel.html). */
.lage-sub { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.lage-sub[hidden] { display: none; }
.lage-sub .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 2px 10px; align-items: center; padding-block: 8px; }
.ls-lbl { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.ls-lbl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-ro); animation: lage-pulse 2.4s infinite; }
.lage-sub p { grid-column: 1; font-size: 13px; line-height: 1.4; }
.lage-sub p b { font-weight: 600; }
.lage-sub a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--t-ro); white-space: nowrap; font-weight: 500; }
.lage-sub .lage-more { margin-left: 8px; font-weight: 400; }
.ls-x { grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.ls-x svg { width: 12px; height: 12px; }
.ls-x:hover { background: rgba(38, 33, 27, .06); }
.ls-x:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }

.logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.logo small { font-size: inherit; font-weight: 300; letter-spacing: 0; }

/* Search field (mobile menu, search page, 404) */
.srch { display: block; }
.srch input {
  width: 100%;
  font: 500 16px var(--f-body);
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='6' fill='none' stroke='%2326211B' stroke-width='2'/%3E%3Cpath d='M13 13l5 5' stroke='%2326211B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 14px 50% / 18px no-repeat;
  color: var(--ink);
}
.srch label { display: block; }
.srch.big input { font-size: 17px; padding-block: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
}
.admin-bar .site-header { top: calc(var(--wp-admin--admin-bar--height, 0px) + env(safe-area-inset-top, 0px)); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.nav, .head-txt, .head-actions .btn { display: none; }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger {
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 8px 0 var(--ink), 0 -8px 0 var(--ink);
}
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--c); }

.nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li { display: contents; }
.nav a, .nav-themen, .nav-mega {
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.nav a, .nav-themen, .nav-mega, .head-txt { white-space: nowrap; }
.nav a:hover, .nav-themen:hover, .nav-mega:hover, .head-txt:hover, .nav a[aria-current="page"], .nav-themen.is-current, .nav-mega[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.head-txt[aria-current] { box-shadow: inset 0 -2px 0 var(--brand); }
.nav-themen .arr, .nav-mega .arr { display: inline-block; transition: transform .2s; }
.nav-themen[aria-expanded="true"] .arr, .nav-mega[aria-expanded="true"] .arr { transform: rotate(180deg); }

/* ---------- Mobile menu (full-screen panel) ---------- */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.admin-bar .mmenu { top: var(--wp-admin--admin-bar--height, 0px); }
.pd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 max(var(--gut), env(safe-area-inset-right, 0px)) 0 max(var(--gut), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
.pd-head .logo { font-size: 26px; }
.x { width: 40px; height: 40px; border: 0; background: transparent; position: relative; margin-right: -8px; cursor: pointer; }
.x span, .x span::after {
  position: absolute;
  left: 8px;
  top: 18px;
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.x span::after { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.pd-body { padding: 16px max(var(--gut), env(safe-area-inset-right, 0px)) 32px max(var(--gut), env(safe-area-inset-left, 0px)); }
.pd-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.pd-themes { list-style: none; margin: 0; padding: 0; display: grid; }
.pd-themes > li { border-bottom: 1px solid var(--line); }
.pd-row { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 4px; }
.pd-row::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.pd-row a { flex: 1; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 17px; padding-block: 6px; }
.pd-row .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pd-tog { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; position: relative; flex: none; margin-right: -8px; }
.pd-tog i, .pd-tog i::after {
  position: absolute;
  left: 15px;
  top: 19px;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform .25s;
}
.pd-tog i::after { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.pd-tog:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: -4px; }
.open .pd-tog i { transform: rotate(180deg); }
.open .pd-tog i::after { transform: rotate(0); }
.pd-sub { list-style: none; margin: 0 0 10px; padding: 4px 0 4px 26px; display: grid; gap: 2px; border-left: 2px solid var(--c); margin-left: 9px; }
.pd-sub[hidden] { display: none; }
.pd-sub a { display: grid; gap: 2px; text-decoration: none; padding: 7px 0 7px 12px; }
.pd-sub b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pd-sub small { font-size: 11px; color: var(--ink-3); }
.pd-sub .all a { font-size: 13px; font-weight: 700; color: var(--ink); }
.pd-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pd-links a { text-decoration: none; font-weight: 600; font-size: 16px; }
.pd-links.small { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); gap: 8px; }
.pd-links.small a { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.pd-cta { width: 100%; margin-top: 20px; }
.pd-row a:hover, .pd-sub a:hover b, .pd-sub .all a:hover, .pd-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--c, var(--brand));
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .pd-tog, .pd-tog i, .pd-tog i::after, .nav-themen .arr, .nav-mega .arr, .btn, .link-arrow, .dots i { transition: none; }
  .lage .dot { animation: none; }
  .ls-lbl .dot { animation: none; }
}

/* ---------- Themen dropdown (desktop) ---------- */
.drop-wrap { position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
.drop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(38, 33, 27, .14);
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 16px;
}
.drop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dt { background: var(--h); border-radius: var(--r); padding: 12px; text-decoration: none; display: grid; gap: 4px; align-content: start; }
.dt b { font-family: var(--f-display); font-size: 16px; line-height: 1.15; }
.dt span { font-size: 12px; line-height: 1.35; }
.dt i { font-style: normal; font-size: 11px; margin-top: 4px; }
.dt:hover { outline: 2px solid var(--ink); }
.drop-side { background: var(--sunk); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.drop-side p { font-size: 13px; color: var(--ink-2); }
.drop-side b { display: block; font-family: var(--f-display); font-size: 17px; color: var(--ink); margin-bottom: 4px; line-height: 1.2; }

/* ---------- Bestenlisten mega menu (global/mega_menu, 19-bestenlisten.html) ----------
   Shown only with the desktop nav (from 1080px, see „Desktop header“), so it never opens without its button. */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 48px rgba(38, 33, 27, .16);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega[hidden] { display: none; }
.site-header .mega .wrap.mega-in { display: grid; min-height: 0; padding-block: 28px 22px; gap: 22px; align-items: start; }
.mega-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.mega-col h2 { font-size: 15px; font-weight: 800; display: flex; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 3px solid var(--c); margin-bottom: 8px; min-height: 47px; }
.mega-col h2 a { text-decoration: none; }
/* Subgroup labels take exactly one list row (28px), so the first rows of all columns share the same lines; half a row before the second label. */
.mega-col h3 { font: 600 10px/18px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0; padding: 7px 0 3px; }
.mega-col ul + h3 { margin-top: 14px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mega-col li a, .mega-col li .soon { display: block; padding: 5px 0; font-size: 14px; line-height: 18px; text-decoration: none; color: var(--ink-2); }
.mega-col li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.mega-col li a.cur { color: var(--ink); font-weight: 600; }
.mega-col li .soon { color: var(--ink-3); }
.mega-col li .soon small { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; }
.mega-all { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--c); }
.mega-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.mega-foot a:not(.link-arrow) { color: var(--ink); font-weight: 600; }
@container page (max-width: 1079.98px) {
  .mega { display: none !important; }
}

/* Bestenlisten in the mobile menu: same rows as the Themenwelten, lists inside. */
/* Drawer row to the Bestenlisten hub: same type as the Themenwelt rows, a star where they have the
   colour dot (text stays aligned at 26px), an arrow instead of the toggle. */
.pd-hub { display: flex; align-items: center; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.pd-hub span:first-child { flex: 1; }
.pd-hub::before { content: ""; width: 20px; height: 20px; margin-left: -1px; flex: none; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.4 3.6 1.5-7.1-5.4-4.9 7.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.6l-6.4 3.6 1.5-7.1-5.4-4.9 7.2-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pd-hub .n { font: 400 12px var(--f-body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pd-hub::after { content: "→"; width: 40px; margin-right: -8px; text-align: center; font-family: var(--f-body); font-weight: 400; }
.pd-hub:hover span:first-child { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 32px 96px; font-size: 14px; margin-top: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.ft-sign { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.ft-av { width: 56px; height: 56px; border-radius: 50%; background: var(--avatar); object-fit: cover; }
.site-footer .logo { color: var(--bg); font-size: 24px; line-height: 1; }
.site-footer .logo:hover { text-decoration: none; }
.ft-claim { margin-top: 6px; font-size: 13px; line-height: 1.45; color: rgba(255, 251, 245, .72); }
.ft-cta { grid-column: 1 / -1; justify-self: stretch; }
.site-footer .ft-cta { color: var(--ink); }
.site-footer .ft-cta:hover { text-decoration: none; border-color: var(--bg); }
.ft-main { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 251, 245, .14); }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.ft-themes { grid-column: 1 / -1; }
.ft-h { font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 251, 245, .62); margin: 0 0 10px; }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ft-col li a { display: block; padding-block: 6px; line-height: 1.3; }
.ft-themes ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ft-themes a { display: flex !important; gap: 8px; align-items: baseline; }
.ft-themes a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--d); transform: translateY(-1px); }
.ft-emerg { margin-top: 28px; border: 1px solid rgba(255, 251, 245, .18); border-radius: var(--r-lg); padding: 14px 16px; }
.ft-emerg-h { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.ft-emerg ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ft-emerg li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ft-emerg b { font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ft-emerg span { font-size: 13px; color: rgba(255, 251, 245, .82); }
.ft-emerg-note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: rgba(255, 251, 245, .66); }
.ft-emerg-note a, .site-footer .disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .disclaimer { margin-top: 20px; font-size: 11px; line-height: 1.55; color: rgba(255, 251, 245, .62); max-width: 70em; }
.ft-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 251, 245, .14);
  font-size: 12px;
  color: rgba(255, 251, 245, .62);
}
.ft-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-legal a { color: rgba(255, 251, 245, .82); }

/* ---------- Desktop header ----------
   Own breakpoint: logo + four nav items + both actions need about 1015px,
   so the header keeps the burger below 1080px instead of wrapping its labels. */
@container page (min-width: 1080px) {
  .site-header .wrap { min-height: 72px; gap: 24px; position: relative; }
  .logo { font-size: 30px; }
  .nav { display: flex; gap: 24px; margin: 0 auto; font-weight: 500; font-size: 15px; }
  .head-actions { margin-left: 0; gap: 16px; }
  .head-txt { display: inline; font-weight: 600; font-size: 14px; text-decoration: none; }
  .head-actions .btn { display: inline-flex; }
  .burger, .mmenu { display: none; }
}

/* ---------- Tablet ---------- */
@container page (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .grid .card { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; }
  .grid > :first-child { padding: 0; }
  .grid .im { aspect-ratio: 3 / 2; }
}

/* ---------- Desktop ---------- */
@container page (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-txt h3 { font-size: 19px; }
  .rail[data-dots] + .dots { display: none; }
  .chips { overflow: visible; margin-inline: 0; padding-inline: 0; }

  .start.home { padding: 28px 32px; margin-top: -48px; }
  .start-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 24px; }
  .start.home h2 { font-size: 24px; }
  .start-head .link-arrow { display: inline; margin-left: 16px; }
  .start.home ol { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .start.home li { background: transparent; border-radius: 0; padding: 0 20px; border-left: 1px solid var(--line); }
  .start.home li:first-child { border-left: 0; padding-left: 0; }
  .start.home li.here { outline: 0; }
  .start.home li::before { font-size: 40px; }

  .lage .wrap { flex-direction: row; align-items: center; gap: 24px; padding-block: 12px; }
  .lage-label { flex: none; }
  .lage-label a { display: none; }
  .lage .rail { grid-auto-flow: row; grid-template-columns: 1fr 1fr; flex: 1; gap: 24px; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .lage-item { background: transparent; padding: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .lage-item span { display: inline; margin-left: 6px; }
  .lvl { top: 50%; transform: translateY(-50%); }
  .lage-sub .wrap { grid-template-columns: auto minmax(0, 1fr) 32px; column-gap: 20px; padding-block: 6px; }
  .lage-sub p { grid-column: 2; font-size: 14px; }
  .ls-x { grid-column: 3; grid-row: 1; }
  .lb { margin-block: 44px; }
  .lb.prod, .lb.prodc, .lb.ur { margin-bottom: 68px; }
  .lb.prod, .lb.prodc { margin-top: 20px; }
  .lb:has(+ .lb.prod, + .lb.prodc) { margin-bottom: 20px; }
  .lb-head { font-size: 30px; }
  .card h3 { font-size: 19px; }

  .site-footer { padding-block: 48px 32px; }
  .ft-sign { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; }
  .ft-av { width: 64px; height: 64px; }
  .site-footer .logo { font-size: 28px; }
  .ft-claim { font-size: 14px; }
  .ft-cta { grid-column: auto; justify-self: end; }
  .ft-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 36px; padding-top: 32px; }
  .ft-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .ft-themes { grid-column: auto; }
  .ft-emerg { margin-top: 0; align-self: start; }
  .ft-legal { justify-content: space-between; }
}

/* ---------- Reading column + sticky sidebar with TOC (single post, text pages) ---------- */
.a-grid { display: block; padding-block: 28px 48px; }
.a-main { min-width: 0; max-width: 680px; }
.a-side { display: none; }
.toc-m { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc-m summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; font-size: 18px; line-height: 1; }
.toc-m[open] summary::after { content: "–"; }
.toc-m ol { margin: 0; padding: 0 14px 14px 32px; font-size: 14px; display: grid; gap: 6px; }
.toc-m a { text-decoration: none; }
.toc-m a:hover { text-decoration: underline; text-underline-offset: 3px; }

@container page (min-width: 900px) {
  .a-grid { display: grid; grid-template-columns: minmax(0, 680px) 300px; justify-content: space-between; gap: 64px; padding-block: 48px 72px; }
  .a-side { display: block; }
  .side-sticky { position: sticky; top: 96px; display: grid; gap: 24px; }
  .toc-m { display: none; }
  .toc-d h3 { font-size: 12px; font-family: var(--f-body); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
  .toc-d ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; border-left: 2px solid var(--line); }
  .toc-d a { display: block; text-decoration: none; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); }
  .toc-d a:hover { color: var(--ink); }
  .toc-d a.on { border-color: var(--c, var(--brand)); color: var(--ink); font-weight: 600; }
}

/* ---------- Pagination (archive/pagination: archives, Magazin, search) ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--ink); font-weight: 600; font-size: 14px; }
.pager a { text-decoration: none; }
.pager > a:hover { text-decoration: underline; text-decoration-color: var(--c, var(--brand)); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pager [aria-disabled] { color: var(--ink-3); }
.pager ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pager .page-numbers { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pager a.page-numbers:hover { background: var(--sunk); }
.pager .page-numbers.current { background: var(--c, var(--brand)); color: var(--ink); }
.pager .page-numbers.dots { color: var(--ink-3); }

@container page (min-width: 900px) {
  .pager { justify-content: center; gap: 32px; margin-top: 48px; }
}

/* ---------- „Kein Cookie-Banner“ toast (global/hinweis_cookiefrei, 05-zustaende.html F) ----------
   Fixed outside .page, so the mobile/desktop switch is a media query (as in the reference). */
.hm-toast{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:60;width:min(360px,calc(100vw - 32px));display:grid;grid-template-columns:36px minmax(0,1fr) 28px;gap:12px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:0 12px 32px rgba(38,33,27,.14);padding:14px 12px 16px 14px;overflow:hidden;opacity:0;transform-origin:50% 100%}
.hm-toast.in{opacity:1;animation:hm-toast-up .75s cubic-bezier(.2,.8,.3,1) both}
.hm-toast.out{animation:hm-toast-down .24s cubic-bezier(.5,0,.9,.4) forwards}
.hm-toast.in .hm-toast-ic{animation:hm-toast-ic .5s .35s cubic-bezier(.34,1.8,.64,1) both}
@keyframes hm-toast-up{0%{opacity:0;transform:translateY(130%) scale(.92,1.06)}45%{opacity:1;transform:translateY(-14px) scale(1.03,.97)}62%{transform:translateY(5px) scale(.99,1.02)}78%{transform:translateY(-3px) scale(1)}90%{transform:translateY(1px)}100%{opacity:1;transform:none}}
@keyframes hm-toast-down{to{opacity:0;transform:translateY(120%) scale(.96)}}
@keyframes hm-toast-left{0%{opacity:0;transform:translateX(-125%) rotate(-5deg) scaleX(1.04)}45%{opacity:1;transform:translateX(18px) rotate(2.5deg) scaleX(.97)}62%{transform:translateX(-8px) rotate(-1.2deg) scaleX(1.01)}78%{transform:translateX(4px) rotate(.5deg)}90%{transform:translateX(-1px) rotate(0)}100%{opacity:1;transform:none}}
@keyframes hm-toast-out-left{to{opacity:0;transform:translateX(-115%) rotate(-3deg)}}
@keyframes hm-toast-ic{0%{transform:scale(0) rotate(-30deg)}60%{transform:scale(1.25) rotate(8deg)}100%{transform:none}}
@media (min-width:640px){.hm-toast{transform-origin:0 50%}.hm-toast.in{animation-name:hm-toast-left;animation-duration:.85s}.hm-toast.out{animation-name:hm-toast-out-left}}
.hm-toast[hidden]{display:none}
.hm-toast-ic{width:36px;height:36px;border-radius:50%;background:var(--pos-soft);color:var(--pos);display:grid;place-items:center}
.hm-toast-ic svg{width:20px;height:20px}
.hm-toast-t{font-family:var(--f-display);font-weight:800;font-size:15px;line-height:1.25;color:var(--ink)}
.hm-toast-txt p:not(.hm-toast-t){font-size:13px;line-height:1.45;color:var(--ink-2);margin-top:3px}
.hm-toast-txt a{display:inline-block;margin-top:6px;font-size:13px;font-weight:600;color:var(--ink);text-decoration:none;border-bottom:2px solid var(--pos-strong)}
.hm-toast-x{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--ink-2);display:grid;place-items:center;cursor:pointer;margin:-4px -2px 0 0}
.hm-toast-x svg{width:12px;height:12px}
.hm-toast-x:hover{background:var(--sunk)}
.hm-toast-x:focus-visible,.hm-toast-txt a:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px}
.hm-toast-bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--pos-strong);transform-origin:left;transform:scaleX(0)}
.hm-toast.in .hm-toast-bar{animation:hm-toast-bar var(--d,8000ms) .7s linear both}
.hm-toast.paused .hm-toast-bar{animation-play-state:paused}
@keyframes hm-toast-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.hm-toast.in{animation:hm-fade .2s both}.hm-toast.out{animation:none;opacity:0}.hm-toast.in .hm-toast-ic,.hm-toast.in .hm-toast-bar{animation:none}}
@keyframes hm-fade{from{opacity:0}to{opacity:1}}

/* Hint bar for editors while a feature is off (template-parts/global/feature-hint.php). Not sticky: the
   Warenkunde chip row is sticky at top 0. */
.feature-hint{background:var(--ink);color:var(--bg);font:600 14px/1.4 var(--f-body);padding-block:10px;text-align:center}
