/*
Theme Name: ZingE Theme
Theme URI: https://zinge-ev.de
Author: ZingE e.V.
Author URI: https://zinge-ev.de
Description: Custom WordPress Theme für ZingE e.V. mit Gutenberg und Spectra Support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zinge-theme
Tags: block-theme, full-site-editing, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =================================================================
   ZINGE E.V. - WEBSITE DESIGN SYSTEM
   Modern. Vertrauensvoll. Zugänglich.
   
   Farbpalette aus Logo:
   - Braun: #3a2f2f (Text/Basis)
   - Blau: #00AEEF (Welt/Global)
   - Grün: #8DC63F (Natur/Nachhaltigkeit)
   - Rot: #ED1C24 (Bildung/Chancen)
   ================================================================= */

/* =================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ================================================================= */
:root {
    /* Farbsystem - Aus Logo */
    --primary-brown: #3a2f2f;
    --primary-blue: #00AEEF;
    --primary-green: #8DC63F;
    --primary-red: #ED1C24;
    
    /* Hintergrundfarben */
    --bg-white: #ffffff;
    --bg-light: #f0f0f0;
    --bg-beige: #faf9f7;
    --bg-cream: #f5f3f0;
    
    /* Textfarben */
    --text-primary: #3a2f2f;
    --text-secondary: #6b6b6b;
    --text-light: #ffffff;
    
    /* Akzentfarben für verschiedene Bereiche */
    --accent-seniors: var(--primary-blue);     /* Senioren = Blau */
    --accent-youth: var(--primary-green);      /* Jugendliche = Grün */
    --accent-refugees: var(--primary-red);     /* Geflüchtete = Rot */
    --accent-finance: #8DC63F;                 /* Finanzbildung = Grün */
    
    /* Graustufen */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(58, 47, 47, 0.08);
    --shadow-md: 0 4px 16px rgba(58, 47, 47, 0.12);
    --shadow-lg: 0 8px 32px rgba(58, 47, 47, 0.16);
    --shadow-xl: 0 12px 48px rgba(58, 47, 47, 0.20);
    
    /* Typografie */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Raleway', 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Layout */
    --container-width: 1400px;
    --container-narrow: 1000px;
    --header-height: 80px;
    --top-bar-height: 45px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-round: 50%;
}

/* =================================================================
   2. RESET & BASE STYLES
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   3. TYPOGRAFIE
   ================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-brown);
}

/* =================================================================
   4. SCROLL PROGRESS BAR
   ================================================================= */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(58, 47, 47, 0.1);
    z-index: 10000;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 50%, var(--primary-red) 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* =================================================================
   5. SCROLL TO TOP BUTTON
   ================================================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-blue), #0090c7);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #0090c7, var(--primary-blue));
    transform: translateY(-5px) scale(1);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* =================================================================
   6. TOP BAR
   ================================================================= */
.top-bar {
    background: linear-gradient(135deg, var(--primary-brown) 0%, #4a3f3f 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.top-bar-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-item i {
    color: var(--primary-blue);
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-link:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* =================================================================
   7. HEADER / NAVIGATION
   ================================================================= */
.header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 55px;
    width: auto;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.nav-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.dropdown-menu li a i {
    font-size: 1rem;
    color: var(--primary-blue);
    width: 20px;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* Header CTA */
.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary-blue), #0090c7);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-btn-primary:hover {
    background: linear-gradient(135deg, #0090c7, var(--primary-blue));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 3px;
    transition: var(--transition-fast);
}

@media (max-width: 1024px) {
    .nav,
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* =================================================================
   8. FOOTER
   ================================================================= */
.footer {
    background: linear-gradient(135deg, var(--primary-brown) 0%, #2a2020 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 0;
    margin-top: 6rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-round);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    color: white;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-blue);
    width: 18px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-blue);
}

/* Footer CTA */
.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 174, 239, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-cta-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-cta-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #0090c7);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.footer-cta h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.footer-btn-primary,
.footer-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.footer-btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #0090c7);
    color: white;
}

.footer-btn-primary:hover {
    background: linear-gradient(135deg, #0090c7, var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.footer-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-blue);
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: var(--primary-blue);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-gemeinnuetzig {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
}

.footer-gemeinnuetzig i {
    color: var(--primary-green);
}

/* =================================================================
   9. RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-content {
        flex-direction: column;
    }
    
    .footer-cta-buttons {
        width: 100%;
    }
    
    .footer-btn-primary,
    .footer-btn-secondary {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
    }
}

/* =================================================================
   10. UTILITY CLASSES
   ================================================================= */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
