/*
Theme Name: Regenbogen
Theme URI: https://regenbogenschule-taucha.de/
Author: Internetdienstleistungen Dr. István Tibor Nébel
Author URI: https://tibornebel.de/
Description: Schlankes, modernes Theme für den Förderverein der Regenbogenschule Taucha e.V. – ohne Page-Builder, mit Projekten, Vorstand und Unterstützern als eigene Inhaltstypen.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: regenbogen
*/

/* ---------- Tokens ---------- */
:root {
	--rb-ink: #1B2340;
	--rb-ink-2: #2C3554;
	--rb-muted: #4A5372;
	--rb-line: #E6EAF2;
	--rb-soft: #F3F6FB;
	--rb-blue: #2F5BD3;
	--rb-blue-dark: #1E3F99;
	--rb-red: #E5484D;
	--rb-orange: #F28C28;
	--rb-yellow: #F5C518;
	--rb-green: #3BAA5C;
	--rb-violet: #7B4FCF;
	--rb-t-red: #FDECEC;
	--rb-t-orange: #FEF0E1;
	--rb-t-yellow: #FFF7D6;
	--rb-t-green: #E3F4E8;
	--rb-t-blue: #E4ECFB;
	--rb-t-violet: #EFE7FA;
	--rb-font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
	--rb-font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--rb-wrap: 1200px;
	--rb-radius: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--rb-ink); font-family: var(--rb-font); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rb-blue); }
a:hover { color: var(--rb-blue-dark); }
h1, h2, h3, h4 { font-family: var(--rb-font-display); font-weight: 600; line-height: 1.15; color: var(--rb-ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rb-blue); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(27,35,64,.2); }

