/*
Theme Name: FV Cölbe 1927
Theme URI: https://www.fv-coelbe.de
Author: Weitzel IT GmbH
Description: Offizielles Theme des FV 1927 Cölbe e.V.
Version: 2.2.4
Requires at least: 6.0
Requires PHP: 8.0
License: Private
Text Domain: fvc
*/

/* ============================================================
   DESIGN TOKENS – treu zum Original (schwarz, weiß, rot)
   ============================================================ */
:root {
    --black:       #1a1a1a;
    --white:       #ffffff;
    --grey-bg:     #f4f4f4;
    --grey-light:  #e8e8e8;
    --grey-text:   #666666;
    --red:         #ed1c24;
    --font:        'Helvetica Neue', Helvetica, Arial, sans-serif;
    --header-h:    70px;
    --max-w:       1400px;
    --radius:      4px;
    --transition:  .2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: var(--header-h); }

/* Startseite: Hero trägt selbst den Abstand zum Header */
body.home { padding-top: 0; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ============================================================
   TYPOGRAPHY  (wie Original: schlichte Helvetica-Stile)
   ============================================================ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--red); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

/* Überschriften auf dunklem Hintergrund bleiben weiß */
.page-banner h1,
.post-banner h1,
.score-box__team,
.error404-wrap h1,
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container     { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section       { padding: 60px 0; }
.section--grey { background: var(--grey-bg); }

/* ============================================================
   HEADER  – WEISS mit roter Navigation (exakt wie Original)
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    z-index: 1000;
    display: flex;
    align-items: stretch;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: visible;
}
/* Logo sitzt direkt im site-header, außerhalb des Containers */
.site-logo {
    display: flex;
    align-items: center;
    background: var(--red);
    padding: 0 20px;
    flex-shrink: 0;
    align-self: stretch;
    text-decoration: none;

/* Vereinsheim-Grafik neben dem Logo */
.header-vereinsheim {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    flex-shrink: 0;
    overflow: hidden;
    height: var(--header-h);
}
.header-vereinsheim img {
    height: calc(var(--header-h) - 8px);
    max-height: calc(var(--header-h) - 8px);
    width: auto;
    max-width: 300px;
    display: block;
    object-fit: contain;
}
@media (max-width: 860px) { .header-vereinsheim { display: none; } }
}
.site-logo img {
    height: 42px !important;
    width: auto !important;
    max-height: 42px !important;
    display: block;
}
.site-logo-text {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}
/* Container im Header: volle Breite, kein max-width */
.site-header .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
    max-width: none;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 1rem;
}

/* Nav – rote Links wie Original */
.primary-nav      { display: flex; align-items: center; gap: 0; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
    display: block;
    padding: 0 12px;
    line-height: var(--header-h);
    color: var(--red);
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: none;
    transition: color var(--transition);
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a { color: #c5151b; }

/* Dropdown – weißer Hintergrund */
.primary-nav > li { position: relative; }
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-top: 2px solid var(--red);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: var(--transition);
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--red);
    font-size: .82rem;
    font-weight: 600;
    border-top: 1px solid var(--grey-light);
    transition: background var(--transition);
}
.primary-nav .sub-menu li:first-child a { border-top: none; }
.primary-nav .sub-menu a:hover { background: var(--grey-bg); }

/* Header CTA buttons */
.header-btns { display: flex; align-items: center; gap: 8px; }
.btn-nav {
    padding: 7px 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.btn-nav--outline { border: 1px solid var(--grey-light); color: var(--black); }
.btn-nav--outline:hover { border-color: var(--black); }
.btn-nav--solid { background: var(--red); color: var(--white); border: 1px solid var(--red); }
.btn-nav--solid:hover { background: #c5151b; }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--black); margin: 5px 0; border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO  – Höhe vom SmartSlider bestimmt, Fallback: 100vh
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--header-h);  /* einzige Stelle für diesen Abstand */
    max-height: 90vh;             /* nie höher als 90% des Viewports */
}

/* Fallback (kein Slider): volle Viewport-Höhe minus Header */
.hero--fallback {
    height: calc(100vh - var(--header-h));
    min-height: 500px;
}

