/* ======================================================================================== */
/* === HeaderFooter.css                                                                 === */
/* === V1.0 11-07-2026 (AK)                                                             === */
/* === V2.0 23-08-2026 (AK) support for AdminPortal added                               === */
/* ===						Footer added												===	*/
/* ======================================================================================== */
/* === Header                                                                           === */
/* ======================================================================================== */

/* --- BASIS HEADER --- */
.main-header {
    background-color: #ffffff; 
    width: 100%;
    position: fixed;        
    top: 0;             
    left: 0;            
    z-index: 1000;      
    height: clamp(100px, 6vw + 40px, 120px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideInDown 0.5s ease-out forwards;
}

/* ADMIN HEADER VARIATION */
.main-header.is-admin {
    background-color: var(--amber-50, #fffbeb);
    height: clamp(80px, 8vw, 110px);
    padding: 0 1rem;
    display: flex;
    align-items: center; /* Admin-Header bleibt vertikal zentriert für die Orna-Linie */
}
/* ---------------------------------------------------------------------- */
/* CONTAINER HAUPTPORTAL */
.header-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center; /* Zentriert die Hauptblöcke vertikal */
    justify-content: space-between;
    box-sizing: border-box;
}

/* BRAND (HAUPTPORTAL) - Logo & 2-Zeiler-Text intern PERFEKT ZENTRIERT */
.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: auto; 
    width: clamp(60px, 9vw, 90px);
    display: block;
}
.header-logo.is-tagung {
    width: 40px;
}

.header-title {
    font-family: var(--std-font-family), sans-serif;
    font-weight: bold;
    color: var(--lela-orange);
    font-size: clamp(14px, 2vw, 24px); 
    line-height: 1.25;
    margin: 0;
}

.header-title.is-tagung {
    font-size: 12px; 
}

.header-title span {
    display: block; 
    font-size: 0.65em;
    font-weight: normal;
    color: var(--slate-500); 
    margin-top: 2px; /* Erzeugt leichten optischen Abstand zum Haupttitel */
}

/* --- HEADER SHORTCUTS (QUER-MENÜ) --- */
.header-shortcuts {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    transform: translateY(35px); /* Schiebt die Shortcuts präzise an die Unterkante des Logos */
}

.shortcut-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--slate-500, #64748b) !important;
    text-decoration: none !important;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 500;
    font-family: var(--std-font-family), sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.shortcut-link:hover {
    color: var(--lela-orange, #ea580c) !important;
    text-decoration: underline !important;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
}

/* --- RECHTE CONTROLS & ICONS (HAUPTPORTAL & ADMIN) --- */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    transform: translateY(18px); /* Hält Icons auf derselben Höhe wie die Shortcuts */
}


/* ------------------------------------------------------------- */
/* ADMIN ORNAMENT LAYOUT */
.admin-ornament {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Die durchgehende Orna-Linie im Hintergrund */
.admin-ornament::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: var(--lela-orange);
    z-index: 1;
}

/* Elemente, die über der Linie liegen (Text, Logo, Controls) */
.admin-ornament-left,
.ornament-icon,
.main-header.is-admin .header-controls {
    position: relative;
    z-index: 2;
    background-color: var(--amber-50, #fffbeb);
}

.admin-ornament-left {
    padding-right: 15px;
    font-family: var(--std-font-family);
    font-weight: bold;
    color: var(--lela-orange);
    font-size: clamp(12px, 1.8vw, 20px);
    white-space: nowrap;
}

.ornament-icon {
    width: clamp(45px, 6vw, 70px);
    height: auto;
    padding: 0 10px;
}

.main-header.is-admin .header-controls {
    padding-left: 15px;
    padding-bottom: 0; /* Im Admin-Portal greift zentrierte Ausrichtung */
}

/* USER PROFILE BUTTON (Männchen) */
.user-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(25px, 4vw, 35px);
    height: clamp(25px, 4vw, 35px);
    text-decoration: none;
}
.user-profile-btn svg {
    width: 100%;
    height: 100%;
    fill: var(--slate-500);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.user-profile-btn:hover svg,
.user-profile-btn.active svg,
.user-profile-btn.logged-in svg {
    fill: var(--lela-orange);
}

/* ACCOUNT AREA & DROPDOWN */
.account-area {
    position: relative;
    display: flex;
    align-items: center;
    font-family: var(--std-font-family);
    font-size: var(--tiny-font-size, 0.85rem);
}
.account-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;	
    min-width: 220px;
    padding: 1rem;
    background: var(--block-bg-special, #ffffff);
    border: 1px solid var(--mainblock-std-border, #e2e8f0);
    border-radius: var(--std-border-radius, 8px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    display: none;
    z-index: 2000;
}
.account-menu.open {
    display: block;
}

.account-menu .btn-logout {
    display: block;
    background: var(--lela-orange);
    color: #ffffff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 8px;
}
.account-menu .btn-logout:hover {
    background: #d97706;
}

/* HAMBURGER */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: clamp(25px, 4vw, 30px);
    height: clamp(17px, 3vw, 21px);
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--slate-500);
    border-radius: 2px;
    transition: all 0.2s ease;
}
.hamburger:hover span {
    background-color: var(--lela-orange);
}

/* Responsive: Auf sehr kleinen Bildschirmen Quer-Menü ausblenden */
@media (max-width: 768px) {
    .header-shortcuts {
        display: none;
    }
}

/* -----Image underneath header ------ */
.hero {
    height: clamp(120px, 12vw, 180px);
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================================================================================== */
/* === Footer                                                                           === */
/* ======================================================================================== */

/* ======================================================================================== */
/* === Footer                                                                           === */
/* ======================================================================================== */

.main-footer {
    background-color: var(--footer-bg, #1e293b);
    color: var(--footer-text, #cbd5e1);
    font-family: var(--std-font-family), sans-serif;
    font-size: var(--sm-font-size, 0.85rem);
    padding: 3rem 0 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

/* FOOTER COLUMN HEADINGS */
.footer-title {
    color: var(--footer-title, #f8fafc);
    font-size: var(--h4-font-size, 1.0rem);
    font-weight: var(--h4-weight, 550);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* LINKS LISTS */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-link, #e2e8f0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover, #F18A01);
    text-decoration: underline;
}

/* FÖRDERER / SPONSOR BADGE (Löst das Problem mit dem weißen Hintergrund) */
.footer-sponsor-box {
    background-color: var(--bg-card, #ffffff);
    padding: 12px 16px;
    border-radius: var(--std-border-radius, 7px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.footer-sponsor-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* BOTTOM BAR (COPYRIGHT & RECHTLICHES) */
.footer-bottom {
    max-width: 1400px;
    margin: 2.5rem auto 0 auto;
    padding: 1.5rem 2rem 0 2rem;
    border-top: 1px solid var(--footer-border, #475569);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--footer-text-muted, #94a3b8);
    font-size: var(--tiny-font-size, 0.75rem);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--footer-text-muted, #94a3b8);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--footer-link-hover, #F18A01);
}