/**
 * HENX3D Advents-Theme CSS
 *
 * Festliches Design für Dezember-Launch
 * Farben: Gold (#D4AF37), Weihnachtsrot (#C41E3A), Tannengrün (#2d5c3f)
 * Effekte: Gold-Glitzer, warme Schatten, festliches Banner
 *
 * @version 1.0.0
 * @author HENX3D
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   SCOPED - nur aktiv wenn theme-advent
   ============================================ */
.theme-advent {
    /* Farben */
    --color-bg: #0d2818;
    --color-bg-secondary: #1a3d28;
    --color-text: #f0f4f8;
    --color-muted: #cbd5e1;
    --color-accent: #D4AF37;
    --color-accent2: #C41E3A;
    --color-line: rgba(212, 175, 55, 0.15);

    /* Customer Dashboard Kompatibilität */
    --card-bg: #1a3d28;
    --text-color: #f0f4f8;
    --text-muted: #cbd5e1;
    --border-color: rgba(212, 175, 55, 0.2);
    --light-bg: rgba(212, 175, 55, 0.1);
    --primary: #D4AF37;
    --secondary: #C41E3A;
    --primary-color: #D4AF37;

    /* Layout.css Kompatibilität */
    --hero-title-color: #D4AF37;
    --hero-title-fill: #D4AF37;
    --hero-title-gradient: none;
    --color-header-bg: rgba(13, 40, 24, 0.95);
    --text: #f0f4f8;

    /* Advent-Spezifisch */
    --advent-gold: #D4AF37;
    --advent-red: #C41E3A;
    --advent-green: #2d5c3f;
    --advent-card: #1a3d28;
    --advent-bg: #0d2818;
    --advent-bg-secondary: #1a3d28;
    --advent-text: #f0f4f8;
    --advent-line: rgba(212, 175, 55, 0.15);

    /* Effekte */
    --advent-shadow-sm: 0 2px 8px rgba(212, 175, 55, 0.1);
    --advent-shadow-md: 0 8px 24px rgba(212, 175, 55, 0.15);
    --advent-shadow-lg: 0 16px 48px rgba(212, 175, 55, 0.2);
    --advent-glow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
    --advent-glow-red: 0 0 20px rgba(196, 30, 58, 0.4);

    /* Gradients */
    --advent-gradient-hero: linear-gradient(135deg, #0d2818 0%, #1a3d28 50%, #2d5c3f 100%);
    --advent-gradient-card: linear-gradient(135deg, #1a3d28 0%, #0d2818 100%);
    --advent-gradient-button: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 100%);
    --advent-gradient-accent: linear-gradient(135deg, #C41E3A 0%, #D4AF37 100%);
    --advent-gradient-red-gold: linear-gradient(135deg, #C41E3A 0%, #D4AF37 100%);

    /* BASE STYLES */
    background-color: var(--color-bg);
    color: var(--color-text);
    position: relative;
    overflow-x: hidden;
}

/* Main Area sollte auch den Theme-Hintergrund haben */
.theme-advent main {
    background-color: transparent !important;
}

/* Footer mit Theme-Hintergrund */
body.theme-advent .site-footer {
    background-color: var(--color-bg-secondary);
}

/* Schneeflocken-Hintergrund-Effekt - VERSTÄRKT x50 */
.theme-advent::before {
    content: '❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄';
    position: fixed;
    top: -50px;
    left: 0;
    width: 200%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    animation: snowfall 15s linear infinite;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 40px;
}

.theme-advent::after {
    content: '❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄';
    position: fixed;
    top: -100px;
    left: 25px;
    width: 200%;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.25);
    animation: snowfall 18s linear infinite 3s;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 45px;
}

@keyframes snowfall {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Zusätzliche Schneeflocken-Layer für mehr Dichte */
.theme-advent .hero-section::before,
.theme-advent .about-page::before,
.theme-advent main::before {
    content: '❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄ ❄';
    position: fixed;
    top: -80px;
    left: 50px;
    width: 180%;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.2);
    animation: snowfall 22s linear infinite 7s;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 55px;
}

/* ============================================
   WEIHNACHTLICHE DEKORATIONEN
   ============================================ */
/* Entfernt - Banner wurde vom User entfernt gewünscht */

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.theme-advent header,
.theme-advent .site-header,
html.theme-advent .site-header,
body.theme-advent .site-header {
    background: rgba(13, 40, 24, 0.95);
    border-bottom: 1px solid var(--advent-gold);
    box-shadow: var(--advent-shadow-sm);
}

.theme-advent nav a {
    color: var(--advent-text);
    transition: all 0.3s ease;
}

.theme-advent nav a:hover,
.theme-advent nav a.active {
    color: var(--advent-gold);
    text-shadow: var(--advent-glow-gold);
}

/* ============================================
   BUTTONS
   ============================================ */
.theme-advent .btn-primary,
.theme-advent .cta-button {
    background: var(--advent-gradient-button);
    color: #0a1628;
    font-weight: 700;
    border: none;
    box-shadow: var(--advent-shadow-md);
    transition: all 0.3s ease;
}

.theme-advent .btn-primary:hover,
.theme-advent .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--advent-shadow-lg), var(--advent-glow-gold);
}

.theme-advent .btn-secondary {
    background: var(--advent-green);
    color: white;
    border: 2px solid var(--advent-gold);
}

