/* Vorlagen & Ratgeber (Bob 03.10.26, SEO/GEO). Geladen nur auf diesen
   Seiten; Beispielprotokoll (vl-dok), FAQ, Karten und Aufruf kommen aus
   stil.css. */
.vl-kopf { text-align: left; padding-bottom: 40px; }
.vl-kopf h1 { max-width: 26ch; overflow-wrap: break-word; }
/* Lange Komposita (Eigentümerversammlung) trennen, wo es eng wird. */
.branche-karte h3 { hyphens: auto; overflow-wrap: break-word; }
.vl-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .vl-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vl-kopf .einleitung { margin-inline: 0; max-width: 62ch; }
.vl-kopf .hero__knoepfe { justify-content: flex-start; }
.krumen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: .86rem; color: var(--text-3); }
.krumen a { color: var(--text-2); text-decoration: none; }
.krumen a:hover { color: var(--akzent); }
.vl-stand { margin: 18px 0 0; font-size: .84rem; color: var(--text-3); }

.vl-inhalt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: vlp; }
.vl-inhalt li { counter-increment: vlp; display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche); }
.vl-inhalt li::before { content: counter(vlp, decimal-leading-zero); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--akzent); line-height: 1; margin-bottom: 4px; }
.vl-inhalt b { font-size: 1.02rem; }
.vl-inhalt span { color: var(--text-2); font-size: .94rem; line-height: 1.5; }

