/* Globale Stile */
:root {
    --primary-color: #0f172a;
    --secondary-color: #ffffff;
    --accent-color: #f66d3b;
    --accent-color-rgb: 246, 109, 59;
    --text-color: #334155;
    --bg-light: #f8fafc;
    --spacing-unit: clamp(1rem, 2vw, 2rem);
    --font-primary: 'Manrope', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Entspricht der Header-Höhe */
}
a {
    color: #333 !important;
    text-decoration: none !important;
}
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bsecondary-color);
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    color: var(--text-color);
}

/* Header und Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.5s ease;
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
}

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

.logo a {
    font-size: 1.8rem;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 400;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    background-color: transparent;
}

.nav-links a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
    background-color: transparent;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(0, 0, 0, 0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s var(--transition-smooth);
}

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

/* Burger Menu */
.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1500;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .burger-menu {
        position: relative;
        z-index: 2000;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        color: var(--primary-color);
    }

    body.menu-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0;
    filter: blur(3px) brightness(1.1);
    visibility: hidden;
    transform-origin: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

.hero-slide.active {
    visibility: visible;
}

@keyframes tvFlicker {
    0% { opacity: 1; }
    1% { opacity: 0.85; }
    2% { opacity: 0.95; }
    3% { opacity: 0.8; }
    4% { opacity: 0.9; }
    5% { opacity: 0.7; }
    6% { opacity: 0.95; }
    7% { opacity: 0.85; }
    8% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.hero-slide.flickering {
    animation: tvFlicker 0.08s infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.hero-text {
    max-width: 700px;
    margin-bottom: 2rem;
   
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.text-button {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
}

.text-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.text-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
    }

    .hero-content {
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-text {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
    filter: blur(3px);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Projekte Section */
.projects-section {
    position: relative;
    overflow: hidden;
}

.project-item {
    position: relative;
    margin-bottom: 8rem;
}

.project-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 100px;
}

.project-image {
    position: relative;
    flex: 1;
   
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.03), rgba(255,255,255,0.08));
}

.project-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

.project-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Reversed Layout */
.project-item.reversed .project-content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
    
    .project-item.reversed .project-content {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        min-height: 300px;
    }
}

.project-category {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-description {
    margin: 1rem 0;
    color: var(--text-color);
    opacity: 0.8;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li:before {
    content: "•";
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-item {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0px;
}



/* Responsive Styles */
@media (max-width: 992px) {
    .project-content {
        flex-direction: column;
        gap: 2rem;
        padding-top: 10px;
    }

    .project-item.reversed .project-content {
        flex-direction: column;
    }

    .project-text {
        max-width: 100%;
    }

    .project-image {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .projects-section {
        padding: 60px 0;
    }

    .project-text h3 {
        font-size: 24px;
    }

    .project-image {
        height: 250px;
    }
}

/* Projekte Section */
.projects-section {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    max-width: 1400px;
    margin: 0 auto;
}

.projects-section h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 300;
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: 2rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: none;
    transition: none;
}

.project-card:hover {
    transform: none;
    box-shadow: none;
}

.project-image {
    position: relative;
 
    overflow: hidden;
}

.project-image img {
    position: absolute;
    top: 9px;
    left: 4px;
    width: 282%;
    height: 120%;
    object-fit: cover;
    transition: none;
}

.project-card:hover .project-image img {
    transform: none;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 1;
    transform: none;
}

.team-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    will-change: transform;
    transform-origin: center center;
}

.team-image img.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.team-image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
    z-index: 2;
}

.team-image-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.team-image-info p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .team-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-image-info {
        padding: 1rem;
    }

    .team-image-info h3 {
        font-size: 1rem;
    }

    .team-image-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .team-images {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 2rem auto 0;
    }
}

.about-content .overline {
    color: #e2574a;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about-text {
    margin-bottom: 40px;
}

.about-text .lead {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    font-weight: 400;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    font-size: 24px;
    color: #4a90e2;
}

.feature-text h4 {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
    color: #2c3e50;
}

.feature-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Stats Grid */
.about-stats {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #e2574a;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        max-width: 100%;
    }

    .about-stats {
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }

    .about-content h2 {
        font-size: 30px;
    }

    .about-text .lead {
        font-size: 16px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 30px;
    }
}

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

@media (max-width: 768px) {
    .team-image img {
        height: 100%;
        object-fit: contain;
    }
}

