/* Gedanken — von ImmoKonzept · Blog-Layout auf der ImmoKonzept-Screen-CI.
   Tokens, Fonts (Roboto Condensed Display + Inter Body) und Basisstile kommen
   aus immokonzept-ci.css (muss DAVOR eingebunden werden). Hier nur Blog-Layout. */

/* ── Fixe Navigation (Content-Seite: immer hell) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ik-line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo {
  font-family: var(--ik-font-display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.3px; color: var(--ik-ink); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ik-ink-muted); text-decoration: none; transition: color 0.18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ik-petrol-text); }
.nav-links .nav-cta a {
  background: var(--ik-petrol-text); color: #fff; padding: 9px 18px;
  border-radius: var(--ik-radius); font-weight: 600;
}
.nav-links .nav-cta a:hover { background: var(--ik-petrol-dark); color: #fff; }
.mob-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mob-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ik-ink); margin: 5px 0; transition: 0.3s; }
.mob-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--ik-paper); padding: 24px; z-index: 999;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.35s ease;
}
.mob-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mob-menu a { padding: 15px 0; color: var(--ik-ink); text-decoration: none; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--ik-line-light); }
.mob-menu .mob-cta { margin-top: 22px; text-align: center; padding: 13px; background: var(--ik-petrol-text); color: #fff; border-radius: var(--ik-radius); border-bottom: 0; }
@media (max-width: 768px) { .nav-links { display: none; } .mob-toggle { display: block; } }

main { padding-top: 64px; }

/* ── Dunkler Seitenkopf (Archiv) ── */
.page-head { background: var(--ik-ink); color: var(--ik-on-dark); padding: clamp(52px, 8vw, 88px) 0 clamp(40px, 6vw, 60px); }
.page-head .ik-eyebrow { color: var(--ik-petrol-ondark); margin-bottom: 16px; }
.page-head h1 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.4px; color: var(--ik-on-dark); max-width: 20ch; }
.page-head .lead { margin-top: 18px; max-width: 62ch; color: var(--ik-on-dark-soft); font-size: 17px; font-weight: 300; line-height: 1.62; }

/* ── Archiv-Liste ── */
.archive { padding: clamp(36px, 6vw, 64px) 0; }
.archive-item { display: block; text-decoration: none; color: inherit; padding: 26px 0; border-bottom: 1px solid var(--ik-line-light); }
.archive-item:first-child { padding-top: 0; }
.archive-item .meta { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ik-ink-muted); }
.archive-item h2 { font-family: var(--ik-font-display); font-weight: 700; font-size: 22px; line-height: 1.22; color: var(--ik-ink); margin: 8px 0; transition: color 0.18s; }
.archive-item:hover h2 { color: var(--ik-petrol-text); }
.archive-item p { color: var(--ik-ink-soft); max-width: 68ch; font-size: 16px; line-height: 1.65; }

/* ── Artikel ── */
.article { padding: clamp(32px, 5vw, 60px) 0 clamp(48px, 8vw, 88px); }
.article-inner { max-width: 680px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--ik-petrol-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--ik-petrol-dark); }
.article .meta { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ik-ink-muted); margin-bottom: 12px; }
.article h1 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(27px, 3.2vw, 33px); line-height: 1.16; letter-spacing: -0.3px; color: var(--ik-ink); margin-bottom: 26px; }
.article h2 { font-family: var(--ik-font-display); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--ik-ink); margin: 34px 0 12px; }
.article p { font-size: 16px; line-height: 1.75; color: var(--ik-ink-soft); margin-bottom: 16px; }
.article strong { font-weight: 600; color: var(--ik-ink); }
.article em { font-style: italic; }
.article ul { margin: 0 0 16px 1.1em; }
.article li { font-size: 16px; line-height: 1.7; color: var(--ik-ink-soft); margin-bottom: 7px; }

/* ── Modellrechnung — flache Editorial-Datentabelle (kein Karten-Look) ── */
.rechenbox { margin: clamp(32px, 5vw, 48px) 0; }
.rechenbox h3 { font-family: var(--ik-font-display); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ik-ink-muted); margin-bottom: 8px; }
.rechenbox .intro { font-size: 14px; line-height: 1.6; color: var(--ik-ink-soft); margin-bottom: 18px; max-width: 60ch; }
.rechenbox table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rechenbox thead th { font-family: var(--ik-font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.3px; color: var(--ik-ink-muted); text-align: left; padding: 0 0 10px; border-bottom: 1.5px solid var(--ik-ink); vertical-align: bottom; }
.rechenbox td { padding: 11px 0; border-bottom: 1px solid var(--ik-line-light); color: var(--ik-ink-soft); }
.rechenbox th.num, .rechenbox td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 18px; }
.rechenbox tr.total td { font-weight: 700; color: var(--ik-ink); border-bottom: 0; border-top: 1px solid var(--ik-line); padding-top: 12px; }

