/* =========================================================
   Rhenania Hinsbeck · Variante C „Briefbogen"
   Die Vereins-CI aus Briefbogen und Bescheinigungen: Montserrat, Vereinsblau #344c98,
   oranger Winkel, Sechseckmuster, blaues Fußband. Klar und servicestark.
   ========================================================= */
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --blau: #344c98;
    --blau-dunkel: #22346f;
    --blau-hell: #eef1f8;
    --orange: #f07820;
    --orange-hell: #fdeee2;
    --ink: #1d2433;
    --muted: #5d6577;
    --line: #e3e6ee;
    --card: #f5f7fb;
    --white: #fff;
    --font-head: var(--gh-font-heading, "Montserrat"), system-ui, sans-serif;
    --font-body: var(--gh-font-body, "Montserrat"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16z M28 64v33' fill='none' stroke='%23000' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E");
    --hex-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16z M28 64v33' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.5'/%3E%3C/svg%3E");
    --chevron: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
    --radius: 10px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 500; color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.site-main { min-height: 60vh; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; }

/* ---------- Service-Leiste + Kopf ---------- */
.utility-bar { background: var(--blau-dunkel); color: rgba(255,255,255,.8); font-size: 13px; }
.util-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.util-links { display: flex; align-items: center; gap: 18px; }
.util-links a:hover { color: var(--orange); }
.util-social { display: flex; gap: 6px; }
.util-social svg { width: 16px; height: 16px; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 3px solid var(--blau); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(34,52,111,.12); }
.navbar { display: flex; align-items: center; gap: 16px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 52px; width: auto; }
.brand-text { font-weight: 800; font-size: 18px; color: var(--blau); line-height: 1.1; white-space: nowrap; text-transform: uppercase; letter-spacing: .02em; }
.brand-text small { display: block; font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: .18em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links ul { list-style: none; display: flex; gap: 2px; }
.nav-links a { display: block; padding: 28px 14px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blau); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta { background: var(--orange); color: var(--white); padding: 11px 20px; border-radius: 6px; margin-left: 10px; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: #d9650f; color: var(--white); }
.nav-search { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 6px; background: var(--blau-hell); color: var(--blau); cursor: pointer; }
.nav-search:hover { background: var(--blau); color: var(--white); }
.nav-toggle-box, .nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blau); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hex-light); -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 80%); mask-image: linear-gradient(110deg, transparent 30%, #000 80%); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(52,76,152,.97) 35%, rgba(52,76,152,.72)); }
.chevron { position: absolute; left: 0; top: 70px; width: 34px; height: 96px; background: var(--orange); clip-path: var(--chevron); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: clamp(56px, 8vw, 100px) 24px clamp(56px, 8vw, 96px) 72px; }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 76px); overflow-wrap: break-word; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 span { color: var(--orange); }
.hero .lead { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 32px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 6px; font-weight: 800; font-size: 15px; letter-spacing: .02em; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d9650f; }
.btn-ghost { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-copy, .hero-side { min-width: 0; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.teaser-card > .teaser { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 24px 50px rgba(0,0,0,.25); border-left: 6px solid var(--orange); }
.teaser-slide { display: none; }
.teaser-slide.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.teaser-img { display: block; height: 140px; margin: -22px -24px 16px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; }
.teaser-tag { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.teaser-card > .teaser h3 { font-size: 22px; color: var(--blau); margin: 6px 0 8px; }
.teaser-meta { display: block; font-size: 14px; color: var(--muted); }
.teaser-more { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--blau); }
.teaser-dots { display: flex; gap: 6px; margin-top: 12px; }
.teaser-dot { width: 18px; height: 5px; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; }
.teaser-dot.active { background: var(--orange); width: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-stats div { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.hero-stats b { display: block; font-size: 28px; font-weight: 800; color: var(--white); line-height: 1.1; }
.hero-stats span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(50px, 7vw, 84px) 0; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.sec-head h2, .sec-title { font-size: clamp(26px, 3.2vw, 38px); color: var(--blau); text-transform: uppercase; letter-spacing: .01em; }
.sec-title { margin-bottom: 28px; }
.sec-head-row { justify-content: space-between; flex-wrap: wrap; }
.sec-head-l { display: flex; align-items: center; gap: 14px; }
.chev-mini { width: 16px; height: 34px; background: var(--orange); clip-path: var(--chevron); flex: 0 0 auto; }
.link-more { font-weight: 800; font-size: 14px; color: var(--blau); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.hex-pattern { background-color: var(--card); background-image: var(--hex); }

/* Service-Kacheln */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc:hover { border-color: var(--blau); box-shadow: 0 10px 26px rgba(34,52,111,.1); transform: translateY(-2px); }
.svc-ico { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--blau-hell); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background .2s; }
.svc-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--blau); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc-ico { background: var(--orange); }
.svc:hover .svc-ico svg { stroke: var(--white); }
.svc b { font-weight: 800; font-size: 15px; color: var(--ink); align-self: end; }
.svc > span:last-child { font-size: 13px; color: var(--muted); align-self: start; }

/* Teams */
.teamfinder { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.tf-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.tf-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tf-group:last-child .tf-list { grid-template-columns: repeat(3, 1fr); }
.tf-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 8px 14px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.tf-item b { width: 58px; height: 52px; display: grid; place-items: center; background: var(--blau); color: var(--white); font-size: 20px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); transition: background .2s; }
.tf-item span { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.tf-item:hover { transform: translateY(-3px); border-color: var(--orange); }
.tf-item:hover b { background: var(--orange); }
.tf-girls b { background: var(--blau-dunkel); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 14px 34px rgba(34,52,111,.12); transform: translateY(-3px); }
.news-thumb { height: 200px; overflow: hidden; display: grid; place-items: center; position: relative; }
.news-thumb img { width: 100%; height: 200px; object-fit: cover; }
.thumb-fallback { background-color: var(--blau); background-image: var(--hex-light); font-size: 44px; }
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--blau); }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 700; }
.news-cat { color: var(--orange); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.news-body h3 { font-size: 19px; margin: 8px 0; color: var(--ink); }
.news-body h3 a:hover { color: var(--blau); }
.news-body p { color: var(--muted); font-size: 14px; flex: 1; }
.news-body .more { margin-top: 12px; font-weight: 800; font-size: 13px; color: var(--blau); }

/* Sponsoren */
.sponsors { background: var(--card); }
.sponsor-quelle > *:not(.sponsor-track) { display: none; }
.sponsor-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sponsor-logo { height: 96px; background: var(--white); border-radius: var(--radius); display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); }
.sponsor-logo img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; }
.sponsor-logo:hover { border-color: var(--orange); }

