/* Ressourcen-Seite (09.11.2026, v2): Gruppen je Typ mit Filter, kompakte Karten.
   Reiter-Stil kommt aus theme.css (.ref-reiter). */

/* Hero: drei gestapelte Vorschauen */
.res-stapel { position: relative; width: 100%; max-width: 560px; margin: 0 0 0 auto; aspect-ratio: 5 / 4; }
.res-stapel__blatt { position: absolute; display: block; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(21, 23, 28, .06), 0 18px 40px rgba(21, 23, 28, .16); }
.res-stapel__blatt img { display: block; width: 100%; height: auto; }
.res-stapel__blatt.is-flyer { right: 2%; top: 0; width: 38%; rotate: 5deg; border-radius: 4px; }
.res-stapel__blatt.is-folie { left: 4%; top: 12%; width: 62%; rotate: -4deg; }
.res-stapel__blatt.is-video { left: 18%; bottom: 2%; width: 66%; rotate: 1.5deg; }
.res-stapel .kmr-webinar__play { position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; box-shadow: 0 0 0 8px rgba(231, 80, 18, .25); }
.res-stapel .kmr-webinar__play::after { margin: 17px 0 0 21px; border-width: 9px 0 9px 15px; }
@media (prefers-reduced-motion: no-preference) {
	.res-stapel__blatt { transition: transform .5s var(--o-kurve); }
	.res-stapel:hover .is-flyer { transform: translate(6px, -4px); }
	.res-stapel:hover .is-folie { transform: translate(-6px, -2px); }
}

/* Gruppen */
.res-filter { min-width: 0; }
.res-gruppe { margin-top: clamp(32px, 3.4vw, 52px); }
.res-gruppe[hidden] { display: none; }
.res-gruppe + .res-gruppe { padding-top: clamp(32px, 3.4vw, 52px); border-top: 1px solid var(--o-linie); }
.res-gruppe__kopf p { margin: 0 0 .5rem; }
.res-gruppe__kopf h3 { max-width: none; margin: 0; font-size: var(--wp--preset--font-size--large, 24px); line-height: 1.25; }
.res-raster { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(18px, 2vw, 26px); }
.res-raster.is-webinar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.res-raster:not(.is-webinar) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1100px) { .res-raster:not(.is-webinar) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Karten */
.res-karte { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--o-linie); border-radius: 14px; background: var(--o-weiss); color: inherit; text-decoration: none; transition: transform .35s var(--o-kurve), box-shadow .35s var(--o-kurve); }
.res-karte:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(21, 23, 28, .08); }
.res-karte:focus-visible { outline: 2px solid var(--o-orange); outline-offset: 3px; }
.res-karte__bild { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--o-linie); background: var(--o-grau); }
/* Webinar: Vorschau im Originalformat 16:9, ohne Anschnitt */
.res-karte.is-webinar .res-karte__bild { aspect-ratio: 16 / 9; }
.res-karte.is-webinar .res-karte__bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Folien und Flyer: Blatt auf grauer Fläche */
.res-karte:not(.is-webinar) .res-karte__bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 14px; }
.res-karte:not(.is-webinar) .res-karte__bild img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(21, 23, 28, .08), 0 6px 16px rgba(21, 23, 28, .12); transition: transform .35s var(--o-kurve); }
.res-karte:not(.is-webinar) .res-karte__bild.is-hoch { align-items: flex-start; padding-bottom: 0; }
.res-karte:not(.is-webinar) .res-karte__bild.is-hoch img { width: 74%; max-height: none; border-radius: 2px 2px 0 0; }
.res-karte:not(.is-webinar):hover .res-karte__bild img { transform: translateY(-3px); }
.res-karte .kmr-webinar__play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; box-shadow: 0 0 0 6px rgba(231, 80, 18, .25); }
.res-karte .kmr-webinar__play::after { margin: 14px 0 0 17px; border-width: 8px 0 8px 12px; }
.res-karte:hover .kmr-webinar__play { transform: scale(1.08); }
.res-karte__text { display: flex; flex-direction: column; gap: .4rem; flex: 1; padding: 14px 16px 16px; }
.res-pille { align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--o-orange-hell, #fde7dc); color: var(--o-orange-dunkel, #b83c0b); font: 600 10px/1.3 var(--o-mono); letter-spacing: .12em; text-transform: uppercase; }
.res-karte.is-webinar .res-pille { background: var(--o-orange); color: #fff; }
.res-karte h4 { max-width: none; margin: .1rem 0 0; font-size: 16px; line-height: 1.3; }
.res-karte__satz { color: var(--o-fliesstext); font-size: 14px; line-height: 1.45; }
.res-karte:not(.is-webinar) .res-karte__satz { font-size: 13px; }
.res-karte__meta { color: var(--o-leise); font-size: 12px; }
.res-karte .outtra-partnerkarte__link { margin-top: auto; padding-top: .3rem; font-size: 14px; }
.res-karte:hover .outtra-partnerkarte__link { text-decoration-color: currentColor; }
.res-karte:hover .outtra-pfeil { transform: translateX(3px); }
.res-karte:not(.is-webinar):hover .outtra-pfeil { transform: translateY(2px); }

@media (max-width: 1099px) { .res-raster.is-webinar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .res-raster:not(.is-webinar) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 781px) { .res-stapel { max-width: 440px; margin: 8px auto 0; } .res-raster:not(.is-webinar) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
	.res-raster.is-webinar { grid-template-columns: minmax(0, 1fr); }
	.res-karte:not(.is-webinar) .res-karte__text { padding: 12px; }
	.res-karte:not(.is-webinar) .res-karte__satz { display: none; }
	.res-karte:not(.is-webinar) h4 { font-size: 14px; }
	.res-filter .ref-reiterleiste { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.res-filter .ref-reiter { flex: 0 0 auto; }
}

/* Aufklappmenü „Ressourcen“ hat seit der Ressourcen-Seite vier Gruppen: 2 × 2 statt 3 + 1. */
.wp-block-navigation .outtra-menue--4 { --spalten: 2; }
