/* =========================================================
   Natovi Brotback-Magazin — Design System
   Editorial, warm, handwerklich. Keine externen Ressourcen.
   ========================================================= */

:root {
  /* Farbwelt: Ofen, Kruste, Mehl */
  --ink:        #1a1614;
  --ink-2:      #3d3531;
  --ink-3:      #6b5f57;
  --paper:      #fdfaf5;
  --paper-2:    #f6efe4;
  --paper-3:    #efe5d5;
  --crust:      #a8410f;
  --crust-deep: #7a2f0b;
  --ember:      #d97f2c;
  --ember-soft: #fbe9d2;
  --line:       #e4d9c7;
  --line-soft:  #f0e8db;
  --good:       #2f6b46;
  --good-soft:  #e6f2ea;
  --warn:       #9a3412;
  --warn-soft:  #fdeae2;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --measure: 43rem;
  --r: 4px;
  --r-lg: 10px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--crust); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--crust-deep); }

::selection { background: var(--ember-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: var(--measure); margin-inline: auto; }

.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: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font-family: var(--sans); font-size: 15px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------
   Kopfzeile
   --------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(253,250,245,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  letter-spacing: .015em;
}
.brand__sub {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-family: var(--sans); font-size: 14.5px; color: var(--ink-2);
  text-decoration: none; padding: 8px 11px; border-radius: var(--r);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--crust); font-weight: 600; }

/* ---------------------------------------------------------
   Typografie
   --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.014em; color: var(--ink); }

h1 { font-size: clamp(2.05rem, 5.2vw, 3.05rem); line-height: 1.13; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.92rem); line-height: 1.24; margin: 2.7em 0 .6em; }
h3 { font-size: clamp(1.16rem, 2.4vw, 1.32rem); line-height: 1.34; margin: 2.1em 0 .5em; }
h4 { font-size: 1.05rem; margin: 1.8em 0 .4em; }

h2 + h3 { margin-top: 1.2em; }

p { margin: 0 0 1.25em; }
.lede {
  font-size: clamp(1.12rem, 2.3vw, 1.3rem);
  line-height: 1.6; color: var(--ink-2); margin-bottom: 1.6em;
}

.kicker {
  font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--crust);
  margin: 0 0 14px;
}

/* ---------------------------------------------------------
   Artikelkopf
   --------------------------------------------------------- */
.crumbs {
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  padding: 20px 0 0; margin: 0;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: 7px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--crust); text-decoration: underline; }

.article-head { padding: 34px 0 8px; }
.meta {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* ---------------------------------------------------------
   Antwort-Box (Snippet-Ziel)
   --------------------------------------------------------- */
.answer {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--crust);
  border-radius: var(--r);
  padding: 24px 26px;
  margin: 0 0 2.4em;
}
.answer__label {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--crust);
  margin: 0 0 10px;
}
.answer p { margin: 0; font-size: 1.04rem; }
.answer p + p { margin-top: .8em; }

/* ---------------------------------------------------------
   Inhaltsverzeichnis
   --------------------------------------------------------- */
.toc {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 24px; margin: 0 0 2.6em; background: #fff;
}
.toc__title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 1.3em; font-family: var(--sans); font-size: 15px; line-height: 1.85; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--crust); text-decoration: underline; }

/* ---------------------------------------------------------
   Fließtext
   --------------------------------------------------------- */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * { margin-inline: auto; }

.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--crust); }

.prose strong { font-weight: 700; color: var(--ink); }

.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--ember);
  font-style: italic; color: var(--ink-2);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: 13.5px; color: var(--ink-3); margin-top: .7em;
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em; background: var(--paper-2); padding: 2px 6px;
  border-radius: 3px;
}

/* ---------------------------------------------------------
   Tabellen
   --------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse;
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  min-width: 460px;
}
thead th {
  background: var(--ink); color: var(--paper);
  text-align: left; font-weight: 600; font-size: 13px;
  letter-spacing: .04em; padding: 11px 14px; vertical-align: bottom;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody tr:hover { background: var(--ember-soft); }
table caption {
  caption-side: bottom; font-family: var(--sans); font-size: 13px;
  color: var(--ink-3); text-align: left; padding-top: 10px;
}

/* ---------------------------------------------------------
   Callouts
   --------------------------------------------------------- */