.theme-advent .btn-secondary:hover {
    background: var(--advent-red);
    box-shadow: var(--advent-glow-red);
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.theme-advent .card,
.theme-advent .service-card,
.theme-advent .portfolio-item {
    background: var(--advent-gradient-card);
    border: 1px solid var(--advent-line);
    border-radius: 12px;
    box-shadow: var(--advent-shadow-sm);
    transition: all 0.4s ease;
}

.theme-advent .card:hover,
.theme-advent .service-card:hover,
.theme-advent .portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--advent-shadow-lg);
    border-color: var(--advent-gold);
}

/* Gold-Glitzer-Effekt für Hover */
.theme-advent .card:hover::before,
.theme-advent .service-card:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--advent-gradient-accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.theme-advent .hero-section {
    background: var(--advent-gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Weihnachtliche Sterne im Hintergrund */
.theme-advent .hero-section::before {
    content: '✨ ⭐ ✨';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.1;
    animation: advent-stars-float 6s ease-in-out infinite;
}

.theme-advent .hero-section::after {
    content: '🎄 🎁 🎄';
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.1;
    animation: advent-stars-float 8s ease-in-out infinite reverse;
}

@keyframes advent-stars-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.theme-advent .hero-section h1,
.theme-advent .hero h1,
.theme-advent .hero-title,
.theme-advent h1.hero-title {
    color: var(--advent-gold);
    -webkit-text-fill-color: var(--advent-gold);
    background: none;
    text-shadow: var(--advent-glow-gold);
}

.theme-advent .hero-subtitle,
.theme-advent .hero p {
    color: var(--advent-text);
    -webkit-text-fill-color: var(--advent-text);
}

/* ============================================
   ACCENT LINES & ÜBERSCHRIFTEN
   ============================================ */
.theme-advent h2::after,
.theme-advent h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--advent-gradient-red-gold);
    margin-top: 1rem;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* Weihnachtliche Sterne-Dekoration für große Überschriften */
.theme-advent .section-title::before {
    content: '✨ ';
    color: var(--advent-gold);
    font-size: 0.8em;
    margin-right: 0.5rem;
}

.theme-advent .hero-title::before {
    content: '⭐ ';
    color: var(--advent-gold);
    font-size: 0.7em;
    margin-right: 0.5rem;
}

/* ============================================
   SPECIAL: Gold-Glitzer-Animation
   ============================================ */
.advent-sparkle {
    position: relative;
}

.advent-sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    animation: advent-sparkle-pulse 2s ease-in-out infinite;
}

@keyframes advent-sparkle-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   FOOTER
   ============================================ */
.theme-advent footer {
    background: var(--advent-bg-secondary);
    border-top: 3px solid var(--advent-gold);
    box-shadow: 0 -4px 12px rgba(212, 175, 55, 0.1);
}

.theme-advent footer a {
    color: var(--advent-gold);
}

.theme-advent footer a:hover {
    text-shadow: var(--advent-glow-gold);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.theme-advent .testimonial {
    background: var(--advent-card);
    border-left: 4px solid var(--advent-gold);
}

.theme-advent .testimonial::before {
    content: '⭐⭐⭐⭐⭐';
    display: block;
    color: var(--advent-gold);
    margin-bottom: 1rem;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.theme-advent .portfolio-grid {
    gap: 2rem;
}

.theme-advent .portfolio-item img {
    border: 2px solid var(--advent-line);
    transition: all 0.3s ease;
}

.theme-advent .portfolio-item:hover img {
    border-color: var(--advent-gold);
    box-shadow: var(--advent-glow-gold);
}

/* ============================================
   FORMS
   ============================================ */
.theme-advent input,
.theme-advent textarea,
.theme-advent select {
    background: var(--advent-bg-secondary);
    color: var(--advent-text);
    border: 1px solid var(--advent-line);
    border-radius: 8px;
}

.theme-advent input:focus,
.theme-advent textarea:focus,
.theme-advent select:focus {
    border-color: var(--advent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.theme-advent .badge {
    background: var(--advent-gradient-button);
    color: #0a1628;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   LOADING STATES
   ============================================ */
.theme-advent .loading-spinner {
    border-color: var(--advent-line);
    border-top-color: var(--advent-gold);
}

/* ============================================
   SCROLLBAR (Chrome/Safari)
   ============================================ */
.theme-advent ::-webkit-scrollbar {
    width: 12px;
}

.theme-advent ::-webkit-scrollbar-track {
    background: var(--advent-bg);
}

.theme-advent ::-webkit-scrollbar-thumb {
    background: var(--advent-gold);
    border-radius: 6px;
}

.theme-advent ::-webkit-scrollbar-thumb:hover {
    background: var(--advent-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .theme-advent::before,
    .theme-advent::after {
        font-size: 15px;
        letter-spacing: 30px;
    }

    .theme-advent .hero-section::before,
    .theme-advent .hero-section::after {
        font-size: 2rem;
    }
}

/* ============================================
   PRINT (kein festliches Design im Druck)
   ============================================ */
@media print {
    .theme-advent::before,
    .theme-advent::after {
        display: none;
    }

    .theme-advent .hero-section::before,
    .theme-advent .hero-section::after {
        display: none;
    }

    .theme-advent {
        background: white;
        color: black;
    }
}
