/* ================================
   Zukunft Wulften – Custom Styles
   ================================ */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f3; }
::-webkit-scrollbar-thumb { background: #008c5a40; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #008c5a80; }

/* Material Symbols baseline fix */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* ================================
   Animations
   ================================ */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Animation delays */
.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animation-delay-100 {
    transition-delay: 0.1s;
}
.scroll-animate.animation-delay-200 {
    transition-delay: 0.2s;
}
.scroll-animate.animation-delay-300 {
    transition-delay: 0.3s;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Navigation
   ================================ */

/* Nav scrolled state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

.nav-scrolled .nav-link:hover {
    color: #008c5a !important;
    background: rgba(0, 140, 90, 0.05) !important;
}

.nav-scrolled .nav-logo-text {
    color: #111827 !important;
}

/* ================================
   Mobile Menu
   ================================ */

#mobile-menu.open {
    transform: translateY(0);
}

#mobile-menu-overlay.open {
    display: block;
    opacity: 1;
}

/* Menu button animation */
#mobile-menu-btn.open .menu-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

#mobile-menu-btn.open .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* ================================
   Topic Cards (Accordion)
   ================================ */

.topic-card .topic-chevron.rotated {
    transform: rotate(180deg);
}

.topic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.topic-content.expanded {
    display: block;
    max-height: 1000px;
}

/* ================================
   Contact Form
   ================================ */

/* Anonymous mode styles */
.anonymous-mode .anon-hideable {
    opacity: 0.4;
    pointer-events: none;
}

/* Form success/error */
.form-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ================================
   Back to Top Button
   ================================ */

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* ================================
   Utilities
   ================================ */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(0, 140, 90, 0.15);
    color: #008c5a;
}

/* Focus ring */
:focus-visible {
    outline: 2px solid #008c5a;
    outline-offset: 2px;
}

/* ================================
   Admin / Backend Styles
   ================================ */

.admin-sidebar-link.active {
    background: rgba(0, 140, 90, 0.1);
    color: #008c5a;
    font-weight: 700;
}

/* WYSIWYG Editor container */
.editor-content {
    min-height: 300px;
    outline: none;
}

.editor-content:empty:before {
    content: "Beginnen Sie hier zu schreiben...";
    color: #9ca3af;
    pointer-events: none;
}

.editor-toolbar button.active {
    background: rgba(0, 140, 90, 0.1);
    color: #008c5a;
}

/* Status badges */
.badge-published {
    background: rgba(0, 140, 90, 0.1);
    color: #008c5a;
}

.badge-draft {
    background: #fef3c7;
    color: #92400e;
}

.badge-archived {
    background: #f3f4f6;
    color: #6b7280;
}

/* ================================
   Article / Blog page
   ================================ */

.prose-wzw h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 800;
    color: #111827;
}

.prose-wzw p {
    margin-bottom: 1em;
    line-height: 1.8;
    color: #374151;
}

.prose-wzw blockquote {
    border-left: 4px solid #008c5a;
    padding: 1.5em;
    margin: 2em 0;
    background: #f8faf9;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #4b5563;
}

.prose-wzw ul {
    list-style: none;
    padding: 0;
}

.prose-wzw ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.5em;
}

.prose-wzw ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #008c5a;
}

/* ================================
   Profile page
   ================================ */

.profile-hero-gradient {
    background: linear-gradient(135deg, #008c5a 0%, #006d46 50%, #004d32 100%);
}

/* ================================
   Responsive adjustments
   ================================ */

@media (max-width: 1023px) {
    /* Add padding for mobile menu button */
    body {
        padding-bottom: 80px;
    }
}
