/* ==========================================================================
   Skjutdörrargarderob.se – site.css
   Varm linnebas, djup skifferblå (förtroende) och ek/mässing (inredning).
   ========================================================================== */

:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efe9e0;
  --surface-3: #e7dfd3;
  --ink: #1b2129;
  --ink-2: #3b434d;
  --muted: #6d6a66;
  --line: #e4ddd2;
  --line-2: #d4cabb;

  --brand: #24323f;
  --brand-600: #1c2833;
  --brand-700: #141d26;
  --brand-tint: #e5eaef;
  --accent: #a8743f;
  --accent-600: #8d5f30;
  --accent-tint: #f4e9db;
  --sale: #b4432f;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "DM Serif Display", ui-serif, Georgia, "Times New Roman", serif;

  --step--1: clamp(.83rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
  --step-1: clamp(1.12rem, 1.06rem + .3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.22rem + .8vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.45rem + 1.6vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.8vw, 3.9rem);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 33, 41, .06), 0 1px 1px rgba(27, 33, 41, .04);
  --shadow: 0 1px 2px rgba(27, 33, 41, .05), 0 10px 28px -10px rgba(27, 33, 41, .16);
  --shadow-lg: 0 2px 4px rgba(27, 33, 41, .05), 0 28px 56px -18px rgba(27, 33, 41, .26);

  --container: 1220px;
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);
  --header-h: 74px;

  color-scheme: light;
}

/* --- Bas ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.68 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: rgba(36, 50, 63, .35); }
a:hover { color: var(--accent-600); text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; color: var(--ink); }
h3, h4 { font-family: var(--font-sans); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1.05em; height: 1.05em; }
.icon--xs { width: .95em; height: .95em; display: inline-block; vertical-align: -.14em; }

.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .74rem/1.2 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: .8rem;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; color: var(--brand); }
.text-link .icon { transition: transform .2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* --- Knappar --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem;
  border: 1px solid transparent; border-radius: 10px;
  font: 600 .95rem/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.55rem; font-size: 1rem; }
.btn--sm { padding: .55rem .95rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(36, 50, 63, .6); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(168, 116, 63, .65); }
.btn--accent:hover { background: var(--accent-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.link-button:hover { text-decoration: underline; }

/* --- Toppremsa och header ---------------------------------------------------- */

.topbar { background: var(--brand); color: #d9e0e7; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { color: #e0b98d; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #e0b98d; }
@media (max-width: 720px) { .topbar-hide-sm { display: none !important; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(27, 33, 41, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #f2d6b3; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.brand-icon { width: 23px; height: 23px; }
.brand-text { font: 400 1.32rem/1 var(--font-serif); letter-spacing: -.005em; }
.brand-tld { color: var(--accent); }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand-mark { background: rgba(255, 255, 255, .1); }
.brand--light .brand-tld { color: #e0b98d; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a:not(.btn) {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-item > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav-item > a[aria-current]:not(.btn) { color: var(--brand); font-weight: 600; }
.nav-item--cta { margin-left: .6rem; }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -.55rem; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sub-toggle .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.sub-menu {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + .4rem); left: -.5rem; min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
.sub-menu a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 9px; font-size: .925rem; color: var(--ink-2); text-decoration: none; }
.sub-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--accent-600); flex: none; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--bg); color: var(--ink); }
.sub-menu a:hover .sub-icon { background: var(--accent-tint); }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }

