/* =========================================================
   Ratgeber „Brandschutz kompakt“ – Bausteine
   Grundlage ist style.css der Stadtseiten (Kopf, Band, Fuß, Knöpfe, Schrift).
   Hier nur, was es nur im Ratgeber gibt: Übersicht, Karten, Artikel.
   ========================================================= */

:root { --tint: #FDF1EE; --stadt-ton: var(--rot); }

/* ---------- Übersicht ---------- */
/* Hauptüberschriften im Rot-Orange der Hauptseite */
.r-intro h1, .post-head h1 { color: var(--rot); }
.r-intro { padding-block: 48px 8px; display: grid; gap: 14px; }
.r-intro p { font-size: 1.15rem; color: var(--grau); max-width: 62ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 20px 28px; }
.filters button {
  font: inherit; font-size: .95rem; background: var(--papier); color: var(--schwarz);
  border: 1px solid var(--schwarz); border-radius: 999px; padding: 6px 15px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--schwarz); color: #fff; }

.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--linie);
  background: var(--papier); margin-bottom: 24px; text-decoration: none; color: inherit;
}
.featured .thumb { aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--linie); }
.featured .body { padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.featured h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 72px; }
.card {
  border: 1px solid var(--linie); background: var(--papier); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; min-width: 0;
}
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.25rem; line-height: 1.25; }
.card p, .featured p { color: var(--schwarz); font-size: 1rem; }
.card:hover, .featured:hover { border-color: var(--rot); }
.card:hover h3, .featured:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card .more { margin-top: auto; padding-top: 6px; }
.thumb { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--linie); background: var(--flaeche); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.tag { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--rot); font-weight: 700; }
.meta { font-size: .85rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.more .btn-text { border-bottom-width: 2px; }

/* ---------- Artikel ---------- */
.crumbs { font-size: .85rem; color: var(--grau); padding-block: 28px 20px; }
.crumbs a { color: var(--grau); }
.post-head { max-width: 820px; display: grid; gap: 14px; padding-bottom: 28px; }
.post-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height: 1.18; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--grau); }

.foto-figur { margin: 0 0 40px; }
.foto-figur img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; }
.plan-figur { margin: 0 0 40px; display: grid; gap: 8px; }
.plan-figur a { display: block; background: #fff; border: 1px solid var(--linie); padding: 10px; box-shadow: 0 10px 30px rgba(29,29,27,.10); }
.plan-figur a:hover { border-color: var(--rot); }
.plan-figur img { display: block; width: 100%; height: auto; }
.plan-figur figcaption { font-size: .85rem; color: var(--grau); }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-bottom: 56px; align-items: start; }
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: 1.6rem; line-height: 1.25; margin: 44px 0 12px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.7; }
.prose p { margin: 0 0 14px; max-width: none; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.short { background: var(--tint); border-left: 4px solid var(--rot); padding: 18px 22px; margin-bottom: 8px; }
.short .eyebrow { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rot); font-weight: 700; }
.short p { margin: 6px 0 0; }
.hint { border: 1px solid var(--linie); background: var(--flaeche); padding: 14px 18px; margin: 16px 0; }
.hint p { font-size: 1rem; margin: 0; }
.table-scroll { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; line-height: 1.5; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--grau); border-bottom: 1px solid var(--schwarz); }
td:first-child { font-weight: 700; }
.checklist { border: 1px solid var(--schwarz); background: var(--flaeche); padding: 20px 24px; margin: 28px 0; }
.checklist h3 { margin-bottom: 10px; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border: 2px solid var(--rot); border-radius: 3px; }
.note { font-size: .9rem; color: var(--grau); border-top: 1px solid var(--linie); padding-top: 16px; margin-top: 40px; }
.note p { font-size: .9rem; margin: 0 0 8px; line-height: 1.6; }
.quellen-titel { font-size: 1.05rem; color: var(--schwarz); margin: 18px 0 8px; }
.quellen { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .quellen li { font-size: .9rem; line-height: 1.5; color: var(--grau); margin: 0; }

aside.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 184px; }
.box { border: 1px solid var(--linie); padding: 20px; background: var(--papier); }
.box h3 { font-size: 1.1rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--rot); }
.cta { background: var(--flaeche); }
.cta p { margin: 0 0 14px; font-size: .95rem; }
.cta .btn { font-size: .95rem; padding: .7em 1.2em; }
.staedte-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.staedte-box a { text-decoration: none; border-bottom: 1px solid var(--linie); }
.staedte-box a:hover { color: var(--rot); border-bottom-color: var(--rot); }
/* Verfasser unter den Quellen; ein Foto kann später als <img> vor dem Text ergänzt werden */
.verfasser { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.verfasser .quellen-titel { flex-basis: 100%; }
.verfasser img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.prose .verfasser p { margin: 0; font-size: .9rem; line-height: 1.45; }
.related { border-top: 1px solid var(--linie); padding-top: 40px; padding-bottom: 72px; }
.related h2 { font-size: 1.6rem; margin-bottom: 20px; }

@media (max-width: 1100px) { aside.side { top: 124px; } }
@media (max-width: 900px) {
  .featured, .post-layout { grid-template-columns: 1fr; }
  .featured .thumb { border-right: 0; border-bottom: 1px solid var(--linie); min-height: 200px; }
  aside.side { position: static; }
  /* Inhaltsverzeichnis nur am Bildschirm; am Handy stünde es erst unter dem Artikel */
  .box.toc { display: none; }
  .post-layout { gap: 32px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .featured .body { padding: 22px; }
  .foto-figur img { aspect-ratio: 16 / 10; }
}
