/* CURO Blog – baut auf stil.css der Website auf (Farben, Schrift, Karten, Knöpfe) */

/* ---------- Seitenkopf ---------- */
.blog-buehne > .rahmen { padding-top: 72px; padding-bottom: 64px; }
.blog-buehne .titel { max-width: 16em; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.blog-filter a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--tinte-weich); padding: 7px 14px; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); }
.blog-filter a:hover { border-color: var(--gelb-rand); background: var(--gelb-hell); color: var(--tinte); }
.blog-filter a[aria-current] { background: var(--tinte); border-color: var(--tinte); color: #fff; }

/* ---------- Übersicht ---------- */
.blog-liste-block { padding-top: 64px; }
.blog-leer { text-align: center; padding: 40px 0; }
.blog-leer h2 { font-size: 24px; }
.blog-leer p { margin-top: 10px; color: var(--tinte-weich); }

.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--grau); }
.blog-kat { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--kennzeile); }
.blog-neu { font-size: 12px; font-weight: 600; background: var(--gelb-hell); border: 1px solid var(--gelb-rand); color: var(--tinte); padding: 2px 10px; border-radius: 99px; }
.blog-lesezeit { font-size: 14px; color: var(--grau); }

.blog-haupt {
  display: grid; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px;
  overflow: hidden; box-shadow: var(--schatten);
}
.blog-haupt-bild { display: block; background: var(--papier); overflow: hidden; border-bottom: 1px solid var(--linie); }
.blog-haupt-bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .4s ease; }
.blog-haupt:hover .blog-haupt-bild img { transform: scale(1.02); }
.blog-haupt-text { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-haupt h2 { margin-top: 16px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; }
.blog-haupt h2 a, .blog-karte h3 a { text-decoration: none; }
.blog-haupt h2 a:hover, .blog-karte h3 a:hover { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--gelb); }
.blog-teaser { margin-top: 14px; font-size: 17px; color: var(--tinte-weich); }
.blog-haupt-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
@media (min-width: 960px) {
  .blog-haupt { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .blog-haupt-bild { border-bottom: 0; border-right: 1px solid var(--linie); min-height: 380px; }
  .blog-haupt-text { padding: 48px; }
}

.blog-zwischen { font-size: 22px; margin: 56px 0 20px; }
.blog-raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 28px; }
.blog-zwischen + .blog-raster { margin-top: 0; }
.blog-karte { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s; }
.blog-karte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 36px -14px rgba(16,24,40,.22); }
.blog-karte-bild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--papier); border-bottom: 1px solid var(--linie); }
.blog-karte-bild img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.blog-karte-bild.leer { display: grid; place-items: center; background: var(--gelb-hell); }
.blog-karte-bild.leer svg { width: 36px; height: auto; opacity: .7; }
.blog-karte-text { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-karte h3 { font-size: 19px; line-height: 1.3; }
.blog-karte p:not(.blog-meta) { color: var(--tinte-weich); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-karte .blog-lesezeit { margin-top: auto; padding-top: 4px; }

.blog-seiten { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; font-size: 15px; color: var(--grau); }

/* ---------- Beitrag: Kopf ---------- */
.blog-fortschritt { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.blog-fortschritt span { display: block; height: 100%; width: 0; background: var(--gelb); transition: width .1s linear; }

.blog-artikel-kopf > .rahmen { padding-top: 48px; padding-bottom: 48px; max-width: 920px; }
.blog-zurueck { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--tinte-weich); text-decoration: none; }
.blog-zurueck:hover { color: var(--tinte); }
.blog-artikel-kopf .titel { font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); max-width: 20em; }
.blog-artikel-kopf .einleitung { max-width: 40em; }
.blog-autorzeile { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.blog-autorzeile .kuerzel { width: 48px; height: 48px; font-size: 15px; }
.blog-autorzeile div { display: flex; flex-direction: column; line-height: 1.4; }
.blog-autorzeile strong { font-weight: 600; }
.blog-autorzeile span { font-size: 14px; color: var(--grau); }

.blog-titelbild { max-width: 1160px; }
.blog-titelbild img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 16px; box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 30px 60px -20px rgba(16,24,40,.25); background: var(--flaeche); }

/* ---------- Beitrag: Lesebereich ---------- */
.blog-lese-raster { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 88px; }
.blog-lese-raster.ohne-inhalt { max-width: 808px; }
@media (min-width: 1040px) {
  .blog-lese-raster { grid-template-columns: 230px minmax(0, 760px); gap: 64px; justify-content: center; }
  .blog-lese-raster.ohne-inhalt { grid-template-columns: minmax(0, 760px); }
}
.blog-inhaltsverzeichnis { align-self: start; }
@media (min-width: 1040px) { .blog-inhaltsverzeichnis { position: sticky; top: 100px; } }
.blog-iv-titel { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--kennzeile); }
.blog-inhaltsverzeichnis ol { list-style: none; margin-top: 12px; border-left: 2px solid var(--linie); }
.blog-inhaltsverzeichnis a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: var(--tinte-weich); text-decoration: none; }
.blog-inhaltsverzeichnis a:hover { color: var(--tinte); }
.blog-inhaltsverzeichnis a.aktiv { color: var(--tinte); font-weight: 600; border-left-color: var(--gelb); }
.blog-teilen { margin-top: 24px; font: inherit; font-size: 14px; font-weight: 600; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.blog-teilen:hover { background: var(--papier); }
@media (max-width: 1039px) {
  .blog-inhaltsverzeichnis { background: var(--papier); border: 1px solid var(--linie); border-radius: 14px; padding: 20px 22px; }
  .blog-teilen { display: none; }
}

.blog-inhalt { font-size: 18px; line-height: 1.75; color: var(--tinte-weich); min-width: 0; }
.blog-inhalt > * + * { margin-top: 22px; }
.blog-inhalt strong { color: var(--tinte); font-weight: 600; }
.blog-inhalt h2 { font-size: clamp(24px, 2.6vw, 30px); color: var(--tinte); margin-top: 64px; scroll-margin-top: 96px; }
.blog-inhalt h2::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--gelb); margin-bottom: 18px; }
.blog-inhalt > h2:first-child { margin-top: 0; }
.blog-inhalt h3 { font-size: 20px; color: var(--tinte); margin-top: 36px; }
.blog-inhalt a { color: var(--tinte); font-weight: 600; }
.blog-inhalt ul, .blog-inhalt ol:not(.blog-schritte) { padding-left: 1.3em; }
.blog-inhalt li + li { margin-top: 8px; }
.blog-inhalt ul li::marker { color: var(--gelb); }