.callout {
  border-radius: var(--r); padding: 20px 24px; margin: 2em 0;
  font-size: .98rem; border: 1px solid;
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 9px;
}
.callout--tip   { background: var(--good-soft); border-color: #cbe3d5; }
.callout--tip .callout__title { color: var(--good); }
.callout--warn  { background: var(--warn-soft); border-color: #f5cdbc; }
.callout--warn .callout__title { color: var(--warn); }
.callout--myth  { background: var(--paper-2); border-color: var(--line); }
.callout--myth .callout__title { color: var(--ink-3); }

/* ---------------------------------------------------------
   Produkt-Karte (CTA)
   --------------------------------------------------------- */
.product {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; margin: 2.6em 0;
  box-shadow: 0 1px 2px rgba(26,22,20,.04), 0 8px 24px -18px rgba(26,22,20,.28);
}
.product__bar {
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 9px 24px;
}
.product__body { padding: 24px; display: grid; grid-template-columns: 122px 1fr; gap: 24px; align-items: start; }
.product__fig {
  background: var(--paper-2); border-radius: var(--r);
  display: grid; place-items: center; padding: 10px; aspect-ratio: 1;
}
.product__name { font-size: 1.18rem; line-height: 1.3; margin: 0 0 6px; font-weight: 600; }
.product__specs {
  list-style: none; margin: 0 0 16px; padding: 0;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink-2);
}
.product__specs li { margin-bottom: 5px; padding-left: 20px; position: relative; }
.product__specs li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--ember);
}
.product__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.product__price { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; }
.product__rating { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
.stars { color: var(--ember); letter-spacing: 1px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  background: var(--crust); color: #fff; text-decoration: none;
  padding: 13px 24px; border-radius: var(--r); border: 0; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--crust-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--crust); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--paper-2); color: var(--crust-deep); }
.btn__arrow { font-size: 1.05em; line-height: 1; }

.product__note {
  font-family: var(--sans); font-size: 12.5px; color: var(--ink-3);
  padding: 0 24px 18px; margin: 0;
}

/* Schmaler Inline-CTA */
.cta-inline {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin: 2.4em 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.cta-inline p { margin: 0; font-size: .97rem; max-width: 32em; }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq { margin: 1.5em 0 0; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq details[open] { padding-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 34px 15px 0;
  position: relative; font-weight: 600; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--crust);
  font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--crust); }
.faq__body { font-size: .98rem; color: var(--ink-2); }
.faq__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Diagramme / Figuren
   --------------------------------------------------------- */
figure { margin: 2.4em 0; }
figure svg { width: 100%; }
figcaption {
  font-family: var(--sans); font-size: 13px; color: var(--ink-3);
  margin-top: 11px; line-height: 1.5;
}
.figure-frame {
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; padding: 22px;
}

/* ---------------------------------------------------------
   Karten / Artikel-Listen
   --------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; padding: 24px; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--ember); transform: translateY(-2px);
  box-shadow: 0 10px 28px -20px rgba(26,22,20,.4);
}
.card__kicker {
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--crust);
  margin: 0 0 11px;
}
.card__title { font-size: 1.17rem; line-height: 1.3; margin: 0 0 10px; font-weight: 600; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--crust); }
.card__text { font-size: .94rem; color: var(--ink-2); margin: 0 0 16px; line-height: 1.6; }
.card__more {
  margin-top: auto; font-family: var(--sans); font-size: 14px;
  font-weight: 600; color: var(--crust); text-decoration: none;
}
.card__more:hover { text-decoration: underline; }

.card--feature { background: var(--paper-2); border-color: var(--line); }

/* ---------------------------------------------------------
   Startseite
   --------------------------------------------------------- */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); margin-bottom: .38em; }
.hero__text { font-size: clamp(1.08rem, 2.2vw, 1.24rem); color: var(--ink-2); line-height: 1.62; margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 62px 0; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 34px; max-width: 46rem; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--ink-2); margin-bottom: 0; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin: 2.2em 0;
}
.stat { background: #fff; padding: 20px 22px; }
.stat__num {
  font-family: var(--sans); font-size: 1.7rem; font-weight: 700;
  color: var(--crust); line-height: 1.1; margin-bottom: 5px;
}
.stat__label { font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.45; }

/* ---------------------------------------------------------
   Fußzeile
   --------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #cbbfb4;
  padding: 54px 0 30px; margin-top: 76px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.7;
}
.site-footer a { color: #f0e7dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__title {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: #8d8078;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer__bottom {
  border-top: 1px solid #332c28; margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font-size: 13px; color: #8d8078;
}
.footer__disclosure {
  background: #221d1a; border-radius: var(--r); padding: 15px 18px;
  font-size: 13px; color: #a2958b; margin-top: 26px;
}

/* ---------------------------------------------------------
   Rechtsseiten
   --------------------------------------------------------- */
.legal { padding: 40px 0 0; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.08rem; }
.legal p, .legal li { font-size: 17px; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  /* Nicht klebend auf kleinen Screens: spart Höhe und verhindert Überlagerung */
  .site-header {
    position: static;
    background: var(--paper);
    backdrop-filter: none;
  }
  .site-header__inner {
    min-height: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; padding-block: 11px;
  }
  .nav {
    gap: 0; margin-left: -9px; width: 100%;
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 9px; font-size: 13.5px; white-space: nowrap; }
  .brand__sub { display: none; }
  .hero { padding: 40px 0 34px; }
  .section { padding: 44px 0; }
  .product__body { grid-template-columns: 1fr; gap: 18px; }
  .product__fig { max-width: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
  .answer, .callout { padding: 18px 20px; }
  .toc { padding: 16px 20px; }
}

@media print {
  .site-header, .site-footer, .cta-inline, .product { display: none; }
  body { font-size: 11pt; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
