/* ===========================================================================
   DESIGN TOKENS  (im Live-System global im Header-Template -> hier lokal fuer Prototyp)
   =========================================================================== */
.nz-demo {
  --nz-primary: #00445E;
  --nz-primary-deep: #002F40;
  --nz-primary-light: #1E6685;
  --nz-accent: #B8956A;
  --nz-accent-soft: #D4B98E;
  --nz-cream: #F5F0E8;
  --nz-cream-dark: #EAE3D5;
  --nz-text: #1A1A1A;
  --nz-text-muted: #5C5C5C;
  --nz-bg: #FFFFFF;
  --nz-bg-warm: #FAF7F2;
  --nz-border: #E8E2D4;
  --nz-shadow: 0 4px 24px rgba(0, 68, 94, 0.08);
  --nz-shadow-deep: 0 12px 40px rgba(0, 68, 94, 0.15);

  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--nz-text);
  background: var(--nz-bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
.nz-demo *, .nz-demo *::before, .nz-demo *::after { box-sizing: border-box; }

.nz-demo h1, .nz-demo h2, .nz-demo h3, .nz-demo h4 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  color: var(--nz-primary);
  line-height: 1.2;
  margin: 0;
}
.nz-demo p { margin: 0 0 1.2rem; }
.nz-demo a { color: var(--nz-primary-light); text-decoration: none; }
.nz-demo a:hover { text-decoration: underline; }

.nz-container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.nz-article-col { max-width: 760px; margin: 0 auto; }

/* full-bleed helper */
.nz-fullbleed {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}

.nz-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--nz-accent);
}
.nz-eyebrow::before {
  content: ''; width: 28px; height: 1.5px; background: var(--nz-accent);
}

/* ===========================================================================
   [ACF] HERO  — Kategorie, Titel, Meta (Lesezeit + Stand-Datum)
   =========================================================================== */
.nz-hero {
  background: linear-gradient(135deg, #FBF6EC 0%, #F4EAD3 100%);
  padding: 5rem 0 3.5rem;
}
.nz-breadcrumb {
  font-size: 0.8rem; color: var(--nz-text-muted); margin-bottom: 1.8rem;
  letter-spacing: 0.02em;
}
.nz-breadcrumb a { color: var(--nz-text-muted); }
.nz-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 400;
  letter-spacing: -0.01em; margin-bottom: 1.4rem;
}
.nz-hero h1 em { font-style: italic; color: var(--nz-accent); font-weight: 400; }
.nz-hero-lead {
  font-size: 1.2rem; color: var(--nz-text-muted); font-weight: 400;
  max-width: 640px; margin-bottom: 2rem;
}
.nz-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center;
  font-size: 0.85rem; color: var(--nz-primary); font-weight: 600;
  padding-top: 1.6rem; border-top: 1px solid rgba(0,68,94,0.12);
}
.nz-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.nz-meta svg { width: 16px; height: 16px; stroke: var(--nz-accent); }

/* ===========================================================================
   [ACF] KURZANTWORT (TL;DR)  — speist Featured-Snippet + KI-Extraktion
   =========================================================================== */
.nz-tldr {
  background: var(--nz-primary); color: #fff;
  border-radius: 6px; padding: 2rem 2.2rem;
  margin: 3rem 0 0; box-shadow: var(--nz-shadow-deep);
}
.nz-tldr .nz-eyebrow { color: var(--nz-accent-soft); }
.nz-tldr .nz-eyebrow::before { background: var(--nz-accent-soft); }
.nz-tldr h2 {
  color: #fff; font-size: 1.35rem; font-weight: 400;
  margin: 0.8rem 0 0.8rem;
}
.nz-tldr p { color: rgba(255,255,255,0.9); margin-bottom: 0; font-size: 1.05rem; }
.nz-tldr strong { color: var(--nz-accent-soft); font-weight: 600; }

/* ===========================================================================
   [ACF-generiert] INHALTSVERZEICHNIS  — aus H2 der Seite
   =========================================================================== */
.nz-toc {
  background: var(--nz-bg-warm); border: 1px solid var(--nz-border);
  border-radius: 6px; padding: 1.8rem 2rem; margin: 2.5rem 0 0;
}
.nz-toc-title {
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nz-text-muted); margin-bottom: 1rem;
}
.nz-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.nz-toc li { counter-increment: toc; margin-bottom: 0.6rem; }
.nz-toc li:last-child { margin-bottom: 0; }
.nz-toc a {
  display: flex; gap: 0.9rem; align-items: baseline;
  color: var(--nz-text); font-weight: 500;
}
.nz-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Spectral', serif; font-style: italic;
  color: var(--nz-accent); font-size: 0.9rem; min-width: 1.6rem;
}
.nz-toc a:hover { color: var(--nz-primary); text-decoration: none; }
.nz-toc a:hover::before { color: var(--nz-primary); }

/* ===========================================================================
   [BODY] ARTIKEL-FLIESSTEXT  — scoped CSS auf native Bloecke
   =========================================================================== */