/* Bilder im Text */
.blog-bild img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); background: var(--flaeche); }
.blog-bild.hochformat { max-width: 420px; margin-left: auto; margin-right: auto; }
.blog-bild figcaption { margin-top: 10px; font-size: 14px; color: var(--grau); text-align: center; }
.blog-inhalt > .blog-bild { margin-top: 36px; margin-bottom: 14px; }
@media (min-width: 760px) {
  /* Hochformat-Bild neben die folgenden Schritte/Kacheln stellen */
  .blog-bild.hochformat { float: right; width: 300px; margin: 8px 0 24px 36px; }
  .blog-bild.hochformat + .blog-schritte { grid-template-columns: 1fr; }
  .blog-inhalt h2 { clear: both; }
}

/* Kacheln: Liste, deren Punkte fett beginnen */
.blog-kacheln { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.blog-inhalt > .blog-kacheln { margin-top: 28px; }
.blog-kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 22px 22px 20px; box-shadow: var(--schatten); position: relative; }
.blog-kachel::before { content: ""; display: block; width: 28px; height: 28px; border-radius: 8px; background: var(--gelb-hell) no-repeat center/14px; border: 1px solid var(--gelb-rand); margin-bottom: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23101828' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.blog-kachel h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.blog-kachel p { margin-top: 8px; font-size: 15px; line-height: 1.6; }

/* Schritte: nummerierte Liste, deren Punkte fett beginnen */
.blog-schritte { list-style: none; counter-reset: s; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; }
.blog-inhalt > .blog-schritte { margin-top: 32px; }
.blog-schritte li { counter-increment: s; border-top: 3px solid var(--gelb); padding-top: 16px; margin: 0; }
.blog-schritte li::before { content: "0" counter(s); display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--kennzeile); }
.blog-schritte h3 { margin-top: 6px; font-size: 17px; }
.blog-schritte p { margin-top: 6px; font-size: 15px; line-height: 1.6; }

