/* ============================================
   UNITED CURATORS ASSOCIATION - STYLES
   ============================================ */

/* --- THEME VARIABLES --- */
:root {
    --card-radius: 0.75rem;
}

/* LIGHT TECH Theme (Standard) */
body {
    --bg-color: #f8fafc;
    --text-main: #475569;
    --text-head: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.4);
    --card-border: rgba(0, 0, 0, 0.05);
    --accent: #2563eb;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --logo-filter: invert(1) brightness(0.2);
    --gradient-1: rgba(37, 99, 235, 0.08);
    --gradient-2: rgba(99, 102, 241, 0.08);
}

/* --- GLOBAL STYLES --- */
html {
    min-height: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(ellipse 120% 80% at 0% 0%, var(--gradient-1) 0px, transparent 70%),
        radial-gradient(ellipse 120% 80% at 100% 0%, var(--gradient-1) 0px, transparent 70%),
        radial-gradient(ellipse 120% 80% at 50% 50%, var(--gradient-1) 0px, transparent 70%),
        radial-gradient(ellipse 120% 80% at 0% 100%, var(--gradient-2) 0px, transparent 70%),
        radial-gradient(ellipse 120% 80% at 100% 100%, var(--gradient-2) 0px, transparent 70%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    transition: background-color 0.5s, color 0.5s;
}

/* Sicherstellen, dass Sections den Body-Hintergrund durchscheinen lassen */
section:not(.values-section):not(.footer-section), 
header, 
div[class*="section"]:not(.values-section):not(.footer-section) {
    background: transparent !important;
}

/* Values-Section und Footer können ihren eigenen Hintergrund behalten, aber transparenter machen */
.values-section {
    background: transparent !important;
}

.footer-section {
    background: rgba(0, 0, 0, 0.9) !important;
}

.text-slate-300 { color: var(--text-main) !important; }
.text-white { color: var(--text-head) !important; }
.bg-uca-accent { background-color: var(--accent) !important; }

/* Logo */
.uca-logo { filter: var(--logo-filter); transition: filter 0.5s; }

/* Navigation */
#navbar { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-transparent { background: transparent; backdrop-filter: blur(0px); border-bottom: 1px solid transparent; }
.nav-scrolled { 
    background: var(--nav-bg); 
    backdrop-filter: blur(16px); 
    border-bottom: 1px solid var(--card-border); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
}

/* Glass Cards */
.glass-card { 
    background: var(--card-bg); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--card-border); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
    border-radius: var(--card-radius) !important;
    transition: background 0.3s, border 0.3s;
}

/* Counter */
.flip-card { 
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative; 
    border-radius: var(--card-radius);
}
.flip-line { 
    position: absolute; top: 50%; left: 0; width: 100%; height: 1px; 
    background: var(--card-border); 
    z-index: 20; transform: translateY(-50%); 
}

/* Dropdown */
.dropdown-content { 
    display: none; position: absolute; 
    background-color: var(--card-bg); 
    backdrop-filter: blur(10px); min-width: 160px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); 
    border: 1px solid var(--card-border); 
    z-index: 1000; border-radius: var(--card-radius); right: 0; top: 100%; margin-top: 8px; 
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-content.show-dropdown { 
    display: block; 
    opacity: 1;
    transform: translateY(0);
}
.dropdown-content a { 
    color: var(--text-main); 
    padding: 12px 16px; 
    text-decoration: none; 
    display: block; 
    font-size: 0.875rem; 
    transition: background 0.2s; 
    cursor: pointer; 
    border-bottom: 1px solid var(--card-border);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--card-border); color: var(--accent); }
.dropdown-content a.active { background-color: var(--accent); color: var(--bg-color); font-weight: 600; }
.dropdown button { cursor: pointer; outline: none; }
.dropdown button:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--card-border);
    padding: 1.5rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
