/* ==========================================================================
   Insektenwiese - Frontend Styles
   Sauber getrennt vom HTML, ergänzt Tailwind CDN
   ========================================================================== */

:root {
    --color-forest: #2D5A27;
    --color-leaf:   #4ADE80;
    --color-beige:  #F5F5F0;
    --color-sand:   #E8E2D2;
    --color-sun:    #F59E0B;
    --color-earth:  #374151;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-beige);
    color: var(--color-earth);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Glass Card
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Hotspots
   ========================================================================== */
.hotspot {
    position: absolute;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hotspot-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0    rgba(245, 158, 11, 0.7); }
    70%  { box-shadow: 0 0 0 20px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0    rgba(245, 158, 11, 0); }
}

.hotspot:hover .hotspot-inner {
    transform: scale(1.15);
}

.hotspot-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-forest);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hotspot:hover .hotspot-label {
    opacity: 1;
}

.hotspot.is-hidden {
    display: none;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(55, 65, 81, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Filter Buttons
   ========================================================================== */
.filter-btn.active {
    background: white !important;
    color: var(--color-forest) !important;
    border: 2px solid var(--color-forest) !important;
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.category-badge {
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: scale(1.05);
}

.category-badge.is-active {
    background: var(--color-forest);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.blog-card {
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-leaf));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

/* ==========================================================================
   Article Content (Blog Detail)
   ========================================================================== */
.article-content p {
    color: rgba(55, 65, 81, 0.9);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-forest);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-forest);
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    color: rgba(55, 65, 81, 0.9);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--color-leaf);
    padding: 24px 32px;
    margin: 32px 0;
    background: rgba(74, 222, 128, 0.05);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 20px;
    color: var(--color-forest);
}

.article-content a {
    color: var(--color-forest);
    font-weight: 600;
    border-bottom: 2px solid var(--color-leaf);
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--color-leaf);
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest), var(--color-leaf));
    z-index: 100;
    transition: width 0.1s ease;
}

/* ==========================================================================
   Sticky Sidebar
   ========================================================================== */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 1024px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   Flash Messages
   ========================================================================== */
.flash {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 200;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-weight: 600;
    animation: fadeInUp 0.4s ease-out;
}

.flash--success {
    background: var(--color-leaf);
    color: white;
}

.flash--error {
    background: #EF4444;
    color: white;
}