/* Zeitleiste: "**Datum:** Text" */
.blog-zeitleiste { list-style: none; display: grid; gap: 10px; padding: 0 !important; }
.blog-zeitleiste li { display: flex; gap: 6px 20px; align-items: baseline; flex-wrap: wrap; background: var(--gelb-hell); border: 1px solid var(--gelb-rand); border-radius: 10px; padding: 12px 18px; margin: 0 !important; font-size: 16px; line-height: 1.5; }
.blog-zeitleiste strong { min-width: 13em; }

/* Hinweis: Zitat */
.blog-hinweis { background: var(--papier); border: 1px solid var(--linie); border-left: 4px solid var(--gelb); border-radius: 12px; padding: 22px 26px; }
.blog-inhalt > .blog-hinweis { margin-top: 32px; margin-bottom: 8px; }
.blog-hinweis-titel { display: block; font-size: 17px; margin-bottom: 6px; }
.blog-hinweis p { font-size: 16px; line-height: 1.65; }

.blog-artikel-fuss { clear: both; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--linie); font-size: 15px; }

.blog-aufruf-block { padding-top: 0; }
.papier + .blog-aufruf-block { padding-top: 88px; }

.blog-vorschau-hinweis { background: var(--gelb-hell); border-bottom: 1px solid var(--gelb-rand); color: var(--tinte); padding: 12px 0; font-size: 15px; }
.blog-vorschau-hinweis a { font-weight: 600; margin-left: 8px; }

/* ---------- Redaktion ---------- */
.red-schmal { max-width: 460px; }
.red-zurueck { margin: 0 0 16px; }
.red-zurueck a { color: var(--tinte-weich); text-decoration: none; font-size: 15px; }
.red-kopfzeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.red-kopfzeile h1 { margin: 0; }
.red-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }

.red-meldung { background: #ECFDF3; border: 1px solid #ABEFC6; color: #085D3A; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.red-meldung.fehler { background: #FEF3F2; border-color: #FECDCA; color: #912018; }

.red-formular { display: grid; gap: 18px; }
.red-formular label, .red-label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--tinte); }
.red-formular small { font-weight: 400; color: var(--grau); font-size: 13px; }
.red-formular input:not([type=checkbox]):not([type=file]), .red-formular textarea, .red-formular select {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--tinte); background: #fff;
  border: 1px solid var(--linie); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.red-formular textarea { resize: vertical; line-height: 1.6; }
.red-formular #text { font-size: 16px; min-height: 420px; border-top-left-radius: 0; border-top-right-radius: 0; }
.red-formular input:focus, .red-formular textarea:focus, .red-formular select:focus { outline: 2px solid var(--gelb); outline-offset: 1px; border-color: var(--gelb); }
.red-formular button.knopf { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }

.red-editor { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 28px; }
.red-haupt { display: grid; gap: 18px; min-width: 0; }
.red-seite { display: grid; gap: 16px; position: sticky; top: 90px; }
.red-kasten { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 18px; display: grid; gap: 14px; box-shadow: var(--schatten); }
.red-kasten .red-knoepfe .knopf { flex: 1; justify-content: center; }
.red-titelbild { width: 100%; border-radius: 8px; display: block; }
.red-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }

