/*
Theme Name: KäferLive
Theme URI: https://kaeferlive.de
Author: Käfer IT Systeme e.K. – Dipl.-Ing. Thomas Käfer, M.Sc.
Description: Block-Theme für kaeferlive.de – vier Felder, 100 % Schwarz, Schrift Geist. Inhalte bleiben normale WordPress-Blöcke; Farben, Schrift und Abstände stehen in theme.json.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: Proprietär
Text Domain: kaeferlive
*/

/* ---------- Feldfarbe: setzt das Plugin als Body-Klasse (feld-bp, feld-sv, feld-f2m, feld-art) ---------- */
:root { --feld: var(--wp--preset--color--leise); --feld-text: var(--wp--preset--color--text); }
.feld-bp  { --feld: #8C6CD0; --feld-text: #B9A3EC; }
.feld-sv  { --feld: #D8ECF8; --feld-text: #D8ECF8; }
.feld-f2m { --feld: #FF0000; --feld-text: #FF6B6B; }
.feld-art { --feld: #F0D27A; --feld-text: #F0D27A; }

body { -webkit-font-smoothing: antialiased; }
::selection { background: #8C6CD0; color: #fff; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Logo: Site-Titel mit den vier Quadraten (ein Bild, damit sie sicher auf einer Linie stehen) ---------- */
.wp-block-site-title { white-space: nowrap; }
.wp-block-site-title a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wp--preset--color--text); font-weight: 600; letter-spacing: -0.02em; }
.wp-block-site-title a::before {
  content: ""; flex: none; width: 60px; height: 12px; transform: translateY(-1px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12' shape-rendering='crispEdges'%3E%3Crect width='12' height='12' rx='2' fill='%238C6CD0'/%3E%3Crect x='16' width='12' height='12' rx='2' fill='%23D8ECF8'/%3E%3Crect x='32' width='12' height='12' rx='2' fill='%23FF0000'/%3E%3Crect x='48' width='12' height='12' rx='2' fill='%23F0D27A'/%3E%3C/svg%3E") no-repeat 0 0 / 60px 12px;
}

/* ---------- Kopfzeile ---------- */
.kl-kopf { border-bottom: 1px solid #1F2125; }
.kl-kopf .wp-block-navigation__container { gap: 2px; }
.kl-kopf .wp-block-navigation-item__content { padding: 12px 9px; color: #E4E6EA; font-weight: 500; text-decoration: none; }
.kl-kopf .wp-block-navigation-item__content:hover,
.kl-kopf .current-menu-item > .wp-block-navigation-item__content,
.kl-kopf .current-menu-ancestor > .wp-block-navigation-item__content { color: #fff; }
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container {
  background: #0F1012; border: 1px solid #25272B; border-top: 2px solid var(--feld); border-radius: 0 0 12px 12px; padding: 8px; min-width: 300px;
}
.kl-kopf .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 14px; border-radius: 6px; }
.kl-kopf .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #17181B; }
.wp-block-navigation__responsive-container.is-menu-open { background: #000 !important; color: #EDEEF0 !important; padding: 24px clamp(16px,4vw,40px); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; padding: 10px 0; }

/* Feld-Quadrat vor Menüpunkten, Links und Beschriftungen: Klasse "feld-bp" usw. am Block */
.wp-block-navigation-item.feld-bp > .wp-block-navigation-item__content::before,
.wp-block-navigation-item.feld-sv > .wp-block-navigation-item__content::before,
.wp-block-navigation-item.feld-f2m > .wp-block-navigation-item__content::before,
.wp-block-navigation-item.feld-art > .wp-block-navigation-item__content::before,
.kl-feldmarke::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--feld);
  margin-right: 8px; vertical-align: 0.05em; flex: none;
}
.wp-block-navigation-item.feld-bp, .wp-block-navigation-item.feld-sv, .wp-block-navigation-item.feld-f2m, .wp-block-navigation-item.feld-art { --feld-nav: var(--feld); }

/* Notfall-Knopf (Klasse kl-notfall am Button): Warnsymbol, nicht nur Farbe */
.kl-notfall .wp-block-button__link::before {
  content: ""; display: inline-block; width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Knöpfe ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text); border: 1px solid #3A3D44; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #6E737C; color: #fff; }
.wp-block-button__link { min-height: 46px; display: inline-flex; align-items: center; }

/* ---------- Blockstile (in functions.php registriert) ---------- */
.is-style-ueberzeile { font-family: var(--wp--preset--font-family--geist-mono); font-size: 0.75rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--leise); }
.is-style-karte { background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; padding: clamp(20px, 3vw, 32px); }
.is-style-karte-feld { background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 3px 0 var(--feld); }
.is-style-band { background: #08090A; border-top: 1px solid #17181B; border-bottom: 1px solid #17181B; }
.is-style-pfeilliste { list-style: none; padding-left: 0; margin: 0; }
.is-style-pfeilliste li { border-top: 1px solid #1A1C1F; }
.is-style-pfeilliste li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: #D4D7DC; text-decoration: none; }
.is-style-pfeilliste li a::after { content: "→"; color: var(--feld-text); }
.is-style-pfeilliste li a:hover { color: #fff; }
.is-style-punkte { list-style: none; padding-left: 0; }
.is-style-punkte li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid #17181B; }
.is-style-punkte li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--feld); margin-top: 0.6em; flex: none; }

/* Feld-Akzent oben an Abschnitten (Gruppe mit Klasse kl-akzent) */
.kl-akzent { border-top: 4px solid var(--feld); }
.kl-quadrat-gross { width: 22px; height: 22px; border-radius: 5px; background: var(--feld); display: inline-block; }

/* Vier große Feldquadrate auf der Startseite (Gruppe .kl-felder-quadrate mit Bildern/Links) */
.kl-felder-quadrate { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kl-felder-quadrate > * { margin: 0 !important; }
.kl-felder-quadrate a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; font-size: 14px; line-height: 1.35; font-weight: 500; }
.kl-felder-quadrate a::before { content: ""; aspect-ratio: 1; border-radius: 14px; background: var(--feld); display: block; }

/* ---------- Beiträge: Karten im Abfrage-Loop ---------- */
.kl-karten .wp-block-post { background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.kl-karten .wp-block-post > * { margin: 0; }
.kl-karten .wp-block-post-featured-image { aspect-ratio: 16/9; border-bottom: 3px solid var(--feld); }
.kl-karten .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.kl-karten .kl-karte-inhalt { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.kl-karten .wp-block-post-title a { text-decoration: none; }
.kl-karten .wp-block-post-title a:hover { color: #fff; }
.kl-karten .wp-block-post-excerpt { color: var(--wp--preset--color--leise); font-size: 0.9375rem; }

/* Kategorien (= Felder) mit Quadrat, Schlagworte als Pillen */
.wp-block-post-terms.taxonomy-category a { text-decoration: none; color: #B4B9C2; font-size: 0.8125rem; }
.wp-block-post-terms.taxonomy-category a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: #6E737C; }
.wp-block-post-terms.taxonomy-category a[href*="beratung-projekte"]::before { background: #8C6CD0; }
.wp-block-post-terms.taxonomy-category a[href*="gutachten-forensik"]::before { background: #D8ECF8; }
.wp-block-post-terms.taxonomy-category a[href*="force2motion"]::before { background: #FF0000; }
.wp-block-post-terms.taxonomy-category a[href*="airtis-art"]::before { background: #F0D27A; }
.wp-block-post-terms.taxonomy-post_tag { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-block-post-terms.taxonomy-post_tag .wp-block-post-terms__separator { display: none; }
.wp-block-post-terms.taxonomy-post_tag a { display: inline-flex; padding: 5px 10px; border: 1px solid #2A2D33; border-radius: 999px; font-size: 0.78rem; color: #C9CDD3; text-decoration: none; line-height: 1; }
.wp-block-post-terms.taxonomy-post_tag a:hover { border-color: #6E737C; color: #fff; }

/* Kategorie-Liste als Filter (Wissen) */
.kl-filter.wp-block-categories, .kl-filter .wp-block-categories { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.kl-filter li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #2A2D33; border-radius: 999px; text-decoration: none; color: #C9CDD3; font-size: 0.875rem; }
.kl-filter li.current-cat a { border-color: #EDEEF0; color: #fff; font-weight: 600; }
.kl-filter li a[href*="beratung-projekte"]::before, .kl-filter li a[href*="gutachten-forensik"]::before,
.kl-filter li a[href*="force2motion"]::before, .kl-filter li a[href*="airtis-art"]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.kl-filter li a[href*="beratung-projekte"]::before { background: #8C6CD0; }
.kl-filter li a[href*="gutachten-forensik"]::before { background: #D8ECF8; }
.kl-filter li a[href*="force2motion"]::before { background: #FF0000; }
.kl-filter li a[href*="airtis-art"]::before { background: #F0D27A; }

/* ---------- Beitragsinhalt ---------- */
.wp-block-post-content a:not(.wp-element-button) { color: var(--feld-text); }
.wp-block-post-content a:not([class]):hover { color: #fff; }  /* nur Textlinks; Knöpfe behalten ihre Farben (14./15.11.: Text verschwand beim Überfahren) */
.wp-block-post-content :is(.is-style-pfeilliste, .kl-leistung h3, .kl-chip, .kl-felder-quadrate, .wp-block-post-title) a { color: var(--wp--preset--color--text); }
.wp-block-post-content img { border-radius: 10px; height: auto; }
.wp-block-post-content figure.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-post-content figure.wp-block-table td, .wp-block-post-content figure.wp-block-table th { border: 1px solid #25272B; padding: 8px 12px; }
.wp-block-file { background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wp-block-file .wp-block-file__button { background: var(--wp--preset--color--text); color: #08090A; border-radius: 8px; padding: 8px 14px; }

/* Brotkrumen (core/breadcrumbs gibt es nicht in allen Versionen – hier für das Muster) */
.kl-krumen { font-size: 0.84rem; color: #6E737C; }
.kl-krumen a { color: #9BA1AB; text-decoration: none; }

/* Fußzeile */
.kl-fuss { border-top: 1px solid #1F2125; background: #050506; color: #B4B9C2; font-size: 0.875rem; }
.kl-fuss a { color: #C9CDD3; text-decoration: none; }
.kl-fuss a:hover { color: #fff; }
.kl-fuss .is-style-pfeilliste li { border: 0; }
.kl-fuss .is-style-pfeilliste li a { justify-content: flex-start; min-height: 36px; }
.kl-fuss .is-style-pfeilliste li a::after { content: none; }

/* Barrierefreiheit */
.skip-link.screen-reader-text:focus { background: #fff; color: #000; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (max-width: 781px) { .kl-felder-quadrate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Bausteine der gestalteten Seiten ---------- */
.kl-abschnitt { padding-block: var(--wp--preset--spacing--60); }
.kl-abschnitt + .kl-abschnitt { padding-top: 0; }
.kl-abschnitt-titel { padding-top: var(--wp--preset--spacing--50); }
.kl-feldkopf { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60); }
.kl-kopf-raster { align-items: end; }
.kl-start-kopf .kl-kopf-raster { align-items: center; }
.kl-lead { color: #C9CDD3; max-width: 36em; }
.kl-leise { color: var(--wp--preset--color--leise); }
.kl-klein { font-size: 0.84rem; }
.kl-zahl strong { display: block; font-size: 2.1rem; letter-spacing: -0.03em; line-height: 1.1; }
.kl-zahl a { text-decoration: none; font-size: 1.4rem; font-weight: 600; }
.kl-zahl-gross strong { font-size: clamp(3rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; margin-right: 8px; }
.kl-zahl-gross { color: var(--wp--preset--color--leise); }
.kl-quadrat-gross { width: 22px; height: 22px; border-radius: 5px; background: var(--feld); margin: 0 !important; flex: none; }
.kl-feldzeile { align-items: center; }
.kl-feldmarke:empty { margin: 0; }
.is-style-karte-feld > .wp-block-group:first-child p.kl-feldmarke { margin: 0; }
.kl-leistung h3 a, .kl-karten h3 a { text-decoration: none; }
.kl-leistung h3 a::after { content: " →"; color: var(--feld-text); }
.kl-leistung:hover { border-color: #3A3D44; }
.kl-platzhalter { min-height: 280px; display: flex !important; align-items: center; justify-content: center; border: 1px solid #1F2125; border-radius: 14px;
  background: repeating-linear-gradient(135deg, #121316 0 14px, #0E0F11 14px 28px); color: #6E737C; font-family: var(--wp--preset--font-family--geist-mono); font-size: 0.8rem; }
.kl-cover { aspect-ratio: 3 / 4; min-height: 0; border-bottom: 3px solid var(--feld); }
.kl-portrait { aspect-ratio: 4 / 5; min-height: 0; }
.kl-chip { margin: 0 !important; }
.kl-chip a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #2A2D33; border-radius: 999px; text-decoration: none; font-size: 0.875rem; }
.kl-chip a::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--feld); }
.kl-abschluss { border-top: 1px solid #17181B; }
.wp-block-button.kl-gross .wp-block-button__link { font-size: 1.5rem; min-height: 64px; width: 100%; justify-content: center; }
.kl-themen.wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.kl-themen.wp-block-tag-cloud a { display: inline-flex; padding: 6px 12px; border: 1px solid #2A2D33; border-radius: 999px; text-decoration: none; color: #C9CDD3; font-size: 0.8rem !important; }
.kl-themen.wp-block-tag-cloud a:hover { border-color: #6E737C; color: #fff; }
.kl-profil-kopf { align-items: center; padding-block: var(--wp--preset--spacing--50); }
.feld-bp.is-style-band, .feld-f2m.is-style-band { box-shadow: inset 0 1px 0 #17181B; }
.kl-rad-block { margin-block: 0 !important; }


/* ---------- Nachträge 22.10. (Rückmeldung Thomas) ---------- */
/* Breite Bildschirme: Rad-Bühne nicht breiter als 1600 px – Text steht dann bündig unter dem Logo */
.kl-rad-block { width: min(1600px, 100vw); max-width: none !important; margin-left: calc(50% - min(800px, 50vw)) !important; margin-right: calc(50% - min(800px, 50vw)) !important; }
/* Aktiver Menüpunkt zusätzlich unterstrichen (nicht nur heller) */
.kl-kopf .current-menu-item > .wp-block-navigation-item__content,
.kl-kopf .current-menu-ancestor > .wp-block-navigation-item__content { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
/* Bilder im Beitrag: nie hochskalieren, höchstens 560 px hoch */
.wp-block-post-content .wp-block-image img { width: auto; max-width: 100%; max-height: 560px; height: auto; }
.wp-block-post-content .wp-block-image { text-align: center; }
/* Suche im Kopf */
.kl-kopf .wp-block-search__button { background: transparent; border: 1px solid #2A2D33; color: #EDEEF0; border-radius: 8px; padding: 8px; }
.kl-kopf .wp-block-search__button svg { fill: currentColor; width: 20px; height: 20px; }
.kl-kopf .wp-block-search__input { background: #0B0C0E; color: #EDEEF0; border: 1px solid #2A2D33; border-radius: 8px; padding: 8px 12px; min-width: 220px; }
.kl-kopf .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input { min-width: 0; }
/* Auf sehr breiten Schirmen läuft das Rad an der Bühnenkante weich aus statt hart abgeschnitten */
@media (min-width: 1700px) {
  .kl-rad-block .klr:not(.klr--links) .klr-box { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 160px), transparent); }
  .kl-rad-block .klr--links .klr-box { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 160px), transparent); }
}
/* Untermenüs: WordPress setzt dort eigene (dunkle) Textfarbe – hier ausdrücklich hell */
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container,
.kl-kopf .wp-block-navigation .has-child .wp-block-navigation__submenu-container { background: #0E0F12 !important; color: #E4E6EA !important; }
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #E4E6EA !important; }
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { color: #fff !important; background: #1B1D21; }
/* Kopf auf 1280–1440 px in einer Zeile halten */
@media (max-width: 1500px) {
  .kl-kopf .wp-block-navigation-item__content { padding: 12px 6px; }
  .kl-kopf .wp-block-navigation .wp-block-navigation__submenu-icon { margin-left: 2px; }
  .kl-kopf .wp-block-navigation-item.feld-bp > .wp-block-navigation-item__content::before,
  .kl-kopf .wp-block-navigation-item.feld-sv > .wp-block-navigation-item__content::before,
  .kl-kopf .wp-block-navigation-item.feld-f2m > .wp-block-navigation-item__content::before,
  .kl-kopf .wp-block-navigation-item.feld-art > .wp-block-navigation-item__content::before { margin-right: 6px; }
}
@media (max-width: 1400px) {
  .kl-kopf > .wp-block-group { gap: 12px !important; }
  .kl-kopf .wp-block-navigation { font-size: 13px !important; }
  .kl-kopf .wp-block-site-title a { gap: 9px; }
}

/* ------------------------------------------------------------------
   Kopfzeile auf Tablets (13.11.2026)
   iPad quer (~1180 px): alles in einer Zeile, Kontakt/Notfall nur Symbol.
   Unter 1025 px (iPad hochkant): Menü als ☰, Suche/Kontakt/Notfall bleiben sichtbar.
   ------------------------------------------------------------------ */
@media (max-width: 1280px) {
  .kl-kopf > .wp-block-group {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .kl-kopf .wp-block-site-title { flex-shrink: 0; }
  .kl-kopf .wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding-left: 5px;
    padding-right: 5px;
  }
  .kl-kopf > .wp-block-group > .wp-block-group {
    flex-shrink: 0;
    gap: 8px;
  }
  /* Kontakt und Notfall: nur Symbol, Text bleibt für Screenreader lesbar */
  .kl-kopf .wp-block-button .wp-block-button__link {
    font-size: 0 !important;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .kl-kopf .wp-block-button .wp-block-button__link::before { margin: 0 !important; }
  .kl-kopf .is-style-outline .wp-block-button__link::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

@media (max-width: 1024px) {
  /* Menü als ☰ (WordPress schaltet sonst erst unter 600 px um) */
  .kl-kopf .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
  .kl-kopf .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
  .kl-kopf > .wp-block-group > nav { margin-left: auto; }
}

/* Einzelartikel nach Mockup (29.10.2026): Lead, Lesezeit, Titelbild 21:9 mit Bildnachweis, „Passend dazu“ */
.kl-lead { width: 100%; max-width: 1280px !important; margin-left: auto !important; margin-right: auto !important; }
.kl-lead p { margin: 0; font-size: clamp(1.125rem, 2vw, 1.3125rem); line-height: 1.55; color: #C9CDD3; max-width: 760px; }
.kl-lesezeit { font-size: 0.875rem; color: var(--wp--preset--color--leise); }
.kl-lesezeit::before { content: "· "; }
.kl-titelbild { max-width: 1280px; margin: 0 auto; padding: 0; box-sizing: border-box; }
.kl-titelbild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border-bottom: 4px solid var(--feld, #6E737C); display: block; height: auto; }
.kl-titelbild figcaption { font-size: 0.8125rem; color: var(--wp--preset--color--leise); padding-top: 10px; }
.kl-passend { max-width: 1280px; margin: 72px auto 0; padding: 0; box-sizing: border-box; }
.kl-passend h2 { font-size: 1.625rem; margin: 0 0 24px; }
.kl-passend-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.kl-passend-karte { display: flex; flex-direction: column; background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; overflow: hidden; color: var(--wp--preset--color--text); text-decoration: none; }
.kl-passend-karte:hover, .kl-passend-karte:focus-visible { border-color: #3a3a46; color: #fff; }
.kl-passend-bild { aspect-ratio: 16 / 9; background: #15161A; border-bottom: 4px solid var(--feld); display: block; }
.kl-passend-bild img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.kl-passend-text { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.kl-passend-feld { font-size: 0.75rem; color: var(--wp--preset--color--leise); }
.kl-passend-titel { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

/* Übersicht „Wissen“ nach Mockup (29.10.2026): Block kaeferlive/wissen */
.kl-karte-fuss { margin-top: auto; align-items: center; gap: 12px; }
.kl-karte-fuss .kl-lesezeit { white-space: nowrap; font-size: 0.75rem; }
.kl-karte-fuss .kl-lesezeit::before { content: none; }
.klw { display: flex; flex-direction: column; gap: 40px; }
.klw a { text-decoration: none; }
.klw-suche { align-self: flex-end; width: min(360px, 100%); display: flex; flex-direction: column; gap: 6px; margin-top: -8px; }
.klw-suche label { font-size: 0.8125rem; color: var(--wp--preset--color--leise); }
.klw-suche div { display: flex; gap: 8px; }
.klw-suche input { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; background: #131318; border: 1px solid #2c2c36; border-radius: 10px; color: var(--wp--preset--color--text); padding: 0 14px; font: inherit; font-size: 0.9375rem; }
.klw-suche button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #2c2c36; background: #1c1c23; color: var(--wp--preset--color--text); cursor: pointer; display: grid; place-items: center; }
.klw-suche input:focus-visible, .klw-suche button:focus-visible, .klw a:focus-visible, .klw summary:focus-visible { outline: 2px solid #B9A3EC; outline-offset: 2px; }
.klw-neu { display: flex; flex-wrap: wrap; background: var(--wp--preset--color--flaeche); border: 1px solid #24242c; border-radius: 18px; overflow: hidden; color: var(--wp--preset--color--text); }
.klw-neu:hover { border-color: #3a3a46; color: #fff; }
.klw-neu-bild { flex: 1 1 560px; min-height: 340px; position: relative; background: #15161A; border-bottom: 4px solid var(--feld); display: block; }
.klw-neu-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.klw-neu-marke { position: absolute; top: 18px; left: 18px; background: #0a0a0c; color: #f2f2f4; font-size: 0.75rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.klw-neu-text { flex: 1 1 420px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.klw-neu-titel { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.klw-neu-meta { font-size: 0.8125rem; color: var(--wp--preset--color--leise); }
.klw-weiter { font-weight: 600; }
.klw-feld { display: inline-flex; align-items: center; gap: 6px; color: var(--klw-text); font-size: 0.8125rem; }
.klw-feld::before { content: ""; width: 8px; height: 8px; background: var(--feld); border-radius: 2px; }
.klw-filter { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #24242c; border-bottom: 1px solid #24242c; padding: 20px 0; }
.klw-filterzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.klw-filterkopf { width: 64px; font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--leise); }
.klw-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #2c2c36; color: #EDEEF0; font-size: 0.875rem; }
.klw-chip i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.klw-chip:hover { border-color: #5a5a66; color: #fff; }
.klw-chip.ist-aktiv { background: #26262f; border-color: #EDEEF0; font-weight: 600; }
.klw-thema { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #2c2c36; font-size: 0.8125rem; color: #C9CDD3; }
.klw-thema:hover { border-color: #5a5a66; color: #fff; }
.klw-thema.ist-aktiv { border-color: #EDEEF0; color: #fff; font-weight: 600; }
.klw-mehr { display: contents; }
.klw-mehr summary { cursor: pointer; font-size: 0.8125rem; color: #EDEEF0; text-decoration: underline; padding: 0 6px; min-height: 36px; display: inline-flex; align-items: center; list-style: none; }
.klw-mehr summary::-webkit-details-marker { display: none; }
.klw-mehr summary::after { content: " ▾"; }
.klw-mehr[open] summary::after { content: " ▴"; }
.klw-mehr > div { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 72px; }
.klw-treffer { margin: -16px 0 0; font-size: 0.875rem; color: var(--wp--preset--color--leise); }
.klw-treffer a { text-decoration: underline; color: #EDEEF0; }
.wp-block-post-content .klw a.klw-karte, .wp-block-post-content .klw a.klw-neu { color: var(--wp--preset--color--text); }
.wp-block-post-content .klw a.klw-karte:hover, .wp-block-post-content .klw a.klw-neu:hover { color: #fff; }
.wp-block-post-content .klw a.klw-chip, .wp-block-post-content .klw .klw-seiten a { color: #EDEEF0; }
.wp-block-post-content .klw a.klw-thema { color: #C9CDD3; }
.wp-block-post-content .klw a.klw-thema.ist-aktiv { color: #fff; }
.klw-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.klw-karte { display: flex; flex-direction: column; background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; overflow: hidden; color: var(--wp--preset--color--text); }
.klw-karte:hover { border-color: #3a3a46; color: #fff; }
.klw-bild { aspect-ratio: 16 / 9; background: #15161A; border-bottom: 4px solid var(--feld); display: block; }
.klw-bild img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.klw-karte-text { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.klw-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: var(--wp--preset--color--leise); }
.klw-titel { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
.klw-teaser { font-size: 0.875rem; line-height: 1.6; color: #B9BDC5; flex: 1; }
.klw-neu .klw-teaser { font-size: 1rem; flex: none; }
.klw-fuss { display: flex; justify-content: space-between; gap: 12px; font-size: 0.75rem; color: var(--wp--preset--color--leise); border-top: 1px solid #24242c; padding-top: 12px; }
.klw-seiten { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.875rem; }
.klw-seiten > a { font-weight: 600; color: #EDEEF0; }
.klw-seiten div { display: flex; gap: 6px; flex-wrap: wrap; }
.klw-seiten div a, .klw-luecke { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; border: 1px solid #2c2c36; color: #EDEEF0; }
.klw-seiten div a[aria-current="page"], .wp-block-post-content .klw .klw-seiten div a[aria-current="page"] { background: #f2f2f4; color: #0a0a0c; font-weight: 700; border-color: #f2f2f4; }
.klw-luecke { border: 0; color: var(--wp--preset--color--leise); }
.klw-aus { color: #6f6f7a; }
.klw-leer { color: var(--wp--preset--color--leise); }
@media (max-width: 700px) { .klw-suche { align-self: stretch; width: 100%; } .klw-neu-bild { min-height: 220px; } .klw-neu-text { padding: 24px; } .klw-filterkopf { width: 100%; } .klw-mehr > div { padding-left: 0; } }
/* /wissen/: kein doppelter Abstand zwischen Seitenkopf und Übersicht (29.10.2026, ~190 px → ~100 px) */
.kl-abschnitt:has(> .klw), .kl-abschnitt:has(> .wp-block-kaeferlive-wissen) { padding-top: 0; }
.klw-suche { margin-top: 0; }

/* ---------- Nachträge 14.11. (vor dem Livegang) ---------- */
/* Untermenüs der beiden letzten Menüpunkte nach links öffnen – sonst ragen sie über den Rand (waagerechter Scrollbalken) */
.kl-kopf .wp-block-navigation__container > .wp-block-navigation-item:nth-last-child(-n+2) > .wp-block-navigation__submenu-container { left: auto !important; right: 0 !important; }
.kl-kopf .wp-block-navigation .wp-block-navigation__submenu-container { max-width: calc(100vw - 32px); }

/* Ganze Karte klickbar (Klasse setzt assets/js/kl-karten.js): unsichtbare Fläche über der Karte, weitere Links bleiben bedienbar */
.kl-ganz-klickbar { position: relative; cursor: pointer; transition: border-color .15s ease; }
.kl-ganz-klickbar .kl-hauptlink::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.kl-ganz-klickbar a:not(.kl-hauptlink), .kl-ganz-klickbar button, .kl-ganz-klickbar input, .kl-ganz-klickbar select, .kl-ganz-klickbar textarea, .kl-ganz-klickbar label { position: relative; z-index: 2; }
.kl-ganz-klickbar:hover { border-color: #3A3D44; }
.kl-ganz-klickbar:has(.kl-hauptlink:focus-visible) { outline: 2px solid var(--feld-text); outline-offset: 3px; }
.kl-ganz-klickbar .kl-hauptlink:focus-visible { outline: none; }

/* Publikationen als Raster: Cover oben (verlinkt auf Download/Kauf), Titel, Text, Link unten */
.kl-pub-raster { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-block: var(--wp--preset--spacing--50, 40px) !important; }
.kl-pub-raster > .kl-pub { margin: 0 !important; }
.kl-pub { display: flex; flex-direction: column; gap: 12px; background: var(--wp--preset--color--flaeche); border: 1px solid #1F2125; border-radius: 14px; padding: 20px 20px 22px; }
.kl-pub > * { margin: 0 !important; }
.kl-pub .wp-block-image { height: 300px; display: flex; align-items: center; justify-content: center; }
.kl-pub .wp-block-image a { display: contents; }
.wp-block-post-content .kl-pub .wp-block-image img { max-height: 300px; max-width: 100%; width: auto; height: auto; border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.kl-pub h2.wp-block-heading { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.kl-pub p { color: var(--wp--preset--color--leise); font-size: 0.9375rem; }
.kl-pub p:last-child { margin-top: auto !important; color: inherit; font-weight: 600; }

/* Breite Bildschirme (14.11.2026): die Seite wächst stufenweise mit, statt nur Rand zu bekommen
   (Textspalten bleiben lesbar; Recherche: Smashing, heise, The Verge nutzen 30–45 % der Breite) */
@media (min-width: 1920px) { .wp-site-blocks { zoom: 1.1; } }
@media (min-width: 2240px) { .wp-site-blocks { zoom: 1.2; } }
@media (min-width: 2560px) { .wp-site-blocks { zoom: 1.3; } }
@media (min-width: 2880px) { .wp-site-blocks { zoom: 1.35; } }
@media (min-width: 3200px) { .wp-site-blocks { zoom: 1.4; } }
/* Wissen-Übersicht: breiter, mehr Kacheln je Reihe; Kopf bündig mit dem Raster */
@media (min-width: 1600px) {
  body:has(.klw) .kl-feldkopf > *,
  body:has(.klw) .wp-block-post-content > .alignwide,
  body:has(.klw) .wp-block-post-content > .alignfull > .alignwide { max-width: 1760px !important; }
}

/* Qualitätslauf 14.11.2026 */
/* Mobil: lange Wörter und Adressen sprengen die Breite nicht mehr (Notfall, Sachverständiger, Blog-Links) */
.wp-block-post-content, .kl-lead, .klb-text { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }  /* Silbentrennung nur in Überschriften, Fließtext bleibt ruhig */
.wp-block-post-content a, .klb-text a { overflow-wrap: anywhere; }
/* Suchfeld außerhalb des Kopfs (404, Suchseite) im dunklen Stil */
main .wp-block-search__input { background: #0B0C0E; color: #EDEEF0; border: 1px solid #2A2D33; border-radius: 8px; padding: 10px 14px; }
main .wp-block-search__button { background: #EDEEF0; color: #0a0a0c; border: 0; border-radius: 8px; padding: 10px 16px; font-weight: 600; }
/* Bilder werden nie beschnitten (Thomas, 14.11.2026: „Wenn die Bilder 16:9 sind, dürfen sie nicht in 21:9 gezogen werden“).
   Rahmen haben 16:9 wie die Titelbilder; ein Bild in anderem Format steht vollständig darin, der Rest bleibt dunkel. */
.klw-neu { align-items: center; }
.klw-neu-bild { min-height: 0; aspect-ratio: 16 / 9; align-self: center; }
.klw-neu-bild img, .klw-bild img, .kl-passend-bild img, .kl-karten .wp-block-post-featured-image img { object-fit: contain; }
.kl-karten .wp-block-post-featured-image { background: #15161A; }
.kl-titelbild img { aspect-ratio: auto; object-fit: contain; }

/* Knöpfe beim Überfahren (15.11.2026): Text bleibt immer lesbar – helle Knöpfe werden etwas dunkler, Schrift bleibt dunkel */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
a.wp-element-button:not(.is-outline):hover { background: #D9DAE0 !important; color: #08090A !important; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #17181B !important; color: #fff !important; border-color: #6E737C; }

/* Vier Feldquadrate (Startseite): beim Überfahren leicht anheben, Zeiger zeigt Link (15.11.2026) */
.kl-felder-quadrate a::before { transition: transform .2s ease, filter .2s ease; }
.kl-felder-quadrate a:hover::before, .kl-felder-quadrate a:focus-visible::before { transform: translateY(-4px); filter: brightness(1.08); }
/* Airtis.Art: Hinweis Portalstart */
.kl-start-hinweis { color: #F0D27A; font-size: 1rem; margin-top: 0.5rem; }

/* 16.11.2026 – Seitenkopf: Der Titel steht über beiden Spalten (Importvorlagen umgebaut).
   Ab Tablet-Breite keine Silbentrennung im Seitentitel; mobil bleibt sie (v32: lange Wörter sprengen sonst die Breite). */
@media (min-width: 782px) { .kl-feldkopf h1 { -webkit-hyphens: manual; hyphens: manual; } }

/* 16.11.2026 – Links/rechts ausgerichtete Bilder: bündig mit der Textspalte statt am Fensterrand, Text fließt herum */
.is-layout-constrained > .alignleft  { margin-inline-start: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-inline-end: 2em; }
.is-layout-constrained > .alignright { margin-inline-end:   max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; margin-inline-start: 2em; }
.wp-block-post-content h2, .wp-block-post-content h3 { clear: both; }  /* Zwischenüberschriften beginnen unter dem Bild */
@media (max-width: 600px) {
  .wp-block-post-content .alignleft, .wp-block-post-content .alignright { float: none; width: auto !important; margin-inline: 0 !important; }
}

/* 16.11.2026 – Absatzstil „Blocksatz“ (Editor: Absatz → Stile). Mobil linksbündig, sonst entstehen Lücken. */
@media (min-width: 782px) { .is-style-blocksatz { text-align: justify; -webkit-hyphens: auto; hyphens: auto; } }

/* ==================================================================
   16.11.2026 – Satzspiegel, Feldfarben, Rechtstexte, Kontaktfoto (Thomas, „wie aus einem Guss“)
   ================================================================== */

/* --- Beitragskarten: feste Zeilen, damit gleiche Elemente nebeneinander auf gleicher Höhe beginnen ---
   Kopfzeile (Feld + Datum) 1 Zeile · Überschrift 3 Zeilen · Anreißer 4 Zeilen · Schlagworte ganz unten */
.kl-karten .wp-block-post .kl-karte-inhalt { flex: 1 1 auto; }
.kl-karten .wp-block-post-title {
  line-height: 1.25 !important; min-height: 3.75em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.kl-karten .wp-block-post-excerpt { min-height: 6.4em; line-height: 1.6; }
.kl-karten .wp-block-post-excerpt__excerpt {
  margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.kl-karten .wp-block-post-excerpt__more-text { display: none; }
.kl-karten .kl-karte-inhalt > :last-child { margin-top: auto !important; }
/* Wissen-Übersicht und „Passend dazu“: gleiche Regel */
.klw-titel { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: 3.9em; }
.klw-raster .klw-teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; min-height: 6.4em; flex: 0 0 auto; }
.klw-raster .klw-fuss { margin-top: auto; }
.kl-passend-text { flex: 1 1 auto; }
.kl-passend-titel { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: 3.9em; }
/* Inhaltskarten in Rastern (Leistungen, Bücher, Publikationen): letzter Link steht unten; Höhen gleicht kl-karten.js an */
.is-layout-grid > :is(.is-style-karte, .is-style-karte-feld, .kl-leistung) > :last-child,
.kl-pub > :last-child { margin-top: auto !important; }

/* --- Feldfarbe als Rand mit leichtem 3D-Effekt: Karte hebt sich vom Schwarz ab ---
   Force2Motion Rot, KäferLive (Beratung & Projekte) Violett, Gutachten Eisblau, Airtis.Art Gold */
.kl-karten .wp-block-post, .klw-karte, .klw-neu, .kl-passend-karte, .is-style-karte-feld {
  border: 1px solid color-mix(in srgb, var(--feld) 50%, #1F2125);
  background: linear-gradient(180deg, color-mix(in srgb, var(--feld) 8%, #0B0C0E) 0%, #0B0C0E 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .55),
              0 16px 36px -18px color-mix(in srgb, var(--feld) 60%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.is-style-karte-feld {   /* behält den Feldbalken oben */
  box-shadow: inset 0 3px 0 var(--feld), inset 0 4px 0 rgba(255, 255, 255, .05), 0 4px 14px rgba(0, 0, 0, .55),
              0 16px 36px -18px color-mix(in srgb, var(--feld) 60%, transparent);
}
.kl-karten .wp-block-post:hover, .klw-karte:hover, .klw-neu:hover, .kl-passend-karte:hover, .kl-passend-karte:focus-visible,
.is-style-karte-feld.kl-ganz-klickbar:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--feld) 80%, #1F2125);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .6),
              0 22px 44px -16px color-mix(in srgb, var(--feld) 75%, transparent);
}
.is-style-karte-feld.kl-ganz-klickbar:hover {
  box-shadow: inset 0 3px 0 var(--feld), 0 8px 22px rgba(0, 0, 0, .6), 0 22px 44px -16px color-mix(in srgb, var(--feld) 75%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .kl-karten .wp-block-post, .klw-karte, .klw-neu, .kl-passend-karte, .is-style-karte-feld { transition: none; transform: none !important; }
}

/* --- Buchcover (Airtis.Art): alle Cover gleich hoch, nie beschnitten; Text darunter beginnt auf gleicher Höhe --- */
.wp-block-post-content .kl-buchcover {
  width: 100%; height: auto !important; aspect-ratio: 1000 / 1584; max-height: 560px; margin: 0 0 4px !important;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.wp-block-post-content .kl-buchcover a { display: contents; }
.wp-block-post-content .kl-buchcover img {
  height: 100% !important; width: auto !important; max-width: 100%; max-height: none;
  aspect-ratio: auto !important; object-fit: contain !important; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}

/* --- Blogbeitrag: links oben „Teilen“ (fester Block), darunter das Inhaltsverzeichnis; beides bleibt beim Scrollen stehen --- */
.klb-inhalt .klb-teilen { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid #24262B; }
.klb-teilen > div { gap: 6px; }
.klb-teilen a, .klb-teilen button { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.klb-teilen button[hidden] { display: none; }
@media (min-width: 861px) {
  .klb-inhalt { max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
}

/* --- Rechtstexte (Datenschutz): Inhaltsverzeichnis links wie im Blog --- */
.kl-verz-raster { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 820px); gap: 56px; align-items: start; justify-content: center; }
.kl-verz { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; font-size: 14px; }
.kl-verz nav { display: flex; flex-direction: column; gap: 8px; }
.kl-verz .klb-inhalt-kopf { font-family: var(--wp--preset--font-family--geist-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--leise); margin-bottom: 4px; }
.kl-verz nav a { color: #C9CDD3; text-decoration: none; border-left: 2px solid #2A2D33; padding: 2px 0 2px 12px; line-height: 1.35; }
.kl-verz nav a.klb-unter { padding-left: 24px; font-size: 13px; color: #A9AEB7; }
.kl-verz nav a:hover { color: #fff; border-left-color: var(--feld, #8C6CD0); }
.kl-verz nav a[aria-current="true"] { color: #fff; font-weight: 600; border-left-color: var(--feld, #8C6CD0); }
.kl-verz nav a:focus-visible { outline: 2px solid #B9A3EC; outline-offset: 2px; }
.kl-verz-text > * { margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; }
.kl-verz-text :is(h2, h3) { scroll-margin-top: 24px; }
@media (max-width: 960px) {
  .kl-verz-raster { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kl-verz { position: static; max-height: none; border: 1px solid #1F2125; border-radius: 12px; padding: 16px; }
}

/* --- Kontakt: Foto 16:9 mit Zeile „In Kontakt treten“ (Bildunterschrift, im Editor pflegbar), nie beschnitten --- */
.wp-block-post-content .kl-kontakt-foto { position: relative; margin: 0 0 8px !important; border-radius: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--feld) 45%, #1F2125); box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--feld) 60%, transparent); }
.wp-block-post-content .kl-kontakt-foto img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 0; }
.wp-block-post-content .kl-kontakt-foto figcaption { position: absolute; left: clamp(16px, 4%, 32px); bottom: clamp(14px, 6%, 32px); margin: 0;
  max-width: 45%; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: #fff; text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }

/* ---------- Rechtstexte mit Verzeichnis: Aufmacherbild dezent (16.11.2026, Thomas: „erschlägt einen“) ----------
 * Erstes Bild im Text steht rechts neben Überschrift und Einleitung statt über die volle Breite;
 * in der Datenschutzerklärung zusätzlich das zweite Bild (Lupe) klein rechts neben dem Hinweistext,
 * der Kontakt-Knopf bekommt Luft nach oben und unten. Auf schmalen Bildschirmen normal untereinander. */
@media (min-width: 782px) {
  .kl-verz-text > figure.wp-block-image:first-child { float: right; width: 38%; max-width: 340px; margin: .4rem 0 1.5rem 2.5rem !important; }
  .kl-verz-text > figure.wp-block-image:first-child + h2,
  .kl-verz-text > figure.wp-block-image:first-child + h2 + h4 { clear: none; margin-top: 0; }
  .privacy-policy .kl-verz-text > .wp-block-buttons + figure.wp-block-image { float: right; width: 30%; max-width: 280px; margin: .3rem 0 1.25rem 2rem !important; }
  .kl-verz-text > figure.wp-block-image:first-child img,
  .privacy-policy .kl-verz-text > .wp-block-buttons + figure.wp-block-image img { width: 100% !important; height: auto !important; }
}
.privacy-policy .kl-verz-text > .wp-block-buttons { margin: 1.75rem 0 2.75rem !important; clear: right; }
@media (max-width: 781px) {
  .kl-verz-text > figure.wp-block-image:first-child,
  .privacy-policy .kl-verz-text > .wp-block-buttons + figure.wp-block-image { max-width: 420px; margin: 0 0 1.25rem !important; }
}
