/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --border-radius: 8px;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --error-color: #dc2626;
    --success-color: #16a34a;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

/* ========== RESPONSIVE CONTAINER ========== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 576px) {
    .container { max-width: 100%; padding: 0 15px; }
}
@media (min-width: 577px) and (max-width: 768px) {
    .container { max-width: 540px; }
}
@media (min-width: 769px) and (max-width: 992px) {
    .container { max-width: 720px; }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .container { max-width: 960px; }
}
@media (min-width: 1201px) and (max-width: 1600px) {
    .container { max-width: 1140px; }
}
@media (min-width: 1601px) {
    .container { max-width: 1400px; }
}
@media (min-width: 1920px) {
    .container { max-width: 1600px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}
.logo { display: flex; align-items: center; text-decoration: none; transition: 0.3s; }
.logo:hover { transform: translateY(-2px); }
.logo-img { height: 45px; width: auto; display: block; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--primary-color); transform: translateY(-2px); }
.nav-links a.active { color: var(--primary-color); font-weight: 600; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(1);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Legal Menu */
.legal-menu { position: relative; }
.legal-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.legal-toggle:hover { color: var(--primary-color); background: var(--light-color); transform: scale(1.1); }
.legal-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
    border: 1px solid var(--gray-color);
}
.legal-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.legal-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--gray-color);
}
.legal-dropdown a:last-child { border-bottom: none; }
.legal-dropdown a:hover { background: var(--light-color); color: var(--primary-color); }

/* Hero */
.hero {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-color) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--dark-color); animation: fadeInUp 1s ease-out; }
.hero p { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto 2rem; animation: fadeInUp 1s ease-out 0.2s both; }
.hero-buttons { animation: fadeInUp 1s ease-out 0.4s both; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); box-shadow: none; }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }

/* Sections */
.section { padding: 6rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; color: var(--dark-color); display: inline-block; position: relative; font-weight: 700; }
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}
.section-title p { color: var(--text-light); max-width: 700px; margin: 1rem auto 0; margin-bottom: 1.5em; font-size: 1.1rem; }

/* ========== CTA SECTION (eigene Farben) ========== */
.cta-section {
    background: var(--gradient);
    /* Hier kannst du die Hintergrundfarbe ändern, falls gewünscht */
}

/* Überschrift und Text im CTA-Bereich */
.cta-section h2,
.cta-section p {
    color: white !important;  /* oder eine andere Farbe, z.B. #ffdd00 */
}

/* Optional: falls der Button eine spezielle Farbe haben soll */
.cta-section .cta-btn {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-section .cta-btn:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Page Header */
.page-header { padding: 6rem 0; background: var(--gradient); color: var(--white); text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 700; color: var(--white); }
.page-header p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark-color); }
.card-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; transition: 0.3s; }
.card:hover .card-icon { transform: scale(1.1) rotate(5deg); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Features */
.features { background: var(--light-color); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.feature-item { text-align: center; padding: 2rem; transition: 0.3s; }
.feature-item:hover { transform: translateY(-5px); }
.feature-item i { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1.5rem; transition: 0.3s; }
.feature-item:hover i { transform: scale(1.1); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--dark-color); }

/* Team */
.team-member { text-align: center; padding: 2rem; position: relative; }
.team-avatar {
    width: 150px; height: 150px; background: var(--gradient); border-radius: 50%;
    margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 3rem; transition: 0.3s; position: relative; z-index: 2;
}
.team-member:hover .team-avatar { transform: scale(1.1); }
.team-social {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    display: flex; gap: 1rem; opacity: 0; transition: 0.3s; z-index: 3;
}
.team-member:hover .team-social { opacity: 1; }
.team-social a {
    display: inline-flex; width: 40px; height: 40px; background: var(--white); border-radius: 50%;
    color: var(--primary-color); text-decoration: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow); transition: 0.3s;
}
.team-social a:hover { transform: scale(1.2); background: var(--primary-color); color: var(--white); }