.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle-close { display: none; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: block; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    background: var(--bg); overflow-y: auto;
    padding: 1rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a:not(.btn) { flex: 1; padding: 1rem .25rem; font-size: 1.2rem; font-family: var(--font-serif); color: var(--ink); background: none !important; }
  .nav-item--cta { margin: 1.25rem 0 0; border: 0; }
  .nav-item--cta .btn { width: 100%; padding: .9rem; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub-toggle .icon { width: 20px; height: 20px; }
  .sub-menu {
    position: static; display: none; width: 100%; min-width: 0;
    padding: 0 0 .75rem; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { font-size: 1rem; }
}

/* --- Hero ------------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 60%; height: 100%;
  background: radial-gradient(55% 60% at 70% 45%, rgba(168, 116, 63, .12), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; grid-template-columns: 1.05fr .95fr; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem;
  padding: .42rem .85rem .42rem .65rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow .icon { color: var(--accent); }
.hero-title { font-size: var(--step-4); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 1.4rem; }
.hero-title em { font-style: italic; color: var(--accent-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-points { list-style: none; margin: 2.25rem 0 0; padding: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points .icon { color: var(--accent); }

.hero-visual { position: relative; padding: 2.5rem 0 2.5rem 2rem; }
.hero-illustration { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.hero-door--a { animation: slide-door 7s ease-in-out infinite; }
@keyframes slide-door { 0%, 30% { transform: translateX(0); } 50%, 80% { transform: translateX(-150px); } 100% { transform: translateX(0); } }
.fact-card {
  position: absolute; left: 0; bottom: 0; width: min(250px, 62%);
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.fact-card--top { left: auto; right: -.5rem; top: 4.5rem; bottom: auto; width: min(220px, 55%); background: var(--brand); border-color: var(--brand); }
.fact-card--top .fact-num { color: #f2d6b3; }
.fact-card--top .fact-text { color: #cfd8e1; }
.fact-num { font: 400 1.9rem/1 var(--font-serif); color: var(--accent-600); margin-bottom: .35rem; }
.fact-text { font-size: .85rem; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; padding-left: 1rem; }
}

/* --- Sektioner ------------------------------------------------------------- */

.section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--surface-2); }
.section--line { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); max-width: 70ch; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; max-width: none; }
.section-title { font-size: var(--step-3); }
.section-title--sm { font-size: var(--step-2); margin-bottom: 1.25rem; }

/* Kategorikort (startsidan) */
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.cat-card {
  display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.cat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-600); flex: none; }
.cat-icon .icon { width: 28px; height: 28px; }
.cat-body { display: grid; gap: .35rem; }
.cat-title { font: 400 1.35rem/1.15 var(--font-serif); }
.cat-text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cat-count { margin-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .35rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr; } }