/* Kontakt Section */
.contact-section {
    padding: calc(var(--spacing-unit) * 4) 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    
    opacity: 0.2;
    z-index: 0;
    transform: scale(1.1);
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.contact-info {
    padding-right: 2rem;
}

.contact-info .overline {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-intro {
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Kontaktformular */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.privacy-check input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.privacy-check label {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.privacy-check a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-check a:hover {
    text-decoration: underline;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    color: var(--primary-color);
    box-shadow: none;
}

.submit-btn:hover::before {
    transform: translateX(0);
}

.submit-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(3px);
}

/* Kontaktformular Styles */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: calc(var(--spacing-unit) * 3) 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Agency Section */
.agency-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.section-header {
    position: relative;
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 3rem;
}

.experience-badge {
    position: absolute;
    right: 50%;
    margin-right: 8rem;
    top: 5%;
    background: var(--primary-color);
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 1;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.experience-badge .text {
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 1200px) {
    .experience-badge {
        margin-right: 6rem;
    }
}

@media (max-width: 992px) {
    .experience-badge {
        margin-right: 4rem;
    }
}

@media (max-width: 768px) {
    .section-header {
        padding-top: 5rem;
    }
    .experience-badge {
        right: auto;
        left: 50%;
        margin-right: 0;
        transform: translateX(-50%);
        top: 1%;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: none;
}

.service-item:hover {
    transform: none;
    box-shadow: none;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

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

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

    .experience-badge {
        width: 120px;
        height: 120px;
        font-size: 0.8rem;
    }
}

/* Legal Pages Styling */
.legal-content {
    padding: 140px 0 60px;
    margin: 0 auto;
    max-width: 100%;
    background-color: var(--background-color);
}

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

.legal-container h1 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 80px;
    color: var(--text-color);
}

.legal-section {
    margin-bottom: 0px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-color);
}

.legal-section p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 400;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.3s ease;
}

.legal-section a:hover {
    opacity: 0.7;
}

.legal-content {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 300;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 300;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

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

.legal-content ul, .legal-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

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

@media (max-width: 768px) {
    .legal-content {
        margin: 100px auto 40px;
        padding: 0 15px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

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

    .legal-content h3 {
        font-size: 1.2rem;
    }
}

/* Footer */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 4rem 2rem;
    font-family: var(--font-primary);
}

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

.footer-section h3 {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #666;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #666;
}

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

.legal-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* Competencies Section */
.competencies-section {
    padding: 100px 0;
    background-color: #fff;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.competency-item {
    background: linear-gradient(135deg, 
        rgba(243, 244, 246, 0.7) 0%,
        rgba(249, 250, 251, 0.7) 50%,
        rgba(243, 244, 246, 0.7) 100%
    );
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
    opacity: 1;
    transform: translateY(0);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(229, 231, 235, 0.3);
}

.competency-item.gsap-init {
    opacity: 0;
    transform: translateY(20px);
}

.competency-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.competency-item h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.competency-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.competency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.competency-item:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(59, 130, 246, 0.2);
}

.competency-item:hover::before {
    opacity: 1;
}

.competency-item:hover i {
    transform: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .competencies-section {
        padding: 60px 0;
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .competency-item {
        padding: 30px 20px;
    }

    .competency-item i {
        font-size: 32px;
    }

    .competency-item h3 {
        font-size: 18px;
    }

    .competency-item p {
        font-size: 14px;
    }
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: none;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: #28a745;
}

.error-icon {
    color: #dc3545;
}

.modal h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal p {
    color: #666;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 30% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Category Scroll */
.category-scroll {
    width: 100%;
    overflow: hidden;
    margin: 4rem 0;
    position: relative;
}

.scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    white-space: nowrap;
}

.scroll-content:hover {
}

.category-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

/* Duplicate the content for seamless scrolling */
.scroll-content {
    display: flex;
    white-space: nowrap;
}

.scroll-content > * {
    flex-shrink: 0;
}

/* Create a second instance of the content */
.scroll-content > *:nth-child(n) {
    margin-right: 1rem;
}

.scroll-content > *:last-child {
    margin-right: 0;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--background-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Kundenlogos */
.client-logos {
    margin-top: 2rem;
    padding: 2rem 0;
}

.client-logos h3 {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.logo-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
}

.logo-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.logo-grid img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 1.5rem;
    }
    
    .logo-grid img {
        height: 30px;
    }
}

/* Mobile Navigation */
/*
 * !!! WICHTIG - NICHT ÄNDERN !!!
 * Mobile Navigation wurde am 15.12.2023 finalisiert.
 * Änderungen an diesem Code könnten die Funktionalität beeinträchtigen.
 * Bei Problemen bitte den ursprünglichen Code wiederherstellen.
 */
.mobile-nav {
    display: flex;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 1rem;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        z-index: 1500;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .burger-menu {
        position: relative;
        z-index: 2000;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        color: var(--primary-color);
    }

    body.menu-open {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
}

.project-content h3 {
    font-weight: 600;
}

/* Lazy Loading Styles */
.image-placeholder {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

img.loaded {
    opacity: 1;
}

img.loaded + .image-placeholder {
    opacity: 0;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Logo Wrapper Styles */
.logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.logo-wrapper .image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    border-radius: 4px;
}

/* Team Image Styles */
.team-image {
    position: relative;
}

.team-image img {
    position: relative;
    z-index: 1;
}

.team-image .image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    color: #333;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s ease-out forwards;
}

.cookie-content h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.cookie-options {
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.3rem;
    margin-right: 1rem;
}

.cookie-option label {
    display: flex;
    flex-direction: column;
}

.cookie-option label strong {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #222;
}

.cookie-option label span {
    font-size: 0.8rem;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-button.accept-all {
    background: var(--primary-color);
    color: #fff;
}

.cookie-button.save-settings {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.cookie-button:hover {
    transform: translateY(-2px);
}

.cookie-footer {
    text-align: center;
    font-size: 0.8rem;
}

.cookie-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-footer a:hover {
    text-decoration: underline;
}

/* Cookie Settings Button */
.cookie-settings-button {
    position: fixed;
    bottom: -1rem;
    right: -1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-settings-button:hover {
    transform: translateY(-2px);
}

.cookie-settings-button svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .team-image img {
        pointer-events: none;
        object-fit: contain;
    }
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
    transform: translateZ(0);
    filter: blur(3px);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}