/* JFC – Schwarz/Weiß */
:root { --jfc-black: var(--wp--preset--color--contrast); --jfc-white: var(--wp--preset--color--base); }

/* Header */
.jfc-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--wp--preset--color--line); padding-block: .6rem; }
.jfc-header .wp-block-site-title { font-size: 1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.jfc-header .wp-block-site-title a { text-decoration: none; }
.jfc-header .wp-block-navigation a { text-decoration: none; }
.jfc-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.jfc-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; }

/* Hero */
.jfc-hero { padding-block: clamp(4rem, 11vw, 9rem) !important; position: relative; overflow: hidden; }
.jfc-hero > * { position: relative; z-index: 1; }
.jfc-hero::after { content: ""; position: absolute; right: -4vw; top: 50%; width: min(48vw, 640px); aspect-ratio: 1; transform: translateY(-50%) rotate(-30deg); background: var(--jfc-logo, none) center / contain no-repeat; opacity: .09; filter: grayscale(1); mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
@media (max-width: 781px) { .jfc-hero::after { width: 85vw; right: -30vw; opacity: .06; } }
.jfc-hero h1 { text-transform: uppercase; max-width: 14ch; margin-block: .5rem 1.5rem; }
.jfc-hero p { max-width: 52ch; }
.jfc-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem !important; font-weight: 700; color: var(--wp--preset--color--muted); }

/* Buttons */
.jfc-btn-light .wp-block-button__link { background: var(--jfc-white); color: var(--jfc-black); border-color: var(--jfc-white); }
.jfc-btn-light .wp-block-button__link:hover { background: transparent; color: var(--jfc-white); }
.jfc-btn-outline .wp-block-button__link { background: transparent; color: currentColor; border-color: currentColor; }
.jfc-btn-outline .wp-block-button__link:hover { background: var(--jfc-black); color: var(--jfc-white); border-color: var(--jfc-black); }
.has-contrast-background-color .jfc-btn-outline .wp-block-button__link:hover { color: var(--jfc-black); background: var(--jfc-white); }
.has-base-background-color .jfc-btn-outline .wp-block-button__link:hover,
.jfc-section .jfc-btn-outline .wp-block-button__link:hover { color: var(--jfc-white); background: var(--jfc-black); }

/* Sektionen */
.jfc-section { padding-block: clamp(3rem, 7vw, 5.5rem) !important; }
.jfc-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--jfc-black); padding-bottom: .75rem; margin-bottom: 2rem; }
.jfc-section-head h2 { margin: 0; text-transform: uppercase; }
.jfc-section-head p { margin: 0; color: var(--wp--preset--color--muted); font-weight: 600; }

/* Team-Kacheln */
.jfc-teams .wp-block-post-template { gap: 1rem; }
.jfc-teams .wp-block-post-title { margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.jfc-teams .wp-block-post-title a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 7rem; padding: 1rem; border: 2px solid var(--jfc-black); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; hyphens: none; transition: background .15s, color .15s; }
.jfc-teams .wp-block-post-title a:hover, .jfc-teams .wp-block-post-title a:focus-visible { background: var(--jfc-black); color: var(--jfc-white); }

/* News */
.jfc-news .wp-block-post-template { gap: 2rem; }
.jfc-news .wp-block-post { border-top: 3px solid var(--jfc-black); padding-top: 1rem; }
.jfc-news .wp-block-post-title { font-size: 1.25rem; margin-block: .35rem .5rem; }
.jfc-news .wp-block-post-title a { text-decoration: none; }
.jfc-news .wp-block-post-title a:hover { text-decoration: underline; }
.jfc-news .wp-block-post-excerpt { font-size: .95rem; color: var(--wp--preset--color--muted); }
.jfc-empty { color: var(--wp--preset--color--muted); }