/* --- Kort ------------------------------------------------------------------ */

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media.is-product { background: #fff; }
.card-media.is-product img { object-fit: contain; padding: 1rem; }
.card-media--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--accent-tint)); color: var(--accent-600); }
.card-placeholder-icon { width: 56px; height: 56px; opacity: .8; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body .kicker { margin-bottom: .1rem; font-size: .68rem; }
.card-title { font: 650 1.08rem/1.3 var(--font-sans); letter-spacing: -.01em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-text { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.card-meta { font-size: .8rem; color: var(--muted); margin-top: auto; }

/* --- Produkter ------------------------------------------------------------- */

.products { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.products--top { padding-top: 0; }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; padding: 1rem; border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-badge { position: absolute; top: .7rem; left: .7rem; padding: .2rem .55rem; border-radius: 999px; background: var(--sale); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.product-body { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1rem 1.05rem; flex: 1; }
.product-brand { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-600); }
.product-name { font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-name::after { content: ""; position: absolute; inset: 0; }
.product-name:hover { color: var(--ink); }
.product-foot { margin-top: auto; padding-top: .55rem; display: grid; gap: .3rem; }
.product-price { font: 700 1.08rem/1.2 var(--font-sans); color: var(--ink); }
.product-price small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.product-price s { font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.product-price.is-sale { color: var(--sale); }
.product-variants { font-size: .76rem; color: var(--muted); }
.product-shop { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--brand); }
.product:hover .product-shop { color: var(--accent-600); }
.products-note { margin-top: 1.25rem; font-size: .8rem; color: var(--muted); max-width: 80ch; }

/* --- Sidhuvud för sidor --------------------------------------------------- */

.page-head { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem) 0 clamp(2rem, 1.25rem + 2.5vw, 3.25rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--surface-2)); }
.page-head--compact { padding-bottom: 2rem; }
.page-head-grid { display: grid; gap: 2.5rem; align-items: center; }
.page-head-grid.has-media { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .page-head-grid.has-media { grid-template-columns: 1fr; } }
.page-title { font-size: var(--step-4); line-height: 1.04; margin-bottom: 1rem; max-width: 22ch; }
.page-meta { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.page-head-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--surface); }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
.page-head-media.is-product img { object-fit: contain; padding: 1.25rem; }

.breadcrumbs { margin-bottom: 1.5rem; font-size: .84rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* --- Innehåll + sidokolumn -------------------------------------------------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 1rem + 4vw, 4.5rem); padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .sidebar { position: static; } }

.prose { max-width: 72ch; font-size: 1.05rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose-title { font-size: var(--step-3); margin-bottom: .5rem; color: var(--ink); }
.prose h2 { font-size: var(--step-2); margin-top: 2.1em; color: var(--ink); }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose > p:first-child strong:only-child, .prose > .toc + p strong:only-child { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-inline: auto; max-height: 520px; width: auto; }
.prose img.is-small { box-shadow: none; }
.prose figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); text-align: center; }
.prose a[rel~="sponsored"] { font-weight: 600; color: var(--accent-600); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

.toc { padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-title { font: 600 .74rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-600); }

.side-nav { padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-title { font: 600 .74rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; margin-inline: -.5rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.side-nav a .icon { color: var(--accent); }
.side-nav a:hover { background: var(--bg); color: var(--ink); }

.retailer-box { padding: 1.4rem; background: var(--brand); color: #d6dee6; border-radius: var(--radius); box-shadow: var(--shadow); }
.retailer-box .kicker { color: #e0b98d; }
.retailer-title { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.retailer + .retailer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.retailer-name { font-weight: 650; color: #fff; }
.retailer-desc { font-size: .88rem; line-height: 1.5; margin: .3rem 0 .9rem; }
.retailer-note { margin-top: .85rem; font-size: .72rem; color: #9fb0c0; text-transform: uppercase; letter-spacing: .1em; }

/* --- Katalog -------------------------------------------------------------- */

.catalog-wrap { padding-block: 2rem 4rem; }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; transition: opacity .15s ease; }
.catalog.is-loading { opacity: .55; pointer-events: none; }
@media (max-width: 899px) { .catalog { grid-template-columns: 1fr; gap: 1rem; } }
.catalog-side { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; padding-right: .25rem; }
@media (max-width: 899px) { .catalog-side { position: static; max-height: none; overflow: visible; } }
.catalog-search { display: flex; gap: .4rem; }
.catalog-search input { flex: 1; min-width: 0; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font: inherit; font-size: .93rem; }
.catalog-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.catalog-search .btn { padding-inline: 1rem; }
.catalog-toggle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 1rem; }
.catalog-toggle summary { cursor: pointer; padding: .55rem 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
.catalog-toggle summary::after { content: "+"; color: var(--muted); }
.catalog-toggle[open] summary::after { content: "–"; }
@media (min-width: 900px) { .catalog-toggle summary { pointer-events: none; } .catalog-toggle summary::after { display: none; } }
.catalog-group + .catalog-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.catalog-group-title { font: 600 .72rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.facets { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.facet { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem .5rem; margin-inline: -.5rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.facet:hover { background: var(--bg); color: var(--ink); }
.facet.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.facet-n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.catalog-count { color: var(--muted); }
.catalog-count strong { color: var(--ink); font-size: 1.1rem; }
.catalog-sort { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.catalog-sort select { padding: .5rem .75rem; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); font: inherit; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--brand-600); color: #fff; }
.chip--clear { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.chip--clear:hover { background: var(--surface); color: var(--ink); }
.catalog-empty { padding: 2rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.product-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) and (min-width: 900px) { .product-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .product-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- 404 ------------------------------------------------------------------- */

.notfound { text-align: center; }
.notfound .lead { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }
.pill-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pill { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .9rem; background: var(--surface); }
.pill:hover { border-color: var(--ink-2); color: var(--ink); }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { background: var(--brand-700); color: #aebbc8; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-about p { margin-top: 1.1rem; max-width: 42ch; line-height: 1.6; }
.footer-title { font: 600 .74rem/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #d6dee6; text-decoration: none; }
.site-footer a:hover { color: #e0b98d; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links .link-button { color: #d6dee6; }
.footer-note { margin-top: 1rem; font-size: .8rem; color: #8597a8; max-width: 90ch; }

/* --- Cookiebanner ------------------------------------------------------------ */

.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem;
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; }
.consent-actions { display: flex; gap: .5rem; }
