/* ENTDECKERWERKSTATT e.V. - STYLESHEET 
    Struktur: Variablen > Basis > Layout > Navigation > Komponenten > Utilities
*/

/* --- 1. VARIABLEN & FONTS --- */
/* Headlines: Pally */
@font-face {
    font-family: 'Pally';
    src: url('../fonts/Pally-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pally';
    src: url('../fonts/Pally-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Body: General Sans */
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans';
    src: url('../fonts/GeneralSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --entdecker-green: #8ed728; 
    --entdecker-green-hover: #7bc01f;
    --entdecker-orange: #f2552c; 
    --entdecker-footer-bg: #3c3c3c; 
    --text-dark: #212529;
    --bg-light: #f8f9fa;
    --transition-normal: 0.3s ease-in-out;
}

/* --- 2. BASIS-STILE --- */
body {
    font-family: 'General Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Kursiver Text nutzt nun automatisch GeneralSans-Italic */
em, i {
    font-style: italic;
}

/* Fettgedruckter Fließtext nutzt GeneralSans-Bold */
strong, b {
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pally', system-ui, sans-serif;
    color: var(--text-dark);
    font-weight: 700;
}

/* Globale Headline-Regeln */
h1, .h1 {
    color: var(--entdecker-green) !important;
}

.bg-entdecker-green h2, .bg-entdecker-green .h2,
.bg-entdecker-green h3, .bg-entdecker-green .h3,
.bg-entdecker-green h4, .bg-entdecker-green .h4 {
    color: #ffffff !important;
}
/* --- 3. LINKS & INTERAKTION (GLOBAL) --- */
a:not(.btn) {
    transition: color var(--transition-normal);
    text-decoration-skip-ink: auto;
}

a:not(.btn):hover {
    color: var(--entdecker-green) !important;
}

/* --- 4. NAVIGATION (HEADER) --- */
.navbar {
    transition: all var(--transition-normal);
    background-color: #f9fdf4; /* Subtiler, zum Hero passender Hintergrund */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Logo Zoom Effekt - Optimiert für maximale Flüssigkeit */
.logo-zoom {
    display: inline-flex;
    /* Cubic-Bezier für organisches Abbremsen */
    transition: transform 0.3s ease-out; 
    will-change: transform; /* Aktiviert Hardwarebeschleunigung */
    backface-visibility: hidden; /* Verhindert Unschärfe beim Skalieren */
}

.logo-zoom:hover {
    transform: scale(1.02);
}

.logo-zoom:active {
    transform: scale(0.98);
    transition: transform 0.1s ease; /* Schnelles Feedback beim Klicken */
}

.navbar-nav .nav-link {
    font-size: 1.15rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    transition: all var(--transition-normal);
    border-radius: 8px; /* Abrundung für Hover-Effekt */
}

.navbar-nav .nav-link:hover {
    color: var(--entdecker-green) !important;
    background-color: rgba(142, 215, 40, 0.08); /* Sehr dezentes grünes Highlight */
}

.dropdown-item {
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: #f1f3f5;
    color: var(--entdecker-green) !important;
}

/* --- 5. LAYOUT-KOMPONENTEN --- */
main#content {
    flex: 1 0 auto;
}

.hero-section {
    background-color: #f9fdf4;
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
}

/* --- 6. SPEZIFISCHE KOMPONENTEN --- */
.btn-entdecker {
    background-color: var(--entdecker-green);
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    border: none;
    font-weight: 600;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-entdecker:hover {
    transform: scale(1.05);
    background-color: var(--entdecker-green-hover);
}

/* Footer Styling */
footer {
    flex-shrink: 0;
    background-color: var(--entdecker-footer-bg);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-icon {
    color: var(--entdecker-green);
    font-size: 1.1rem;
}


/* --- 7. HELPER & UTILITIES --- */
.bg-entdecker-green  { background-color: var(--entdecker-green) !important; }
.text-entdecker-green { color: var(--entdecker-green) !important; }
.bg-entdecker-orange { background-color: var(--entdecker-orange) !important; }
.text-entdecker-orange { color: var(--entdecker-orange) !important; }

.rotate-2  { transform: rotate(2deg); }
.rotate-1  { transform: rotate(1deg); }
.rotate-n1 { transform: rotate(-1deg); }

.white-logo-filter {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.draft-ribbon {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    background: #dc3545; 
    color: white !important;
    text-align: center;
    line-height: 40px;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10000;
    transform: rotate(45deg) translate(70px, -40px);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    pointer-events: none;
    user-select: none;
}

/* Aktiver Menüpunkt mit dezenter Indikator-Linie */
.navbar-nav .nav-link.active {
    color: var(--entdecker-green) !important;
    position: relative;
}

/* Die Linie wird nur in der Desktop-Ansicht angezeigt */
@media (min-width: 992px) {
    .navbar-nav .nav-link.active::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background-color: var(--entdecker-green);
        border-radius: 2px;
    }
}

/* Highlight für aktive Dropdown-Items */
.dropdown-item.active {
    background-color: #f8fbf2;
    color: var(--entdecker-green) !important;
    font-weight: 700;
}

/* Standardzustand: Unsichtbar für weichen Übergang */
.lozad {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Zustand nach dem Laden: Sichtbar */
.lozad.fade-in {
    opacity: 1;
}


/* --- TEAM KARTEN DESIGN --- */

/* Basis-Styling der Karte */
.team-card {
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Weicher Übergang */
    /* Subtiler, farbiger Initial-Schatten */
    box-shadow: 0 4px 15px rgba(142, 215, 40, 0.1); 
    border: 1px solid transparent;
}

/* Hover-Effekt für die Karte */
.team-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Stärkerer, grüner Schatten beim Hovern */
    box-shadow: 0 12px 25px rgba(142, 215, 40, 0.25);
    border-color: var(--entdecker-green);
}

/* Wrapper für das Herz-Icon */
.team-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f9fdf4; /* Sehr helles Grün als Hintergrund */
    position: relative;
    /* Pulsierende Animation */
    animation: pulse-glow 2.5s infinite ease-in-out;
}

/* Keyframes für den pulsierenden Glow-Effekt */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 215, 40, 0.4);
    }
    70% {
        /* Der Schatten dehnt sich aus und wird transparenter */
        box-shadow: 0 0 0 15px rgba(142, 215, 40, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 215, 40, 0);
    }
}

/* Das Icon selbst beim Hovern der Karte leicht animieren */
.team-card:hover .team-icon-wrapper i {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* Utilities */
.opacity-90 { opacity: 0.9 !important; }

/* --- STICKY NOTIFICATION BAR --- */
.sticky-notification-wrapper {
    position: sticky;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 1040; /* Über Bootstrap Navbar (1030) aber unter Modals (1050) */
    pointer-events: none; /* Klicks durchlassen, wo keine Box ist */
    bottom: 30px;
    padding: 0 15px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.sticky-notification {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 12px 8px 12px 24px;
    pointer-events: auto;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15);
    width: fit-content;
    margin: 0 auto;
    
    /* Animation: Hereinfliegen von unten */
    transform: translateY(150%);
    animation: 
        slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards,
        gentleWobble 0.5s ease-in-out 1.6s forwards;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(150%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-hidden {
    opacity: 0 !important;
    transform: translateY(25px) scale(0.95) !important;
    pointer-events: none !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

@keyframes gentleWobble {
    0% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(0) rotate(3deg); }
    75% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* --- 8. ZUSÄTZLICHE PROFESSIONALISIERUNGS-STILE --- */

/* Smooth Scrolling & Scroll-Padding für festen Header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px; /* Höhe der klebrigen Navigationsleiste */
    overflow-x: hidden;
}


/* E-Mail-Spamschutz via CSS Pseudo-Elemente statt RTL-Text */
.email-obfuscated {
    font-size: 0 !important; /* Versteckt den HTML RTL-Text */
    white-space: nowrap;
    direction: ltr !important;
    unicode-bidi: normal !important;
}
.email-obfuscated::after {
    content: attr(data-user) "@" attr(data-domain);
    font-size: clamp(0.75rem, 4.5vw, 1rem);
    white-space: pre-wrap;
    word-break: break-all;
}
@media (max-width: 575.98px) {
    .email-obfuscated::after {
        content: attr(data-user) "\A @" attr(data-domain);
        white-space: pre;
    }
}

/* Druck-Stylesheet für ein sauberes Erscheinungsbild */
@media print {
    header, footer, .btn, .btn-entdecker, .sticky-notification-wrapper, 
    .carousel-indicators, [role="button"], iframe, .copy-btn, .navbar-toggler,
    #address-click-target svg, .map-placeholder, .team-icon-wrapper {
        display: none !important;
    }
    body {
        background: white !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    .card, .team-card, .bg-white, .bg-light {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: transparent !important;
        color: #000000 !important;
    }
    h1, h2, h3, h4, h5, h6 {
        color: #000000 !important;
        page-break-after: avoid;
    }
    a:not(.email-obfuscated)[href]:after {
        content: " (" attr(href) ")";
    }
}
