/* Karten für „Aktuelles“ – Website und Vorschau im Editor (ab 1.4.0) */

.kb-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.kb-karte { position: relative; background: #fff; border: 1px solid var(--kb-linie, #E8DDD8); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.kb-karte[hidden] { display: none; }
.kb-karte:has(.kb-karte-link):hover { box-shadow: 0 10px 28px rgba(42, 36, 34, .13); border-color: #cdb5ad; }
.kb-karte:has(.kb-karte-link:focus-visible) { outline: 3px solid var(--kb-tief, #8E4239); outline-offset: 3px; }
.kb-karte { scroll-margin-top: calc(var(--kb-kopfhoehe, 100px) + 32px); }
.kb-karte:target, .kb-karte.ist-markiert { animation: kb-markieren 2.6s ease-out; border-color: var(--kb-marke, #AA554B); }
@keyframes kb-markieren { 0%, 45% { box-shadow: 0 0 0 4px var(--kb-marke, #AA554B); } 100% { box-shadow: 0 0 0 0 transparent; } }

.kb-karte-bild { position: relative; aspect-ratio: 2 / 1; background: var(--kb-rose, #F4E7E3); overflow: hidden; }
.kb-karte-bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-plakette { position: absolute; left: 16px; bottom: 14px; width: 62px; background: #fff; color: var(--kb-tief, #8E4239); border-radius: 12px; padding: 6px 0 7px; text-align: center; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.kb-plakette b { display: block; font-size: 28px; }
.kb-plakette span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kb-bildnachweis { position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 100px); text-align: right; overflow-wrap: anywhere; background: rgba(0, 0, 0, .5); color: #fff; font-size: 11px; line-height: 1.4; padding: 1px 7px; border-radius: 5px; }
/* ohne Datums-Plakette darf der Bildnachweis fast die ganze Breite nutzen */
.kb-karte-bild:not(:has(.kb-plakette)) .kb-bildnachweis { max-width: calc(100% - 16px); }

/* Automatischer Kartenkopf */
.kb-kk { position: absolute; inset: 0; background: var(--kk-bg); color: var(--kk-fg); container-type: inline-size; }
.kb-kk-grafik { position: absolute; inset: 0; width: 100%; height: 100%; }
.kb-kk p { margin: 0; color: inherit; }
/* Kategorie oben links */
.kb-kk .kb-kk-k { position: absolute; left: 6.5cqw; top: 6cqw; right: 34%; font-size: 4.2cqw; font-weight: 700; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; color: var(--kk-ak); }
/* Datums-Plakette: gleiche Stelle und Größe wie auf Fotos, in kleinen Köpfen mitskaliert */
.kb-kk .kb-plakette { left: min(16px, 4cqw); bottom: min(14px, 3.5cqw); width: min(62px, 15.5cqw); border-radius: min(12px, 3cqw); padding: min(6px, 1.5cqw) 0 min(7px, 1.75cqw); box-shadow: 0 3px 10px rgba(0, 0, 0, .14); }
.kb-kk .kb-plakette b { font-size: min(28px, 7cqw); }
.kb-kk .kb-plakette span { font-size: min(12px, 3cqw); }
/* unten: neben der Plakette Ort/Partner, sonst großer Titel */
.kb-kk .kb-kk-unten { position: absolute; left: 6.5cqw; right: 22%; bottom: 7cqw; }
.kb-kk .kb-kk-neben { left: calc(min(16px, 4cqw) + min(62px, 15.5cqw) + 3.5cqw); bottom: min(14px, 3.5cqw); height: min(62px, 15.5cqw); display: flex; flex-direction: column; justify-content: center; }
.kb-kk .kb-kk-ort { font-size: 5.2cqw; font-weight: 700; line-height: 1.15; color: var(--kk-fg); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.kb-kk .kb-kk-ort.kb-kk-einzeilig { -webkit-line-clamp: 1; }
.kb-kk .kb-kk-zusatz { margin-top: .4cqw; font-size: 4.4cqw; font-weight: 400; line-height: 1.2; color: var(--kk-fg); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-kk .kb-kk-titel { font-size: 7cqw; font-weight: 700; line-height: 1.1; color: var(--kk-fg); }

.kb-karte-text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kb-karte h3 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; }
.kb-karte h3 a { color: var(--kb-text, #2A2422); text-decoration: none; }
.kb-karte-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kb-karte p { margin: 0; font-size: 17px; color: var(--kb-ruhig, #5E5450); }
.kb-kicker { display: flex; column-gap: 16px; row-gap: 2px; flex-wrap: wrap; overflow: hidden; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--kb-ruhig, #5E5450); margin: 0; }
.kb-art { color: var(--kb-dunkel, #9A4A40); display: inline-flex; align-items: center; gap: 6px; }
/* Trennpunkt verschwindet, wenn der Ort in eine neue Zeile rutscht */
.kb-art + span { margin-left: -16px; }
.kb-art + span::before { content: "·"; display: inline-block; width: 16px; text-align: center; color: var(--kb-ruhig, #5E5450); }
.kb-karte .kb-meta, .kb-mini .kb-meta { font-size: 16px; font-weight: 700; color: var(--kb-ruhig, #5E5450); }
.kb-ausfall { color: #8a2424 !important; font-weight: 700; font-size: 15px !important; }
.kb-ziel { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 17px; color: var(--kb-dunkel, #9A4A40); }
.kb-karte:hover .kb-ziel, .kb-mini:hover .kb-ziel { text-decoration: underline; }
.kb-leer { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--kb-rahmen, #D6C7C1); border-radius: 18px; padding: 24px; color: var(--kb-ruhig, #5E5450); margin: 0; }

/* Kleine Karten */
.kb-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.kb-mini { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--kb-linie, #E8DDD8); border-radius: 18px; padding: 20px 22px 22px; text-decoration: none; color: var(--kb-text, #2A2422); transition: box-shadow .15s, border-color .15s; }
.kb-mini:hover { border-color: #bb8d80; color: var(--kb-text, #2A2422); box-shadow: 0 8px 22px rgba(42, 36, 34, .1); }
.kb-mini-kopf { display: flex; align-items: center; gap: 12px; }
.kb-mini-kopf .kb-kicker { font-size: 12px; }
.kb-mini-datum { flex-shrink: 0; width: 52px; border-radius: 10px; background: var(--kb-marke, #AA554B); color: #fff; text-align: center; padding: 5px 0 6px; line-height: 1; }
.kb-mini-datum b { display: block; font-size: 22px; }
.kb-mini-datum span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kb-mini-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--kb-rose, #F4E7E3); color: var(--kb-tief, #8E4239); display: flex; align-items: center; justify-content: center; }
.kb-mini strong { font-size: 20px; line-height: 1.3; }
.kb-mini .kb-ziel { font-size: 15px; }
.kb-mehr-links { font-weight: 700; font-size: 17px; margin: 16px 0 0; }

/* Rückblick und Pressespiegel */
.kb-archiv-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; font-weight: 700; font-size: 17px; }
.kb-archiv-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; margin-bottom: 8px; color: var(--kb-ruhig, #5E5450); }
.kb-archiv-kopf p { margin: 0; }
.kb-jahr { font-size: 28px; margin: 40px 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--kb-linie, #E8DDD8); color: var(--kb-dunkel, #9A4A40); }
.kb-presseliste { list-style: none; padding: 0; margin: 0; }
.kb-presseliste li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--kb-linie, #E8DDD8); align-items: start; }
.kb-pl-datum { color: var(--kb-ruhig, #5E5450); font-size: 16px; padding-top: 2px; }
.kb-pl-text { display: flex; flex-direction: column; gap: 2px; }
.kb-pl-quelle { font-size: 14px; font-weight: 700; color: var(--kb-ruhig, #5E5450); display: inline-flex; gap: 6px; align-items: center; text-transform: uppercase; letter-spacing: .04em; }
.kb-pl-titel { font-size: 18px; }
.kb-pl-link { font-weight: 700; font-size: 16px; white-space: nowrap; }
.kb-pl-ohne { color: #8A7F7B; font-weight: 400; font-style: italic; }
@media (max-width: 640px) {
	.kb-presseliste li { grid-template-columns: 1fr; gap: 4px; }
	.kb-pl-link { white-space: normal; }
}

/* Eintragsseite: Knöpfe zu PDF und Partner */
.kb-eintrag-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; margin-bottom: 0; }
.kb-eintrag-kurz { font-size: 20px; }
.kb-icon { flex-shrink: 0; }

/* Bildausschnitt (Feld „Bildausschnitt“ im Editor) */
img.kb-aus-oben, .kb-aus-oben img { object-position: 50% 15% !important; }
img.kb-aus-unten, .kb-aus-unten img { object-position: 50% 85% !important; }

/* Eintragsseite: Bild im Format 2:1 wie auf der Karte; ohne Foto der automatische Kartenkopf */
.single-post .kb-eintrag-bild { margin-block: 8px 0; }
.single-post .kb-eintrag-bild img { width: 100% !important; height: auto !important; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 20px; display: block; }
.single-post .kb-eintrag-bild--kopf .kb-karte-bild { border-radius: 20px; }
.single-post .kb-eintrag-bild .kb-bildnachweis-text { margin-top: 8px; font-size: 15px; color: var(--kb-ruhig, #5E5450); }
/* Großer Kopf auf der Eintragsseite: alles mit der Breite skalieren (wie eine vergrößerte Karte) */
.kb-eintrag-bild .kb-kk .kb-plakette { left: 4cqw; bottom: 3.5cqw; width: 15.5cqw; border-radius: 3cqw; padding: 1.5cqw 0 1.75cqw; }
.kb-eintrag-bild .kb-kk .kb-plakette b { font-size: 7cqw; }
.kb-eintrag-bild .kb-kk .kb-plakette span { font-size: 3cqw; }
.kb-eintrag-bild .kb-kk .kb-kk-neben { left: 23cqw; bottom: 3.5cqw; height: 15.5cqw; }
