/* ========================
   HEADER-BEREICH
======================== */

/* HEADER GRUNDLAYOUT */
header {
    height: 80px;                     /* fixe Höhe */
    background-color: rgba(0, 0, 0, 0.9); /* leicht transparent */
    backdrop-filter: blur(3px);       /* unscharfer Hintergrund */
    display: flex;                    /* Flexbox */
    justify-content: center;          /* horizontal zentrieren */
    align-items: center;              /* vertikal zentrieren */
    position: sticky;                 /* sticky Header */
    top: 0;
    z-index: 1000;                    /* über anderen Elementen */
}

/* HEADER ZENTRALBEREICH */
.header-center {
    max-width: 1300px;                /* maximale Breite */
    width: 100%;                       /* volle Breite */
    display: flex;
    justify-content: space-between;   /* Abstand zwischen Logo und Menü */
    align-items: center;              /* vertikal zentriert */
    padding: 0 20px;                  /* horizontaler Abstand */
    box-sizing: border-box;
}

/* ========================
   LOGO
======================== */
.header-logo {
    height: 80px;                     /* Container 80px hoch */
    display: flex;                    
    justify-content: flex-start;       /* linksbündig */
    align-items: center;               /* vertikal zentriert */
    padding: 0;
    margin: 0;
}

.header-logo p {
    margin: 0;                        /* entfernt Standard <p>-Abstand */
    padding: 0;
    display: flex;                    /* Flexbox für <img> */
    align-items: center;               /* vertikal zentriert */
}

.header-logo img {
    height: 60px;                     /* Logo 60px hoch */
    width: auto;
    display: block;
    margin: 0;
}

/* ========================
   HEADER-RECHTS (MENÜ + LOGIN)
======================== */
.header-right {
    display: flex;                     /* Flexbox für Menü + Buttons */
    align-items: center;               /* vertikal zentriert */
    gap: 20px;                         /* Abstand zwischen Items */
}

/* Joomla-Menü */
.header-right .mod-menu {
    display: flex;                     /* horizontale Links */
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-right .mod-menu a {
    color: #f8f8f8;
    text-decoration: none;
    transition: color 0.3s, background-color 0.3s;
    padding: 4px 8px;
    border-radius: 3px;
}

.header-right .mod-menu a:hover {
    color: #4a4a4a;
}

/* LOGIN / LOGOUT BUTTON */
.header-right a.login,
.header-right a.logout {
    background-color: #4a4a4a;
    color: #f8f8f8 !important;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9em;
    display: inline-block;
}

.header-right a.login:hover,
.header-right a.logout:hover {
    background-color: #f8f8f8;
    color: #4a4a4a !important;
}

/* ========================
   KUNENA-SPEZIFISCHE FIXES
======================== */
body.com-kunena header {
    height: 80px !important;
    min-height: 80px;
}

/* ========================
   LOGIN POPUP
======================== */
#login-popup {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 6px;
    z-index: 2000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
    color: #fff;
    width: 300px;
    max-width: 90%;
    font-family: Arial, sans-serif;
    text-align: center;
}

#login-popup form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-popup input[type="text"],
#login-popup input[type="password"] {
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    width: 75%;
    font-size: 0.95em;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

#login-popup input[type="text"]::placeholder,
#login-popup input[type="password"]::placeholder {
    color: #ccc;
}

.input-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    position: relative;
    top: 3px;
}

.input-password-toggle svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

#login-popup input[type="submit"],
#login-popup button:not(.input-password-toggle) {
    background-color: #4a4a4a;
    color: #f8f8f8;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    font-weight: normal;
    text-decoration: none;
    font-size: 1em;
    width: 95%;
}

#login-popup input[type="submit"]:hover,
#login-popup button:hover {
    background-color: #f8f8f8;
    color: #4a4a4a;
    transform: translateY(-2px);
}

.fixed-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    height: 50px;
    gap: 8px;
    box-sizing: border-box;
}

#form-login-remember-133 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 10px 0;
}

#form-login-remember-133 label {
    display: inline-block;
    color: #f8f8f8;
    font-size: 0.9em;
    margin-left: 5px;
}

#login-popup .mod-login__options {
    list-style: none;
    padding: 10px 0 10px 10px;
    margin: 15px 0 0 0;
    text-align: left;
}

#login-popup .mod-login__options li {
    margin-bottom: 5px;
}

#login-popup .mod-login__options a {
    color: #f8f8f8;
    text-decoration: none;
    transition: color 0.3s;
}

#login-popup .mod-login__options a:hover {
    color: #1c4ccb;
}