/* Form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark-color); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--gray-color); border-radius: 8px;
    font-family: inherit; font-size: 1rem; transition: all 0.3s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group.error input, .form-group.error textarea, .form-group.error select {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(220,38,38,0.1);
}
.form-group.valid input, .form-group.valid textarea, .form-group.valid select {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(22,163,74,0.1);
}
.error-message { color: var(--error-color); font-size: 0.875rem; margin-top: 0.25rem; display: none; }
.form-group.error .error-message { display: block; }

/* Contact Info */
.contact-info-item {
    display: flex; align-items: flex-start; margin-bottom: 1.5rem; padding: 1rem;
    border-radius: 8px; transition: 0.3s; cursor: pointer; border: 1px solid transparent;
}
.contact-info-item:hover { background: var(--light-color); transform: translateX(10px); border-color: var(--primary-color); }
.contact-info-item i { color: var(--primary-color); margin-right: 1rem; font-size: 1.2rem; transition: 0.3s; }
.contact-info-item:hover i { transform: scale(1.2); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Map */
.map-container { width: 100%; height: 400px; border-radius: var(--border-radius); overflow: hidden; position: relative; }
.clickable-map { display: block; width: 100%; height: 100%; position: relative; }
.map-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s;
}
.map-overlay-content {
    background: var(--white); padding: 1rem 1.5rem; border-radius: 25px;
    display: flex; gap: 0.5rem; font-weight: 600; color: var(--primary-color);
    box-shadow: var(--shadow); transform: translateY(20px); transition: 0.3s;
}
.clickable-map:hover .map-overlay { opacity: 1; }
.clickable-map:hover .map-overlay-content { transform: translateY(0); }