/* ── Inline-CTA (mitten im Artikel, kooperativ und leise) ── */
.inline-cta { margin: clamp(36px, 5vw, 52px) 0; padding: clamp(20px, 3vw, 28px) 0; border-top: 1px solid var(--ik-line); border-bottom: 1px solid var(--ik-line); }
.inline-cta .ic-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ik-petrol-text); margin-bottom: 10px; }
.inline-cta p { font-family: var(--ik-font-display); font-weight: 500; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.38; color: var(--ik-ink); margin: 0 0 14px; max-width: 56ch; }
.inline-cta .ic-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ik-petrol-text); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.18s, border-color 0.18s; }
.inline-cta .ic-link:hover { color: var(--ik-petrol-dark); }

/* ── Gesprächseinladung (dunkle Karte, kooperativ) ── */
.cta-box { background: var(--ik-ink); color: var(--ik-on-dark); border-radius: var(--ik-radius-lg); padding: 32px clamp(22px, 4vw, 36px); margin: clamp(38px, 5vw, 56px) 0 0; }
.cta-box .cta-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ik-petrol-ondark); margin-bottom: 12px; }
.cta-box .cta-lead { font-family: var(--ik-font-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 24px); line-height: 1.3; color: var(--ik-on-dark); margin-bottom: 12px; }
.cta-box p { color: var(--ik-on-dark-soft); font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.cta-box a { display: inline-flex; align-items: center; background: var(--ik-petrol-text); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: var(--ik-radius); }
.cta-box a:hover { background: var(--ik-petrol-dark); }

/* ── Entwurf-Banner (einziger Warm-Highlight) ── */
._entwurf { background: var(--ik-warm); color: #5A4500; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; padding: 8px 16px; }

/* ── Footer ── */
.foot { background: var(--ik-ink); color: var(--ik-on-dark-muted); padding: 30px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-brand { font-family: var(--ik-font-display); font-weight: 700; color: var(--ik-on-dark); letter-spacing: -0.2px; }
.foot-links { display: flex; gap: 20px; list-style: none; }
.foot-links a { color: var(--ik-on-dark-muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--ik-petrol-ondark); }
.foot-copy { font-size: 13px; }

/* ============================================================
   INTERAKTIV — Lesefortschritt, Frage/Antwort-Reveal,
   Scroll-Reveal, Rechen-Punchline, Rollen-Dialog.
   Progressive Enhancement: ohne JS bleibt alles sichtbar.
   Aktive Mechaniken werden erst durch die .js-Klasse scharf.
   ============================================================ */

/* ── Lesefortschritt ── */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001;
  background: var(--ik-petrol); transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ── Entwurf-Banner sichtbar über fixierter Nav (nur bei vorhandenem Banner) ── */
body.has-entwurf ._entwurf { position: fixed; top: 0; left: 0; right: 0; z-index: 1002; }
body.has-entwurf .read-progress { top: var(--entwurf-h, 0px); }
body.has-entwurf .nav { top: var(--entwurf-h, 0px); }
body.has-entwurf main { padding-top: calc(64px + var(--entwurf-h, 0px)); }
body.has-entwurf .mob-menu { top: calc(64px + var(--entwurf-h, 0px)); }

/* ── Aufklappung (eine pro Bericht) ── */
.qa { margin: 30px 0; }
.qa-q {
  font-family: var(--ik-font-display); font-weight: 600; font-size: 19px;
  line-height: 1.3; color: var(--ik-ink); margin-bottom: 14px;
}
.qa--tight { margin: 16px 0 0; }
.qa-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--ik-font-body); font-size: 14px; font-weight: 600;
  color: var(--ik-petrol-text); background: transparent;
  border: 1px solid var(--ik-line); border-radius: var(--ik-radius);
  padding: 9px 16px; cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.qa-toggle:hover { border-color: var(--ik-petrol); background: var(--ik-petrol-soft); }
.qa-toggle:focus-visible { outline: 2px solid var(--ik-petrol); outline-offset: 2px; }
.qa-toggle .chev { width: 13px; height: 13px; flex: none; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.qa.open .qa-toggle .chev { transform: rotate(180deg); }
.qa-a { display: grid; grid-template-rows: 1fr; }
.js .qa-a { grid-template-rows: 0fr; transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
.js .qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a-inner { overflow: hidden; }
.qa-a-box { margin-top: 14px; background: var(--ik-surface-alt); border: 1px solid var(--ik-line-light); border-radius: var(--ik-radius); padding: 18px clamp(16px, 3vw, 22px); }
.qa-a-box p { color: var(--ik-ink-soft); font-size: 15px; margin-bottom: 0; }
.qa-a-box p + p { margin-top: 12px; }

/* ── Ergebnis: nüchterne Schlusszeile (kein großes Display) ── */
.result { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ik-line); }
.result .lbl { font-size: 14px; font-weight: 500; color: var(--ik-ink-soft); }
.result .val { font-family: var(--ik-font-body); font-weight: 700; font-size: 18px; color: var(--ik-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================
   MAGAZIN — bildgeführtes Editorial (Feature-Artikel + Landing).
   Großes Bild, ruhige Typografie, viel Weißraum. Auf den
   ImmoKonzept-Tokens (Roboto Condensed / Inter / Petrol).
   ============================================================ */

/* ── Feature-Artikel ── */
.article.feature { padding: 0 0 clamp(48px, 8vw, 96px); }
.feature-hero { width: 100%; height: clamp(300px, 52vh, 600px); background: var(--ik-surface-alt); overflow: hidden; }
.feature-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.feature-subbar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; }
.feature-subbar .back-link { margin: 0; }
.feature-credit { font-size: 12px; color: var(--ik-ink-muted); text-align: right; }
.feature-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.article-opener { max-width: 800px; margin: 0 auto; text-align: center; padding: clamp(24px, 4vw, 44px) 0 clamp(16px, 2.5vw, 28px); }
.article-opener .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ik-petrol-text); margin-bottom: 16px; }
.article-opener h1 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(30px, 4.8vw, 52px); line-height: 1.07; letter-spacing: -0.5px; color: var(--ik-ink); max-width: 20ch; margin: 0 auto; }
.article-opener .dek { font-weight: 300; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--ik-ink-soft); max-width: 56ch; margin: 18px auto 0; }
.article-opener .meta { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ik-ink-muted); }
.article-opener .opener-rule { width: 48px; height: 2px; background: var(--ik-petrol); border: 0; margin: 24px auto 0; }