/* SmartSlider-Modus: Hero passt sich dem Slider an */
.hero--slider {
    height: auto;
}

/* Hintergrundbild */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: .75;           /* Original: Bild gut sichtbar, leicht abgedunkelt */
}

/* Leichter dunkler Gradient nur im Text-Bereich (Mitte) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 70%);
}

/* Weißer geschwungener Übergang unten – charakteristisch für Original */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -5%;
    right: -5%;
    height: 80px;
    background: var(--white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 2;
}

/* Text */
.hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
    padding: 0 4rem;   /* Platz für Slider-Pfeile */
}
.hero__subtitle {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: .6rem;
}
.hero__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
    margin-bottom: 1.25rem;
}
.hero__body {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    max-width: 480px;
    margin: 0 auto 1.75rem;
}
.hero__btn {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--white);
    font-size: .85rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition);
}
.hero__btn:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* Slider-Pfeile links & rechts */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.15);
    border: none;
    color: var(--white);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.hero__arrow:hover  { background: rgba(255,255,255,.3); }
.hero__arrow--prev  { left: 20px; }
.hero__arrow--next  { right: 20px; }

/* Scroll-Indikator unten mittig */
.hero__scroll {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--red);
    font-size: 1.4rem;
    animation: scrollBounce 1.8s ease-in-out infinite;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
@keyframes scrollBounce {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: .7; }
    50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* SmartSlider im Hero – normaler Fluss, Slider bestimmt die Höhe */
.hero__slider-wrap {
    width: 100%;
    line-height: 0; /* verhindert Lücke unter dem Slider-Block */
}
.hero__slider-wrap .n2-ss-slider,
.hero__slider-wrap > div {
    width: 100% !important;
}
/* Scroll-Indikator über dem Slider */
.hero__scroll { z-index: 10; }

/* ============================================================
   SECTION HEADLINE – wie Original: klein, grau darunter Title
   ============================================================ */
.section-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey-text);
    margin-bottom: .4rem;
}
.section-head {
    margin-bottom: 40px;
}
.section-head h2 { margin-bottom: 0; }

/* ============================================================
   NEWS CARDS  – weiß, Schatten, wie auf Original-Seite
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.14); transform: translateY(-2px); }

.news-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--grey-light);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card__img img { transform: scale(1.04); }

/* Score badge on image */
.news-card__score {
    position: absolute;
    bottom: 8px; left: 8px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    padding: 2px 10px;
    border-radius: var(--radius);
}
.news-card__img-wrap { position: relative; }

.news-card__body   { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card__cat    { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: .35rem; }
.news-card__title  { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; color: var(--black); }
.news-card__title a:hover { color: var(--red); }
.news-card__excerpt { font-size: .875rem; color: var(--grey-text); flex: 1; margin-bottom: .75rem; }
.news-card__meta   { font-size: .75rem; color: var(--grey-text); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--grey-light); padding-top: .6rem; margin-top: auto; }
.news-card__read   { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.news-card__read:hover { text-decoration: underline; }

/* "Alle News" button – zentriert, wie original */
.news-more { text-align: center; margin-top: 36px; }

/* ============================================================
   ÜBER UNS TEASER  – Text + Bild nebeneinander
   ============================================================ */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 720px) { .about-split { grid-template-columns: 1fr; gap: 32px; } }
.about-split__text p { color: var(--grey-text); margin-bottom: 1rem; line-height: 1.75; }
.about-split__img img { border-radius: var(--radius); width: 100%; }

