/* Reset und Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #21755b;
    --secondary-color: #27a773;
    --accent-color: #27a773;
    --accent-light: #60ba96;
    --accent-lighter: #99d0b9;
    --dark-color: #116446;
    --light-color: #ffffff;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e0e0e0;
    --gray-dark: #555555;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item-dropdown {
    position: relative;
    padding-bottom: 0.5rem; /* Unsichtbare "Brücke" zum Dropdown */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    padding: 0.5rem 0;
    margin-top: 0; /* Kein Gap mehr! */
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background: var(--gray-light);
    color: var(--accent-color);
    padding-left: 2rem;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(144, 169, 85, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    box-shadow: 0 8px 25px rgba(39, 167, 115, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 167, 115, 0.6);
    background: var(--accent-light);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

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

/* Sections */
section {
    padding: 6rem 0;
}

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

.section-title.light {
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 4rem;
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
.services {
    background: var(--white);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse .service-content {
    direction: ltr;
}

.service-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tiefbau-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                      url('images/fotos/tiefbau/projekte/haldenwang/IMG_2605.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.glasfaser-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('images/fotos/gf-montage/b94f527c-bcfd-4401-a561-3845cc3d252f.JPG');
    background-size: cover;
    background-position: center;
}

.asphalt-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('images/fotos/tiefbau/projekte/haldenwang/Bitu_einbauen-6.jpeg');
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 1rem;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-highlight {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    padding: 1rem;
    background: var(--gray-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.service-specializations {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-light);
}

.specializations-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.specializations-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.specializations-list li:hover {
    background: var(--gray-light);
    transform: translateX(5px);
}

.specializations-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.specializations-list span {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Projects Section */
.projects {
    background: var(--white);
    padding: 6rem 0;
}

.projects-slider-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 80px;
}

.projects-slider {
    display: flex;
    gap: 3rem;
    overflow: hidden;
    transition: var(--transition);
    align-items: stretch;
}

.projects-slider .project-card {
    display: none;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
}

.projects-slider .project-card.active-slide {
    display: flex;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(39, 167, 115, 0.3);
}

.slider-nav:hover {
    background: var(--accent-light);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(39, 167, 115, 0.5);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    cursor: pointer;
    height: auto;
}

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

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--gray-light);
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(39, 167, 115, 0.95);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.project-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gray-light);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    text-decoration: none;
}

.project-button:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateX(5px);
}

.project-button svg {
    width: 18px;
    height: 18px;
}

