/* Immoblatt · Ratgeber. Baut auf landing.css auf (Farben, Schrift, Navigation, Knöpfe). */
body.blog { background: #F6F7F9; }
.blog-main { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: calc(110px + env(safe-area-inset-top, 0px)) clamp(16px, 5vw, 48px) 80px; }

/* Brotkrumen */
.krumen ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.krumen li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.krumen li + li::before { content: "/"; opacity: .5; }
.krumen a { text-decoration: none; } .krumen a:hover { color: var(--ink); }
.krumen li[aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* Kopf und Themen */
.blog-kopf { display: grid; gap: 16px; max-width: 760px; margin-bottom: 34px; }
.blog-kopf h1 { font-size: clamp(42px, 6vw, 84px); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 40px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; background: #fff; text-decoration: none;
  font-weight: 650; font-size: 14.5px; color: var(--ink-2); box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(20, 23, 30, .04); transition: background .2s, color .2s, transform .2s; }
.tag small { font-size: 12px; font-weight: 700; color: var(--muted); }
.tag:hover { transform: translateY(-1px); color: var(--ink); }
.tag.on { background: var(--ink); color: #fff; } .tag.on small { color: rgba(255, 255, 255, .6); }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.karte { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 23, 30, .05); transition: transform .25s, box-shadow .25s; }
.karte:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(20, 23, 30, .09); }
.karte h2, .karte h3 { font-size: 23px; line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.karte h2 a, .karte h3 a { text-decoration: none; }
.karte h2 a::after, .karte h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.karte p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.karte.gross { grid-column: 1 / -1; padding: clamp(28px, 4vw, 48px); background: radial-gradient(700px 360px at 100% 0%, #F7DDE3, transparent 70%), #fff; }
.karte.gross h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; }
.karte.gross p { font-size: 17px; max-width: 60ch; }
.karte-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.karte-tags a { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none;
  padding: 4px 9px; border-radius: 999px; background: rgba(201, 72, 60, .08); }
.karte-tags a:hover { background: rgba(201, 72, 60, .16); }
.meta { font-size: 13.5px; font-weight: 600; color: var(--muted); }

/* Artikel */
.artikel { max-width: 720px; margin: 0 auto; }
.artikel header { display: grid; gap: 16px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.artikel h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.prosa { font-size: 18.5px; line-height: 1.7; color: var(--ink-2); }
.prosa > * { margin: 0 0 1.05em; }
.prosa h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); margin: 1.8em 0 .55em; scroll-margin-top: 100px; }
.prosa h3 { font-size: 21px; letter-spacing: -0.015em; color: var(--ink); margin: 1.5em 0 .4em; scroll-margin-top: 100px; }
.prosa strong { color: var(--ink); }
.prosa a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li { margin: .35em 0; padding-left: .2em; }
.prosa ul li::marker { color: var(--accent); }
.prosa ol li::marker { color: var(--accent); font-weight: 800; }
.prosa .tipp { position: relative; padding: 20px 24px 20px 58px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 23, 30, .05); font-size: 17px; }
.prosa .tipp::before { content: ""; position: absolute; left: 22px; top: 24px; width: 20px; height: 20px; border-radius: 7px; background: var(--g-a); }
.prosa .tipp > :last-child { margin-bottom: 0; }
.hinweis { margin: 40px 0 0; font-size: 14px; color: var(--muted); }
.demo-kasten { margin: 40px 0 0; padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.demo-kasten > div { min-width: 0; flex: 1 1 260px; }
.demo-kasten b { font-size: 18px; }
.demo-kasten p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.demo-kasten .btn { white-space: normal; text-align: center; }
.weiterlesen { max-width: 1180px; margin: 80px auto 0; }
.weiterlesen > h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }

.blog-cta { gap: 20px; }
.blog-cta h2 { font-size: clamp(38px, 5.4vw, 76px); }
.blog-cta .lead { text-align: center; }

@media (max-width: 900px) {
  .nav nav { display: flex; }
  .nav nav a:not([aria-current]) { display: none; }
}
@media (max-width: 560px) {
  .nav nav { display: none; }
  .karten { grid-template-columns: minmax(0, 1fr); }
  .prosa { font-size: 17.5px; }
}

/* Titelbilder (hochgeladene Artikel) */
.titelbild { margin: 0 0 34px; }
.titelbild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--line); }
.titelbild figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.karte.mit-bild { padding-top: 0; overflow: hidden; }
.karte-bild { display: block; width: calc(100% + 52px); max-width: none; margin: 0 -26px 6px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.karte.gross.mit-bild { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); align-content: center; padding-top: clamp(28px, 4vw, 48px); }
.karte.gross.mit-bild .karte-bild { grid-row: 1 / span 4; width: 100%; margin: 0; border-radius: 18px; align-self: stretch; height: 100%; }
@media (max-width: 760px) {
  .karte.gross.mit-bild { grid-template-columns: 1fr; }
  .karte.gross.mit-bild .karte-bild { grid-row: auto; height: auto; }
}

/* Suche: Lupe rechts in der Themenzeile, das Feld klappt beim Antippen auf */
.suche { margin-left: auto; display: flex; align-items: center; border-radius: 999px; background: rgba(255, 255, 255, .65); border: 1px solid rgba(255, 255, 255, .9); }
.suche input { width: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: width .3s, padding .3s; }
.suche.offen input, .suche:focus-within input { width: min(220px, 50vw); padding: 0 4px 0 16px; }
.suche button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.suche button:hover { background: #fff; }
.suche:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.treffer { margin: -24px 0 28px; color: var(--muted); font-size: 15px; }
.treffer a { color: var(--accent-ink); font-weight: 700; }

/* Überschrift: das erste Wort rollt durch (blog.js), „einfach erklärt“ bleibt stehen */
.dreh { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em;
  transition: width .7s cubic-bezier(.2, .7, .2, 1); max-width: 100%; }
.dreh > span { display: inline-block; white-space: nowrap; transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s; }
.dreh > span.neu { position: absolute; left: 0; top: 0; width: max-content; transform: translateY(-100%); opacity: 0; }
.dreh > span.weg { transform: translateY(100%); opacity: 0; }