/* CTA / Förderverein */
.jfc-cta { padding-block: clamp(3rem, 7vw, 5rem) !important; }
.jfc-cta h2 { text-transform: uppercase; margin-top: 0; }
.jfc-split > .wp-block-column { border: 2px solid var(--jfc-black); padding: clamp(1.5rem, 4vw, 2.5rem); }
.jfc-split h3, .jfc-box h3 { margin-top: 0; text-transform: uppercase; }
.jfc-box { border: 2px solid var(--jfc-black); padding: clamp(1.5rem, 4vw, 2.5rem); gap: 1.5rem; }
.jfc-box p { margin-bottom: 0; }

/* Seiten / Beiträge */
.jfc-page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) !important; }
.jfc-page-head .wp-block-post-title, .jfc-page-head .wp-block-query-title { text-transform: uppercase; margin: 0; }
.jfc-content { padding-block: clamp(2rem, 5vw, 4rem) !important; }
.jfc-content img { height: auto; }
.wp-block-post-content a { text-underline-offset: .2em; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th { border: 1px solid var(--wp--preset--color--line); padding: .6rem .75rem; }
.wp-block-table thead { border-bottom: 3px solid var(--jfc-black); }
.jfc-list .wp-block-post { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 1.25rem; }
.jfc-list .wp-block-post-title { margin: .2rem 0 .4rem; font-size: 1.3rem; }
.jfc-list .wp-block-post-title a { text-decoration: none; }
.wp-block-query-pagination { margin-top: 2rem; font-weight: 700; }

/* Footer */
.jfc-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem !important; font-size: .925rem; }
.jfc-footer a { color: inherit; text-decoration: none; }
.jfc-footer a:hover { text-decoration: underline; }
.jfc-footer h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; opacity: .6; margin: 0 0 .75rem; }
.jfc-footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.jfc-footer .jfc-legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; margin-top: 2.5rem; opacity: .6; font-size: .85rem; }

/* Fokus sichtbar */
:where(a, button, .wp-block-button__link):focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

@media (max-width: 600px) {
	.jfc-header .wp-block-site-title { font-size: .875rem; }
	.jfc-teams .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem; }
	.jfc-teams .wp-block-post-title a { min-height: 4.5rem; font-size: .85rem; padding: .5rem; }
}

/* Layout: keine Lücken zwischen Header/Main/Footer, Footer unten */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks > main { flex: 1 0 auto; }
.jfc-hero p.jfc-kicker { max-width: none; }

/* v1.1: heller */
.jfc-page-head { border-bottom: 3px solid var(--jfc-black); }
.jfc-cta { padding-block: clamp(3rem, 7vw, 5rem) !important; }
.jfc-cta + .jfc-section { padding-top: 0 !important; }
.jfc-cta-box { border: 3px solid var(--jfc-black); padding: clamp(1.5rem, 4vw, 3rem); }
.jfc-group-title { font-size: 1rem !important; letter-spacing: .15em; text-transform: uppercase; margin-block: 2rem .75rem !important; }
.jfc-group-title a { text-decoration: none; }
.jfc-group-title a:hover { text-decoration: underline; }
.jfc-section-head + .jfc-group-title { margin-block-start: 0 !important; }
.jfc-teams .wp-block-post-title { font-size: clamp(1rem, 1.6vw, 1.2rem) !important; }

