/* --- RESET & BASIC LAYOUT --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    min-height: 100%; 
    background: var(--ravens-dark-blue); 
}

body {
    font-family: Verdana, Arial, Sans-Serif;
    font-size: 20px;
    line-height: 1.4;
    width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    color: #fff;
}
.site {
    position: relative;
    padding-bottom: 0;
}

/* --- SOCIAL ICONS (UNVERÄNDERT) --- */
.topSocialBar {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    gap: 15px;
    z-index: 1100;
}

.topSocialBar a {
    color: var(--ravens-beige);
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.2s;
}

.topSocialBar a:hover {
    transform: scale(1.2);
    color: #fff;
}

/* --- HEADER & NAVI --- */
header {
    text-align: center;
    padding-top: 40px;
    width: 100%;
}

#navi {
    margin-top: 30px !important;
    margin-bottom: 100px !important;
    width: 100%;
}

/* 1. STRUKTUR & GEZIELTE FIXES */
#navi ul {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    gap: 20px !important;
    padding: 0 !important;
}

#navi ul li {
    display: flex !important; 
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

/* Der entscheidende Fix für das Joomla-Button-Element */
#navi button.mod-menu__toggle-sub {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
}

/* Verhindert Hover-Hintergründe auf dem Button */
#navi button.mod-menu__toggle-sub:hover,
#navi button.mod-menu__toggle-sub:focus {
    background-color: transparent !important;
}

/* 2. Style für die Links & Das Dreieck - FINALER FIX FÜR ABSTÄNDE */
#navi ul li a, 
#navi ul li span {
    color: var(--ravens-beige) !important;
    text-decoration: underline !important;
    font-size: 22px;
    /* Wir nutzen ein minimales, gleiches Padding für alle */
    padding: 5px 10px !important; 
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
    line-height: 1.2 !important;
    position: relative !important;
}

/* Wir sorgen dafür, dass das Dreieck den Text nicht wegdrückt */
#navi ul li span.mod-menu__heading {
    /* Wir geben dem Wort "Verein" rechts genau so viel Platz, wie das Dreieck braucht */
    padding-right: 5px !important; 
    padding-left: 15px !important;
}

/* 3. DAS DREIECK: Absolut positioniert, damit es keinen Platz wegnimmt */
#navi ul li.parent > a::after, 
#navi ul li.deeper > a::after,
#navi ul li.has-child > a::after,
#navi ul li.parent .mod-menu__heading::after,
#navi ul li.deeper .mod-menu__heading::after {
    content: "▼" !important;
    font-size: 10px;
    color: var(--ravens-beige) !important;
    position: absolute !important;
    /* Wir setzen es fest an den rechten Rand des Elements */
    right: -12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-decoration: none !important;
}

/* 4. Hover-Effekte */
#navi ul li a:hover {
    text-decoration: none !important;
    color: #fff !important;
}

#navi ul li a:hover::after {
    color: #fff !important;
}

/* Untermenü (Vorstand) - GEÄNDERT */
#navi ul li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ravens-dark-blue) !important; /* Hintergrundfarbe des Hauptdesigns */
    border: none !important; /* Entfernt den beigen Rahmen */
    box-shadow: 0px 4px 10px rgba(0,0,0,0.5); /* Optional: Ein dezenter Schatten statt eines Rahmens */
    min-width: 180px;
    padding: 10px !important;
    z-index: 1000;
}

#navi ul li:hover > ul {
    visibility: visible;
    opacity: 1;
}

#navi ul li ul li a {
    text-decoration: none !important;
    font-size: 18px !important; /* Hier kannst du die Größe anpassen (z.B. 18px) */
    padding: 8px 15px !important; /* Optional: Etwas mehr Abstand zwischen den Zeilen */
    display: block !important; /* Sorgt dafür, dass die ganze Zeile klickbar ist */
}

/* Entfernt Joomla-Standard-Elemente */
#navi .caret, 
#navi .dropdown-toggle::after {
    display: none !important;
}

/* --- VORSTAND GRID --- */
.vorstand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 920px;
    margin: 50px auto;
}

.vorstand-item {
    flex: 0 0 280px;
    text-align: center;
}

.vorstand-item img {
    width: 100%;
    height: auto;
    border: 2px solid var(--ravens-beige);
    border-radius: 8px;
    margin-bottom: 10px;
}

footer {
    width: 100%;
    margin-top: 200px;
    margin-bottom: 50px;
    text-align: center;
    display: block;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

footer a {
    color: var(--ravens-beige);
    text-decoration: underline;
}

/* --- TITEL MIT BREITER LINIE --- */
h1, .page-header h1 {
    color: var(--ravens-beige);
    font-family: "Trebuchet MS", sans-serif;
    font-size: 42px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    display: table;
    margin: 0 auto 70px auto;
    position: relative;
    border-bottom: none;
}

h1::after, .page-header h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: -10%;
    width: 120%;
    height: 2px;
    background-color: var(--ravens-beige);
}

.page-header { margin-bottom: 70px !important; display: block; }

@media (max-width: 1000px) {
    body { width: 100%; padding: 0 15px; }
    .topSocialBar { position: relative; justify-content: center; top: 10px; }
}