/* ==========================================================================
   Berlin Baskets e.V. — Ghost Theme
   Design tokens
   ========================================================================== */
:root {
    --red: #E2231A;
    --red-dark: #A81810;
    --ink: #0E1012;
    --white: #FFFFFF;
    --steel: #8A9096;

    /* Semantic tokens — light mode (default) */
    --bg: #FAFAF9;
    --bg-alt: #F1F0ED;
    --surface: #FFFFFF;
    --text: #14171A;
    --text-muted: #5c5751;
    --border: #E7E5E2;
    --shadow: rgba(20,23,26,0.1);
    --link: var(--red-dark);

    --font-display: 'Anton', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

    --wrap: 1180px;
    --radius: 14px;
    --cut: 28px;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #121316;
    --bg-alt: #1A1C1F;
    --surface: #1E2024;
    --text: #F2F1EF;
    --text-muted: #ACA69C;
    --border: #2C2F33;
    --shadow: rgba(0,0,0,0.45);
    --link: #FF6D63;

    color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    background: var(--bg);
}
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    transition: background .2s ease, color .2s ease;
    overflow-x: hidden;
    width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white);
    padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.eyebrow--light { color: rgba(255,255,255,0.75); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 999px;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
    border: 2px solid transparent;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--nav { background: var(--red); color: var(--white); padding: 10px 20px; font-size: 13px; }
.btn--nav:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background .2s ease, border-color .2s ease;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
    gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 1; min-width: 0; }
.site-logo img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.site-logo__text {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-logo__text em { display: block; font-style: normal; font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav .nav { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav .nav a {
    font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 6px 0; border-bottom: 2px solid transparent; display: inline-block;
}
.site-nav .nav a:hover, .site-nav .nav .nav-current a { border-color: var(--red); }

.search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; flex-shrink: 0; margin-left: 12px;
    transition: background .15s ease, border-color .15s ease;
}
.search-toggle:hover { border-color: var(--red); }
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; flex-shrink: 0; margin-left: 12px;
    transition: background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { border-color: var(--red); }
.theme-toggle__icon { display: none; }
.theme-toggle__icon--sun { display: flex; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: flex; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px;
    position: relative; z-index: 210;
    flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 190;
}
.nav-backdrop.is-open { display: block; }

@media (max-width: 480px) {
    .site-header__inner { gap: 10px; }
    .site-logo { gap: 8px; }
    .search-toggle, .theme-toggle { width: 36px; height: 36px; margin-left: 6px; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
        background: var(--surface); flex-direction: column; align-items: flex-start;
        padding: 100px 28px 28px; gap: 20px;
        transform: translateX(100%); transition: transform 0.25s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.12);
        z-index: 200;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav .nav { flex-direction: column; gap: 4px; width: 100%; }
    .site-nav .nav a { display: block; padding: 10px 0; width: 100%; }
    .site-nav .btn--nav { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    padding-top: 90px;
}
.hero__court-lines {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 78% 25%, rgba(226,35,26,0.28), transparent 50%);
    pointer-events: none;
}
.hero__logo-banner {
    position: absolute;
    top: 50%; right: 6%;
    transform: translateY(-50%);
    width: clamp(180px, 24vw, 340px);
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
    pointer-events: none;
}
.hero__inner { position: relative; padding: 60px 24px 96px; text-align: left; }
.hero__title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    margin-bottom: 20px;
}
.hero__text { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.court-divider { display: block; width: 100%; height: 44px; color: var(--bg); position: relative; }

@media (max-width: 780px) {
    .hero__logo-banner { opacity: 0.16; width: 60vw; right: 50%; transform: translate(50%, -50%); }
}

/* ---------- Scoreboard ---------- */
.scoreboard {
    background: var(--red); color: var(--white);
}
.scoreboard__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 36px 24px;
}
.scoreboard__stat {
    text-align: center; display: flex; flex-direction: column; gap: 6px;
    border-left: 1px solid rgba(255,255,255,0.25);
}
.scoreboard__stat:first-child { border-left: none; }
.scoreboard__number {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    text-shadow: 0 0 18px rgba(255,255,255,0.55);
}
.scoreboard__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.8); }