.article-body { max-width: 680px; margin: 0 auto; }
.article-body > p { font-size: 17px; line-height: 1.8; }
.article-body > p:first-of-type::first-letter {
  float: left; font-family: var(--ik-font-display); font-weight: 700;
  font-size: 3.3em; line-height: 0.72; padding: 9px 12px 0 0; color: var(--ik-ink);
}
.article-body h2 { font-size: clamp(21px, 2.4vw, 27px); margin-top: clamp(34px, 5vw, 48px); }

/* Pull-Quote */
.pullquote { margin: clamp(30px, 5vw, 50px) auto; max-width: 760px; text-align: center; }
.pullquote .pq-rule { width: 40px; height: 2px; background: var(--ik-petrol); border: 0; margin: 0 auto 20px; }
.pullquote blockquote { margin: 0; font-family: var(--ik-font-display); font-weight: 600; font-size: clamp(22px, 3vw, 31px); line-height: 1.24; letter-spacing: -0.3px; color: var(--ik-ink); }

/* Inline-Figur, mit Breakout-Variante */
figure.fig { margin: clamp(30px, 5vw, 50px) auto; }
figure.fig img { width: 100%; height: auto; display: block; border-radius: var(--ik-radius); }
figure.fig figcaption { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 11px; font-size: 13px; line-height: 1.5; color: var(--ik-ink-muted); }
figure.fig figcaption .cap { max-width: 52ch; }
figure.fig figcaption .credit { text-align: right; white-space: nowrap; opacity: 0.85; }
figure.fig figcaption .credit a { color: inherit; }
.fig--wide { width: min(980px, 92vw); margin-left: 50%; transform: translateX(-50%); }