/* ============================================================
   TEAM GRID  – Spielerkarten
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: row;
    transition: box-shadow var(--transition), transform var(--transition);
}
@media (max-width: 600px) {
    .team-card { flex-direction: column; }
    .team-card__img { width: 100% !important; height: 280px; }
}
.team-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); transform: translateY(-2px); }

.team-card__img {
    width: 350px;
    height: 466px;
    flex-shrink: 0;
    position: relative;
    background: var(--grey-light);
    overflow: hidden;
}
.team-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }

.team-card__number {
    position: absolute; top: 8px; right: 8px;
    background: var(--red); color: var(--white);
    font-weight: 700; font-size: .85rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.team-card__right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.team-card__body   { padding: 16px; }
.team-card__name   { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.team-card__pos    { font-size: .75rem; color: var(--grey-text); text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   STAFF / VORSTAND  – wie Originalseite
   ============================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 640px) { .staff-grid { grid-template-columns: 1fr; } }

.staff-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.staff-card__img {
    width: 111px;
    height: 139px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--grey-light);
}
.staff-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-card__initial {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--red), #c5151b);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); font-size: 2rem; font-weight: 700;
}
.staff-card__body { flex: 1; min-width: 0; }
.staff-card__role { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-text); margin-bottom: 3px; }
.staff-card__name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.staff-card__contact { font-size: .85rem; color: var(--red); line-height: 1.7; }
.staff-card__contact a { color: var(--red); }
.staff-card__contact a:hover { color: #c5151b; }

/* ============================================================
   SPONSOREN-LEISTE  – über dem Footer, volle Breite
   ============================================================ */
.sponsors-bar {
    background: var(--white);
    border-top: 1px solid var(--grey-light);
    border-bottom: 1px solid var(--grey-light);
    padding: 32px clamp(1rem, 4vw, 3rem);  /* kein container – volle Breite */
}
.sponsors-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    width: 100%;
}
.sponsors-bar__item {
    display: flex;
    align-items: center;
    flex: 1 1 auto;                  /* flexibel in der Breite */
    justify-content: center;
    transition: opacity var(--transition), transform var(--transition);
    opacity: .7;
}
.sponsors-bar__item:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.sponsors-bar__item img {
    height: 100px;                   /* größer als vorher (war 44px) */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* ============================================================
   INSTAGRAM FEED – wie News-Cards: 2 Spalten, roter Titelbalken
   ============================================================ */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 600px) { .insta-grid { grid-template-columns: 1fr; } }

.insta-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: box-shadow var(--transition), transform var(--transition);
    background: var(--white);
    text-decoration: none;
}
.insta-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.16);
    transform: translateY(-2px);
}
.insta-item__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--grey-light);
    position: relative;
}
.insta-item__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.insta-item:hover .insta-item__img img { transform: scale(1.04); }