@media (max-width: 700px) {
    .scoreboard__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    .scoreboard__stat:nth-child(3) { border-left: none; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 36px; }
.section__head .section__title { margin-bottom: 0; }
.section__link { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.news-section { background: var(--bg); }
.explore-section { background: var(--bg-alt); }
.features-section { background: var(--bg); }
.team-preview-section { background: var(--bg-alt); }

/* ---------- Post grid & cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-grid--wide { padding: 12px 0 80px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
    background: var(--surface);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); }
.post-card__image-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.post-card__image { width: 100%; height: 100%; object-fit: cover; }
.post-card__image--placeholder { display: flex; align-items: center; justify-content: center; color: var(--steel); }
.post-card__body { padding: 20px 22px 24px; }
.post-card__title { font-size: 1.2rem; text-transform: none; letter-spacing: 0; margin: 4px 0 10px; }
.post-card__excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.post-card__date { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Explore cards ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card {
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    padding: 32px 28px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color .18s ease, background .2s ease;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); border-color: var(--red); }
.explore-card__icon { color: var(--red); }
.explore-card h3 { font-size: 1.15rem; margin: 6px 0 2px; }
.explore-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 0; }
.explore-card--accent { background: var(--ink); color: var(--white); border-color: var(--ink); }
.explore-card--accent p { color: rgba(255,255,255,0.75); }
.explore-card--accent .explore-card__icon { color: var(--red); }
.explore-card--accent:hover { border-color: var(--red); }

/* ---------- Page header (non-home) ---------- */
.page-header { padding: 64px 0 8px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-header__desc { color: var(--text-muted); max-width: 60ch; margin-top: 14px; }

/* ---------- Single post / page ---------- */
.post-header { padding: 64px 0 36px; border-bottom: 1px solid var(--border); }
.post-header--page { border-bottom: none; padding-bottom: 12px; }
.post-header__title { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: none; max-width: 24ch; }
.post-header__meta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.post-feature-image { margin-top: 40px; }
.post-feature-image img { border-radius: var(--radius); width: 100%; }
.post-content-wrap { padding-top: 48px; padding-bottom: 20px; }
.post-content { margin: 0 auto; font-size: 1.05rem; }
.post-content h2 { font-size: 1.6rem; text-transform: none; margin: 2em 0 0.6em; }
.post-content h3 { font-size: 1.25rem; text-transform: none; margin: 1.6em 0 0.5em; }
.post-content p { margin-bottom: 1.2em; }
.post-content img { border-radius: var(--radius); margin: 1.6em 0; }
.post-content a { color: var(--link); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--red); margin: 1.6em 0; padding: 4px 0 4px 20px; font-style: italic; color: var(--text-muted); }
.post-content ul, .post-content ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.post-content__empty { color: var(--text-muted); font-style: italic; }

/* Koenig editor width classes */
.post-content .kg-width-wide {
    width: 100%;
    max-width: calc(72ch + 240px);
    margin-left: 50%;
    transform: translateX(-50%);
}
.post-content .kg-width-full {
    width: 100%;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
.post-content .kg-width-wide img,
.post-content .kg-width-full img { border-radius: 0; }
.post-content .kg-width-wide img { border-radius: var(--radius); }

/* Custom fonts (set via Ghost admin Design settings) */
.gh-font-heading, [style*="--gh-font-heading"] h1, [style*="--gh-font-heading"] h2, [style*="--gh-font-heading"] h3 {
    font-family: var(--gh-font-heading, var(--font-display));
}
.gh-font-body, [style*="--gh-font-body"] {
    font-family: var(--gh-font-body, var(--font-body));
}
body { font-family: var(--gh-font-body, var(--font-body)); }
h1, h2, h3, h4 { font-family: var(--gh-font-heading, var(--font-display)); }

.related-posts { padding: 40px 0 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding-top: 70px; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px;
    padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { margin-bottom: 14px; }
.site-footer__brand p { font-size: 14px; color: rgba(255,255,255,0.6); max-width: 32ch; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.social-row a:hover { background: var(--red); border-color: var(--red); }
.site-footer__col h4 { font-size: 13px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.site-footer__col ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer__col ul li a:hover { color: var(--red); }
.site-footer__newsletter p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }

.site-footer__legal { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.site-footer__legal ul { display: flex; gap: 18px; }
.site-footer__legal ul a:hover { color: var(--white); }

@media (max-width: 560px) {
    .site-footer__legal { flex-direction: column; align-items: flex-start; padding: 24px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Ghost member signup form ---------- */
.gh-subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.gh-subscribe-form input {
    flex: 1; min-width: 160px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06); color: var(--white); font-family: var(--font-body);
}
.gh-subscribe-form button {
    padding: 12px 20px; border-radius: 8px; border: none; background: var(--red); color: var(--white);
    font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer;
}
.gh-subscribe-form button:hover { background: var(--red-dark); }
.gh-subscribe-form .message-success,
.gh-subscribe-form .message-error {
    display: none;
    width: 100%;
    font-size: 13px;
    margin-top: 8px;
}
.gh-subscribe-form.success .message-success { display: block; color: #8fd19e; }
.gh-subscribe-form.error .message-error { display: block; color: #ff8a80; }
.gh-subscribe-form.loading button { opacity: 0.6; cursor: wait; }

/* ==========================================================================
   Sub-Pages: Teams / News / About / Mitgliedschaft / Camps
   ========================================================================== */

/* ---------- Sub-hero (reused across all custom sub-pages) ---------- */
.sub-hero {
    position: relative;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    padding-top: 70px;
}
.sub-hero__court-lines {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 78% 22%, rgba(226,35,26,0.26), transparent 50%);
    pointer-events: none;
}
.sub-hero__inner { position: relative; padding: 44px 24px 80px; max-width: 68ch; }
.sub-hero__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 16px; }
.sub-hero__text { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 52ch; }

@media (max-width: 560px) {
    /* Auf schmalen Bildschirmen wirkt die Standard-Wrap-Innenabstand (24px)
       neben der großen Anton-Headline zu knapp — die Überschrift klebt fast
       am Bildschirmrand. Etwas mehr Luft links/rechts schafft Abstand. */
    .sub-hero__inner { padding-left: 28px; padding-right: 28px; }
}

/* ---------- Filter bar (Teams & News) ---------- */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 36px;
}
.filter-pill {
    font-family: var(--font-body); font-weight: 600; font-size: 13px;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
    cursor: pointer; transition: all 0.15s ease;
}
.filter-pill:hover { border-color: var(--red); color: var(--text); }
.filter-pill.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.roster-card.is-hidden, .news-card.is-hidden, .news-featured.is-hidden { display: none !important; }

/* ---------- Teams: roster grid ---------- */
.teams-section { padding-top: 60px; }
.roster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
@media (max-width: 900px) { .roster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .roster-grid { grid-template-columns: 1fr; } }

.roster-card {
    background: var(--surface); border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.roster-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); }
.roster-card__image-wrap { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.roster-card__image { width: 100%; height: 100%; object-fit: cover; }
.roster-card__image--placeholder { display: flex; align-items: center; justify-content: center; color: var(--steel); }
.roster-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--red); color: var(--white); font-family: var(--font-display);
    font-size: 12px; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px;
}
.roster-card__body { padding: 20px 22px 22px; }
.roster-card__title { font-size: 1.1rem; text-transform: none; margin-bottom: 8px; }
.roster-card__excerpt { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.roster-card__link-label {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
    color: var(--link); text-transform: uppercase; letter-spacing: 0.03em;
}
.roster-card__link-label svg { width: 14px; height: 14px; }
.teams-empty { color: var(--text-muted); font-style: italic; padding: 20px 0 40px; }

/* ---------- Next games widget (basketball-bund.net, on individual team pages) ---------- */
.next-games-embed {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 16px; max-width: 424px; margin: 24px auto 40px;
}
.next-games-embed iframe { max-width: 100%; }
.next-games-note { font-size: 14px; color: var(--text-muted); text-align: center; margin: 0; }

/* ---------- Spielplan & Tabelle (basketball-bund.net, Team-Detailseite) ---------- */
.team-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 48px;
}
@media (max-width: 820px) {
    .team-widgets { grid-template-columns: 1fr; }
}
.team-widget__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    color: var(--text-muted);
}
.team-widget iframe {
    width: 100%;
    height: 480px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    display: block;
}

/* ---------- Standort-Karte(n) (Team-Detailseite) ---------- */
/* .team-locations bündelt eine oder mehrere .team-location-Karten (ein Team
   kann z. B. zwei Trainingshallen haben) — bei mehreren Orten nebeneinander,
   auf schmalen Bildschirmen untereinander. */
.team-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 48px;
}
.team-locations--single { grid-template-columns: 1fr; }
@media (max-width: 820px) {
    .team-locations { grid-template-columns: 1fr; }
}
.team-location { margin: 0; }
.team-location iframe {
    width: 100%;
    height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: block;
    margin-bottom: 14px;
    filter: grayscale(0.15);
}
[data-theme="dark"] .team-location iframe { filter: grayscale(0.3) invert(0.92) hue-rotate(180deg); }
.team-location__address {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}
.team-location__address svg { color: var(--red); flex-shrink: 0; }
.team-location__address a { margin-left: auto; color: var(--link); font-weight: 600; white-space: nowrap; }

/* ---------- Teams-Übersichtsseite: Jahrgangs-Gruppen ---------- */
.teams-quicknav {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 56px;
}
.team-group-section { margin-bottom: 72px; scroll-margin-top: 100px; }
.team-group-section:last-child { margin-bottom: 0; }
.team-group-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}
.team-group-intro h2 { margin-bottom: 10px; }
.team-group-intro p { color: var(--text-muted); margin: 0; }
.team-group-empty {
    text-align: center; color: var(--text-muted); font-style: italic;
    padding: 24px 0;
}
.team-group-link { text-align: center; margin: 28px 0 0; }
.team-breadcrumb { margin: 0 0 32px; }
.team-breadcrumb a {
    font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--text-muted);
}
.team-breadcrumb a:hover { color: var(--red); }
.team-category-content { margin-top: 56px; }

