/* ============================================================
   inhalt.css — Layout für Unterseiten (Ratgeber, Projekte, Leistungen)
   Nutzt die Design-Tokens, Schriften und .knopf/.fuss aus style.css.
   Bewusst ohne GSAP-Choreografie: reine Leseseiten, laden schnell.
   ============================================================ */

body.inhalt {
  background: var(--papier);
  color: var(--tinte);
}

/* ---------- Kopfzeile (hell, ohne mix-blend) ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 14px var(--rand);
  background: color-mix(in oklch, var(--papier) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf-marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinte); line-height: 1; }
.kopf-marke img { display: block; width: 40px; height: 40px; }
.kopf-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.kopf-links { display: flex; align-items: center; gap: 22px; }
.kopf-links a { color: var(--tinte); text-decoration: none; font-size: 14.5px; }
.kopf-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kopf-links a.kopf-cta {
  background: var(--tinte); color: var(--hell);
  padding: 9px 18px; font-weight: 500;
}
.kopf-links a.kopf-cta:hover { text-decoration: none; }
@media (max-width: 640px) {
  .kopf-links a.nur-breit { display: none; }
  .kopf-name { display: none; }
}

/* ---------- Grundgerüst der Seite ---------- */
.seite { max-width: 760px; margin: 0 auto; padding: 0 var(--rand); }
.seite-breit { max-width: 1080px; margin: 0 auto; padding: 0 var(--rand); }

.brotkrumen {
  max-width: 760px; margin: 26px auto 0; padding: 0 var(--rand);
  font-size: 13.5px; color: var(--grau);
}
.brotkrumen a { color: var(--grau); text-decoration: none; }
.brotkrumen a:hover { text-decoration: underline; text-underline-offset: 3px; }
.brotkrumen span[aria-current] { color: var(--tinte); }

/* ---------- Artikel-Typografie ---------- */
.artikel { padding: 34px 0 20px; }
.artikel .augbraue { font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moos); margin-bottom: 14px; }
.artikel h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.artikel-meta { font-size: 14px; color: var(--grau); margin-bottom: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.artikel-meta span::after { content: "·"; margin-left: 8px; color: var(--linie-dunkel); }
.artikel-meta span:last-child::after { content: ""; margin: 0; }

.artikel .lead { font-size: clamp(1.12rem, 2vw, 1.32rem); line-height: 1.55; color: var(--tinte-2); margin-bottom: 30px; }

.artikel p, .artikel li { font-size: 1.06rem; line-height: 1.72; color: var(--knochen); }
.artikel p { margin-bottom: 22px; }

.artikel h2 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.05rem); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--tinte); margin: 44px 0 16px;
}
.artikel h3 {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(1.18rem, 2.2vw, 1.4rem); color: var(--tinte); margin: 30px 0 12px;
}
.artikel ul, .artikel ol { margin: 0 0 22px; padding-left: 1.3em; }
.artikel li { margin-bottom: 10px; }
.artikel a { color: var(--moos); text-underline-offset: 3px; }
.artikel strong { color: var(--tinte); font-weight: 600; }

.artikel blockquote {
  margin: 30px 0; padding: 6px 0 6px 22px;
  border-left: 3px solid var(--blatt);
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500;
  font-size: 1.2rem; line-height: 1.5; color: var(--tinte);
}

/* Preistabelle in Artikeln */
.artikel .tabelle { overflow-x: auto; margin: 0 0 26px; }
.artikel table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.artikel th, .artikel td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.artikel th { font-family: 'Archivo', sans-serif; font-weight: 600; color: var(--tinte); background: var(--hell); }
.artikel td { color: var(--knochen); }

/* Merk-/Hinweiskasten */
.merk {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px;
  padding: 22px 24px; margin: 0 0 26px;
}
.merk h3 { margin-top: 0; }
.merk p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin: 8px 0 10px; }
.faq details {
  border-bottom: 1px solid var(--linie); padding: 4px 0;
}
.faq summary {
  cursor: pointer; padding: 16px 0; list-style: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.12rem;
  color: var(--tinte); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; color: var(--moos); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { padding-bottom: 6px; }
.faq details p { margin-bottom: 16px; }

/* ---------- CTA-Block (Konversion) ---------- */
.cta-block {
  margin: 46px 0 10px; padding: 34px var(--rand);
  background: var(--tinte); color: var(--hell); border-radius: 18px;
  text-align: center;
}
.cta-block h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: var(--hell); font-size: clamp(1.5rem, 3.2vw, 2.05rem); margin: 0 0 12px; line-height: 1.1; }
.cta-block p { color: var(--grau-hell); max-width: 46ch; margin: 0 auto 22px; line-height: 1.6; }
.cta-block .knopf { background: var(--blatt); color: var(--tinte); }
.cta-block .wa { display: block; margin-top: 14px; font-size: 14px; color: var(--grau-hell); text-decoration: underline; text-underline-offset: 4px; }
.cta-block .wa:hover { color: var(--hell); }

/* ---------- Weiterlesen / verwandte Links ---------- */
.weiter { margin: 44px 0 0; }
.weiter h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }
.weiter-liste { display: grid; gap: 12px; }
.weiter-liste a {
  display: block; padding: 16px 18px; border: 1px solid var(--linie); border-radius: 12px;
  text-decoration: none; color: var(--tinte); background: var(--weiss);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.weiter-liste a:hover { border-color: var(--moos); transform: translateY(-2px); }
.weiter-liste .wl-titel { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; display: block; margin-bottom: 2px; }
.weiter-liste .wl-text { font-size: 14px; color: var(--grau); }

/* ---------- Hub-Seiten (Übersicht) ---------- */
.hub-held { padding: 54px 0 10px; }
.hub-held .augbraue { font-family: 'Archivo', sans-serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moos); margin-bottom: 14px; }
.hub-held h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 18px; }
.hub-held p { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; color: var(--grau); max-width: 60ch; }

.hub-gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 34px 0 10px; }
.hub-karte {
  display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--linie); border-radius: 16px;
  background: var(--weiss); text-decoration: none; color: var(--tinte);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hub-karte:hover { border-color: var(--moos); transform: translateY(-3px); }
.hub-karte .k-marke { font-family: 'Archivo', sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moos); margin-bottom: 12px; }
.hub-karte h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: 10px; }
.hub-karte p { font-size: 0.98rem; line-height: 1.6; color: var(--grau); margin-bottom: 18px; }
.hub-karte .k-mehr { margin-top: auto; font-weight: 500; color: var(--tinte); }

/* ---------- Zurück-Fußzeile über dem großen Footer ---------- */
.zurueck { padding: 40px 0; text-align: center; }
.zurueck a { color: var(--grau); text-decoration: none; font-size: 15px; }
.zurueck a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Referenz-Detailseite ---------- */
.ref-kopf { padding: 40px 0 8px; }
.ref-fakten { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 6px; font-size: 14px; color: var(--grau); }
.ref-fakten b { color: var(--tinte); font-weight: 600; }
.ref-bild { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--linie); margin: 8px 0 30px; display: block; }
.ref-bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 30px; }
.ref-bildpaar figure { margin: 0; }
.ref-bildpaar img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--linie); display: block; }
.ref-bildpaar figcaption { font-size: 13px; color: var(--grau); margin-top: 8px; text-align: center; }
@media (max-width: 620px) { .ref-bildpaar { grid-template-columns: 1fr; } }

/* prefers-reduced-motion: keine Transform-Sprünge */
@media (prefers-reduced-motion: reduce) {
  .hub-karte:hover, .weiter-liste a:hover, .knopf:hover { transform: none; }
}