#cookie-banner.show {
    transform: translateY(0);
}
.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Member Login Button (NEW) */
.btn-member-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-head);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-member-login:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.btn-member-login i {
    color: var(--accent);
    transition: transform 0.3s;
}

.btn-member-login:hover i {
    transform: scale(1.1);
}

/* ============================================
   DESKTOP STYLES (kompakter)
   ============================================ */
@media (min-width: 768px) {
    /* Kompaktere Navigation */
    #navbar .h-24 { height: 4rem; }
    
    .btn-member-login {
        font-size: 0.875rem;
        padding: 0.5rem 1.5rem;
    }
    
    /* Kompakterer Hero */
    .hero-section { 
        padding-top: 6rem; 
        padding-bottom: 2rem; 
    }
    .hero-title { 
        font-size: 3.5rem; 
        margin-bottom: 0.75rem; 
        line-height: 1.1;
    }
    .hero-subtitle { 
        font-size: 1.125rem; 
        margin-bottom: 1.5rem; 
    }
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    /* Kompaktere Sections */
    .section-compact { 
        padding-top: 2.5rem; 
        padding-bottom: 2.5rem; 
    }
    
    /* Kompakterer Counter */
    .counter-section { 
        padding: 1.5rem 0; 
    }
    .counter-label {
        margin-bottom: 0.75rem;
    }
    
    /* Kompakteres Manifesto */
    .manifesto-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .manifesto-head {
        margin-bottom: 0.75rem;
    }
    .manifesto-content {
        padding: 1.5rem 2rem;
    }
    
    /* Kompaktere Values */
    .values-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   MOBILE STYLES (separates Design)
   ============================================ */
@media (max-width: 767px) {
    /* Mobile Navigation */
    #navbar { height: 3.5rem; }
    #navbar .h-24 { height: 3.5rem; }
    .uca-logo { height: 2.5rem; }
    
    /* Mobile Hero - kompakter */
    .hero-section { 
        padding-top: 5rem; 
        padding-bottom: 2rem; 
    }
    .hero-title { 
        font-size: 2rem; 
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    .hero-subtitle { 
        font-size: 1rem; 
        margin-bottom: 1.5rem;
    }
    .hero-buttons { 
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Counter */
    .counter-section { 
        padding: 1.5rem 0;
    }
    .counter-label { 
        font-size: 0.625rem;
        margin-bottom: 0.75rem;
    }
    .flip-card { 
        width: 2.5rem; 
        height: 3.5rem; 
    }
    .flip-card span { 
        font-size: 1.5rem; 
    }
    
    /* Mobile Manifesto */
    .manifesto-section { 
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
    .manifesto-head { 
        font-size: 1.75rem; 
        margin-bottom: 1rem;
    }
    .manifesto-content { 
        padding: 1.5rem; 
        font-size: 0.9375rem;
    }
    
    /* Mobile Values Grid */
    .values-section { 
        padding-top: 2rem; 
        padding-bottom: 2rem; 
    }
    .value-card { 
        padding: 1.5rem; 
        margin-bottom: 1rem;
    }
    .value-icon { 
        width: 3rem; 
        height: 3rem; 
        margin-bottom: 1rem;
    }
    .value-title { 
        font-size: 1.25rem; 
        margin-bottom: 0.5rem;
    }
    .value-desc { 
        font-size: 0.875rem;
    }
    
    /* Mobile Footer */
    .footer-section { 
        padding-top: 2rem; 
        padding-bottom: 1rem; 
    }
    
    /* Mobile Cookie Banner */
    #cookie-banner { 
        padding: 1rem; 
    }
    .cookie-content { 
        font-size: 0.75rem;
    }
}

/* ============================================
   LARGE DESKTOP (noch kompakter)
   ============================================ */
@media (min-width: 1280px) {
    .hero-section { padding-top: 5rem; padding-bottom: 2.5rem; }
    .section-compact { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .counter-section { padding: 1.5rem 0; }
}
