/* ============================================================
   TMF Tischlerei - Ratgeber-Bereich + 404
   Baut auf home.css auf (Schriften, Maßkette, Token)
   ============================================================ */

/* ---------- Ratgeber: Kopfbereich ---------- */

.rg-header {
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.rg-header h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 18ch;
  margin-top: 22px;
}
.rg-header h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.rg-header .lead { margin-top: 1.2rem; color: var(--ink-soft); max-width: 58ch; font-size: 1.1rem; }
.rg-header .mk { max-width: 300px; }

/* ---------- Filter ---------- */

.rg-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 26px 0;
}
.rg-filter button {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rg-filter button:hover { border-color: var(--accent); color: var(--accent-dark); }
.rg-filter button.aktiv {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Featured-Artikel ---------- */

.rg-featured {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.rg-featured .bild {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.rg-featured .bild img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.rg-featured:hover .bild img { transform: scale(1.04); }
.rg-featured h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  margin: 14px 0 12px;
  transition: color 0.25s ease;
}
.rg-featured:hover h2 { color: var(--brand); }
.rg-featured p { color: var(--ink-soft); max-width: 52ch; }

.rg-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.rg-meta .kat { color: var(--brand); font-weight: 500; }

.rg-weiter {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ---------- Artikel-Raster ---------- */

.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  padding: clamp(44px, 6vw, 64px) 0;
}
.rg-karte {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.rg-karte .bild {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
  background: var(--bg-alt);
}
.rg-karte .bild img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.rg-karte:hover .bild img { transform: scale(1.05); }
.rg-karte h3 {
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  margin: 10px 0 8px;
  transition: color 0.25s ease;
}
.rg-karte:hover h3 { color: var(--brand); }
.rg-karte p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.rg-karte[hidden] { display: none; }

/* ---------- Artikel-Detailseite ---------- */

.art-kopf {
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.art-kopf .breadcrumb-hell {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.art-kopf .breadcrumb-hell a { color: var(--accent-dark); }
.art-kopf h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.06;
  color: var(--ink);
  max-width: 24ch;
  margin: 18px 0 20px;
}
.art-kopf .lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 66ch;
}

.art-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 24px;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.art-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 2.6em 0 0.7em;
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.8em 0 0.5em;
}
.art-body p { margin-bottom: 1.1em; }
.art-body strong { color: var(--ink); }
.art-body ul { margin: 0 0 1.2em 1.2em; }
.art-body li { margin-bottom: 0.45em; }
.art-body .mk { margin: 2.8em auto; max-width: 340px; }

/* Kennzahlen-Box (die wichtigsten Zahlen vorab) */
.art-kennzahlen {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 26px 30px;
  margin: 1.8em 0 2.2em;
}
.art-kennzahlen .titel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 12px;
}
.art-kennzahlen ul { margin: 0 0 0 1.1em; }

/* Tabellen im Artikel */
.art-body .price-table-wrap { margin: 1.4em 0 2em; }
.art-body table.price { font-size: 0.92rem; }
.art-body table.price th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* TMF-Hinweis-Box */
.art-tmfbox {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 2em 0;
}
.art-tmfbox .titel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}

/* Artikel-CTA */
.art-cta {
  background: var(--brand);
  color: rgba(255,255,255,0.88);
  border-radius: 4px;
  padding: 36px 38px;
  margin: 3em 0 0;
}
.art-cta h2 { color: #fff; margin: 0 0 0.5em; font-size: 1.5rem; }
.art-cta p { color: rgba(255,255,255,0.85); }
.art-cta .btn { margin-top: 10px; background: #fff; color: var(--brand); border-color: transparent; }
.art-cta .btn:hover { background: var(--bg); }
.art-cta .kontaktzeile {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 228, 212, 0.8);
}

/* Weitere Artikel */
.art-weitere { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0; }
.art-weitere .rg-grid { padding: 30px 0 0; }

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

.nf-wrap {
  position: relative;
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 10vw, 120px) 0;
}
.nf-wrap svg.ringe {
  position: absolute;
  right: -160px;
  bottom: -60px;
  width: 720px;
  height: auto;
  opacity: 0.14;
  z-index: -1;
}
.nf-zahl {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.nf-wrap .mk { max-width: 340px; margin: 26px 0 30px; }
.nf-wrap h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 14px;
}
.nf-wrap h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
.nf-wrap p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 30px; }
.nf-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .rg-grid { grid-template-columns: 1fr 1fr; }
  .rg-featured { grid-template-columns: 1fr; }
  .rg-featured .bild { order: -1; }
}
@media (max-width: 560px) {
  .rg-grid { grid-template-columns: 1fr; }
  .art-body { padding-left: 20px; padding-right: 20px; }
  .art-cta { padding: 26px 22px; }
  .nf-wrap svg.ringe { width: 420px; right: -160px; opacity: 0.1; }
}