/* ---------- Team info panel (pasted into individual team posts) ---------- */
.team-info-panel {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 2em 0;
}
.team-info-item {
    background: var(--surface);
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 4px;
}
.team-info-label {
    font-family: var(--font-display);
    font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--red);
}
.team-info-value { font-size: 15px; color: var(--text); }
@media (max-width: 620px) {
    .team-info-panel { grid-template-columns: 1fr; }
}

/* ---------- News landing ---------- */
.news-landing-section { padding-top: 60px; }
.news-featured {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
    background: var(--surface); border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
    overflow: hidden; margin-bottom: 44px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-featured:hover { box-shadow: 0 16px 40px var(--shadow); }
.news-featured__link { display: contents; }
.news-featured__image-wrap { aspect-ratio: 4/3; background: var(--bg-alt); }
.news-featured__image-wrap img, .news-featured__image { width: 100%; height: 100%; object-fit: cover; }
.news-featured__image--placeholder { display: flex; align-items: center; justify-content: center; color: var(--steel); }
.news-featured__body { padding: 36px 36px 36px 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.news-featured__title { font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: none; }
.news-featured__excerpt { font-size: 15px; color: var(--text-muted); }
.news-featured__body time { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 780px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured__body { padding: 24px; }
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-month-divider {
    grid-column: 1 / -1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-top: 12px;
}
.news-month-divider:first-child { margin-top: 0; }
.news-card {
    background: var(--surface); border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px var(--shadow); }
.news-card__image-wrap { aspect-ratio: 4/3; background: var(--bg-alt); }
.news-card__image { width: 100%; height: 100%; object-fit: cover; }
.news-card__image--placeholder { display: flex; align-items: center; justify-content: center; color: var(--steel); height: 100%; }
.news-card__body { padding: 18px 20px 20px; }
.news-card__title { font-size: 1.05rem; text-transform: none; margin: 6px 0 8px; }
.news-card__excerpt { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.news-card__date { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Scoreboard compact (About page) ---------- */
.scoreboard--compact .scoreboard__grid { padding: 28px 24px; }

/* ---------- Narrow content column (used on custom sub-pages) ---------- */
.post-content-wrap--narrow .post-content { max-width: 68ch; margin: 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-alt); padding: 70px 0; text-align: center; }
.cta-band--alt { background: var(--ink); color: var(--white); }
.cta-band--alt p { color: rgba(255,255,255,0.75); }
.cta-band__inner { max-width: 56ch; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: none; margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- Membership rows (Mitgliedschaft) ---------- */
.steps-section { padding-top: 70px; padding-bottom: 0; }
.section__title--center { text-align: center; margin-bottom: 44px; }

.membership-row { padding: 48px 0; }
.membership-row--a { background: var(--surface); }
.membership-row--b { background: var(--bg-alt); }
.membership-row__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.membership-row__number {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: var(--white);
    font-family: var(--font-display); font-size: 24px;
}
.membership-row__body { flex: 1 1 320px; }
.membership-row__body h3 { font-size: 1.3rem; text-transform: none; margin-bottom: 8px; }
.membership-row__body p { font-size: 15px; color: var(--text-muted); margin-bottom: 0; }
.membership-row__body p a { color: var(--link); text-decoration: underline; }
.membership-row__action { flex-shrink: 0; white-space: nowrap; }
.membership-row__icon { flex-shrink: 0; color: var(--red); display: inline-flex; }

@media (max-width: 620px) {
    .membership-row__inner { flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; }
    .membership-row__action { width: 100%; text-align: center; }
}

/* ---------- Info strip (Camps) ---------- */
.info-strip-section { padding-top: 70px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .info-strip { grid-template-columns: 1fr; } }
.info-strip__item { text-align: center; padding: 8px 16px; }
.info-strip__icon { display: inline-flex; color: var(--red); margin-bottom: 14px; }
.info-strip__item h3 { font-size: 1.05rem; text-transform: none; margin-bottom: 8px; }
.info-strip__item p { font-size: 14px; color: var(--text-muted); margin-bottom: 0; }
.info-strip__item p a { color: var(--link); text-decoration: underline; }

/* ---------- Error page ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page__code { font-family: var(--font-display); font-size: 6rem; color: var(--red); display: block; }
.error-page h1 { font-size: 1.8rem; margin: 10px 0 16px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ==========================================================================
   Print — keep the brand recognizable, guarantee readable text
   Browsers strip background-color/box-shadow by default when printing, so
   any white-on-dark section (hero, footer, scoreboard, dark CTA) would
   otherwise print invisible white text on a white page. We force those
   sections to print on white with dark text, keep the red brand colour on
   type/borders (which browsers always print), and hide UI chrome that
   makes no sense on paper (nav toggle, filters, forms, buttons).
   ========================================================================== */
@media print {
    * { box-shadow: none !important; text-shadow: none !important; }

    html, body { background: #fff !important; overflow-x: visible; }

    a { text-decoration: underline; }
    a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.75em; font-weight: 400; }
    a[href^="mailto"]:after, a[href^="#"]:after { content: ""; }

    /* Hide anything interaction-only / not useful on paper */
    .theme-toggle,
    .nav-toggle,
    .nav-backdrop,
    .btn--nav,
    .filter-bar,
    .gh-subscribe-form,
    .skip-link,
    .social-row,
    .site-footer__newsletter,
    .cta-band,
    .hero__actions,
    .roster-card__link-label,
    .hero__court-lines,
    .sub-hero__court-lines,
    .sub-hero__watermark,
    .hero__logo-banner,
    .court-divider,
    #main-content .btn { display: none !important; }

    /* Full-bleed brand sections: force onto white so text can never
       disappear, keep recognisable via a red rule + red accent text */
    .hero, .sub-hero, .site-footer, .scoreboard {
        background: #fff !important;
        color: #14171A !important;
        border-top: 3px solid #E2231A;
        border-bottom: 3px solid #E2231A;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .hero__title, .sub-hero__title, .hero__text, .sub-hero__text,
    .site-footer, .site-footer p, .site-footer a, .site-footer h4,
    .scoreboard__label { color: #14171A !important; }
    .eyebrow, .eyebrow--light, .scoreboard__number { color: #E2231A !important; }
    .scoreboard__grid { padding: 0 !important; }
    .scoreboard__stat { border-left-color: #ccc !important; }

    .site-header { position: static !important; border-bottom: 2px solid #14171A; }
    .site-logo img, .site-footer__brand img { width: 40px !important; height: 40px !important; }

    /* Normal content: make sure links/headings keep a touch of brand red */
    .post-content a, .membership-row__body p a, .info-strip__item p a { color: #A81810 !important; }

    /* Cards: simple bordered boxes instead of shadows/hover states */
    .post-card, .roster-card, .news-card, .news-featured, .explore-card, .membership-row {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .page-header, .post-header { padding-top: 24px; }
}


/* Großes Team-Foto direkt unter dem Header (Startseite) */
.hero-photo-band {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: var(--black, #14171A);
    position: relative;
}
.hero-photo-band img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 420px;
    object-fit: cover;
    object-position: center 35%;
}
.hero-photo-band::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(20,23,26,0.9));
    pointer-events: none;
}
@media (max-width: 700px) {
    .hero-photo-band img { max-height: 220px; }
}

/* ==========================================================================
   WordPress-Ergänzungen
   Diese Klassen gab es im Ghost-Original nicht (dort von Ghost-Core oder
   dem Theme-Wechsler übernommen) und werden hier im gleichen Design-Vokabular
   (Farb-Tokens, Radius, Schriften) neu bereitgestellt.
   ========================================================================== */

/* Screenreader-only Text (Standard-WP-Klasse für Formular-Labels etc.) */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Such-Toggle-Formular im Header */
.bb-search-form {
    display: none;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.bb-search-form.is-open { display: flex; }
.bb-search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text);
    font-family: var(--font-body);
}
.bb-search-form button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 8px; border: none; cursor: pointer;
    background: var(--red); color: var(--white);
}
.bb-search-form button:hover { background: var(--red-dark); }

/* Pagination */
.bb-pagination { padding: 20px 0 80px; }
.bb-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bb-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text);
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    transition: all 0.15s ease;
}
.bb-pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.bb-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--white); }
.bb-pagination .page-numbers.dots { border-color: transparent; background: none; }

@media print {
    .bb-search-form, .bb-pagination { display: none !important; }
}