.vl-vorlage { border-radius: var(--rund); border: 1px solid var(--rand); background: var(--grund); box-shadow: var(--schatten); overflow: hidden; }
.vl-vorlage__leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--rand); background: var(--flaeche); }
.vl-vorlage__name { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.vl-vorlage__name svg { width: 16px; height: 16px; color: var(--akzent); flex: none; }
.vl-vorlage__knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-vorlage { background: var(--flaeche-2); }
.vl-vorlage__knoepfe .knopf svg { width: 15px; height: 15px; }

/* Das Blatt: bewusst immer hell, wie Papier — auch im dunklen Modus. */
.vl-blatt { --tinte: #18223d; --tinte-2: #4c556b; --linie: #b5bdcc; --blau: #1a6fe0; --zeile: 32px;
  max-width: 800px; margin: 32px auto; padding: 52px 60px 56px; background: #fff; color: var(--tinte); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(18, 27, 53, .08), 0 18px 44px -24px rgba(18, 27, 53, .35); font-size: .96rem; line-height: 1.5; }
.vl-blatt__titel { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 2px solid var(--blau); font-size: 1.55rem; letter-spacing: -.01em; color: var(--tinte); }
.vl-blatt section { margin-top: 26px; break-inside: avoid; }
.vl-blatt h4 { margin: 0 0 6px; font-size: 1.02rem; color: var(--blau); }
.vl-blatt__hinweis { margin: 0 0 4px; font-size: .86rem; font-style: italic; color: #7b8296; }
.vl-blatt__label { margin: 10px 0 0; font-weight: 600; font-size: .9rem; }
.vl-blatt__text { margin: 6px 0 8px; color: var(--tinte-2); }
.vl-felder { display: grid; gap: 4px 0; margin: 0 0 6px; }
.vl-felder div { display: grid; grid-template-columns: 190px 1fr; align-items: end; min-height: var(--zeile); }
.vl-felder dt { font-weight: 600; font-size: .9rem; padding-bottom: 4px; }
.vl-felder dd { margin: 0; min-height: var(--zeile); border-bottom: 1px solid var(--linie); display: flex; align-items: flex-end; padding-bottom: 4px; }
.vl-felder dd span { font-size: .82rem; font-style: italic; color: #9aa3b5; }
.vl-linien { height: calc(var(--n) * var(--zeile)); background: repeating-linear-gradient(transparent 0 calc(var(--zeile) - 1px), var(--linie) calc(var(--zeile) - 1px) var(--zeile)); }
.vl-blatt__liste { margin: 0; padding-left: 26px; }
.vl-blatt__liste li { height: var(--zeile); border-bottom: 1px solid var(--linie); }
.vl-blatt__liste li::marker { color: var(--tinte-2); font-size: .9rem; }
.vl-blatt__tabelle { overflow-x: auto; margin: 8px 0 4px; }
.vl-blatt table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.vl-blatt th { text-align: left; font-weight: 600; padding: 7px 10px; background: #eef4fb; border: 1px solid #c7cfdc; }
.vl-blatt td { height: var(--zeile); border: 1px solid #c7cfdc; }
.vl-ankreuzen { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 8px; }
.vl-ankreuzen li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.vl-ankreuzen li::before { content: ""; width: 15px; height: 15px; border: 1.5px solid var(--tinte-2); border-radius: 3px; flex: none; }
.vl-ankreuzen.mit-linie li::after { content: ""; flex: 1; max-width: 260px; height: 20px; border-bottom: 1px solid var(--linie); }
.vl-unterschriften { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin: 64px 0 22px; }
.vl-unterschriften div { padding-top: 6px; border-top: 1px solid var(--tinte); font-size: .8rem; color: var(--tinte-2); }

/* „Drucken“: nur das Blatt (seite.js setzt die Klasse für die Dauer des Drucks). */
@media print {
  html.druckt-vorlage body > :not(main), html.druckt-vorlage main > :not(#vorlage),
  html.druckt-vorlage #vorlage .abschnitt__kopf, html.druckt-vorlage .vl-vorlage__leiste { display: none !important; }
  html.druckt-vorlage, html.druckt-vorlage body, html.druckt-vorlage #vorlage, html.druckt-vorlage .vl-vorlage { background: #fff !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; }
  html.druckt-vorlage #vorlage::before, html.druckt-vorlage #vorlage::after { display: none !important; }
  html.druckt-vorlage .huelle { max-width: none; padding: 0; }
  html.druckt-vorlage .vl-blatt { box-shadow: none; margin: 0; padding: 0; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.druckt-vorlage .auftritt { opacity: 1 !important; transform: none !important; }
}
@page { margin: 16mm; }

.vl-dok--beispiel { max-width: 920px; }

.ratgeber { max-width: 760px; display: grid; gap: 40px; }
.ratgeber__teil h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.ratgeber__teil p { color: var(--text-2); font-size: 1.04rem; line-height: 1.7; margin: 0 0 14px; }
.ratgeber__teil a { color: var(--akzent); }
.ratgeber__liste { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.ratgeber__liste strong { color: var(--text); }
.ratgeber__liste--haken { list-style: none; padding: 18px 22px; border-radius: var(--rund); background: var(--flaeche); border: 1px solid var(--rand); }
.ratgeber__liste--haken li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.ratgeber__liste--haken li::before { content: "✓"; color: var(--gruen); font-weight: 800; }

.vl-juunote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--rund); background: radial-gradient(120% 90% at 20% 10%, #f2f8ff 0%, #eef4fb 60%, #f6f9fc 100%); border: 1px solid var(--rand); }
.vl-juunote h2 { margin: 10px 0 12px; }
.vl-juunote p { color: var(--text-2); margin: 0 0 16px; }
.vl-juunote img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; }
.vl-juunote__punkte { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: .93rem; }
.vl-juunote__punkte li { display: inline-flex; align-items: center; gap: 6px; }
.vl-juunote__punkte svg { width: 16px; height: 16px; color: var(--gruen); }
.vl-hinweis { margin: 36px 0 0; font-size: .84rem; color: var(--text-3); max-width: 760px; }

@media (max-width: 900px) {
  .vl-inhalt { grid-template-columns: 1fr 1fr; }
  .vl-juunote { grid-template-columns: 1fr; }
  .vl-juunote img { max-height: 220px; }
}
@media (max-width: 600px) {
  .vl-kopf h1, .ratgeber__teil h2, .abschnitt__kopf h2 { hyphens: auto; }
  .vl-raster { grid-template-columns: 1fr; }
  .vl-inhalt { grid-template-columns: 1fr; }
  .vl-blatt { margin: 0; padding: 26px 18px 30px; border-radius: 0; font-size: .92rem; }
  .vl-blatt__titel { font-size: 1.3rem; }
  .vl-felder div { grid-template-columns: 112px 1fr; }
  .vl-felder dt { font-size: .84rem; }
  .vl-blatt table { min-width: 420px; }
  .vl-vorlage__knoepfe { width: 100%; }
  .vl-vorlage__knoepfe .knopf { flex: 1; justify-content: center; }
}

/* ---------- Vergleiche (Bob 03.10.26) ---------- */
.vg-huelle { overflow-x: auto; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--grund); box-shadow: var(--schatten); }
.vg-tabelle { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.vg-tabelle th, .vg-tabelle td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rand); line-height: 1.45; }
.vg-tabelle thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--flaeche); }
.vg-tabelle tbody th { font-weight: 600; color: var(--text); width: 26%; }
.vg-tabelle td { color: var(--text-2); }
.vg-tabelle tr:last-child th, .vg-tabelle tr:last-child td { border-bottom: 0; }
.vg-tabelle .vg-wir { background: rgba(26, 111, 224, .05); color: var(--text); font-weight: 550; }
.vg-tabelle thead .vg-wir { color: var(--akzent); }
.vg-tabelle sup a { color: var(--akzent); text-decoration: none; font-size: .72rem; margin-left: 2px; }
.vg-tabelle--matrix { min-width: 860px; font-size: .88rem; }
.vg-tabelle--matrix tbody th { width: 18%; }
.vg-ja { color: var(--gruen); font-weight: 800; margin-right: 4px; }
.vg-nein { color: var(--rot); font-weight: 800; margin-right: 4px; }
.vg-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vg-wahl__spalte { padding: 26px 28px; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche); }
.vg-wahl__spalte h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 14px; }
.vg-wahl__spalte--wir { border-color: rgba(26, 111, 224, .35); background: radial-gradient(120% 90% at 20% 10%, #f2f8ff 0%, #eef4fb 70%); }
.vg-quellen__titel { margin: 40px 0 10px; font-size: 1.05rem; font-family: var(--schrift); }
.vg-quellen { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: .86rem; color: var(--text-3); }
.vg-quellen a { color: var(--text-2); overflow-wrap: anywhere; }
.vg-quellen li:target { background: var(--akzent-hell); border-radius: 4px; }
@media (max-width: 800px) { .vg-wahl { grid-template-columns: 1fr; } }

/* ---------- Neue Funktionen & Fixes (Bob 03.10.26) ---------- */
.upd-version { max-width: 1060px; }
.upd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.upd-filter button { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rand-hell); background: var(--grund); color: var(--text-2); cursor: pointer; }
.upd-filter button:hover { color: var(--text); border-color: var(--text-3); }
.upd-filter button.ist-aktiv { background: var(--text); border-color: var(--text); color: var(--grund); }
.upd-version { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 40px; padding: 34px 0; border-top: 1px solid var(--rand); }
.upd-version[hidden] { display: none; }
.upd-version__kopf { position: sticky; top: 96px; align-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.upd-version__kopf h2 { margin: 0; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.upd-version__kopf time { flex-basis: 100%; font-size: .88rem; color: var(--text-3); }
.upd-aktuell { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); }
.upd-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.upd-liste li { padding: 18px 20px; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche); }
.upd-liste li[hidden] { display: none; }
.upd-liste h3 { margin: 8px 0 4px; font-size: 1.05rem; line-height: 1.35; }
.upd-liste p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.upd-marken { display: flex; flex-wrap: wrap; gap: 6px; }
.upd-art, .upd-system { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.upd-art--neu { background: var(--akzent-hell); color: var(--akzent); }
.upd-art--verbessert { background: color-mix(in srgb, var(--gruen) 14%, transparent); color: var(--gruen); }
.upd-art--behoben { background: color-mix(in srgb, #c98a12 16%, transparent); color: #a36d00; }
.upd-system { border: 1px solid var(--rand-hell); color: var(--text-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .upd-art--behoben { color: #f0b54a; } }
:root[data-theme="dark"] .upd-art--behoben { color: #f0b54a; }
@media (max-width: 760px) {
  .upd-version { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .upd-version__kopf { position: static; }
  .upd-version__kopf h2 { font-size: 1.6rem; }
  .upd-version__kopf time { flex-basis: auto; }
  .upd-liste li { padding: 16px; }
}

/* ---------- Übersicht: Karten mit Blatt-Vorschau (Bob 04.10.26) ---------- */
.vl-karte { display: flex; flex-direction: column; border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche);
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color .25s, box-shadow .25s, transform .25s; }
.vl-karte:hover { border-color: var(--akzent); box-shadow: var(--schatten); transform: translateY(-3px); }
.vl-karte__blatt { position: relative; height: 200px; overflow: hidden; padding: 22px 26px 0; background: var(--papier-2); }
.vl-karte__blatt::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, var(--papier-2)); }
/* Das echte Blatt, verkleinert: Breite so gesetzt, dass es nach dem Skalieren die Karte füllt. */
.vl-karte__blatt .vl-blatt { width: 250%; max-width: none; margin: 0; padding: 44px 52px; transform: scale(.4); transform-origin: top left;
  pointer-events: none; transition: transform .35s ease; }
.vl-karte:hover .vl-blatt { transform: scale(.4) translateY(-18px); }
.vl-karte__text { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 22px 22px; }
.vl-karte__text h3 { margin: 4px 0 0; }
.vl-karte__text p { margin: 0 0 6px; color: var(--text-2); font-size: .94rem; }
.vl-karte__text .branche-karte__mehr { margin-top: auto; }
.vl-karte__marke { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px;
  background: var(--akzent-hell); color: var(--akzent); }
.vl-ratgeberkarte { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 0; max-width: 980px;
  border-radius: var(--rund); border: 1px solid var(--rand); background: var(--flaeche); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s; }
.vl-ratgeberkarte:hover { border-color: var(--akzent); box-shadow: var(--schatten); transform: translateY(-3px); }
.vl-ratgeberkarte img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.vl-ratgeberkarte > div { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 4vw, 40px); }
.vl-ratgeberkarte h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.vl-ratgeberkarte p { margin: 0 0 8px; color: var(--text-2); }
@media (max-width: 700px) {
  .vl-ratgeberkarte { grid-template-columns: 1fr; }
  .vl-ratgeberkarte img { min-height: 0; aspect-ratio: 3 / 2; }
}
.vl-karte--fehlt { border-style: dashed; background: transparent; }
.vl-karte--fehlt .vl-karte__text { justify-content: center; padding: 30px 26px; }