.nz-body { padding: 1rem 0 0; }
.nz-body section { padding: 2.8rem 0 0; scroll-margin-top: 100px; }
.nz-body h2 {
  font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 400;
  margin-bottom: 1.2rem; letter-spacing: -0.01em;
}
.nz-body h2 em { font-style: italic; color: var(--nz-accent); font-weight: 400; }
.nz-body h3 {
  font-size: 1.3rem; font-weight: 500; color: var(--nz-primary-light);
  margin: 2rem 0 0.8rem;
}
.nz-body ul, .nz-body ol { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.nz-body ul li, .nz-body ol li {
  position: relative; padding-left: 1.8rem; margin-bottom: 0.7rem;
}
.nz-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--nz-accent);
}
.nz-body ol { counter-reset: li; }
.nz-body ol li { counter-increment: li; }
.nz-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 0.05em;
  font-family: 'Spectral', serif; font-style: italic; font-weight: 500;
  color: var(--nz-accent); font-size: 1.05rem;
}
.nz-body blockquote {
  margin: 1.8rem 0; padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 3px solid var(--nz-accent);
  font-family: 'Spectral', serif; font-style: italic; font-size: 1.2rem;
  color: var(--nz-primary);
}
.nz-body strong { font-weight: 600; color: var(--nz-primary); }

/* ---- PATTERN 1: [BODY-PATTERN] Fakten-Box (Fristen / Kosten / Dokumente) ---- */
.nz-factbox {
  background: var(--nz-bg-warm); border: 1px solid var(--nz-border);
  border-left: 3px solid var(--nz-accent);
  border-radius: 6px; padding: 1.8rem 2rem; margin: 2rem 0;
}
.nz-factbox-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--nz-accent); margin-bottom: 1.1rem;
}
.nz-factbox-label svg { width: 15px; height: 15px; stroke: var(--nz-accent); }
.nz-factbox h4 {
  font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--nz-primary); margin-bottom: 1rem;
}
.nz-factgrid { display: grid; gap: 0; }
.nz-factrow {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px dashed var(--nz-border);
  align-items: baseline;
}
.nz-factrow:last-child { border-bottom: none; }
.nz-factrow .k { color: var(--nz-text-muted); font-size: 0.95rem; }
.nz-factrow .v {
  font-weight: 700; color: var(--nz-primary); text-align: right;
  font-variant-numeric: tabular-nums;
}
.nz-factnote { margin: 1rem 0 0; font-size: 0.85rem; color: var(--nz-text-muted); }
.nz-factnote::before { content: '§ '; color: var(--nz-accent); font-weight: 700; }

