/* ==========================================================================
   1. SEITEN-HINTERGRUND & INHALT
   ========================================================================== */
body {
    background-image: url('/images/background/BodyBackground.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* Macht den Inhaltsbereich leicht transparent, damit der Text lesbar bleibt */
.site-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   2. HEADER-BEREICH / MENU (TRANSPARENZ & AUSRICHTUNG)
   ========================================================================== */
.container-header, .header {
    background-color: transparent !important; /* Entfernt die Standardfarbe */
    background-image: none !important;        /* Entfernt den Standard-Farbverlauf */
    box-shadow: none !important;              /* Entfernt eventuelle Schattenkanten */
    height: 160px !important;                 /* Ihre gewünschte Header-Höhe */
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Menü-Bereich nach links verschieben 
.header .container-nav {
    justify-content: space-between !important;
}
.header .mod-menu {
    order: 1 !important;            Schiebt das Menü auf die linke Seite 
}
*/

.sidebar-right .mod-menu a {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-right .mod-menu button {
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-right .mod-menu li a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ==========================================================================
   3. LOGO & TEXT (RECHTE SEITE & REIHENFOLGE - FIXX FÜR SFCA)
   ========================================================================= */

/* Der Hauptcontainer wird ganz nach rechts geschoben und ordnet alles in einer Reihe an */
.header .navbar-brand {
    margin-left: 0 !important;
    margin-right: auto !important;
    order: 2 !important;            /* Hält alles rechts vom Menü-Modul */
    justify-content: flex-start !important;
    max-width: 100%;
    
    display: flex !important;       /* Aktiviert das Flex-Layout */
    flex-direction: row !important; /* Zwingt Text und Logo nebeneinander */
    flex-wrap: nowrap !important;   /* Verhindert strikt jegliches Untereinander-Rutschen */
    align-items: center !important; /* Zentriert Text und Logo auf einer waagerechten Linie */
    gap: 20px !important;            /* Fester Abstand zwischen Text und Logo-Grafik */
}

/* Der Text bekommt Priorität 1 -> Wandert nach LINKS */
.header .navbar-brand .site-description {
    order: 2 !important;
    font-size: clamp(1.35rem, 3.2vw, 2.6rem) !important;   
    font-weight: bold !important;   
    color: #FFFFFF !important;      /* Passend zum SFCA-Blau im Logo */
    text-transform: uppercase;      
    margin: 0 !important;           
    white-space: nowrap !important;
    text-align: left !important;
}

/* Das Logo (inklusive Link-Ummantelung) bekommt Priorität 2 -> Wandert nach RECHTS */
.header .navbar-brand .brand-logo {
    order: 1 !important;
    display: block !important;
    margin: 0 !important;
}

/* Begrenzung der Bildgröße des SFCA-Logos */
.header .navbar-brand .brand-logo img {
    max-height: 160px !important;   /* Ihre gewünschte Logo-Höhe im Header */
    width: auto !important;         /* Behält das korrekte Seitenverhältnis bei */
    display: block !important;
}


/* Einheitlicher Hintergrund für die jeweilige Komponentenausgabe */
.container-component > main {
    background-color: rgba(220, 220, 220, 0.9) !important;
    padding: 20px;
    border-radius: 5px;
}

.sidebar-right,
.breadcrumb {
    background-color: rgba(220, 220, 220, 0.9) !important;
    padding: 20px; /* Verhindert, dass der Text am Rand klebt */
    border-radius: 5px; /* Optionale Abrundung der Ecken */
}

/* ==========================================================================
   4. MOBILE FIXES (TABELLEN, BILDER, HEADER)
   ========================================================================== */
.com-content-article table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
}

.com-content-article td,
.com-content-article th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.com-content-article img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .container-header,
    .header {
        height: auto !important;
        min-height: 100px;
    }

    .header .container-nav {
        align-items: flex-start !important;
    }

    .com-content-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header .navbar-brand {
        margin-left: 0 !important;
        margin-right: auto !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .header .navbar-brand .site-description {
        white-space: normal !important;
        text-align: left !important;
        font-size: clamp(1rem, 4.4vw, 1.3rem) !important;
        line-height: 1.2;
        max-width: 62vw;
    }

    .header .navbar-brand .brand-logo img {
        max-height: 72px !important;
    }

    .remove-clone,
    .repeater-cloner {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4;
        height: auto !important;
    }

    legend.nui.label {
        white-space: normal !important;
        hyphens: auto;
        overflow-wrap: normal;
        word-break: normal;
    }
 
  
}


/* ==========================================================================
   5. RESPONSIVE FAHRTEN-TABELLE
   ========================================================================== */
#fahrten-table {
    width: 100%;
    table-layout: auto;
}

#fahrten-table th,
#fahrten-table td {
    white-space: normal;
    vertical-align: middle;
}

/* Tablet: lange Info-Spalte ausblenden */
@media (max-width: 992px) {
    #fahrten-table th:nth-child(5),
    #fahrten-table td:nth-child(5) {
        display: none;
    }
}

/* Handy: zusätzlich Anmeldeschluss ausblenden */
@media (max-width: 768px) {
    #fahrten-table th:nth-child(4),
    #fahrten-table td:nth-child(4) {
        display: none;
    }
}

/* Sehr schmal: Ort ausblenden */
@media (max-width: 560px) {
    #fahrten-table th:nth-child(2),
    #fahrten-table td:nth-child(2) {
        display: none;
    }
}

/* ==========================================================================
   6. ANMELDE-BUTTON IM FAHRT-BEITRAG
   ========================================================================== */
.sfca-registration-action {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.sfca-trip-profile {
    margin: 0.75rem 0 0.75rem;
    padding: 0;
    background: transparent;
}

.sfca-trip-profile__list {
    margin: 0;
}

.sfca-trip-profile__row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.35rem 0.75rem;
    margin: 0.15rem 0;
}

.sfca-trip-profile__row dt,
.sfca-trip-profile__row dd {
    margin: 0;
}

.sfca-trip-profile__row dt {
    font-weight: 700;
}

@media (max-width: 640px) {
    .sfca-trip-profile__row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* ==========================================================================
   7. FOOTER 3-SPALTIG
   ========================================================================== */
.sfca-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
    /*background: rgba(220, 220, 220, 0.9);*/
    border-radius: 6px;
    padding: 18px 20px;
}

.sfca-footer-col h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.sfca-footer-col p {
    margin: 0 0 8px;
}

.sfca-footer-col ul {
    margin: 0;
    padding-left: 18px;
}

.sfca-footer-col li {
    margin-bottom: 6px;
}

.sfca-footer-col a {
    text-decoration: none;
}

.sfca-footer-col a:hover,
.sfca-footer-col a:focus {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .sfca-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .sfca-footer-grid {
        grid-template-columns: 1fr;
    }
}