/* Roter Titelbalken unten – wie News-Cards */
.insta-item__footer {
    background: var(--red);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.insta-item__caption {
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    flex: 1;
}
.insta-item__icon {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   PAGE HERO  – für Unterseiten (Verein, Kontakt, etc.)
   ============================================================ */
.page-banner {
    background: var(--red);
    padding: 48px 0;
    text-align: center;
    color: var(--white);
}
.page-banner__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.page-banner h1 { color: var(--white); text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.8rem); }

/* ============================================================
   KONTAKT FORMULAR
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-form label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--black); margin-bottom: 5px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    font-family: var(--font); font-size: .95rem;
    margin-bottom: 16px;
    transition: border-color var(--transition);
    background: var(--white); color: var(--black);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--black); }
.contact-form textarea { min-height: 130px; resize: vertical; }

.contact-info h3 { margin-bottom: 20px; }
.contact-info-row { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; font-size: .9rem; color: var(--grey-text); }
.contact-info-row strong { color: var(--black); }

/* ============================================================
   SINGLE NEWS POST
   ============================================================ */
.post-banner {

    background: var(--black);
    position: relative;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.post-banner__img { position: absolute; inset: 0; }
.post-banner__img img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.post-banner__content { position: relative; padding: 32px; }
.post-banner h1 { color: var(--white); font-size: clamp(1.4rem, 4vw, 2.4rem); text-transform: uppercase; }
.post-banner__meta { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: .4rem; }

.score-box {
    background: var(--black);
    color: var(--white);
    padding: 24px 0;
    text-align: center;
}
.score-box__inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.score-box__team  { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.score-box__score { font-size: 2.8rem; font-weight: 700; background: var(--red); padding: 4px 20px; border-radius: var(--radius); }
.score-box__date  { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }

.post-content { max-width: 740px; margin: 48px auto; padding: 0 1rem; }
.post-content p { color: var(--grey-text); line-height: 1.8; margin-bottom: 1.2rem; font-size: 1rem; }
.post-content h2, .post-content h3 { margin: 2rem 0 .75rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ============================================================
   AKKORDEON  (Chronik)
   ============================================================ */
.accordion-item { border-bottom: 1px solid var(--grey-light); }
.accordion-btn {
    width: 100%; background: none; border: none; cursor: pointer;
    padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font); font-size: 1rem; font-weight: 700;
    text-align: left; color: var(--black);
    transition: color var(--transition);
}
.accordion-btn:hover { color: var(--red); }
.accordion-btn__icon {
    width: 24px; height: 24px;
    border: 1px solid var(--grey-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; flex-shrink: 0;
    transition: var(--transition);
}
.accordion-btn.open .accordion-btn__icon { background: var(--black); border-color: var(--black); color: var(--white); transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 0 16px; color: var(--grey-text); font-size: .9rem; line-height: 1.75; }
.accordion-body.open { display: block; }

/* ============================================================
   BUTTONS (allgemein)
   ============================================================ */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.btn--black  { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--black:hover { background: #333; }
.btn--red    { background: var(--red);   color: var(--white); border-color: var(--red); }
.btn--red:hover { background: #c5151b; }
.btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

/* ============================================================
   SOCIAL SIDEBAR  – linke Seite, vertikal, fest
   ============================================================ */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
}
.social-sidebar a {
    width: 40px;
    height: 40px;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition), width var(--transition);
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-decoration: none;
}
.social-sidebar a:hover { background: #c5151b; width: 48px; }
@media (max-width: 860px) { .social-sidebar { display: none; } }

/* ============================================================
   NEWS CARDS  – Bild + roter Balken unten mit weißem Titel
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    background: var(--white);
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.16); transform: translateY(-2px); }

/* Bild nimmt den Großteil ein */
.news-card__img-wrap { position: relative; flex: 1; }
.news-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--grey-light);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.news-card:hover .news-card__img img { transform: scale(1.04); }

/* Roter Balken unten mit weißem Text – exakt wie Original */
.news-card__footer {
    background: var(--red);
    padding: 14px 16px;
}
.news-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin: 0;
}
.news-card__meta {
    font-size: .75rem;
    color: rgba(255,255,255,.75);
    margin-top: 4px;
}

/* Score badge (Ergebnis) direkt im Bild */
.news-card__score {
    position: absolute;
    bottom: 10px; left: 10px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 3px 12px;
    border-radius: var(--radius);
}

/* ============================================================
   FOOTER  – ROT wie Original
   ============================================================ */
.site-footer { background: var(--red); color: rgba(255,255,255,.9); }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-col h4 {
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--white); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.85); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    font-size: .78rem; color: rgba(255,255,255,.7);
}
.footer-bottom a:hover { color: var(--white); }

/* Emoji im Footer (z.B. ♥) weiß darstellen */
.footer-bottom img.emoji {
    filter: brightness(0) invert(1);
    height: 1em !important;
    width: 1em !important;
    vertical-align: middle;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    width: 36px; height: 36px;
    border: 1px solid var(--grey-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700;
    transition: var(--transition);
}
.pagination a:hover, .pagination .current { background: var(--black); border-color: var(--black); color: var(--white); }

/* ============================================================
   404
   ============================================================ */
.error404-wrap {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--black);
    color: var(--white);
    padding: 2rem;
    position: relative;
}
.error404-wrap h1 { font-size: clamp(4rem, 15vw, 10rem); color: var(--red); line-height: 1; }
.error404-wrap p  { color: rgba(255,255,255,.7); margin: 1rem 0 2rem; font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE – Mobile Nav
   ============================================================ */
@media (max-width: 860px) {
    .primary-nav, .header-btns { display: none; }
    .nav-toggle { display: block; }

    /* Hamburger Icon – weiß auf rotem Header */
    .nav-toggle span { background: var(--black); }

    /* Fullscreen Overlay – Rot */
    .primary-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--red);
        padding: 0;
        overflow-y: auto;
        z-index: 999;
    }

    /* Logo + Schließen-Button oben */
    .primary-nav.open::before {
        content: '';
        display: block;
        height: var(--header-h);
        flex-shrink: 0;
    }

    /* Hauptlinks – zentriert */
    .primary-nav.open > li {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .primary-nav.open > li > a {
        display: block;
        padding: 18px 28px;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--white);
        border-bottom: none;
        text-transform: uppercase;
        letter-spacing: .1em;
        text-decoration: none;
        text-align: center;
    }
    .primary-nav.open > li > a:hover {
        background: rgba(0,0,0,.15);
        color: var(--white);
    }

    /* Sub-Menü (Teams) – auch zentriert */
    .primary-nav.open .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        padding: 0;
    }
    .primary-nav.open .sub-menu li {
        text-align: center;
    }
    .primary-nav.open .sub-menu li a {
        display: block;
        padding: 12px 28px;
        font-size: .95rem;
        font-weight: 600;
        color: rgba(255,255,255,.9);
        border-bottom: 1px solid rgba(255,255,255,.08);
        text-transform: none;
        letter-spacing: .02em;
        text-align: center;
    }
    .primary-nav.open .sub-menu li a:hover {
        background: rgba(0,0,0,.15);
        color: var(--white);
    }

    /* Hamburger weiß wenn offen */
    .nav-toggle.open span { background: var(--white); }
}

