/* ============================================================
   VBW Sonnenlicht — Design System CSS
   Basiert auf STYLE.md (competition-v3)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --canvas: #FAFAF8;
    --canvas-raised: #FFFFFF;
    --canvas-subtle: #F4F2EE;
    --canvas-muted: #EDE9E3;
    --accent: #E85D26;
    --accent-hover: #D14E1A;
    --accent-light: #FFF3ED;
    --accent-blue: #2563EB;
    --accent-green: #10B981;
    --accent-amber: #F59E0B;
    --txt-primary: #1A1A1A;
    --txt-secondary: #4A4A4A;
    --txt-tertiary: #8A8A8A;
    --border-light: #E8E4DE;
    --border-medium: #D4CFC7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* --- Base --- */
* { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Space Grotesk', sans-serif; }
html { scroll-behavior: auto; }
body { background: var(--canvas); color: var(--txt-secondary); }

/* --- Glass Navigation --- */
.glass-nav {
    background: rgba(250,250,248,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* --- Dropdown Menu --- */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 560px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 16px 20px;
    z-index: 50;
    columns: 3;
    column-gap: 12px;
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--txt-secondary);
    transition: background 0.15s;
    break-inside: avoid;
    border-radius: 6px;
}
.dropdown-menu a:hover {
    background: var(--canvas-subtle);
    color: var(--accent);
}
.dropdown-menu .border-t {
    column-span: all;
}

/* --- Cards --- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* --- Buttons --- */
.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,93,38,0.25);
}

/* --- Category Badge --- */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

/* --- Action Button (Event Detail) --- */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--txt-secondary);
    transition: all 0.2s;
}
.action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* --- Animated Link Underline --- */
.animated-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}
.animated-link:hover { background-size: 100% 1px; }

/* --- Info Row (Event Detail) --- */
.info-row {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-row:last-child {
    border-bottom: none;
}

/* --- Ad Slot --- */
.ad-slot {
    background: var(--canvas-subtle);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 8px;
    text-align: center;
    position: relative;
}
.ad-slot::before {
    content: 'Anzeige';
    display: block;
    font-size: 11px;
    color: var(--txt-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

/* --- Glass Light (Sidebar, Search) --- */
.glass-light {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* --- Line Clamp --- */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- WordPress Pagination --- */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.nav-links .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--txt-secondary);
    transition: background 0.2s, color 0.2s;
}
.nav-links .page-numbers:hover { background: var(--canvas-subtle); }
.nav-links .page-numbers.current {
    background: var(--accent);
    color: white;
    font-weight: 600;
}
.nav-links .prev, .nav-links .next {
    width: auto;
    padding: 0 16px;
    font-size: 13px;
}

/* --- Form Elements --- */
select, input[type="text"], input[type="email"], input[type="date"], input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    background: white;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus, input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,93,38,0.1);
}

/* --- Tab Navigation --- */
.tab-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    color: var(--txt-tertiary);
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}
.tab-btn:hover { color: var(--txt-primary); }
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
