/* ============================================================
   Journal (Übersicht und Beiträge): baut auf /startseite.css auf
   Gleiche Welt wie die fertige Startseite: Seitenkopf im dunklen
   Prüfraum, Lesefläche in Leuchtweiß, Duochrom nur als Befund (Rot)
   und Klarheit (Grün). Hanken Grotesk für alles, Plex Mono nur für
   Zahlen, Nummern und Messwerte.
   ============================================================ */

.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
[id] { scroll-margin-top: calc(var(--kopf-h) + 1.5rem); }

/* ---------- Seitenkopf im Prüfraum ---------- */
.j-kopf {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 80% at 20% 30%, #1E2427 0%, rgba(17, 20, 22, 0) 70%),
    var(--raum);
}
.j-kopf .container > * { max-width: 52rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); font-size: .92rem; color: var(--raum-leise); }
.breadcrumb a { color: var(--raum-text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: .2em; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--raum-leise); }

.article-title {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 760; line-height: 1.05; letter-spacing: -0.03em;
  color: #fff; text-wrap: balance;
}
.article-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--raum-leise); text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); font: 500 .85rem/1.4 var(--mess); color: var(--raum-leise); }
.article-meta .dot { opacity: .5; }

/* ---------- Lesefläche ---------- */
.article-body, .hub-body { background: var(--leucht); padding-block: clamp(3.5rem, 7vw, 6rem); }
.article-titelbild { width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; margin: 0 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; border-radius: 5px; background: #183027; }
.article-titelbild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.prose { max-width: 44rem; }
.prose h2 {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 740; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--zeichen); text-wrap: balance;
}
/* Nur die erste Artikelüberschrift beginnt ohne oberen Abstand.
   Neue Textblöcke nach Beispielen und Vergleichen behalten den normalen Abstand. */
.article-body > .container > .prose:first-child > h2:first-child,
.article-body > .container > .article-titelbild + .prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; font-weight: 700; color: var(--zeichen); }
.prose p, .prose li { font-size: clamp(1.0625rem, 1.2vw, 1.15rem); line-height: 1.75; color: var(--text); text-wrap: pretty; }
.prose p { margin-top: 1.1rem; }
.prose h2 + p { margin-top: 1.25rem; }
.prose strong { color: var(--zeichen); font-weight: 650; }
.prose a, .hub-note a, .next-status a { color: var(--gruen-tief); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose a:hover, .hub-note a:hover, .next-status a:hover { text-decoration-thickness: 2px; }
.prose ul { display: grid; gap: .5rem; margin-top: 1.1rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: .7rem; height: 2px; background: var(--gruen); }

/* Kernsatz: wie das Fazit auf der Startseite, mit Linie darüber */
.prose .statement {
  margin-block: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 2px solid var(--zeichen);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 720; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--zeichen); text-wrap: balance;
}

/* ---------- Begriffspaare: Rot ist der Fachbegriff, Grün die Frage des Besuchers ---------- */
.pairs-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.pairs { margin-top: clamp(2rem, 4vw, 3rem); max-width: 64rem; }
.pairs-head, .pair { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .6rem clamp(1.5rem, 4vw, 3rem); }
.pairs-head { padding-bottom: .8rem; border-bottom: 2px solid var(--zeichen); font-size: .9rem; font-weight: 700; color: var(--zeichen); }
.pair { padding-block: clamp(1.25rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--linie-zart); }
.pair-term { display: flex; gap: .6rem; align-items: baseline; font-weight: 650; font-size: 1.05rem; line-height: 1.4; color: var(--rot); }
.pair-term::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--rot); transform: translateY(-.05rem); }
.pair-voice { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; color: var(--gruen-tief); text-wrap: pretty; }
.pair-note { grid-column: 2; font-size: 1rem; line-height: 1.65; color: var(--leise); max-width: 56ch; }

/* Variante: Rezept mit seinem typischen Satz links, Begründung rechts */
.pairs-quote-left .pairs-head, .pairs-quote-left .pair { grid-template-columns: 20rem minmax(0, 1fr); }
.pairs-quote-left .pair-voice { grid-column: 1; grid-row: 2; font-size: 1.15rem; color: var(--zeichen); }
.pairs-quote-left .pair-note { grid-column: 2; grid-row: 1 / span 2; align-self: start; color: var(--text); }