/* Lightbox/Modal for Gallery */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.lightbox-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-main-image {
    position: relative;
    width: 100%;
    height: 60vh;
    background: var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.lightbox-thumbnails {
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnail {
    min-width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.lightbox-thumbnail:hover {
    transform: scale(1.05);
}

.lightbox-thumbnail.active {
    border-color: var(--accent-color);
}

.lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(39, 167, 115, 0.9);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Values Section */
.values {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.values-slider-container {
    position: relative;
    margin-top: 3rem;
    padding: 0 80px;
}

/* Hide values slider buttons on desktop */
.values-prev,
.values-next {
    display: none;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(39, 167, 115, 0.15);
    box-shadow: 0 20px 50px rgba(39, 167, 115, 0.2);
    border-color: rgba(39, 167, 115, 0.3);
}

.value-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 1;
}

.value-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.value-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about {
    background: var(--gray-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.highlight-text {
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Benefits Section */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid var(--gray-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(39, 167, 115, 0.15);
    border-color: var(--accent-color);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--light-color);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-color);
    background: rgba(255, 255, 255, 0.15);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 167, 115, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .service-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card.reverse {
        direction: ltr;
    }

    .service-image {
        height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-main-image {
        height: 50vh;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Values slider on mobile */
    .values-slider-container {
        padding: 0 50px;
    }

    .values-grid {
        display: flex;
        gap: 1.5rem;
        overflow: hidden;
        grid-template-columns: none;
    }

    .values-grid .value-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: auto;
    }

    /* Hide slider buttons on larger screens, show on mobile */
    .values-prev,
    .values-next {
        display: flex;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Fix project cards on mobile */
    .projects-slider .project-card,
    .projects-slider .project-card.active-slide {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-height: auto;
        width: 100%;
    }

    /* Reduce padding to give more space for cards */
    .projects-slider-container {
        padding: 0 40px;
    }

    .projects-slider {
        width: 100%;
        gap: 0;
    }

    /* Make slider buttons smaller and positioned better */
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    /* Adjust project image height for mobile */
    .projects-slider .project-image {
        height: 220px;
    }

    /* Ensure project content is visible and readable */
    .projects-slider .project-content {
        padding: 1.5rem;
    }

    .projects-slider .project-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .projects-slider .project-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .projects-slider .project-meta {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .projects-slider .project-meta-item {
        font-size: 0.85rem;
    }

    .projects-slider .project-meta-item svg {
        width: 16px;
        height: 16px;
    }

    .projects-slider .project-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Ensure image count badge is visible */
    .project-image-count {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0.5rem;
        border-radius: 5px;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Page Hero Styles */
.page-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.karriere-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.partner-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
}

/* Karriere Page */
.karriere-content,
.partner-content {
    padding: 6rem 0;
    background: var(--gray-light);
}

.karriere-intro,
.partner-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.subsection-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-section {
    margin-bottom: 4rem;
}

.benefits-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(39, 167, 115, 0.15);
}

.benefit-icon-small {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--accent-color);
}

.benefit-icon-small svg {
    width: 100%;
    height: 100%;
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Application Form */
.application-form-section {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.application-form,
.partner-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Fix for application and partner forms - ensure dark text on white background */
.application-form .form-group label,
.partner-form .form-group label {
    color: var(--text-dark);
    font-weight: 500;
}

.application-form .form-group input,
.application-form .form-group textarea,
.application-form .form-group select,
.partner-form .form-group input,
.partner-form .form-group textarea,
.partner-form .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-medium);
    background: var(--white);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.application-form .form-group input::placeholder,
.application-form .form-group textarea::placeholder,
.partner-form .form-group input::placeholder,
.partner-form .form-group textarea::placeholder {
    color: var(--gray-dark);
    opacity: 0.6;
}

.application-form .form-group input:focus,
.application-form .form-group textarea:focus,
.application-form .form-group select:focus,
.partner-form .form-group input:focus,
.partner-form .form-group textarea:focus,
.partner-form .form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
}

.upload-section-header {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.upload-section-header h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-info {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin: 0;
}

.file-upload-group {
    position: relative;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.file-input-label:hover {
    background: var(--accent-light);
}

.file-input-label svg {
    width: 20px;
    height: 20px;
}

.file-name {
    display: inline-block;
    margin-left: 1rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-button svg {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
}

/* Partner Page - Tabs */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-medium);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button svg {
    width: 24px;
    height: 24px;
}

.tab-button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 167, 115, 0.2);
}

.tab-button.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(39, 167, 115, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tab-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.benefit-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-list-item:hover {
    background: var(--accent-lighter);
    transform: translateX(10px);
}

.benefit-list-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.benefit-list-item span {
    font-size: 1rem;
    color: var(--text-dark);
}

.form-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

/* Legal Pages */
.legal-page {
    padding: 8rem 0 4rem;
    background: var(--gray-light);
    min-height: 80vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.legal-notice {
    background: var(--accent-lighter);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent-color);
}

.notice-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.notice-text a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.notice-text a:hover {
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 3rem;
    text-align: center;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.button-link:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 167, 115, 0.4);
}

.button-link svg {
    width: 20px;
    height: 20px;
}

/* Projects Detail Page */
.projects-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.project-detail {
    padding: 6rem 0;
    background: var(--white);
}

.project-detail.alt-bg {
    background: var(--gray-light);
}

.project-header {
    margin-bottom: 3rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 15px;
}

.project-detail.alt-bg .project-meta {
    background: var(--white);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.meta-item span {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Project content for detail pages only (NOT for slider cards) */
.project-detail .project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-description h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description h4 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project-list {
    list-style: none;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.project-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.project-image-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-image-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(39, 167, 115, 0.3);
}

.project-image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--transition);
}

.project-image-preview:hover img {
    filter: brightness(0.8);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 117, 91, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: var(--transition);
}

.project-image-preview:hover .image-overlay {
    opacity: 1;
}

.image-overlay svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.image-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(39, 167, 115, 0.3);
}

.gallery-btn:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 167, 115, 0.5);
}

.gallery-btn svg {
    width: 28px;
    height: 28px;
}

.project-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-lighter);
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.project-note svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.project-note p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: var(--accent-lighter);
}

/* Responsive für neue Seiten */
@media (max-width: 968px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .tabs-navigation {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .tab-content-inner,
    .application-form-section,
    .legal-content {
        padding: 2rem;
    }

    .projects-slider .project-card {
        flex: 0 0 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }

    .project-detail .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-gallery-grid {
        position: static;
    }

    .project-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }

    .benefits-grid-page {
        grid-template-columns: 1fr;
    }

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

    .cta-section p {
        font-size: 1rem;
    }
}
/* ==========================================
   AI CHATBOT STYLES
   ========================================== */

/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

/* Chat Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(39, 167, 115, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.chatbot-toggle:hover {
    background: var(--accent-light);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(39, 167, 115, 0.6);
}

.chatbot-toggle .chat-icon {
    width: 28px;
    height: 28px;
    color: var(--white);
    transition: var(--transition);
}

.chatbot-toggle .close-icon {
    width: 28px;
    height: 28px;
    color: var(--white);
    position: absolute;
    opacity: 0;
    transform: rotate(90deg) scale(0);
    transition: var(--transition);
}

.chatbot-toggle.active .chat-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.chatbot-toggle.active .close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-header-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.chatbot-status {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-close-btn svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--gray-light);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-light);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--gray-light);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--gray-dark);
}

.message-avatar svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.message-content {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-message .message-content {
    align-items: flex-end;
}

.message-content p {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-content p {
    background: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-content p {
    background: var(--accent-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--gray-dark);
    opacity: 0.7;
    padding: 0 0.5rem;
}

/* Typing Indicator */
.chatbot-typing {
    padding: 0 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-light);
}

.typing-indicator {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: typingAnimation 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chatbot-input-container {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--gray-medium);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.chatbot-input::placeholder {
    color: var(--gray-dark);
    opacity: 0.6;
}

.chatbot-send-btn {
    width: 42px;
    height: 42px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-send-btn:hover:not(:disabled) {
    background: var(--accent-light);
    transform: scale(1.05);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-send-btn svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: calc(100vh - 110px);
    }
    
    #chatbot-container {
        right: 10px;
        bottom: 10px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }
}

/* Benefits Slider */
.benefits-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 60px;
    overflow: hidden;
}

.benefits-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    width: 100%;
}

.benefits-slider .benefit-item {
    min-width: calc(33.333% - 1.33rem);
    max-width: calc(33.333% - 1.33rem);
    flex-shrink: 0;
    box-sizing: border-box;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

@media (max-width: 968px) {
    .benefits-slider .benefit-item {
        min-width: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .benefits-slider .benefit-item {
        min-width: 100%;
        max-width: 100%;
    }

    .benefits-slider-container {
        padding: 0 55px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* Glasfaser Projects Grid */
@media (max-width: 768px) {
    .benefits-section div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
