/* einfach.work - Main Stylesheet */

@font-face {
    font-family: 'DM Sans';
    src: url('./font/static/DMSans_18pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('./font/static/DMSans_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('./font/static/DMSans_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Sans';
    src: url('./font/static/DMSans_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #eb1abd;
    --secondary: #235072;
    --accent: #638398;
    --dark: #1A1A2E;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --gray: #6C757D;
    --nav-bg: #235072;
    --footer-bg: #1A1A2E;
}

[data-theme="dark"] {
    --primary: #FF8C61;
    --secondary: #4A90E2;
    --accent: #FFD93D;
    --dark: #FFFFFF;
    --light: #2C2C3E;
    --white: #1A1A2E;
    --gray: #B8B8C8;
    --nav-bg: #0D1E2E;
    --footer-bg: #0D1E2E;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

nav.scrolled {
    background: #0D1E2E;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    position: absolute;
    right: 2rem;
    top: 0.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    height: 24px;
    width: 24px;
}

.theme-toggle:hover {
    transform: scale(1.15);
}

.theme-toggle .sun-icon {
    display: none;
    font-size: 0.95rem;
}

.theme-toggle .moon-icon {
    display: inline;
    font-size: 0.7rem;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: inline;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.language-switcher a {
    display: flex;
    align-items: center;
}

.language-switcher img {
    height: 16px;
    width: auto;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    top: 2px;
    vertical-align: middle;
}

.language-switcher img:hover {
    opacity: 0.8;
    transform: scale(1.15);
}

.logo img {
    height: 80px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo .logo-dark {
    display: none;
}

[data-theme="dark"] .logo .logo-light {
    display: none;
}

[data-theme="dark"] .logo .logo-dark {
    display: inline;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F438DA;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #F438DA;
}

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

/* Pfeil auf Desktop immer sichtbar */
.dropdown-arrow {
    display: inline-block;
    font-size: 0.7em;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

/* Pfeil dreht sich beim Hover nach oben */
.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    list-style: none;
}

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

.dropdown a {
    padding: 0.8rem 1.5rem;
    display: block;
    color: var(--dark);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.dropdown a::after {
    display: none;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #E8F0F8 0%, #F0E8F5 60%, #F8E8F5 100%);
    color: #1E2A3A;
    padding: 200px 2rem 150px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0F2A45 0%, #1B3A5C 50%, #7A1A6A 80%, #C030A8 100%);
    color: #FFFFFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
    text-shadow: none;
}

[data-theme="dark"] .hero h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.tagline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--secondary);
    font-weight: 700;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

/* Quote Boxes */
.quote-box {
    background: var(--light);
    padding: 3rem;
    border-radius: 15px;
    border-left: 6px solid var(--accent);
    margin: 3rem 0;
    position: relative;
}

.quote-box img {
    max-width: 150px;
    margin-bottom: 1.5rem;
}

.quote-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.quote-box p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark);
}

/* Team Carousel */
.team-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 80px 50px 80px;
}

.team-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.team-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.team-carousel .team-member {
    min-width: calc(33.333% - 1.5rem);
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (max-width: 1024px) {
    .team-carousel .team-member {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .team-carousel .team-member {
        min-width: 100%;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--primary);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.team-member p {
    color: var(--gray);
    font-size: 1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.stat-box {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-box h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
    margin: 5rem 0;
    border-radius: 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    background: var(--primary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: var(--accent);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: var(--light);
    text-decoration: none;
    line-height: 2;
    font-size: 1rem;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Dark Mode Adjustments */
[data-theme="dark"] .card,
[data-theme="dark"] .team-member {
    background: var(--light);
    color: var(--dark);
}

[data-theme="dark"] .quote-box {
    background: var(--light);
}

[data-theme="dark"] footer {
    background: var(--footer-bg);
}

[data-theme="dark"] .mobile-menu-btn {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .language-switcher {
        position: absolute;
        right: 5rem;
        top: 0.75rem;
        gap: 0.5rem;
        z-index: 1001;
    }
    
    .theme-toggle,
    .language-switcher img {
        font-size: 0.8rem;
        height: 18px;
        width: 18px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p,
    .tagline {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        align-items: center;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 5rem;
        top: calc(50% + 3px);
        transform: translateY(-15%);
        z-index: 1000;
        font-size: 2rem;
        padding: 0.15rem 0.35rem;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 6px;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        margin: 0.5rem 0 0 1rem;
        border-radius: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links li.has-dropdown.active .dropdown {
        max-height: 300px;
    }

    .nav-links li.has-dropdown > a {
        cursor: pointer;
    }
    
    /* Pfeil nur auf Mobile zeigen - klein */
    .dropdown-arrow {
        display: inline;
        font-size: 0.7em;
        margin-left: 0.25rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .container {
        padding: 2rem 1rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .legal-content h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Team Detail Modal */
.team-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.team-modal-content {
    background-color: var(--light);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .team-modal-content {
    background-color: var(--dark);
    color: var(--light);
}

.team-modal-close {
    color: var(--gray);
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.team-modal-close:hover,
.team-modal-close:focus {
    color: var(--accent);
}

.team-member {
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Legal Pages */
.legal-page {
    background: var(--white);
    padding: 2rem 0 5rem;
}

.legal-page .container {
    padding-top: 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    border-left: 4px solid var(--primary);
}

.legal-content h2,
.legal-content h3 {
    color: var(--secondary);
    font-weight: 700;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 0 0 1.5rem;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
}

.legal-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--dark);
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    color: var(--accent);
    text-decoration: underline;
}

[data-theme="dark"] .legal-page {
    background: var(--white);
}

[data-theme="dark"] .legal-content {
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .legal-content h3 {
    color: var(--secondary);
}

[data-theme="dark"] .legal-content p,
[data-theme="dark"] .legal-content strong {
    color: var(--dark);
}

[data-theme="dark"] .legal-content a {
    color: var(--accent);
}

[data-theme="dark"] .legal-content a:hover {
    color: var(--primary);
}