/* ---------- Seitenkopf / Artikel ---------- */
.page-hero { position: relative; background: var(--blau); color: var(--white); padding: clamp(40px, 6vw, 64px) 0 clamp(34px, 5vw, 50px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hex-light); -webkit-mask-image: linear-gradient(110deg, transparent 40%, #000 90%); mask-image: linear-gradient(110deg, transparent 40%, #000 90%); }
.page-hero::after { content: ""; position: absolute; left: 0; top: 40px; width: 22px; height: 62px; background: var(--orange); clip-path: var(--chevron); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(28px, 4.6vw, 54px); letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.page-hero .kicker { margin-bottom: 10px; }
.hero-sub { color: rgba(255,255,255,.85); font-size: 18px; margin-top: 12px; max-width: 640px; }
.article-tag { display: inline-block; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px; }
.article-meta { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 700; }
.article-image { margin-top: 40px; margin-bottom: 10px; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.page-spacer { height: 30px; }
.article .article-content { padding-top: 40px; }
.sec-more-news { background: var(--card); }

/* Inhalte aus dem Editor */
.gh-content { font-size: 17px; padding-bottom: 90px; }
.gh-content > * + * { margin-top: 20px; }
.gh-content h2 { font-size: 28px; color: var(--blau); margin-top: 50px; padding-left: 26px; position: relative; scroll-margin-top: 160px; }
.gh-content h2::before { content: ""; position: absolute; left: 0; top: .15em; width: 12px; height: 26px; background: var(--orange); clip-path: var(--chevron); }
.gh-content h3 { font-size: 21px; color: var(--ink); margin-top: 34px; scroll-margin-top: 160px; }
.gh-content a { color: var(--blau); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.gh-content ul, .gh-content ol { padding-left: 24px; }
.gh-content li::marker { color: var(--orange); }
.gh-content blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 20px; color: var(--muted); font-size: 19px; }
.gh-content hr { border: 0; border-top: 2px solid var(--line); margin: 48px 0; }
.gh-content img { border-radius: var(--radius); }
.gh-content figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gh-content th { background: var(--blau); color: var(--white); text-align: left; padding: 10px 12px; }
.gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.gh-content tr:nth-child(even) td { background: var(--card); }
.kg-width-wide { position: relative; width: 85vw; max-width: 1180px; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card a { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.kg-bookmark-content { padding: 18px; flex: 1; }
.kg-bookmark-title { font-weight: 800; }
.kg-bookmark-description { font-size: 14px; color: var(--muted); }
.kg-bookmark-thumbnail img { width: 180px; height: 100%; object-fit: cover; }
.kg-callout-card { display: flex; gap: 12px; padding: 18px 22px; border-radius: var(--radius); background: var(--blau-hell); border-left: 4px solid var(--blau); }
.kg-button-card a { display: inline-block; background: var(--orange); color: var(--white) !important; text-decoration: none !important; font-weight: 800; padding: 13px 26px; border-radius: 6px; }

/* Übersichtskacheln (.hub-grid aus HTML-Cards) */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.hub-card { display: flex; flex-direction: column; gap: 2px; padding: 20px 20px 20px 54px; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s, box-shadow .2s; }
.hub-card::before { content: ""; position: absolute; left: 20px; top: 22px; width: 14px; height: 30px; background: var(--blau); clip-path: var(--chevron); transition: background .2s; }
.hub-card b { font-weight: 800; font-size: 16px; color: var(--blau); }
.hub-card span { font-size: 13px; color: var(--muted); }
.hub-card:hover { border-color: var(--orange); box-shadow: 0 10px 24px rgba(34,52,111,.1); }
.hub-card:hover::before { background: var(--orange); }

/* Abschnitts-Navigation (Pills scrollen horizontal, Pfeile + Ausblendung zeigen, dass mehr kommt) */
.section-nav { position: sticky; top: 83px; z-index: 40; display: flex; align-items: center; gap: 6px; max-width: 760px; margin: 0 auto; padding: 10px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.sn-track { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; user-select: none; }
.sn-track::-webkit-scrollbar { display: none; }
.section-nav.can-right .sn-track { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.section-nav.can-left .sn-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.section-nav.can-left.can-right .sn-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.sn-arrow { flex: 0 0 32px; height: 32px; display: none; place-items: center; border: 0; border-radius: 6px; background: var(--blau); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit; }
.sn-arrow:hover { background: var(--orange); }
.section-nav.can-left .sn-prev, .section-nav.can-right .sn-next { display: grid; }
.section-pill { flex: 0 0 auto; padding: 7px 14px; border-radius: 6px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--blau); white-space: nowrap; }
.section-pill.active, .section-pill:hover { background: var(--blau); color: var(--white); }
.section-nav + .article-content { padding-top: 26px; }
.gh-content > :first-child { margin-top: 0; }

/* Filter + Paginierung */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-pill { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 6px; background: var(--card); font-size: 14px; font-weight: 700; color: var(--blau); }
.filter-pill:hover { background: var(--blau-hell); }
.filter-pill.active { background: var(--orange); color: var(--white); }
.pill-count { font-size: 11px; background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 4px; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; font-weight: 800; color: var(--blau); }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); background-image: var(--hex); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding: 60px 24px 44px; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-logo { width: 64px; height: auto; }
.foot-brand p { font-size: 14px; color: var(--muted); }
.foot-brand b { color: var(--blau); }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li a, .site-footer .nav a { display: block; padding: 3px 0; font-size: 14px; }
.site-footer a:hover { color: var(--blau); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--blau); color: var(--white); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.foot-social a:hover { background: var(--orange); }
.foot-band { background: var(--blau); color: var(--white); font-size: 13px; }
.band-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.band-inner a:hover { color: var(--orange); }

/* Seitenkopf: Platz für den orangen Winkel, solange der Inhalt nah am linken Rand steht */
@media (max-width: 1280px) { .page-hero .wrap { padding-left: 56px; } }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; cursor: pointer; border-radius: 6px; background: var(--blau-hell); order: 3; }
    .nav-toggle span { height: 2px; background: var(--blau); transition: .25s; }
    .nav-toggle-box:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-box:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-toggle-box:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); padding: 8px 20px 20px; border-bottom: 3px solid var(--blau); box-shadow: 0 20px 40px rgba(34,52,111,.15); max-height: calc(100dvh - 80px); overflow-y: auto; }
    .nav-toggle-box:checked ~ .nav-links { display: flex; }
    .nav-links ul { flex-direction: column; }
    .nav-links a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav-links a::after { display: none; }
    .nav-links .nav-cta { margin: 14px 0 0; text-align: center; border: 0; }
    .hero-inner { grid-template-columns: 1fr; padding-left: 56px; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .teamfinder { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .util-claim { display: none; }
    .util-inner { justify-content: center; }
    .brand-text { font-size: 15px; }
    .brand-text small { display: none; }
    .brand-logo { height: 44px; }
    .hero-inner { padding: 50px 16px 56px 40px; }
    .chevron { width: 22px; height: 62px; top: 52px; }
    .btn-row { flex-direction: column; }
    .svc-grid, .news-grid, .hub-grid, .foot-grid { grid-template-columns: 1fr; }
    .tf-list { grid-template-columns: repeat(3, 1fr) !important; }
    .hero-stats b { font-size: 22px; }
    .hero-stats span { font-size: 9px; letter-spacing: .02em; }
    .hero h1 { font-size: 34px; }
    .gh-content { font-size: 16px; }
    .page-hero::after { width: 14px; height: 40px; top: 30px; }
    .page-hero .wrap { padding-left: 36px; padding-right: 16px; }
    .section-nav { padding: 8px 12px; }
    .sn-arrow { flex-basis: 28px; height: 28px; }
    .kg-width-wide, .kg-width-full { width: 100%; margin-left: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* ===== Beitragsbild als Wabe (v1.0.7) ===== */
.page-hero.has-image { min-height: 380px; overflow: visible; z-index: 2; }
.page-hero.has-image > .wrap { max-width: 1180px; padding-right: 440px; }
.hero-hex { position: absolute; right: max(40px, calc((100% - 1180px) / 2 + 24px)); bottom: -56px; width: 320px; height: 368px; z-index: 3; }
.hero-hex .page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--blau-dunkel); }
.hex-outline { position: absolute; left: 0; top: 18px; width: 110%; height: 108.7%; fill: none; stroke: var(--orange); stroke-width: 5px; overflow: visible; }
.hex-dot { position: absolute; }
.hex-dot-blue { left: -28px; top: 82%; width: 60px; height: 68px; fill: var(--blau); stroke: #fff; stroke-width: 4px; }
.hex-dot-orange { right: -30px; top: -34px; width: 40px; height: 45px; fill: var(--orange); }
.page-hero.has-image ~ .article-content { padding-top: 110px; }
@media (max-width: 1024px) {
  .page-hero.has-image > .wrap { padding-right: 330px; }
  .hero-hex { width: 240px; height: 276px; bottom: -44px; }
}
@media (max-width: 700px) {
  .page-hero.has-image { display: flex; flex-direction: column; min-height: 0; }
  .page-hero.has-image > .wrap { padding-right: 20px; }
  .hero-hex { position: relative; right: auto; bottom: auto; order: 2; align-self: center; width: 200px; height: 230px; margin: 24px 0 -80px; }
  .page-hero.has-image ~ .article-content { padding-top: 120px; }
}
/* kleine Bilder, Logos, SVG, Breitformat: ohne Wabe klein rechts im Band */
.page-hero.hero-img-small { min-height: 0; overflow: hidden; }
.page-hero.hero-img-small > .wrap { padding-right: 30%; }
.page-hero.hero-img-small .hero-hex { top: 50%; bottom: auto; transform: translateY(-50%); width: 24%; height: min(72%, 170px); }
.page-hero.hero-img-small .hero-hex .page-hero-img { object-fit: contain; clip-path: none; background: none; }
.page-hero.hero-img-small .hex-outline, .page-hero.hero-img-small .hex-dot { display: none; }
.page-hero.hero-img-small ~ .article-content { padding-top: 40px; }
@media (max-width: 700px) {
  .page-hero.hero-img-small .hero-hex { display: none; }
  .page-hero.hero-img-small > .wrap { padding-right: 20px; }
}
.article-image-caption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: right; }

/* ===== v1.0.9: Bilder im Text nicht stauchen, Titel ohne Silbentrennung, Wabe mobil straffer ===== */
.gh-content .kg-image-card img, .gh-content p img, .gh-content figure:not(.kg-gallery-card) img { height: auto; }
.page-hero h1 { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 700px) {
  .page-hero.has-image:not(.hero-img-small) .hero-hex { width: 180px; height: 207px; margin: 20px 0 -44px; }
  .page-hero.has-image:not(.hero-img-small) ~ .article-content { padding-top: 84px; }
}

/* ===== v1.1.0: Cookie-Banner in Vereinsfarben + Platzhalter für externe Inhalte ===== */
#cc-main {
  --cc-font-family: var(--font-body);
  --cc-btn-primary-bg: var(--blau); --cc-btn-primary-border-color: var(--blau);
  --cc-btn-primary-hover-bg: var(--blau-dunkel); --cc-btn-primary-hover-border-color: var(--blau-dunkel);
  --cc-btn-secondary-bg: var(--blau-hell); --cc-btn-secondary-border-color: var(--blau-hell); --cc-btn-secondary-color: var(--blau-dunkel);
  --cc-btn-secondary-hover-bg: #dde3f1; --cc-btn-secondary-hover-border-color: #dde3f1;
  --cc-toggle-on-bg: var(--orange); --cc-modal-border-radius: var(--radius); --cc-btn-border-radius: 8px;
  --cc-link-color: var(--blau);
}
.consent-placeholder { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); padding: 28px 24px; text-align: center; margin: 20px 0; }
.consent-placeholder b { display: block; font-size: 18px; color: var(--blau); margin-bottom: 8px; }
.consent-placeholder p { margin: 0 auto 16px; max-width: 520px; font-size: 14px; color: var(--muted); }
.consent-placeholder .btn-consent { display: inline-block; background: var(--orange); color: #fff; border: 0; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.consent-placeholder .btn-consent:hover { filter: brightness(.95); }
.consent-placeholder .consent-more { display: block; margin-top: 10px; font-size: 13px; }
.consent-extern .consent-placeholder { display: none; }

/* ===== v1.3.0: Formular "Trainerteam kontaktieren" ===== */
.rh-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.rh-form .rh-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rh-form .rh-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.rh-form label { font-weight: 800; font-size: 14px; color: var(--blau); }
.rh-form label .opt { font-weight: 500; color: var(--muted); }
.rh-form input[type=text], .rh-form input[type=email], .rh-form input[type=tel], .rh-form select, .rh-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%; box-sizing: border-box; }
.rh-form textarea { min-height: 150px; resize: vertical; }
.rh-form input:focus, .rh-form select:focus, .rh-form textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px var(--blau-hell); }
.rh-form select:disabled { color: var(--muted); }
.rh-form .rh-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 500; color: var(--ink); margin: 6px 0 22px; }
.rh-form .rh-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.rh-form .rh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rh-form button[type=submit] { border: 0; cursor: pointer; min-height: 48px; font-family: inherit; }
.rh-form button[type=submit]:disabled { opacity: .7; cursor: wait; }
.rh-form .rh-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.rh-form-msg { border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; font-size: 16px; }
.rh-form-msg.is-ok { background: var(--blau-hell); border-left: 5px solid var(--blau); color: var(--blau-dunkel); }
.rh-form-msg.is-error { background: var(--orange-hell); border-left: 5px solid var(--orange); color: var(--ink); }
.rh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 8px; padding: 0; list-style: none; counter-reset: s; }
.rh-steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; counter-increment: s; }
.rh-steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 8px; }
.rh-steps li b { display: block; color: var(--blau); margin-bottom: 2px; }
@media (max-width: 640px) { .rh-form { padding: 20px; } .rh-form .rh-row, .rh-steps { grid-template-columns: 1fr; gap: 0; } .rh-steps { gap: 10px; } }

