/* Themenseiten (Vorlage template-rcr-thema.php, includes/rcr-thema.php), Stil Mockup A, 20.11.2026.
   Alles unter .rcr-thema, damit style.css (H1 gross, H2-Strich) und rcr-lesbarkeit.css nicht eingreifen.
   Farben: Dunkel #2A4C4A, Dunkler #1D3533, Teal-Text #35706C, Creme #F8E7C1, Store-Creme #FEF3DD. Keine Rollenfarben auf Kacheln. */

body.page-template-template-rcr-thema .site-content > .ast-container { max-width: 100%; padding: 0; }
body.page-template-template-rcr-thema .site-content #primary { margin: 0; padding: 0; width: 100%; }

.rcr-thema { font-family: Poppins, system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: #333333; overflow-x: clip; }
.rcr-thema h1, .rcr-thema h2, .rcr-thema h3 { font-family: Montserrat, system-ui, sans-serif; line-height: 1.2; text-transform: none; letter-spacing: 0; margin: 0 0 0.6em; color: #1D3533; }
.rcr-thema h2::after, .rcr-thema h3::after { display: none; }
.rcr-thema p { margin: 0 0 1.1em; }
.rcr-thema img { max-width: 100%; height: auto; display: block; }
.rcr-thema a { color: #1D3533; text-decoration: underline; }
.rcr-thema a:hover { color: #35706C; }
.rcr-thema :focus-visible { outline: 3px solid #1D3533; outline-offset: 2px; }
.rcr-thema__sec--schluss :focus-visible, .rcr-thema__leiste :focus-visible, .rcr-thema .rcr-yt :focus-visible { outline-color: #ffffff; }
.rcr-thema__wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.rcr-thema__wrap--schmal { max-width: 820px; }

/* Hero */
.rcr-thema__hero { background: #FEF3DD; padding: 56px 0 0; overflow: hidden; }
.rcr-thema__hero-raster { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 1fr 1fr; column-gap: 48px; }
.rcr-thema__hero-raster--ohne { grid-template-columns: 1fr; grid-template-rows: auto; }
.rcr-thema__hero-kopf { grid-column: 1; grid-row: 1; align-self: end; }
.rcr-thema__hero-rest { grid-column: 1; grid-row: 2; align-self: start; padding-bottom: 56px; }
.rcr-thema__hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin-bottom: 0.5em; }
.rcr-thema__lead { font-size: 19px; max-width: 560px; margin-bottom: 28px; }
/* Foto als abgerundete Karte 5:4, das Handy ueberlappt unten links und ragt unten aus dem Hero (der Hero schneidet dort ab) */
.rcr-thema__shot { grid-column: 2; grid-row: 1 / span 2; position: relative; padding-bottom: 120px; align-self: end; }
.rcr-thema__foto { margin: 0; }
.rcr-thema__foto-box { aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(29, 53, 51, 0.28); background: #1D3533; }
.rcr-thema__foto-box img, .rcr-thema__foto-box video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.rcr-thema__foto figcaption { text-align: right; padding-top: 8px; }
.rcr-thema__handy { position: absolute; left: -9%; bottom: -56px; width: 42%; pointer-events: none; }
.rcr-thema__handy img { width: 100%; height: auto; }
.rcr-thema__shot--handy { padding-bottom: 0; }
.rcr-thema__shot--handy .rcr-thema__handy { position: static; width: 100%; max-width: 400px; margin: 0 auto; }
/* Anschnittkanten der Store-Handys per Maske ausblenden (u unten, l links, r rechts), nie eine harte Kante im Bild */
.rcr-thema__fade { --fu: linear-gradient(#000, #000); --fl: linear-gradient(#000, #000); --fr: linear-gradient(#000, #000); -webkit-mask-image: var(--fu), var(--fl), var(--fr); mask-image: var(--fu), var(--fl), var(--fr); -webkit-mask-composite: source-in; mask-composite: intersect; }
.rcr-thema__fade-u { --fu: linear-gradient(to bottom, #000 76%, transparent); }
.rcr-thema__fade-l { --fl: linear-gradient(to right, transparent, #000 14%); }
.rcr-thema__fade-r { --fr: linear-gradient(to left, transparent, #000 14%); }
.rcr-thema__badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rcr-thema__badges a { display: block; line-height: 0; border-radius: 8px; }
.rcr-thema__badges img { height: 48px; width: auto; }

/* Sterne (SVG), Wert sichtbar, keine Anzahl */
.rcr-thema__sterne { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 24px 0 0; padding: 0; }
.rcr-thema__sterne li { display: flex; align-items: center; gap: 8px; margin: 0; }
.rcr-thema__sterne-svg { width: 100px; height: 20px; flex: none; }
.rcr-thema__stern-leer { fill: #9C8B63; }
.rcr-thema__stern-voll { fill: #B45309; }
.rcr-thema__sterne-wert { font: 800 17px Montserrat, sans-serif; color: #1D3533; }
.rcr-thema__sterne-store { font-size: 15px; color: #1D3533; }

/* Abschnitte */
.rcr-thema__sec { padding: 72px 0; }
.rcr-thema__sec--creme { background: #FEF3DD; }
.rcr-thema__sec--hell { background: #ffffff; }
.rcr-thema__sec h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.rcr-thema__text ul, .rcr-thema__text ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.rcr-thema__text li { margin-bottom: 0.4em; }
.rcr-thema__text h3 { font-size: 22px; font-weight: 800; margin-top: 1.4em; }
.rcr-thema__teilung { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rcr-thema__teilung--links .rcr-thema__pic { order: -1; }
.rcr-thema__pic { display: flex; justify-content: center; }
.rcr-thema__pic img { width: 100%; max-width: 340px; }

/* Kacheln, neutral */
.rcr-thema__kacheln { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rcr-thema__kacheln li { background: #ffffff; border: 1px solid #EADFC6; border-top: 6px solid #5C9B97; border-radius: 20px; padding: 28px 24px; box-shadow: 0 6px 24px rgba(29, 53, 51, 0.08); margin: 0; }
.rcr-thema__kacheln strong { display: block; font: 800 22px Montserrat, sans-serif; color: #1D3533; margin-bottom: 8px; }

/* Video (YouTube-Embed, die Zwei-Klick-Huelle ersetzt das iframe per Ausgabepuffer) */
.rcr-thema__video-raster { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.rcr-thema__video figure { margin: 0; }
.rcr-thema__video .wp-block-embed__wrapper { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 50px rgba(29, 53, 51, 0.3); }
/* Kern-Block-CSS (wp-embed-responsive) setzt ::before-Hoehe und iframe absolut: hier stattdessen eigenes Seitenverhaeltnis, sonst doppelte Hoehe neben .rcr-yt */
body .rcr-thema .rcr-thema__video .wp-block-embed__wrapper::before { display: none; }
body .rcr-thema .rcr-thema__video .wp-block-embed__wrapper iframe { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border: 0; }

/* Momente aus Folgen: Bildreihe, optional stumme Schleife */
.rcr-thema__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.rcr-thema__moment { margin: 0; }
.rcr-thema__moment img, .rcr-thema__moment video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
.rcr-thema__moment figcaption { padding-top: 8px; font-size: 15px; line-height: 1.45; }
.rcr-thema__unter { display: block; font-weight: 600; color: #1D3533; }
.rcr-thema__nachweis { display: block; font-size: 13.5px; color: #4a4a4a; }

/* FAQ als details, Text bleibt im HTML */
.rcr-thema__faq { background: #ffffff; border: 1px solid #EADFC6; border-radius: 14px; margin: 0 0 12px; }
.rcr-thema__faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; color: #1D3533; }
.rcr-thema__faq summary::-webkit-details-marker { display: none; }
.rcr-thema__faq summary h3 { margin: 0; font: 700 17px/1.35 Montserrat, sans-serif; }
.rcr-thema__faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform 0.2s; }
.rcr-thema__faq[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.rcr-thema__antwort { padding: 0 20px 8px; }

/* Schlussband */
.rcr-thema__sec--schluss { background: #2A4C4A; color: #ffffff; }
.rcr-thema__sec--schluss h2 { color: #ffffff; font-size: clamp(28px, 3.4vw, 42px); }
.rcr-thema__sec--schluss a { color: #ffffff; }
.rcr-thema__sec--schluss a:hover { color: #F8E7C1; }
.rcr-thema__schluss-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.rcr-thema__sec--schluss .rcr-thema__badges { margin: 8px 0 0; }
/* Offizielle EN-Badges haben keinen grauen Rand: auf dem dunklen Band und im Balken duenner heller Ring (Badge selbst unveraendert) */
.rcr-thema__sec--schluss .rcr-thema__badges img[src*="-en.png"], .rcr-thema__leiste .rcr-thema__badges img[src*="-en.png"] { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.rcr-thema__sec--schluss .rcr-thema__knopf { display: inline-flex; align-items: center; min-height: 48px; margin: 0 0 20px; padding: 10px 26px; border-radius: 8px; background: #F8E7C1; color: #1D3533; font: 700 17px Montserrat, sans-serif; text-decoration: none; }
.rcr-thema__sec--schluss .rcr-thema__knopf:hover { background: #ffffff; color: #1D3533; }

/* Fester Download-Balken: nur mobil */
.rcr-thema__leiste { display: none; }

@media (max-width: 768px) {
    .rcr-thema { font-size: 16px; }
    .rcr-thema__wrap { padding: 0 18px; }
    .rcr-thema__hero { padding-top: 32px; }
    .rcr-thema__teilung, .rcr-thema__video-raster, .rcr-thema__schluss-raster { grid-template-columns: 1fr; gap: 28px; }
    /* mobil: H1, Foto, Text mit Badges, danach das Handy am unteren Hero-Rand angeschnitten */
    .rcr-thema__hero-raster { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 20px; }
    .rcr-thema__hero-kopf, .rcr-thema__hero-rest { grid-column: 1; grid-row: auto; padding-bottom: 0; }
    .rcr-thema__hero-kopf { order: 1; }
    .rcr-thema__shot { display: contents; }
    .rcr-thema__foto { grid-column: 1; order: 2; }
    .rcr-thema__foto figcaption { text-align: left; }
    .rcr-thema__hero-rest { order: 3; }
    .rcr-thema__handy { grid-column: 1; order: 4; position: static; width: 200px; height: 190px; overflow: hidden; margin: 8px auto 0; }
    .rcr-thema__shot--handy .rcr-thema__handy { max-width: 260px; width: 100%; }
    .rcr-thema__teilung--links .rcr-thema__pic { order: 0; }
    .rcr-thema__pic img { max-width: 260px; }
    .rcr-thema__sec { padding: 48px 0; }
    .rcr-thema__badges img { height: 44px; }
    .rcr-thema__leiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #1D3533; padding: 8px 12px; justify-content: center; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3); }
    .rcr-thema__leiste .rcr-thema__badges { flex-wrap: nowrap; gap: 10px; }
    body.page-template-template-rcr-thema { padding-bottom: 68px; }
    body.page-template-template-rcr-thema #ast-scroll-top { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
    .rcr-thema__faq summary::after { transition: none; }
}