/* v1.3: Partner + Social */
.jfc-partner { gap: 2rem; }
.jfc-partner-logo { margin: 0; flex: 0 0 auto; }
.jfc-partner-logo img { width: 180px; max-width: 40vw; height: auto; display: block; }
.jfc-partner-text { flex: 1 1 22rem; }
.jfc-partner-text .jfc-kicker { margin: 0 0 .25rem; }
.jfc-social { margin-top: 1.25rem; }
.jfc-social .wp-social-link, .jfc-social .wp-social-link a { color: var(--jfc-white) !important; }
.jfc-social .wp-social-link svg { width: 1.6rem; height: 1.6rem; }
.jfc-social .wp-social-link:hover { opacity: .7; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; background: #fff; color: #000; padding: .5rem 1rem; z-index: 1000; }

/* v1.5: Verschmelzen-Animation (Seite Wir sind JFC) */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header { top: var(--wp-admin--admin-bar--height, 0); }
.jfc-header { position: static; }
.wp-site-blocks > main, .wp-site-blocks > footer { position: relative; z-index: 1; }
.jfc-merge { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.jfc-merge img { position: absolute; left: 50%; top: 58%; height: auto; opacity: 0; filter: grayscale(1); transform: translate(-50%, -50%); will-change: transform, opacity; }
.jfc-merge-club { width: min(26vw, 240px); filter: none !important; }
.jfc-merge-jfc { width: min(70vw, 560px); }
.jfc-merge ~ * { position: relative; z-index: 1; }

/* v1.7: Vision */
.jfc-vision { padding-block: clamp(3.5rem, 8vw, 6rem) !important; position: relative; overflow: hidden; }
.jfc-vision > * { position: relative; z-index: 1; }
.jfc-vision .jfc-kicker { color: inherit; opacity: .7; }
.jfc-vision-quote { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; max-width: 30ch; margin: .5rem 0 2.5rem; text-wrap: balance; }
.jfc-pillars { gap: clamp(1.5rem, 4vw, 3rem) !important; }
.jfc-pillars h3 { text-transform: uppercase; font-size: 1rem; letter-spacing: .08em; margin: 0 0 .5rem; color: inherit; }
.jfc-pillars p { opacity: .85; margin: 0; }
.jfc-pillars .wp-block-column { border-top: 2px solid rgba(255,255,255,.35); padding-top: 1rem; }
.jfc-vision-more a { color: inherit; font-weight: 700; }
.jfc-quote-box { border-left: 5px solid currentColor; padding: .25rem 0 .25rem 1.25rem; font-size: 1.15rem; }
.jfc-docs { display: grid; gap: .75rem; }
.jfc-docs .wp-block-file { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; border: 2px solid var(--wp--preset--color--line); padding: .9rem 1.1rem; margin: 0; }
.jfc-docs .wp-block-file a:first-child { font-weight: 700; }
.jfc-vision { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M402 110H232v380h170M402 210h-60v180h60'/%3E%3Ccircle cx='285' cy='300' r='4' fill='%23fff' fill-opacity='.16' stroke='none'/%3E%3Cpath d='M232 221.2A95 95 0 0 0 232 378.8'/%3E%3C/svg%3E"); background-position: right center; background-size: auto 100%; background-repeat: no-repeat; }
@media (max-width: 781px) { .jfc-vision { background-image: none !important; } body .jfc-vision { background: radial-gradient(90% 120% at 15% 0%, #262626, #111 60%) !important; } }

/* v1.7: Team-Info (Trainerteam / Training) */
.jfc-team-info { background: var(--wp--preset--color--surface); border-top: 4px solid var(--jfc-black); padding: clamp(1.25rem, 3vw, 2rem) !important; gap: 2rem !important; margin-block: 0 2.5rem !important; }
.jfc-team-info h2, .jfc-team-info h3 { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--wp--preset--color--muted); margin: 0 0 .6rem; }
.jfc-team-info h3 { margin-top: 1.4rem; }
.jfc-team-info p, .jfc-team-info li { font-size: 1.05rem; margin: 0; }
.jfc-team-info p + p { margin-top: .4rem; }
.jfc-team-info ul { list-style: none; padding: 0 !important; margin: 0; }
.jfc-team-info li { padding: .15rem 0; }
@media (min-width: 782px) { .jfc-team-info > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); padding-left: 2rem; } }
@media (max-width: 781px) { .jfc-team-info > .wp-block-column + .wp-block-column { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; } }

/* v1.7.2: Teamfoto (Beitragsbild der Teamseite) */
.jfc-team-photo { margin-block: 0 2rem !important; }
.jfc-team-photo img { width: 100%; height: auto !important; display: block; object-fit: contain; }