/* ===== v1.4.0: Auswahlknöpfe und Einbettung für Mitglieds-Formulare ===== */
.rh-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.rh-form legend { font-weight: 800; font-size: 14px; color: var(--blau); margin-bottom: 8px; padding: 0; }
.rh-radio { display: flex; flex-wrap: wrap; gap: 10px; }
.rh-radio label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 700; cursor: pointer; }
.rh-radio input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }
.rh-radio label:has(input:checked) { border-color: var(--orange); background: var(--orange-hell); }
.rh-form .rh-hint { font-size: 13px; color: var(--muted); margin-top: -2px; }
.rh-form .rh-sub { font-size: 15px; font-weight: 800; color: var(--blau); margin: 8px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rh-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); margin: 24px 0 10px; }
.rh-embed iframe { display: block; width: 100%; height: 85vh; min-height: 640px; border: 0; }
.rh-embed-note { font-size: 13px; color: var(--muted); }

/* v1.4.2 Kontaktkarten (ersetzen die alten Umschlag-Bilder) */
.rh-kontakte{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin:1.2em 0 1.6em}
.rh-kontakte.einzeln{grid-template-columns:minmax(0,420px)}
.rh-k{display:flex;flex-direction:column;gap:6px;padding:16px 16px 14px;border-radius:12px;background:#fff;border:1px solid #e3e6ee;border-top:4px solid #344c98;box-shadow:0 6px 18px rgba(20,30,70,.06);text-decoration:none!important;color:inherit!important;transition:transform .15s,box-shadow .15s}
.rh-k:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(20,30,70,.12)}
.rh-k b{font-size:1.05em;font-weight:800;color:#344c98;line-height:1.3}
.rh-k small{color:#5d6577;font-size:.82em;line-height:1.4}
.rh-k .m{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:8px;font-size:.82em;font-weight:700;color:#22346f;word-break:break-word}
.rh-k .m i{flex:none;width:30px;height:30px;border-radius:50%;background:#eef1f8;display:grid;place-items:center;transition:background .15s}
.rh-k .m i svg{stroke:#344c98;transition:stroke .15s}
.rh-k:hover .m i{background:#f07820}.rh-k:hover .m i svg{stroke:#fff}
.rh-k .rev{direction:rtl;unicode-bidi:bidi-override}
.rh-k.jugend{border-top-color:#f07820;background:linear-gradient(180deg,#fff7ef,#fff)}
.rh-k .btn{margin-top:auto;align-self:flex-start;background:#f07820;color:#fff;font-weight:700;font-size:.9em;padding:9px 14px;border-radius:8px}

/* v1.5.0 Eigene Suche (Seiten + News) */
.rh-suche[hidden]{display:none}
.rh-suche{position:fixed;inset:0;z-index:9999}
html.rh-suche-offen{overflow:hidden}
.rh-suche-bg{position:absolute;inset:0;background:rgba(20,30,70,.55);backdrop-filter:blur(2px)}
.rh-suche-fenster{position:absolute;left:50%;top:8vh;transform:translateX(-50%);width:min(680px,94vw);max-height:80vh;display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(10,20,60,.35);overflow:hidden;font-family:Montserrat,system-ui,sans-serif}
.rh-suche-kopf{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e3e6ee;color:#344c98}
.rh-suche-kopf input{flex:1;min-width:0;border:0;outline:0;font:600 17px/1.4 Montserrat,system-ui,sans-serif;color:#1d2433;padding:8px 2px;background:transparent}
.rh-suche-kopf input::-webkit-search-cancel-button{display:none}
.rh-suche-zu{border:1px solid #d6dcef;background:#eef1f8;color:#5d6577;border-radius:6px;font:700 11px/1 Montserrat,sans-serif;padding:6px 8px;cursor:pointer}
.rh-suche-liste{overflow:auto;padding:6px 8px 12px}
.rh-suche-gruppe{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5d6577;margin:12px 8px 6px}
.rh-suche-gruppe::before{content:'';width:7px;height:14px;background:#f07820;clip-path:polygon(0 0,45% 0,100% 50%,45% 100%,0 100%,55% 50%)}
.rh-suche-treffer{display:block;padding:10px 12px;border-radius:10px;text-decoration:none!important;color:#1d2433!important;border-left:3px solid transparent}
.rh-suche-treffer b{display:inline;font-size:15px;font-weight:800;color:#344c98}
.rh-suche-treffer span{display:block;font-size:13px;line-height:1.45;color:#5d6577;margin-top:3px}
.rh-suche-treffer .rh-suche-datum{display:inline;margin-left:8px;font-size:11px;font-weight:700;color:#8a91a1}
.rh-suche-treffer:hover,.rh-suche-treffer.aktiv{background:#f4f6fc;border-left-color:#f07820}
.rh-suche mark{background:#ffe2c7;color:inherit;border-radius:2px;padding:0 1px}
.rh-suche-schnell{display:flex;flex-wrap:wrap;gap:8px;padding:2px 8px 6px}
.rh-suche-schnell a{background:#eef1f8;color:#22346f!important;text-decoration:none!important;font-weight:700;font-size:14px;padding:9px 14px;border-radius:999px}
.rh-suche-schnell a:hover{background:#344c98;color:#fff!important}
.rh-suche-leer{padding:24px 12px;color:#5d6577;font-size:14px;text-align:center;line-height:1.6}
@media(max-width:640px){
  .rh-suche-fenster{top:0;left:0;transform:none;width:100%;height:100%;max-height:none;border-radius:0}
  .rh-suche-kopf{padding:10px 12px calc(10px) 12px;padding-top:max(10px,env(safe-area-inset-top))}
  .rh-suche-kopf input{font-size:16px}
}

/* v1.6.0 Instagram Zwei-Klick */
.rh-ig{margin:1.6em 0;display:flex;justify-content:center}
.rh-ig:empty{display:none}
.rh-ig-box{max-width:480px;width:100%;text-align:center;padding:28px 22px;border-radius:14px;background:#f4f6fc;border:1px solid #d6dcef;font-family:Montserrat,system-ui,sans-serif}
.rh-ig-logo{width:56px;height:56px;margin:0 auto 12px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(45deg,#f9a12e,#e1306c 50%,#833ab4)}
.rh-ig-titel{font-weight:800;color:#22346f;font-size:17px;margin:0 0 6px!important}
.rh-ig-text{font-size:14px!important;line-height:1.5!important;color:#5d6577;margin:0 0 16px!important}
.rh-ig-btn{background:#f07820;color:#fff;border:0;border-radius:999px;padding:11px 26px;font:700 15px Montserrat,sans-serif;cursor:pointer}
.rh-ig-btn:hover{background:#344c98}
.rh-ig-immer{display:block;margin:14px 0 6px;font-size:13px;color:#5d6577;cursor:pointer}
.rh-ig-direkt{font-size:13px;color:#344c98}
.rh-ig .instagram-media{min-width:0!important;width:100%!important;max-width:540px!important;margin:0 auto!important}

/* v1.6.1 YouTube Zwei-Klick */
.rh-yt{margin:1.6em 0}
.rh-yt:empty{display:none}
.rh-yt-box{aspect-ratio:16/9;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;border-radius:14px;background:linear-gradient(135deg,#22346f,#344c98);color:#fff;font-family:Montserrat,system-ui,sans-serif;box-sizing:border-box}
.rh-yt-play{background:none;border:0;padding:0;cursor:pointer;margin-bottom:10px;transition:transform .15s}
.rh-yt-play:hover{transform:scale(1.08)}
.rh-yt-titel{font-weight:800;font-size:17px;margin:0 0 6px!important;color:#fff}
.rh-yt-text{font-size:13px!important;line-height:1.5!important;max-width:460px;margin:0 0 14px!important;color:#dfe5f5}
.rh-yt-text a{color:#fff}
.rh-yt-btn{background:#f07820;color:#fff;border:0;border-radius:999px;padding:10px 24px;font:700 15px Montserrat,sans-serif;cursor:pointer}
.rh-yt-btn:hover{background:#fff;color:#22346f}
.rh-yt-immer{display:block;margin:12px 0 4px;font-size:12px;color:#dfe5f5;cursor:pointer}
.rh-yt-direkt{font-size:12px;color:#fff!important}
.rh-yt-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000}
.rh-yt-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media(max-width:560px){.rh-yt-box{aspect-ratio:auto;padding:22px 16px}.rh-yt-text{font-size:12px!important}}

/* v1.6.3 Trainerkarten: <div class="rh-trainer"><figure class="rh-tk"><img …><figcaption><b>Name</b><span>Funktion</span></figcaption></figure></div> – ohne Foto: <div class="rh-tk-ini">AB</div> statt img */
.rh-trainer{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,210px));gap:18px;margin:1.4em 0 1.8em}
.rh-tk{margin:0!important;background:#fff;border:1px solid #d6dcef;border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(34,52,111,.08)}
.rh-tk img{display:block;width:100%!important;height:auto;aspect-ratio:3/4;object-fit:cover;margin:0!important;border-radius:0!important}
.rh-tk-ini{aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#22346f,#344c98);color:#fff;font:800 44px/1 Montserrat,sans-serif;letter-spacing:.02em}
.rh-tk figcaption{padding:10px 12px 13px!important;margin:0!important;text-align:left!important}
.rh-tk b{display:block;color:#22346f;font:800 15px/1.3 Montserrat,sans-serif}
.rh-tk span{display:block;color:#5d6577;font-size:12.5px;line-height:1.4;margin-top:2px}
@media(max-width:560px){.rh-trainer{grid-template-columns:repeat(2,1fr);gap:12px}.rh-tk b{font-size:14px}}

/* v1.6.4 Platzhalter ohne Foto: Wappen im Sechseck mit versetztem orangem Rahmen (wie Beitragskopf). Markup bleibt <div class="rh-tk-ini">Initialen</div>, Initialen werden ausgeblendet */
.rh-tk-ini{position:relative;font-size:0!important;color:transparent!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 L55 16.5 L55 47.5 L28 63 L1 47.5 L1 16.5 Z M28 63 L28 97' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.5'/%3E%3C/svg%3E"),linear-gradient(160deg,#2b3f86,#22346f 70%)!important}
.rh-tk-ini::before,.rh-tk-ini::after{content:"";position:absolute;left:18%;top:50%;width:64%;aspect-ratio:1/1.12}
.rh-tk-ini::before{transform:translate(10%,-42%);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112' preserveAspectRatio='none'%3E%3Cpolygon points='50,2.5 91,26.5 91,85.5 50,109.5 9,85.5 9,26.5' fill='none' stroke='%23f07820' stroke-width='4.5'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.rh-tk-ini::after{transform:translateY(-50%);background:#fff url("../images/wappen.png") center/58% auto no-repeat;clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}

/* Teamfinder Desktop: Jugend 3×3, Senioren 3 Spalten, größere Kacheln – v1.6.7 */
@media (min-width: 1101px) {
  .teamfinder { grid-template-columns: 1fr 1fr; gap: 40px; }
  .tf-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tf-item { padding: 24px 10px 20px; gap: 9px; }
  .tf-item b { width: 72px; height: 64px; font-size: 24px; }
  .tf-item span { font-size: 13.5px; }
}