.rb-wrap { max-width: var(--rb-wrap); margin: 0 auto; padding: 0 24px; }
.rb-section { padding: 80px 0; }
.rb-section--tight { padding: 56px 0; }
.rb-eyebrow { margin: 0 0 8px; font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: #C2410C; }
.rb-eyebrow--green { color: #15803D; }
.rb-eyebrow--yellow { color: var(--rb-yellow); }
.rb-h2 { font-size: clamp(30px, 3.6vw, 44px); }
.rb-lead { font-size: 19px; color: var(--rb-muted); max-width: 680px; }
.rb-muted { color: var(--rb-muted); }

/* ---------- Buttons ---------- */
.rb-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.rb-btn:hover { transform: translateY(-1px); }
.rb-btn--primary { background: var(--rb-blue); color: #fff; }
.rb-btn--primary:hover { background: var(--rb-blue-dark); color: #fff; }
.rb-btn--dark { background: var(--rb-ink); color: #fff; }
.rb-btn--dark:hover { background: #000; color: #fff; }
.rb-btn--yellow { background: var(--rb-yellow); color: var(--rb-ink); }
.rb-btn--yellow:hover { background: #E6B400; color: var(--rb-ink); }
.rb-btn--outline { border-color: var(--rb-ink); color: var(--rb-ink); background: #fff; }
.rb-btn--outline:hover { background: var(--rb-ink); color: #fff; }
.rb-btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.rb-btn--outline-light:hover { background: #fff; color: var(--rb-ink); }
.rb-btn--soft { background: #EEF2FB; color: var(--rb-ink); }
.rb-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.rb-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rb-link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none; }

/* ---------- Rainbow ---------- */
.rb-rainbow-bar { display: flex; height: 6px; }
.rb-rainbow-bar span { flex: 1; }
.rb-rainbow-bar span:nth-child(1) { background: var(--rb-red); }
.rb-rainbow-bar span:nth-child(2) { background: var(--rb-orange); }
.rb-rainbow-bar span:nth-child(3) { background: var(--rb-yellow); }
.rb-rainbow-bar span:nth-child(4) { background: var(--rb-green); }
.rb-rainbow-bar span:nth-child(5) { background: var(--rb-blue); }
.rb-rainbow-bar span:nth-child(6) { background: var(--rb-violet); }

/* ---------- Header ---------- */
.rb-header { background: #fff; border-bottom: 1px solid var(--rb-line); position: relative; z-index: 50; }
.rb-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.rb-logo img, .rb-logo .custom-logo { height: 64px; width: auto; }
.rb-logo { display: flex; align-items: center; text-decoration: none; color: var(--rb-ink); font-family: var(--rb-font-display); font-size: 20px; font-weight: 600; }
.rb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.rb-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--rb-ink); font-weight: 700; font-size: 15px; }
.rb-nav a:hover, .rb-nav .current-menu-item > a, .rb-nav .current-menu-ancestor > a, .rb-nav .current_page_item > a, .rb-nav .current-page-ancestor > a { background: #EEF2FB; color: var(--rb-ink); }
.rb-nav .rb-menu-cta > a, .rb-nav .rb-menu-cta > a:hover { background: var(--rb-blue); color: #fff; padding: 0 20px; margin-left: 8px; }
.rb-nav .sub-menu { display: none; }
.rb-nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; border: 0; background: #EEF2FB; color: var(--rb-ink); cursor: pointer; }
@media (max-width: 960px) {
	.rb-nav-toggle { display: inline-flex; }
	.rb-nav { display: none; width: 100%; }
	.rb-nav.is-open { display: block; }
	.rb-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
	.rb-nav a { width: 100%; }
	.rb-nav .rb-menu-cta > a { margin: 8px 0 0; justify-content: center; }
	.rb-logo img, .rb-logo .custom-logo { height: 52px; }
}

/* ---------- Page head ---------- */
.rb-pagehead { background: var(--rb-soft); position: relative; overflow: hidden; }
.rb-pagehead__arc { position: absolute; right: -60px; bottom: -150px; width: 440px; opacity: .35; pointer-events: none; }
.rb-pagehead .rb-wrap { position: relative; padding-top: 48px; padding-bottom: 56px; }
.rb-pagehead h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.05; margin-bottom: 14px; }
.rb-pagehead .rb-lead { margin: 0; }
.rb-pagehead .rb-lead p:last-child { margin-bottom: 0; }
.rb-breadcrumb { font-size: 14px; font-weight: 700; color: var(--rb-muted); margin-bottom: 14px; }
.rb-breadcrumb a { text-decoration: none; }

/* ---------- Hero ---------- */
.rb-hero { background: var(--rb-soft); overflow: hidden; }
.rb-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.rb-hero__badge { display: inline-flex; margin: 0; background: #fff; border: 1px solid #DCE3F3; border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: 14px; color: var(--rb-blue); }
.rb-hero h1 { font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.5px; margin: 20px 0 22px; }
.rb-hero h1 em { font-style: normal; color: var(--rb-blue); }
.rb-hero__text { font-size: 19px; color: var(--rb-muted); max-width: 540px; margin: 0 0 34px; }
.rb-hero__visual { position: relative; padding-bottom: 28px; }
.rb-hero__arc { position: absolute; left: -40px; top: -70px; width: calc(100% + 80px); opacity: .9; pointer-events: none; }
.rb-hero__img { position: relative; width: 100%; height: 420px; object-fit: cover; border-radius: 32px; border: 6px solid #fff; box-shadow: 0 20px 50px rgba(27,35,64,.15); background: #DCE6FA; }
.rb-hero__card { position: absolute; left: -20px; bottom: 0; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 16px 20px; box-shadow: 0 14px 34px rgba(27,35,64,.16); text-decoration: none; color: var(--rb-ink); }
.rb-hero__card:hover { color: var(--rb-ink); }
.rb-hero__card small { display: block; font-size: 13px; font-weight: 800; color: var(--rb-muted); }
.rb-hero__card strong { font-family: var(--rb-font-display); font-weight: 600; font-size: 19px; }
@media (max-width: 600px) { .rb-hero__img { height: 280px; } .rb-hero__card { left: 12px; right: 12px; } }

.rb-icon-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--rb-t-yellow); }

/* ---------- Stats ---------- */
.rb-stats { background: var(--rb-ink); color: #fff; }
.rb-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.rb-stat { display: flex; align-items: baseline; gap: 14px; }
.rb-stat b { font-family: var(--rb-font-display); font-weight: 600; font-size: 44px; line-height: 1; }
.rb-stat span { font-size: 16px; font-weight: 700; color: #DDE3F2; }

/* ---------- Section head ---------- */
.rb-sechead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.rb-sechead h2 { margin: 0; }

/* ---------- Post cards ---------- */
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.rb-card { display: flex; flex-direction: column; text-decoration: none; color: var(--rb-ink); background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.rb-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27,35,64,.12); color: var(--rb-ink); }
.rb-card__img { width: 100%; height: 210px; object-fit: cover; background: var(--rb-t-blue); }
.rb-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.rb-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; font-weight: 800; color: var(--rb-muted); }
.rb-card__title { font-size: 21px; line-height: 1.25; margin: 0; }
.rb-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--rb-muted); }
.rb-card__more { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--rb-blue); font-size: 15px; }
.rb-pill { display: inline-block; background: var(--rb-t-blue); color: var(--rb-ink); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.rb-pill--new { background: var(--rb-yellow); }
.rb-pill--archiv { background: #EEF0F4; }
.rb-grid > .rb-card:nth-child(6n+1) .rb-pill:not(.rb-pill--new):not(.rb-pill--archiv) { background: var(--rb-t-yellow); }
.rb-grid > .rb-card:nth-child(6n+2) .rb-pill:not(.rb-pill--new):not(.rb-pill--archiv) { background: var(--rb-t-violet); }
.rb-grid > .rb-card:nth-child(6n+3) .rb-pill:not(.rb-pill--new):not(.rb-pill--archiv) { background: var(--rb-t-orange); }
.rb-grid > .rb-card:nth-child(6n+4) .rb-pill:not(.rb-pill--new):not(.rb-pill--archiv) { background: var(--rb-t-red); }
.rb-grid > .rb-card:nth-child(6n+5) .rb-pill:not(.rb-pill--new):not(.rb-pill--archiv) { background: var(--rb-t-green); }

.rb-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-radius: 28px; margin-bottom: 28px; }
.rb-feature .rb-card__img { height: 100%; min-height: 340px; }
.rb-feature .rb-card__body { padding: 40px; justify-content: center; gap: 14px; }
.rb-feature .rb-card__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.rb-feature .rb-card__excerpt { font-size: 17px; }

.rb-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.rb-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--rb-ink); background: #fff; color: var(--rb-ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.rb-chip:hover { background: #EEF2FB; color: var(--rb-ink); }
.rb-chip.is-active, .rb-chip.is-active:hover { background: var(--rb-ink); color: #fff; }
.rb-chip span { opacity: .75; }

.rb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.rb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: #EEF2FB; color: var(--rb-ink); font-weight: 800; text-decoration: none; }
.rb-pagination .page-numbers.current { background: var(--rb-ink); color: #fff; }

/* ---------- Support tiles ---------- */
.rb-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: start; }
.rb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.rb-tile { display: flex; gap: 14px; align-items: flex-start; border-radius: 20px; padding: 20px; }
.rb-tile__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; }
.rb-tile strong { display: block; font-size: 16px; margin-bottom: 4px; }
.rb-tile span { font-size: 14px; line-height: 1.5; color: var(--rb-muted); }
.rb-bg-red { background: var(--rb-t-red); } .rb-bg-orange { background: var(--rb-t-orange); } .rb-bg-yellow { background: var(--rb-t-yellow); }
.rb-bg-green { background: var(--rb-t-green); } .rb-bg-blue { background: var(--rb-t-blue); } .rb-bg-violet { background: var(--rb-t-violet); }

/* ---------- Donation card ---------- */
.rb-donate { background: var(--rb-ink); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; }
.rb-donate h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); }
.rb-donate p { color: #DDE3F2; }
.rb-donate__media { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.rb-donate__qr { width: 210px; height: 210px; object-fit: contain; padding: 14px; border-radius: 24px; background: #fff; }
.rb-donate__signet { width: 170px; height: 170px; object-fit: contain; padding: 16px; border-radius: 50%; background: var(--rb-t-yellow); }
.rb-progress { background: rgba(255,255,255,.08); border-radius: 18px; padding: 18px 20px; margin-bottom: 26px; }
.rb-progress--light { background: var(--rb-soft); }
.rb-progress__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.rb-progress__bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.rb-progress--light .rb-progress__bar { background: #DCE3F3; }
.rb-progress__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-blue)); }

/* ---------- CTA band ---------- */
.rb-band { background: var(--rb-t-yellow); }
.rb-band .rb-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.rb-band h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.rb-band p { color: var(--rb-muted); margin: 0; max-width: 640px; }

/* ---------- Projects ---------- */
.rb-current { border-radius: 32px; overflow: hidden; border: 1px solid var(--rb-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.rb-current__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 6px; }
.rb-current__gallery img { width: 100%; height: 100%; object-fit: cover; }
.rb-current__gallery img:first-child { grid-column: span 2; grid-row: span 1; height: 240px; }
.rb-current__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.rb-current__body h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 0; }
.rb-current__body .rb-progress { margin: 0; }
.rb-total { display: flex; align-items: baseline; gap: 10px; background: var(--rb-t-green); border-radius: 18px; padding: 14px 20px; color: #14532D; }
.rb-total span { font-size: 15px; font-weight: 800; }
.rb-total b { font-family: var(--rb-font-display); font-weight: 600; font-size: 28px; }
.rb-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 28px; }
.rb-project { display: flex; flex-direction: column; border: 1px solid var(--rb-line); border-radius: 26px; overflow: hidden; background: #fff; }
.rb-project__imgs { display: flex; gap: 4px; height: 200px; }
.rb-project__imgs a { flex: 1; min-width: 0; display: block; }
.rb-project__imgs img { width: 100%; height: 100%; object-fit: cover; }
.rb-project__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.rb-project__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rb-project__head h3 { font-size: 25px; margin: 0; }
.rb-project__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 800; color: var(--rb-muted); }
.rb-project__facts b { color: var(--rb-ink); }
.rb-project__text { font-size: 16px; color: var(--rb-muted); }
.rb-project__text p:last-child { margin-bottom: 0; }
.rb-badge-done { display: inline-flex; align-items: center; gap: 8px; background: var(--rb-t-green); color: #14532D; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }

/* ---------- Team ---------- */
.rb-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.rb-team li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--rb-line); border-radius: 18px; }
.rb-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--rb-font-display); font-weight: 600; font-size: 19px; overflow: hidden; }
.rb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rb-team strong { display: block; font-size: 16px; }
.rb-team small { font-size: 14px; color: var(--rb-muted); }
.rb-team li:nth-child(6n+1) .rb-avatar { background: var(--rb-t-red); color: #B42318; }
.rb-team li:nth-child(6n+2) .rb-avatar { background: var(--rb-t-orange); color: #B45309; }
.rb-team li:nth-child(6n+3) .rb-avatar { background: var(--rb-t-yellow); color: #8A6100; }
.rb-team li:nth-child(6n+4) .rb-avatar { background: var(--rb-t-green); color: #15803D; }
.rb-team li:nth-child(6n+5) .rb-avatar { background: var(--rb-t-blue); color: var(--rb-blue); }
.rb-team li:nth-child(6n+6) .rb-avatar { background: var(--rb-t-violet); color: #6D3FC0; }
.rb-teamphoto img { width: 100%; height: 520px; object-fit: cover; border-radius: 32px; }
.rb-teamphoto figcaption { margin-top: 12px; font-size: 14px; color: var(--rb-muted); }

.rb-dark { background: var(--rb-ink); color: #fff; }
.rb-dark h2 { color: #fff; }
.rb-dark p { color: #DDE3F2; }
.rb-supportlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.rb-supportlist li { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.07); border-top: 6px solid var(--rb-red); }
.rb-supportlist li:nth-child(2) { border-color: var(--rb-orange); }
.rb-supportlist li:nth-child(3) { border-color: var(--rb-yellow); }
.rb-supportlist li:nth-child(4) { border-color: var(--rb-green); }
.rb-supportlist li:nth-child(5) { border-color: #6F93F0; }
.rb-supportlist strong { display: block; font-family: var(--rb-font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; }
.rb-supportlist span { font-size: 15px; color: #DDE3F2; }

.rb-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.rb-box { padding: 30px; border-radius: 26px; display: flex; flex-direction: column; gap: 12px; }
.rb-box h3 { font-size: 23px; margin: 0; }
.rb-box p { margin: 0; font-size: 16px; color: var(--rb-ink-2); }
.rb-box .rb-link-arrow, .rb-box .rb-btn { margin-top: auto; align-self: flex-start; }
.rb-box__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; }
.rb-outline { border: 1px solid var(--rb-line); }

/* ---------- Membership ---------- */
.rb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 28px; }
.rb-panel { border-radius: 32px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.rb-panel h2 { font-size: clamp(30px, 3vw, 38px); margin: 0; }
.rb-panel--dark { background: var(--rb-ink); color: #fff; }
.rb-panel--dark h2 { color: #fff; }
.rb-panel--dark p { color: #DDE3F2; }
.rb-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: rb; }
.rb-steps li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px 18px; font-weight: 700; counter-increment: rb; }
.rb-steps li::before { content: counter(rb); flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--rb-blue); color: #fff; font-weight: 800; }
.rb-qrbox { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: rgba(255,255,255,.07); border-radius: 22px; padding: 20px; }
.rb-qrbox img { width: 150px; height: 150px; object-fit: contain; padding: 12px; border-radius: 18px; background: #fff; }

/* ---------- Partners ---------- */
.rb-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.rb-logos > li { display: flex; min-height: 190px; border-radius: 24px; border: 1px solid var(--rb-line); background: #fff; overflow: hidden; }
.rb-partner__inner { display: flex; flex-direction: column; width: 100%; color: var(--rb-ink); text-decoration: none; }
a.rb-partner__inner:hover { color: var(--rb-ink); }
.rb-partner__logo { flex: 1; display: flex; align-items: center; justify-content: center; height: 140px; padding: 20px 22px; }
.rb-partner__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rb-partner__name { display: block; padding: 12px 16px 14px; border-top: 1px solid var(--rb-line); background: var(--rb-soft); text-align: center; font-weight: 800; font-size: 15px; line-height: 1.3; }
a.rb-partner__inner:hover .rb-partner__name { color: var(--rb-blue); }
.rb-logos > .rb-logos__add { border: 2px dashed #9AA6C4; align-items: center; justify-content: center; }
.rb-logos__add > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; text-align: center; }

/* ---------- Forms (Contact Form 7) ---------- */
.rb-form { padding: clamp(24px, 4vw, 40px); border-radius: 28px; border: 1px solid var(--rb-line); box-shadow: 0 14px 40px rgba(27,35,64,.08); }
.rb-form h2 { font-size: 28px; }
.rb-form label, .wpcf7 label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid #CBD3E6; background: #fff; font-family: inherit; font-size: 16px; color: var(--rb-ink); margin-top: 6px;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--rb-blue); box-shadow: 0 0 0 4px rgba(47,91,211,.15); }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item label { font-weight: 400; font-size: 14px; color: var(--rb-muted); display: flex; gap: 10px; align-items: flex-start; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--rb-blue); margin-top: 2px; }
.wpcf7 input[type="submit"] { min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--rb-blue); color: #fff; font-family: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--rb-blue-dark); }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; }
.wpcf7-not-valid-tip { font-size: 14px; }

/* ---------- Article / prose ---------- */
.rb-article-head { max-width: 880px; margin: 0 auto; padding: 48px 24px 32px; }
.rb-article-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; margin: 0; }
.rb-article-hero { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.rb-article-hero img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 32px; }
.rb-prose { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; font-size: 18px; line-height: 1.75; color: var(--rb-ink-2); overflow-wrap: break-word; }
.rb-prose > *:first-child { margin-top: 0; }
.rb-prose h2 { font-size: 28px; margin: 44px 0 18px; }
.rb-prose h3 { font-size: 23px; margin: 36px 0 14px; }
.rb-prose h4 { font-size: 19px; margin: 28px 0 10px; }
.rb-prose ul, .rb-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.rb-prose img { border-radius: 20px; }
.rb-prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 45%; }
.rb-prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: 45%; }
.rb-prose .aligncenter { margin: 24px auto; }
.rb-prose blockquote { margin: 28px 0; padding: 24px 28px; border-radius: 24px; background: var(--rb-t-yellow); font-family: var(--rb-font-display); font-size: 21px; color: var(--rb-ink); }
.rb-prose::after { content: ""; display: table; clear: both; }
.rb-prose .gallery, .rb-prose .rb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 28px 0; clear: both; }
.rb-prose .gallery-item { margin: 0; width: auto !important; }
.rb-prose .gallery img, .rb-prose .rb-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 16px; }
.rb-prose .gallery br { display: none; }
.rb-prose a img { transition: opacity .15s ease; }
.rb-prose a:hover img { opacity: .9; }
.rb-prose--wide { max-width: 860px; }
.rb-prose--legal { font-size: 16px; padding-top: 0; }
.rb-prose--legal h2 { font-size: 26px; }
.rb-prose--legal h3 { font-size: 19px; }

.rb-cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 24px; background: var(--rb-ink); color: #fff; margin-top: 24px; }
.rb-cta-inline strong { font-family: var(--rb-font-display); font-weight: 600; font-size: 20px; }
.rb-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 28px; }
.rb-postnav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 20px; border: 1px solid var(--rb-line); text-decoration: none; color: var(--rb-ink); }
.rb-postnav a:hover { border-color: var(--rb-blue); color: var(--rb-ink); }
.rb-postnav small { font-size: 13px; font-weight: 800; color: var(--rb-muted); }
.rb-postnav strong { font-family: var(--rb-font-display); font-weight: 600; font-size: 18px; }
.rb-postnav .rb-postnav__next { text-align: right; }

.rb-legal { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.rb-legal__aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.rb-legal__main { flex: 999 1 560px; min-width: 0; }
.rb-legal__main .rb-prose { margin: 0; padding: 0; max-width: 780px; }
.rb-toc { padding: 26px; border-radius: 24px; background: var(--rb-soft); }
.rb-toc h2 { font-size: 19px; margin-bottom: 12px; }
.rb-toc ol { margin: 0; padding-left: 20px; font-weight: 700; font-size: 15px; }
.rb-toc li { margin: 6px 0; }
.rb-toc a { text-decoration: none; }

/* ---------- Footer ---------- */
.rb-footer { background: var(--rb-ink); color: #DDE3F2; font-size: 15px; }
.rb-footer a { color: #DDE3F2; text-decoration: none; }
.rb-footer a:hover { color: #fff; text-decoration: underline; }
.rb-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; padding-top: 64px; padding-bottom: 32px; }
.rb-footer h2 { font-size: 17px; color: #fff; margin: 0 0 14px; }
.rb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rb-footer__logo { height: 72px; width: auto; margin-bottom: 16px; }
.rb-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); }
.rb-footer__bottom .rb-wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.rb-footer__bottom ul { flex-direction: row; gap: 20px; }
.rb-footer .rb-btn--yellow { color: var(--rb-ink); text-decoration: none; }

/* ---------- 404 / misc ---------- */
.rb-empty { text-align: center; padding: 96px 24px; }
.alignnone { margin: 0 0 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--rb-muted); margin-top: 6px; }
.sticky, .bypostauthor, .gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.rb-empty svg { width: 260px; margin: 0 auto; }
.rb-card span.rb-card__img { display: block; }

.rb-card span.rb-card__img { display: block; }
/* Alte Seiteninhalte (Überschriften, zentrierter Text) in der Einleitung ruhig darstellen */
.rb-pagehead .rb-lead h1, .rb-pagehead .rb-lead h2, .rb-pagehead .rb-lead h3, .rb-pagehead .rb-lead h4 { font-family: var(--rb-font); font-size: 19px; font-weight: 400; line-height: 1.6; color: var(--rb-muted); margin: 0 0 .6em; }
.rb-pagehead .rb-lead [style*="text-align"] { text-align: left !important; }