/* ---- PATTERN 2: [BODY-PATTERN] Haeufige Fehler ---- */
.nz-mistakes {
  background: linear-gradient(135deg, var(--nz-primary-deep), var(--nz-primary));
  border-radius: 6px; padding: 2.4rem 2.2rem; margin: 2.5rem 0;
  color: #fff; box-shadow: var(--nz-shadow-deep);
}
.nz-mistakes .nz-eyebrow { color: var(--nz-accent-soft); }
.nz-mistakes .nz-eyebrow::before { background: var(--nz-accent-soft); }
.nz-mistakes h3 {
  color: #fff; font-size: 1.5rem; font-weight: 400;
  margin: 0.8rem 0 1.6rem;
}
.nz-mistake-item {
  display: flex; gap: 1rem; padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.nz-mistake-item:first-of-type { border-top: none; padding-top: 0; }
.nz-mistake-x {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(212,185,142,0.18); color: var(--nz-accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-top: 0.15rem;
}
.nz-mistake-item p { margin: 0; color: rgba(255,255,255,0.88); font-size: 0.98rem; }
.nz-mistake-item strong { color: #fff; font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* ===========================================================================
   [ACF-Repeater] FAQ  — speist sichtbare FAQ UND FAQPage-Schema (eine Quelle)
   =========================================================================== */
.nz-faq { padding: 3rem 0 0; }
.nz-faq-item { border-bottom: 1px solid var(--nz-border); }
.nz-faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Spectral', serif; font-size: 1.2rem; color: var(--nz-primary);
  padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  display: block;
}
.nz-faq-q::after {
  content: '+'; position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; color: var(--nz-accent);
  font-family: 'Manrope', sans-serif; transition: transform 0.25s;
}
.nz-faq-item[open] .nz-faq-q::after { content: '\2013'; }
.nz-faq-a { padding: 0 0 1.5rem; color: var(--nz-text-muted); }
.nz-faq-a p:last-child { margin-bottom: 0; }
.nz-demo details > summary { list-style: none; }
.nz-demo details > summary::-webkit-details-marker { display: none; }

/* ===========================================================================
   [ACF] AUTOREN-BOX  — Person: Nina Zauner (YMYL / E-E-A-T + author-Schema)
   =========================================================================== */
.nz-author {
  display: flex; gap: 1.6rem; align-items: flex-start;
  background: var(--nz-bg-warm); border: 1px solid var(--nz-border);
  border-radius: 6px; padding: 2rem; margin: 3.5rem 0 0;
}
.nz-author-img {
  flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden; background: linear-gradient(145deg, var(--nz-cream-dark), var(--nz-cream));
  display: flex; align-items: flex-end; justify-content: center;
}
.nz-author-img img { width: 100%; height: 100%; object-fit: cover; }
.nz-author-body h4 {
  font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--nz-primary); margin-bottom: 0.2rem;
}
.nz-author-role {
  font-size: 0.82rem; color: var(--nz-accent); font-weight: 600;
  letter-spacing: 0.04em; margin-bottom: 0.8rem;
}
.nz-author-body p { font-size: 0.95rem; color: var(--nz-text-muted); margin-bottom: 0; }

/* ===========================================================================
   [ACF] CTA  — Ziel-Leistung + Buchung
   =========================================================================== */
.nz-cta {
  background: linear-gradient(135deg, var(--nz-primary-deep), var(--nz-primary));
  border-radius: 8px; padding: 3rem 2.5rem; margin: 3.5rem 0 0;
  text-align: center; color: #fff; box-shadow: var(--nz-shadow-deep);
}
.nz-cta h3 { color: #fff; font-size: 1.7rem; font-weight: 400; margin-bottom: 0.8rem; }
.nz-cta h3 em { font-style: italic; color: var(--nz-accent-soft); }
.nz-cta p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 1.8rem; }
.nz-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.nz-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border-radius: 4px; font-weight: 600;
  font-size: 0.95rem; transition: transform 0.15s, box-shadow 0.15s;
}
.nz-btn-primary { background: var(--nz-accent); color: #fff !important; }
.nz-btn-primary:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 20px rgba(184,149,106,0.4); }
.nz-btn-ghost { background: rgba(255,255,255,0.1); color: #fff !important; border: 1px solid rgba(255,255,255,0.3); }
.nz-btn-ghost:hover { background: rgba(255,255,255,0.18); text-decoration: none; }

/* ===========================================================================
   [ACF] RELATED  — Query-Loop im Live-System
   =========================================================================== */
.nz-related { padding: 4rem 0 5rem; }
.nz-related-head { text-align: center; margin-bottom: 2.5rem; }
.nz-related-head h3 { font-size: 1.8rem; font-weight: 400; margin-top: 0.6rem; }
.nz-related-head .nz-eyebrow { justify-content: center; }
.nz-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nz-related-card {
  background: var(--nz-bg); border: 1px solid var(--nz-border);
  border-radius: 6px; padding: 1.8rem; transition: transform 0.2s, box-shadow 0.2s;
  display: block; color: inherit;
}
.nz-related-card:hover { transform: translateY(-4px); box-shadow: var(--nz-shadow); text-decoration: none; }
.nz-related-cat {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--nz-accent); font-weight: 700; margin-bottom: 0.7rem;
}
.nz-related-card h4 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.6rem; }
.nz-related-card p { font-size: 0.9rem; color: var(--nz-text-muted); margin-bottom: 0; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 860px) {
  .nz-related-grid { grid-template-columns: 1fr; }
  .nz-hero { padding: 3.5rem 0 2.5rem; }
  .nz-author { flex-direction: column; gap: 1rem; }
  .nz-cta { padding: 2.4rem 1.5rem; }
}

/* --- Single-spezifisch --- */
html { scroll-behavior: smooth; }
.nz-demo h2[id] { scroll-margin-top: 100px; }

/* ===== Kaskaden-Override gegen Breakdance (§8): Fonts + Farben gewinnen ===== */
.nz-demo h1, .nz-demo h2, .nz-demo h3, .nz-demo h4,
.nz-demo .nz-body h2, .nz-demo .nz-body h3,
.nz-demo .nz-tldr h2,
.nz-demo .nz-mistakes h3,
.nz-demo .nz-cta h3,
.nz-demo .nz-faq h2,
.nz-demo .nz-related-head h3 {
  font-family: 'Spectral', Georgia, serif !important;
}

/* Weiße Überschriften in den dunklen Boxen */
.nz-demo .nz-tldr h2,
.nz-demo .nz-mistakes h3,
.nz-demo .nz-cta h3 { color: #fff !important; }

/* Body-Überschriften: Farbe erzwingen + Abstand zur TOC/zwischen Abschnitten */
.nz-demo .nz-body h2 { color: var(--nz-primary) !important; margin-top: 3rem; }
.nz-demo .nz-body h3 { color: var(--nz-primary-light) !important; }

/* Abstand nach dem CTA-Block (sonst klebt der Footer) */
.nz-demo .nz-cta { margin-bottom: 4rem; }

/* ===== Fakten-Box: Mobile-Umbruch (höhere Spezifität, gewinnt gegen Basis-Regel) ===== */
.nz-demo .nz-factrow { min-width: 0; }
.nz-demo .nz-factrow .k,
.nz-demo .nz-factrow .v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .nz-demo .nz-factbox { padding: 1.4rem 1.3rem; }
  .nz-demo .nz-factrow { grid-template-columns: 1fr; gap: 0.15rem; }
  .nz-demo .nz-factrow .v { text-align: left; }
}
