/* Blog – baut auf style.css auf (Schriften, Farben, Kopf, Fuß, Menü) */

main > section.blog-kopf,
main > section.blog-liste,
main > section.beitrag-kopf,
main > section.beitrag-text { padding-block: 0; }

/* ---------- KI-Kennzeichnung ---------- */
.ki-marke {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  font: 600 .8125rem/1 var(--f-kopf); letter-spacing: .01em;
  color: var(--nacht); background: rgba(255, 255, 255, .94); border-radius: 999px;
}
.ki-hinweis { font-size: .9375rem; color: var(--tinte-2); }
.ki-hinweis strong { color: var(--nacht); font-weight: 600; }

/* ---------- Übersicht ---------- */
.blog-kopf { padding-top: clamp(48px, 9vh, 112px) !important; padding-bottom: clamp(40px, 6vh, 72px) !important; }
.blog-kopf__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.blog-kopf p { font-size: 1.125rem; color: var(--tinte-2); max-width: 38ch; padding-bottom: .5em; }

.blog-liste { padding-bottom: clamp(80px, 12vh, 144px) !important; }
.blog-liste ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--nacht); }
.eintrag { border-bottom: 2px solid rgba(20, 22, 43, .12); }
.eintrag a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding-block: clamp(20px, 3vh, 32px); text-decoration: none;
}
.eintrag__bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hellgrau); }
.eintrag__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.eintrag__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.eintrag__meta { font: 500 .9375rem/1.4 var(--f-kopf); color: var(--tinte-2); }
.eintrag h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.eintrag p { color: var(--tinte-2); max-width: 46ch; }
.eintrag .textlink { margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .eintrag a:hover .eintrag__bild img { transform: scale(1.03); }
  .eintrag a:hover h2 { color: var(--kobalt); }
  .eintrag a:hover .textlink::after { transform: translateX(4px); }
}

/* ---------- Beitrag ---------- */
.zurueck { display: inline-flex; align-items: center; min-height: 44px; font: 600 .9375rem/1 var(--f-kopf); text-decoration: none; color: var(--tinte-2); }
.zurueck::before { content: "← "; white-space: pre; }
@media (hover: hover) and (pointer: fine) { .zurueck:hover { color: var(--kobalt); } }

.beitrag-kopf { padding-top: clamp(24px, 5vh, 56px) !important; padding-bottom: clamp(28px, 4vh, 48px) !important; }
.beitrag-kopf__innen { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.beitrag-kopf h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; max-width: 15ch; }
.beitrag-meta { font: 500 .9375rem/1.4 var(--f-kopf); color: var(--tinte-2); }
.beitrag-meta span + span::before { content: " · "; }

.beitrag-bild { margin: 0; }
.beitrag-bild__rahmen { position: relative; max-width: calc(var(--breite) + 2 * var(--rand) + 240px); margin-inline: auto; aspect-ratio: 3 / 2; max-height: 78vh; overflow: hidden; background: #F3E6D6; }
.beitrag-bild__rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.beitrag-bild figcaption { padding-top: 12px; }

.beitrag-text { padding-top: clamp(40px, 7vh, 80px) !important; padding-bottom: clamp(64px, 10vh, 120px) !important; }
.fliesstext { max-width: 64ch; display: flex; flex-direction: column; gap: 20px; }
.fliesstext p { font-size: 1.1875rem; line-height: 1.65; }
.fliesstext .einstieg { font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.5; }
.fliesstext h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.03em; margin-top: 28px; }

/* Abschluss auf Pink */
.beitrag-ende { background: var(--pink); color: var(--nacht); padding-block: clamp(64px, 10vh, 112px) !important; }
.beitrag-ende__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.beitrag-ende h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
.beitrag-ende__seite { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.beitrag-ende__seite p { font-size: 1.125rem; max-width: 34ch; }

@media (max-width: 1080px) {
  .blog-kopf__raster, .beitrag-ende__raster { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .eintrag a { grid-template-columns: 1fr; }
  .fliesstext p { font-size: 1.0625rem; }
  .beitrag-bild__rahmen { max-height: none; }}

/* Beitrag ohne Bild: Farbfeld statt Foto */
.eintrag__bild--ohne { display: flex; align-items: flex-end; padding: clamp(16px, 2vw, 28px); background: var(--kobalt); color: #fff; }
.eintrag__bild--ohne span { font: 800 clamp(1.75rem, 3.4vw, 3rem)/.95 var(--f-kopf); letter-spacing: -0.04em; hyphens: manual; }
.fliesstext p a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fliesstext p a:hover { color: var(--kobalt); } }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.rechtstext h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.rechtstext ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px; font-size: 1.125rem; line-height: 1.55; }
.rechtstext a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.offen { background: var(--gelb, #FFD23F); color: var(--nacht); padding: 0 .25em; border-radius: 3px; }
.rechtstext h3 { font: 600 clamp(1.1875rem, 1.6vw, 1.375rem)/1.25 var(--f-kopf); color: var(--nacht); margin-top: 12px; }
.rechtstext h4 { font: 600 1.0625rem/1.3 var(--f-kopf); color: var(--nacht); margin-top: 4px; }
.rechtstext .hervor { font-size: 1rem; line-height: 1.6; letter-spacing: .01em; }

/* ---------- Fehlerseite (404) ---------- */
.fehlerseite { padding-bottom: clamp(80px, 14vh, 160px) !important; }
.fehlerseite__wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.fehlerseite__kontakt { max-width: 56ch; color: var(--tinte-2); font-size: 1rem; margin-top: 12px; }
.fehlerseite__kontakt a { color: var(--nacht); font-weight: 600; }