/* ── Magazin-Landing ── */
.cover { position: relative; min-height: clamp(380px, 66vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ik-ink); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,33,35,0.30) 0%, rgba(30,33,35,0.28) 38%, rgba(30,33,35,0.80) 100%); }
.cover-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(34px, 5vw, 62px); }
.cover .ik-eyebrow { color: var(--ik-petrol-ondark); }
.cover h1 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(52px, 11vw, 120px); line-height: 0.92; letter-spacing: -1.5px; color: #fff; margin-top: 12px; }
.cover .dek { max-width: 52ch; margin-top: 18px; color: var(--ik-on-dark-soft); font-weight: 300; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; }
.cover-credit { position: absolute; right: 14px; bottom: 8px; z-index: 1; font-size: 11px; color: rgba(246,245,242,0.62); }
.cover-credit a { color: inherit; }

.lead-feature { display: block; text-decoration: none; color: inherit; padding: clamp(40px, 7vw, 80px) 0; }
.lf-img { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ik-surface-alt); border-radius: var(--ik-radius); }
.lf-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.lead-feature:hover .lf-img img { transform: scale(1.03); }
.lf-body { max-width: 760px; margin: 28px auto 0; text-align: center; }
.lf-body .kicker { font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ik-petrol-text); }
.lf-body h2 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.4px; color: var(--ik-ink); margin: 14px 0; }
.lf-body .dek { font-weight: 300; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ik-ink-soft); max-width: 56ch; margin: 0 auto; }
.lf-body .lf-meta { margin-top: 18px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ik-ink-muted); font-weight: 600; }
.lf-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--ik-petrol-text); font-weight: 600; font-size: 14px; }
.lead-feature:hover .lf-more { color: var(--ik-petrol-dark); }

.mag-foot-note { text-align: center; padding: clamp(34px, 6vw, 60px) 0; border-top: 1px solid var(--ik-line-light); color: var(--ik-ink-muted); font-size: 15px; }
.mag-foot-note a { color: var(--ik-petrol-text); font-weight: 600; text-decoration: none; }
.mag-foot-note a:hover { color: var(--ik-petrol-dark); }

/* ── Hinweis-Strip zwischen Cover und Lead-Feature ── */
.hint-strip { background: var(--ik-paper-warm, #f5f3ee); border-top: 2px solid var(--ik-petrol); border-bottom: 1px solid var(--ik-line-light); padding: clamp(16px, 2.8vw, 24px) 0; }
.hint-strip p { font-size: 14px; line-height: 1.6; color: var(--ik-ink-muted); max-width: 78ch; margin: 0; }
.hint-strip strong { font-weight: 600; color: var(--ik-petrol-text); }

/* ── Magazin-Raster für weitere Gedanken ── */
.mag-section { padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--ik-line-light); }
.mag-section .mag-section-head { text-align: center; max-width: 56ch; margin: 0 auto clamp(28px, 4vw, 44px); }
.mag-section .mag-section-head .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ik-petrol-text); margin-bottom: 12px; }
.mag-section .mag-section-head h2 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: var(--ik-ink); letter-spacing: -0.3px; }
.mag-grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mag-card { display: block; text-decoration: none; color: inherit; }
.mag-card .mc-img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ik-surface-alt); border-radius: var(--ik-radius); }
.mag-card .mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.mag-card:hover .mc-img img { transform: scale(1.03); }
.mag-card .mc-body { padding-top: 16px; }
.mag-card .mc-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ik-petrol-text); }
.mag-card h3 { font-family: var(--ik-font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.22; color: var(--ik-ink); margin: 8px 0; letter-spacing: -0.2px; transition: color 0.18s; }
.mag-card:hover h3 { color: var(--ik-petrol-text); }
.mag-card .mc-dek { font-size: 15px; line-height: 1.55; color: var(--ik-ink-soft); margin: 0; max-width: 42ch; }
.mag-card .mc-meta { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ik-ink-muted); }

@media (prefers-reduced-motion: reduce) {
  .mag-card .mc-img img { transition: none; }
  .mag-card:hover .mc-img img { transform: none; }
}

@media (max-width: 768px) {
  .feature-subbar { flex-direction: column; gap: 6px; }
  .feature-credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .js .qa-a { transition: none; }
  .qa-toggle .chev, .read-progress, .lf-img img { transition: none; }
  .lead-feature:hover .lf-img img { transform: none; }
}