/* ---------- Die Stellen mit der größten Wirkung ---------- */
.places { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 56rem; }
.place { padding-block: clamp(1.4rem, 2.5vw, 1.9rem); border-top: 1px solid var(--linie-zart); }
.place:last-child { border-bottom: 1px solid var(--linie-zart); }
.place-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: var(--zeichen); }
.place p { margin-top: .6rem; font-size: 1.05rem; line-height: 1.7; color: var(--text); max-width: 62ch; }
/* Beispiel als Menüeintrag: Begriff, darunter die Zeile in Alltagssprache */
.example {
  display: inline-block; margin-top: 1rem;
  padding: .85rem 1.1rem;
  background: var(--wand); border-radius: 4px;
  font-size: .98rem; line-height: 1.45; color: var(--leise);
}
.example::first-line { font-weight: 700; color: var(--zeichen); }

/* ---------- Stufen ---------- */
.stages { margin-top: clamp(2rem, 4vw, 3rem); max-width: 56rem; counter-reset: stufe; }
.stage { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .4rem 1rem; padding-block: clamp(1.25rem, 2.5vw, 1.6rem); border-top: 1px solid var(--linie-zart); }
.stage:last-child { border-bottom: 1px solid var(--linie-zart); }
.stage-num { grid-row: span 2; font: 500 1.05rem/1.5 var(--mess); color: var(--gruen); font-variant-numeric: tabular-nums; }
.stage-title { font-size: 1.25rem; font-weight: 700; color: var(--zeichen); }
.stage-body { font-size: 1.05rem; line-height: 1.7; color: var(--text); max-width: 62ch; }
.voice { display: block; margin-bottom: .35rem; font-weight: 600; color: var(--gruen-tief); }

/* ---------- Vergleich vorher/nachher ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 64rem; }
.compare-panel { padding: clamp(1.4rem, 3vw, 2rem); background: var(--wand); border-radius: 4px; }
.compare-panel.is-after { background: #fff; box-shadow: 0 0 0 1px var(--linie-zart), 0 20px 40px -28px rgba(14, 16, 17, .35); }
.compare-label { display: flex; gap: .55rem; align-items: center; font-size: .92rem; font-weight: 700; color: var(--zeichen); }
.compare-label::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--rot); }
.is-after .compare-label::before { background: var(--gruen); }
.compare .quote { margin-top: .9rem; font-size: 1.08rem; line-height: 1.6; color: var(--zeichen); }
.compare-verdict { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--linie); font-size: .98rem; line-height: 1.6; color: var(--leise); }

/* ---------- Prüfliste ---------- */
.checklist { display: grid; margin-top: 1.5rem; max-width: 52rem; }
.checklist li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--linie-zart); }
.checklist li:last-child { border-bottom: 1px solid var(--linie-zart); }
.marker { font: 500 1rem/1.7 var(--mess); color: var(--gruen); }
.checklist p { margin: 0 !important; font-size: 1.08rem; line-height: 1.65; color: var(--text); }

/* ---------- Selbsttest und Einladung im Prüfraum ---------- */
.check-section { padding-block: clamp(4rem, 9vw, 7rem); background: var(--raum); color: var(--raum-text); }
.check-section .container > * { max-width: 46rem; }
.check-section .article-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.check-intro, .check-after { margin-top: 1.25rem; font-size: 1.1rem; line-height: 1.7; color: var(--raum-leise); }
.check-question {
  margin-block: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 2px solid var(--gruen-hell);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
  color: #fff; text-wrap: balance;
}
.check-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(2rem, 4vw, 2.75rem); }
.cta-note { font-size: .95rem; color: var(--raum-leise); }