.red-text-feld { display: grid; gap: 6px; }
.red-text-kopf { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.red-reiter { display: inline-flex; background: var(--papier); border: 1px solid var(--linie); border-radius: 8px; padding: 3px; }
.red-reiter button { font: inherit; font-size: 14px; font-weight: 600; color: var(--tinte-weich); background: none; border: 0; border-radius: 6px; padding: 5px 14px; cursor: pointer; }
.red-reiter button[aria-pressed="true"] { background: #fff; color: var(--tinte); box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.red-werkzeuge { display: flex; flex-wrap: wrap; gap: 4px; background: var(--papier); border: 1px solid var(--linie); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px; margin-bottom: -6px; }
.red-werkzeuge button, .red-bild-knopf {
  font: inherit; font-size: 14px !important; font-weight: 500 !important; color: var(--tinte) !important;
  background: #fff; border: 1px solid var(--linie); border-radius: 6px; padding: 5px 10px; cursor: pointer; display: inline-block !important;
}
.red-werkzeuge button:hover, .red-bild-knopf:hover { border-color: var(--gelb); }
.red-bild-knopf.laedt { opacity: .5; pointer-events: none; }
.red-bild-knopf.laedt::after { content: ' …'; }
.red-vorschau { border: 1px solid var(--linie); border-radius: 8px; background: #fff; padding: 28px 32px; min-height: 420px; }
.red-vorschau .blog-inhalt { font-size: 17px; }
.red-hilfe { font-size: 14px; color: var(--grau); }
.red-hilfe summary { cursor: pointer; }
.red-hilfe ul { margin: 8px 0 0; padding-left: 1.2em; line-height: 1.8; }
.red-hilfe code { background: var(--papier); padding: 1px 5px; border-radius: 4px; color: var(--tinte); }

.red-tabelle-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten); }
.red-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.red-tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grau); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.red-tabelle td { padding: 14px 16px; border-bottom: 1px solid var(--linie); vertical-align: middle; color: var(--tinte-weich); }
.red-tabelle tr:last-child td { border-bottom: 0; }
.red-titel { font-weight: 600; color: var(--tinte); text-decoration: none; }
.red-titel:hover { text-decoration: underline; }
.red-tabelle small { display: block; color: var(--grau); font-size: 13px; margin-top: 2px; }
.red-aktionen { white-space: nowrap; text-align: right; }
.red-aktionen a { color: var(--tinte); font-weight: 500; margin-left: 14px; }
.red-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.red-status.live { background: #ECFDF3; color: #067647; }
.red-status.geplant { background: var(--gelb-hell); color: #93600A; }
.red-status.entwurf { background: var(--papier); color: var(--tinte-weich); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.red-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 15px; }
.red-fuss a { color: var(--tinte-weich); }
.red-fuss form { margin: 0; }
.red-link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--tinte-weich); text-decoration: underline; cursor: pointer; }
.red-link-knopf.gefahr { color: #B42318; }
.red-loeschen { margin-top: 28px; }

@media (max-width: 860px) {
  .red-editor { grid-template-columns: 1fr; }
  .red-seite { position: static; }
  .red-aktionen { text-align: left; }
  .red-aktionen a { margin: 0 14px 0 0; }
  .red-vorschau { padding: 20px; }
}
@media (max-width: 760px) {
  .blog-buehne > .rahmen { padding-top: 48px; padding-bottom: 44px; }
  .blog-artikel-kopf > .rahmen { padding-top: 32px; padding-bottom: 36px; }
  .blog-haupt-text { padding: 24px; }
  .blog-inhalt { font-size: 17px; }
  .blog-zeitleiste strong { min-width: 0; }
  .blog-lese-raster { padding-top: 40px; padding-bottom: 64px; }
}