/* ============================================================
   ELEMENTOR KOMPATIBILITÄT
   ============================================================ */

/* Kein extra Padding auf Elementor-Seiten */
.elementor-page .elementor-section-wrap,
.elementor-page .elementor { padding-top: 0 !important; }

/* Icon Box: Icons und Titel in Theme-Rot */
.elementor-icon-box-icon .elementor-icon i,
.elementor-icon-box-icon .elementor-icon svg { color: var(--red) !important; }
.elementor-icon-box-title { color: var(--red) !important; }

/* Überschriften in Elementor: rot wie Theme */
.elementor-widget-heading .elementor-heading-title { color: var(--red); }

/* Auf weißem/hellem Hintergrund: Titel rot, auf Bildern: weiß */
.elementor-section[data-settings*="background_background":"classic"] 
    .elementor-widget-heading .elementor-heading-title { color: var(--white); }

/* ============================================================
   CONTACT FORM 7 – gestyltes Formular wie Original
   ============================================================ */
.wpcf7 {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid var(--grey-light) !important;
    border-radius: 6px !important;
    font-family: var(--font) !important;
    font-size: 1rem !important;
    margin-bottom: 12px !important;
    transition: border-color var(--transition) !important;
    background: var(--white) !important;
    color: var(--black) !important;
    display: block !important;
    box-sizing: border-box !important;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none !important;
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(237,28,36,.1) !important;
}
.wpcf7 textarea { min-height: 120px !important; resize: vertical !important; }
.wpcf7 input[type="submit"] {
    background: var(--red) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px 36px !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    cursor: pointer !important;
    transition: background var(--transition) !important;
    margin-top: 8px !important;
}
.wpcf7 input[type="submit"]:hover { background: #c5151b !important; }

/* Checkbox + Datenschutz */
.wpcf7 .wpcf7-acceptance { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: .9rem; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { width: auto !important; margin: 0 !important; }
.wpcf7 .wpcf7-acceptance a { color: var(--red); }

/* Fehlermeldungen */
.wpcf7 .wpcf7-not-valid-tip { color: var(--red); font-size: .8rem; margin-top: -8px; margin-bottom: 8px; display: block; }
.wpcf7 .wpcf7-response-output { border-radius: 6px; padding: 12px 16px; margin-top: 16px; font-size: .9rem; }
.wpcf7 .wpcf7-mail-sent-ok { background: #d4edda; border-color: #28a745; color: #155724; }
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-validation-errors { background: #f8d7da; border-color: #dc3545; color: #721c24; }

/* Formular-Titel zentriert */
.wpcf7 + h2, .elementor-widget-shortcode h2 { text-align: center; }

/* Kontakt-Formular Button rot */
.contact-form button[type="submit"] {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 12px 28px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}
.contact-form button[type="submit"]:hover { background: #c5151b; }
