/* ==============================
   HEADER / NAVIGATION
   ============================== */

/* Grundabstand Header */
#header {
    margin: 0 auto;
}

/* Banner */
.banner-container {
    max-width: 1260px;
    margin: 0 auto 18px auto;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

.banner-link {
    display: block;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
}

/* Boardtitel unter/über dem Banner ausblenden, falls er optisch stört */
.banner-title {
    display: none;
}

/* Obere Linkleiste: entfernt die komischen Icon-Punkte */
#header .top_links {
    max-width: 1260px;
    margin: 0 auto 12px auto;
    padding: 8px 18px;
    box-sizing: border-box;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    background: #3a302d;
    border-radius: 999px;
    overflow: hidden;
}

#header .top_links li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none !important;
}

#header .top_links li a {
    display: block;
    padding: 2px 0;
    background: none !important;
    color: #f5f0ed;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}

#header .top_links li a:hover {
    color: #c9a764;
}

/* Welcome-Bar */
#panel .upper {
    background: transparent;
    border: 0;
}

#panel .upper .wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;
    background: #3a302d;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Welcome-Text links */
#panel .upper .welcome {
    color: #f5f0ed;
    font-size: 13px;
}

#panel .upper .welcome a {
    color: #f5f0ed;
    font-weight: 700;
    text-decoration: none;
}

#panel .upper .welcome a:hover {
    color: #c9a764;
}

/* Suche rechts */
#panel .upper form {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

#panel .upper input.textbox {
    height: 24px;
    box-sizing: border-box;
}

#panel .upper input.button {
    height: 26px;
    box-sizing: border-box;
}

/* Untere Panel-Navigation */
#panel .lower {
    background: transparent;
    border: 0;
}

#panel .lower .wrapper {
    max-width: 1260px;
    margin: 12px auto 0 auto;
    padding: 0 18px;
    min-height: 28px;
    box-sizing: border-box;
    background: #3a302d;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#panel .lower ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

#panel .lower ul.menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    background: none !important;
}

#panel .lower ul.menu li a {
    display: block;
    background: none !important;
    color: #f5f0ed;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 28px;
}

#panel .lower ul.menu li a:hover {
    color: #c9a764;
}

/* Breadcrumb / Navigation unter dem Header etwas ruhiger setzen */
#content .navigation,
.navigation {
    max-width: 1260px;
    margin: 16px auto 10px auto;
    text-align: center;
}
/* ==============================
   HEADER FIX RUNDE 2
   ============================== */

/* Wrapper im Header darf nichts abschneiden */
#header .wrapper {
    overflow: visible;
}

/* Obere Linkleiste sauber ausrichten */
#header .top_links {
    height: auto !important;
    min-height: 38px;
    margin: 18px auto 14px auto !important;
    padding: 0 22px !important;
    overflow: visible !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Alte MyBB-Floats/Icons neutralisieren */
#header .top_links li {
    float: none !important;
    display: flex !important;
    align-items: center;
    height: 38px;
    line-height: 38px;
}

#header .top_links li a {
    height: auto !important;
    line-height: 38px !important;
    padding: 0 !important;
    display: block;
    background: none !important;
}

/* Welcome-Bar: Welcome links, Suche rechts */
#panel .upper .wrapper {
    min-height: 54px;
    padding: 0 22px;
    flex-direction: row-reverse;
    justify-content: space-between;
}

#panel .upper form {
    margin-left: 0;
    flex: 0 0 auto;
}

#panel .upper .welcome {
    flex: 1 1 auto;
}

/* Falls alte Zeilenumbrüche stören */
#panel br {
    display: none;
}
/* ==============================
   HEADER FIX RUNDE 3 - FEINSCHLIFF
   ============================== */

/* Mehr Luft zwischen oberer Navi und Welcome-Bar */
#header .top_links {
    margin: 24px auto 20px auto !important;
}

/* Welcome-Bar bewusst darunter setzen */
#panel .upper .wrapper {
    margin-top: 0;
}

/* Falls alte Menü-Icons als Bilder übrig bleiben */
#header .top_links img {
    display: none !important;
}

/* Falls alte Icon-Hintergründe über Klassen kommen */
#header .top_links a.portal,
#header .top_links a.search,
#header .top_links a.memberlist,
#header .top_links a.calendar,
#header .top_links a.help {
    background-image: none !important;
    padding-left: 0 !important;
}

/* Header-Bereich insgesamt etwas ruhiger */
#panel {
    margin-top: 0;
}

/* Untere Member-Navi etwas gleichmäßiger */
#panel .lower .wrapper {
    margin-top: 12px;
}

/* Abstand zum eigentlichen Inhalt */
#content {
    padding-top: 18px;
}