/* Projects */
.projects { background: var(--light-color); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card {
    background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow);
    transition: 0.3s;
}
.project-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.project-image {
    width: 100%; height: 250px; background: var(--gradient);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem;
    position: relative; overflow: hidden;
}
.project-image::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.1); opacity:0; transition:0.3s;
}
.project-card:hover .project-image::before { opacity: 1; }
.project-content { padding: 2rem; }
.project-content h3 { font-size:1.5rem; margin-bottom:1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap:0.5rem; margin-bottom:1rem; }
.project-tag { background: var(--light-color); color: var(--primary-color); padding:0.25rem 0.75rem; border-radius:15px; font-size:0.875rem; }
.project-link {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
    color: var(--primary-color); font-weight: 600; text-decoration: none; transition: gap 0.3s;
}
.project-link:hover { gap: 0.75rem; color: var(--primary-dark); }

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
    color: var(--white); padding: 4rem 0 1.5rem; position: relative;
}
footer::before { content: ''; position: absolute; top:0; left:0; right:0; height:1px; background: var(--gradient); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 3rem; margin-bottom: 2rem; } @media (min-width: 1000px) and (max-width: 1600px) {.footer-content {gap: 2rem;}} @media (max-width: 768px) {.footer-content {gap: 2rem;}}
.footer-column h3 { font-size:1.25rem; margin-bottom:1.5rem; position: relative; }
.footer-column h3::after { content: ''; position: absolute; bottom:-8px; left:0; width:30px; height:2px; background: var(--primary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; transition: 0.3s; }
.footer-links li:hover { transform: translateX(5px); }
.footer-links a { color: var(--gray-color); text-decoration: none; transition: 0.3s; display: flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
    display: inline-flex; width:40px; height:40px; background: rgba(255,255,255,0.1); border-radius:50%;
    color: var(--white); text-decoration: none; align-items: center; justify-content: center; transition: 0.3s;
}
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(37,99,235,0.4); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.875rem; }
.footer-bottom a { color: var(--gray-color); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* Chatbot */
.chatbot-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; }
.chatbot-toggle {
    width: 60px; height: 60px; background: var(--gradient); border: none; border-radius: 50%;
    color: white; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite; transition: 0.3s;
}
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-window {
    position: absolute; bottom: 70px; right: 0; width: 350px; height: 500px;
    background: white; border-radius: 15px; box-shadow: var(--shadow-lg);
    display: none; flex-direction: column; overflow: hidden; transform: translateY(20px);
    opacity: 0; transition: all 0.3s; border: 1px solid var(--gray-color);
}
.chatbot-window.active { display: flex; transform: translateY(0); opacity: 1; }
.chatbot-header { background: var(--gradient); color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.chatbot-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.message { max-width: 80%; padding: 0.75rem 1rem; border-radius: 15px; animation: fadeInUp 0.3s ease; }
.message.bot { align-self: flex-start; background: var(--light-color); border-bottom-left-radius: 5px; }
.message.user { align-self: flex-end; background: var(--primary-color); color: white; border-bottom-right-radius: 5px; }
.chatbot-input { display: flex; padding: 1rem; border-top: 1px solid var(--gray-color); gap: 0.5rem; }
.chatbot-input input { flex:1; padding:0.75rem; border:1px solid var(--gray-color); border-radius:25px; outline:none; }
.chatbot-input input:focus { border-color: var(--primary-color); }
.chatbot-input button { width:45px; height:45px; background: var(--primary-color); border:none; border-radius:50%; color:white; cursor:pointer; transition:0.3s; }
.chatbot-input button:hover { background: var(--primary-dark); transform:scale(1.05); }
.loading-dots::after { content: ''; animation: dots 1.5s steps(4,end) infinite; }
@keyframes dots { 0%,20%{content:'.'} 40%{content:'..'} 60%,100%{content:'...'} }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom:0; left:0; right:0; background: var(--dark-color); color: var(--white);
    padding: 1.5rem; z-index: 10000; transform: translateY(100%); transition: transform 0.5s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content { max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:1rem; }
.cookie-text { flex:1; font-size:0.9rem; }
.cookie-text a { color: var(--primary-color); text-decoration: underline; }
.cookie-buttons { display:flex; gap:1rem; }
.cookie-btn { padding:0.5rem 1.2rem; border-radius:25px; border:none; cursor:pointer; font-weight:600; transition:0.3s; }
.cookie-btn-accept { background: var(--primary-color); color:white; }
.cookie-btn-accept:hover { background: var(--primary-dark); transform:scale(1.05); }
.cookie-btn-decline { background:transparent; border:1px solid var(--gray-color); color:var(--gray-color); }
.cookie-btn-decline:hover { background:rgba(255,255,255,0.1); }

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}
.menu-toggle span {
    width: 25px; height: 2px; background: var(--dark-color); margin: 3px 0;
    transition: 0.3s; transform-origin: center;
    opacity: 1 !important; visibility: visible !important;
}

/* Responsive (Menü, etc.) */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 80px; left: 0; width: 100%; background: var(--white);
        flex-direction: column; align-items: center; padding: 2rem 0;
        box-shadow: var(--shadow); transform: translateY(-150%); transition: transform 0.3s;
        z-index: 999; gap: 1.5rem;
    }
    .nav-links.active { transform: translateY(0); }
    .legal-menu { width: 100%; text-align: center; }
    .legal-toggle { margin: 0 auto; }
    .legal-dropdown { left: 50%; right: auto; transform: translateX(-50%) translateY(-10px); }
    .legal-dropdown.active { transform: translateX(-50%) translateY(0); }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.125rem; }
    .section-title h2 { font-size: 2rem; }
    .chatbot-window { width: 300px; height: 400px; right: 10px; }
    .card-grid, .feature-grid, .project-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .cookie-content { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .chatbot-window { width: calc(100vw - 40px); right: 20px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .container { padding: 0 15px; }
    .page-header h1 { font-size: 2rem; }
}