/* ---------- Nächster Artikel ---------- */
.next-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--wand); }
.next-section .container > * { max-width: 46rem; }
.next-label { font-size: .92rem; font-weight: 700; color: var(--leise); }
.next-title { margin-top: .6rem; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 740; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.next-title a { color: var(--zeichen); text-decoration: none; background: linear-gradient(var(--gruen), var(--gruen)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease); }
.next-title a:hover { background-size: 100% 2px; }
.next-text { margin-top: 1rem; font-size: 1.08rem; line-height: 1.7; color: var(--text); }
.next-status { margin-top: 1.25rem; font-size: .98rem; color: var(--leise); }

/* ---------- Übersicht ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3rem); }
.hub-item { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--linie); }
.hub-item-bild { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 5px; background: #183027; }
.hub-item-bild img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hub-item-inhalt { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 0 1.5rem; }
.hub-item-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .85rem; font: 400 .75rem/1.5 var(--mess); color: var(--leise); }
.hub-item-meta span:last-child { white-space: nowrap; }
.hub-item-title { font-size: clamp(1.35rem, 2.15vw, 1.85rem); font-weight: 720; line-height: 1.2; letter-spacing: -.025em; color: var(--zeichen); text-wrap: balance; }
.hub-item-lead { margin-top: .85rem; font-size: 1.02rem; line-height: 1.65; color: var(--leise); max-width: 62ch; }
.hub-item-more { align-self: flex-start; display: inline-flex; gap: .6rem; margin-top: auto; padding-top: 1.25rem; font-weight: 650; color: var(--gruen-tief); }
.hub-item-more::after { content: "→"; transition: transform .3s var(--ease); }
.hub-item:focus-visible { outline-offset: 6px; border-radius: 5px; }
.hub-item:hover .hub-item-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
@media (hover: hover) and (pointer: fine) { .hub-item:hover .hub-item-bild img { transform: scale(1.035); } .hub-item:hover .hub-item-more::after { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .hub-item-bild img, .hub-item-more::after { transition: none; } .hub-item:hover .hub-item-bild img { transform: none; } }
.hub-note { margin-top: clamp(2rem, 4vw, 3rem); max-width: 44rem; font-size: 1.02rem; line-height: 1.7; color: var(--leise); }

/* ---------- Videoblock (Klick-Vorschaltung, siehe artikel.js) ---------- */
.videoblock { margin: clamp(2rem, 4vw, 2.75rem) 0 0; }
.videoblock-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--raum) center / cover; }
.videoblock-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videoblock-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .6rem; padding: clamp(1.25rem, 3vw, 2rem); color: var(--raum-text); }
.videoblock[data-poster]:not([data-poster=""]) .videoblock-inner { background: rgba(17, 20, 22, .55); }
.videoblock-label { font-size: .9rem; font-weight: 600; color: var(--raum-leise); }
.videoblock-titel { max-width: 24ch; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 720; line-height: 1.2; color: #fff; }
.videoblock-start {
  display: none; align-items: center; gap: .6rem;
  min-height: 3rem; margin-top: .5rem; padding: 0 1.4rem 0 1.1rem;
  border: 0; border-radius: 999px;
  background: var(--gruen); color: #fff;
  font: 650 .98rem/1 var(--schrift); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.videoblock-start:hover { background: var(--gruen-tief); transform: translateY(-1px); }
.videoblock.is-bereit .videoblock-start { display: inline-flex; }
.videoblock-play { width: 0; height: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.videoblock-status { font: 500 .85rem var(--mess); color: var(--raum-leise); }
.videoblock.is-bereit .videoblock-status { display: none; }
.videoblock-hinweis { margin-top: .8rem; font-size: .9rem; line-height: 1.6; color: var(--leise); }

/* ---------- Erscheinen beim Scrollen (artikel.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--stagger, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Schmal ---------- */
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .pairs-head, .pair { grid-template-columns: 12rem minmax(0, 1fr); }
  .pairs-quote-left .pairs-head, .pairs-quote-left .pair { grid-template-columns: 15rem minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .pairs-head { display: none; }
  .pair, .pairs-quote-left .pair { grid-template-columns: 1fr; gap: .45rem; }
  .pair-note, .pairs-quote-left .pair-voice, .pairs-quote-left .pair-note { grid-column: 1; grid-row: auto; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hub-item-inhalt { padding-top: 1.1rem; }
}

/* Journal-Fassung für Dienstleister verschiedener Branchen. */
.journal-seite{--rand:clamp(1.25rem,5vw,5rem);--takt:clamp(4rem,7vw,7rem);--breite:1240px;--wand:#edf0ed}
.journal-seite .j-kopf{background:radial-gradient(ellipse at 75% 40%,#344b3d70,transparent 60%),linear-gradient(115deg,#101714,#1e2c25 65%,#111916)}
.journal-seite .kopf-nav{gap:1.3rem}.journal-seite .kopf-nav [aria-current="page"]{color:var(--gruen);background-size:100% 1.5px}.journal-seite .kopf.im-raum .kopf-nav [aria-current="page"]{color:#e1ebe4}
.journal-seite .article-meta{font-size:.8rem}.journal-seite .j-kopf .container>.article-lead{max-width:48rem}
.situation-list{max-width:64rem;margin-top:2rem;border-top:1px solid var(--linie)}
.situation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);gap:1rem 2rem;padding-block:1.5rem;border-bottom:1px solid var(--linie)}
.situation h3{font-size:1.15rem;font-weight:650;line-height:1.4;color:var(--zeichen)}.situation p{font-size:1.05rem;line-height:1.65}.situation p+p{margin-top:.75rem}.situation strong{font-weight:600;color:var(--gruen-tief)}
.prose .journal-beispiel{margin:1.5rem 0;padding:.15rem 0 .15rem 1.25rem;border-left:2px solid var(--gruen)}.prose .journal-beispiel p{margin:0}
.prose .quellenstand{font-size:.9rem;color:var(--leise);margin-top:2rem}
.journal-seite .fuss-kontakt a{white-space:nowrap}
@media(max-width:960px){.journal-seite .kopf-nav,.journal-seite .knopf-kopf{display:none}.journal-seite .menue-knopf{display:flex;margin-left:auto}}
@media(max-width:720px){.situation{grid-template-columns:1fr;gap:.75rem}.journal-seite .stage{grid-template-columns:2rem minmax(0,1fr)}.journal-seite .check-cta .knopf{max-width:100%;padding-inline:1.2rem;font-size:.95rem}}

.journal-hub .j-kopf { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 4vw, 3.5rem); }

/* Erklärende Kanzleibeispiele im Artikel: Text bleibt auch am Handy lesbar. */
.journal-diagram { max-width: 60rem; margin-block: clamp(2rem, 5vw, 3rem); padding: clamp(1.25rem, 3.5vw, 2.5rem); background: var(--wand); border: 1px solid var(--linie-zart); border-radius: 6px; }
.journal-diagram figcaption { display: grid; gap: .6rem; margin-bottom: 2rem; }
.diagram-kicker { display: block; font: 400 .75rem/1.5 var(--mess); color: var(--leise); }
.journal-diagram figcaption strong { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.25; letter-spacing: -.02em; color: var(--zeichen); }
.journal-diagram svg { display: block; width: 3.5rem; height: 3.5rem; fill: none; stroke: var(--gruen-tief); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.diagram-schritte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; }
.diagram-schritte li { position: relative; min-width: 0; border-top: 1px solid #aabbb0; padding-top: 1.2rem; }
.diagram-schritte li:not(:last-child)::after { content: "→"; position: absolute; right: -1.4rem; top: 2rem; color: var(--gruen-tief); }
.diagram-nummer { position: absolute; right: 0; top: 1.2rem; font: 400 .8rem/1.5 var(--mess); color: var(--leise); }
.journal-diagram h3 { margin-top: 1rem; font-size: 1.2rem; line-height: 1.3; font-weight: 700; color: var(--zeichen); }
.journal-diagram p { margin-top: .7rem; font-size: 1.05rem; line-height: 1.5; color: var(--zeichen); }
.diagram-antwort { display: block; margin-top: 1rem; font-size: .9rem; line-height: 1.5; color: var(--leise); }
.diagram-kanzlei { display: flex; align-items: center; justify-content: center; gap: .8rem; width: fit-content; max-width: 100%; margin-inline: auto; padding: .7rem 1.25rem; border: 1px solid #aabbb0; border-radius: 4px; background: #fff; font-weight: 650; color: var(--gruen-tief); }
.diagram-kanzlei svg { flex: none; width: 2.5rem; height: 2.5rem; }
.diagram-abzweig { position: relative; width: calc(50% + 1rem); height: 2.5rem; margin-inline: auto; border: 1px solid #8fa698; border-bottom: 0; margin-top: 1.5rem; }
.diagram-abzweig::before { content: ""; position: absolute; left: 50%; top: -1.5rem; height: 1.5rem; border-left: 1px solid #8fa698; }
.diagram-einstiege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.diagram-einstiege section { padding: clamp(1rem, 2.5vw, 1.6rem); border-top: 3px solid var(--gruen-tief); background: #fff; border-radius: 3px; }
.diagram-einstiege p { font-size: 1rem; color: var(--leise); }
.diagram-ziel { display: block; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--linie-zart); font-size: .9rem; font-weight: 650; color: var(--gruen-tief); }
@media (max-width: 600px) {
  .diagram-schritte, .diagram-einstiege { grid-template-columns: 1fr; gap: 1.5rem; }
  .diagram-schritte li { padding: 1rem 0 0 4rem; }
  .diagram-schritte svg { position: absolute; left: 0; top: 1rem; width: 2.75rem; height: 2.75rem; }
  .diagram-schritte h3 { margin: 0; padding-right: 2rem; }
  .diagram-schritte li:not(:last-child)::after { content: none; }
  .diagram-nummer { top: 1rem; }
  .diagram-antwort { margin-top: .6rem; }
  .diagram-abzweig { width: 0; height: 1.5rem; margin-top: 0; border: 0; border-left: 1px solid #8fa698; }
  .diagram-abzweig::before { content: none; }
  .diagram-kanzlei { font-size: .95rem; padding-inline: .75rem; }
}
