:root {
    --club-red: #cf1e3c;
    --club-red-light: #e85a73;
    --club-red-dark: #a81830;

    --club-white: #ffffff;
    --club-gray: #f5f5f5;
    --club-dark: #1a1a1a;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* Brand: kein Hover, kein Unterstrich */
.navbar .navbar-brand {
    text-decoration: none !important;
    color: var(--club-white) !important;
    position: relative;
    transition: none !important;
}

.navbar .navbar-brand:hover {
    color: var(--club-white) !important;
    text-shadow: none !important;
    transform: none !important;
}


/* Grundstil */
.navbar .nav-link {
    text-decoration: none !important;
    position: relative;
    color: var(--club-white) !important;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
}

/* Hover: Glow + Lift */
.navbar .nav-link:hover {
    color: var(--club-white) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Animierte Unterstreichung nur für Menülinks */
.navbar .nav-link:not(.navbar-brand)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: var(--club-white);
    transition: width 0.25s ease;
}

.navbar .nav-link:not(.navbar-brand):hover::after {
    width: 100%;
}

.navbar .nav-link:not(.navbar-brand):hover {
    color: var(--club-white) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}


.btn-primary {
    background-color: var(--club-red) !important;
    border-color: var(--club-red-dark) !important;
}

.btn-primary:hover {
    background-color: var(--club-red-dark) !important;
    border-color: var(--club-red-dark) !important;
}


a {
    color: var(--club-red);
    text-decoration: none;
}

a:hover {
    color: var(--club-red-dark);
    text-decoration: underline;
}


.card {
    border: 1px solid var(--club-red);
    border-radius: 8px;
}

.card-title {
    color: var(--club-red-dark);
}

.card:hover {
    box-shadow: 0 0 12px rgba(207, 30, 60, 0.3);
    transform: translateY(-3px);
    transition: all 0.25s ease;
}


h1, h2, h3, h4 {
    color: var(--club-red-dark);
}


body {
    background-color: var(--club-gray);
}


/* =========================================
   TEAM CAROUSEL
   ========================================= */

/* Rahmen */
#teamCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Slide: Höhe ergibt sich aus 16:9 der verfügbaren Breite */
.team-carousel-slide {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--club-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bild: nie breiter/höher als der Container, immer zentriert */
.team-carousel-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Gradient-Overlay – deckt den gesamten Slide ab */
.team-carousel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.60) 18%,
        rgba(0, 0, 0, 0.15) 35%,
        rgba(0, 0, 0, 0.00) 45%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1.5rem 1.25rem;
    text-align: center;
    transition: background 0.25s ease;
    /* Nur Textbereich klickbar, Pfeile nicht blockieren */
    pointer-events: none;
    z-index: 1;
}

.team-carousel-gradient:hover {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.93) 0%,
        rgba(0, 0, 0, 0.70) 22%,
        rgba(0, 0, 0, 0.20) 40%,
        rgba(0, 0, 0, 0.00) 50%
    );
}

/* Nur der Textbereich reagiert auf Klicks */
.team-carousel-title,
.team-carousel-meta,
.team-carousel-link {
    pointer-events: auto;
}

/* Pfeile über dem Overlay */
.carousel-control-prev,
.carousel-control-next {
    z-index: 2;
}

/* Nur der Link-Text löst Klicks aus */
.team-carousel-title,
.team-carousel-meta {
    pointer-events: none;
}

.team-carousel-link {
    pointer-events: auto;
}

/* Textstile – alles in einer Zeile, ~175% der vorherigen Größe */
.team-carousel-info {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.4em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1.0rem, 3.0vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    margin: 0 0 0.25rem;
    line-height: 1.2;
    pointer-events: none;
}

.team-carousel-info .sep {
    font-weight: 400;
    opacity: 0.6;
}

.team-carousel-info .meta {
    font-weight: 400;
    opacity: 0.88;
}

.team-carousel-link {
    font-size: clamp(0.6rem, 1.4vw, 0.95rem);
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin: 0;
    transition: color 0.2s ease;
}

.team-carousel-gradient:hover .team-carousel-link {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .team-carousel-gradient {
        padding: 0 0.75rem 0.75rem;
    }
}


/* =========================================
   CAROUSEL: ALLGEMEINE STYLES
   Gilt für Team-Carousel und Event-Carousels
   ========================================= */

/* ── Pfeile: nur bei Hover/Touch sichtbar, mit Kreis-Hintergrund ── */
.carousel-hover-controls .carousel-control-prev,
.carousel-hover-controls .carousel-control-next {
    opacity: 0;
    transition: opacity 0.25s ease;
    width: 44px;
    height: 44px;
    /* Pfeile mittig nur im Bild-Bereich, Indikatoren darunter ausklammern */
    top: 0;
    bottom: 44px;
    margin: auto 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
}

/* Desktop: Hover auf Carousel */
.carousel-hover-controls:hover .carousel-control-prev,
.carousel-hover-controls:hover .carousel-control-next {
    opacity: 1;
}

/* Touch: JS fügt .controls-visible hinzu */
.carousel-hover-controls.controls-visible .carousel-control-prev,
.carousel-hover-controls.controls-visible .carousel-control-next {
    opacity: 1;
}

/* Pfeil-Icons – Größe (Hintergrund-Kreis kommt vom Block oben) */
.carousel-hover-controls .carousel-control-prev-icon,
.carousel-hover-controls .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: none;
    flex-shrink: 0;
}

/* ── Indikatoren: runde Punkte mit großer Klickfläche ── */
.carousel-round-indicators .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6c757d;
    border: 1px solid #495057;
    padding: 6px;
    box-sizing: content-box;
    margin: 0 4px;
    transition: all 0.3s;
    opacity: 0.6;
}

.carousel-round-indicators .carousel-indicators button.active {
    background-color: #212529;
    border-color: #212529;
    opacity: 1;
}

.carousel-round-indicators .carousel-indicators button:hover {
    background-color: #495057;
    opacity: 0.8;
}

/* ── Indikatoren unterhalb des Carousel-Bildes ── */
.carousel-indicators-below .carousel-indicators {
    position: static;
    padding: 12px 0 0 0;
    margin-top: 0;
    background-color: transparent;
    justify-content: center;
}

/* ── News-Vorschaubild auf der Startseite ── */
.home-news-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    background-color: #f4f4f4;
    padding: 4px;
    border-radius: 6px;
}

/* ── Trainingszeiten-Übersicht ── */
.training-table {
    table-layout: fixed;
    width: 100%;
}

.training-table .col-tag-sm   { width: 35%; padding-right: 8px; }
.training-table .col-time-sm  { width: 30%; white-space: nowrap; padding-right: 8px; }
.training-table .col-loc-sm   {
    width: 35%;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
    padding-right: 8px;
}

@media (min-width: 768px) {
    .training-table .col-tag-md  { width: 16%; }
    .training-table .col-from-md { width: 8%;  }
    .training-table .col-to-md   { width: 8%;  }
    .training-table .col-loc-md  { width: 24%; }
    .training-table .col-note-md { width: 44%; }
}
