:root {
    --primary: #1a1a1a;
    --secondary: #333;
    --accent: #00B5D6;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333;
    --text-light: #666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

/* Desktop Menu - Split */
.desktop-menu {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.desktop-menu.hidden {
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.desktop-menu.no-hide {
    transform: translateX(-50%);
    transition: none;
}

.desktop-menu.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    transition: none;
}

.desktop-menu.sticky .menu-container {
    border-radius: 0;
}

.menu-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
}

.menu-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    padding: 17px 24px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-logo-item {
    flex: 1.5;
    justify-content: center !important;
}

/* Light theme (default) */
.desktop-menu.light .menu-item,
.desktop-menu.light .menu-item.active {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.desktop-menu.light .menu-logo-item,
.desktop-menu.light .menu-logo-item.active {
    background: transparent !important;
    box-shadow: none !important;
}

/* Dark theme */
.desktop-menu.dark .menu-item,
.desktop-menu.dark .menu-item.active {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none;
}

.desktop-menu.dark .menu-item.active .menu-text {
    color: var(--accent) !important;
    font-weight: 500 !important;
}

.desktop-menu.dark .menu-logo-item,
.desktop-menu.dark .menu-logo-item.active {
    background: transparent !important;
    box-shadow: none !important;
}

.menu-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.menu-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Pixelsektor Logo */
.ps-logo {
    height: 28px;
    width: auto;
    fill: rgb(0, 181, 214);
    filter: none;
    drop-shadow(4px 4px rgba(0,0,0,0.5));
}

.desktop-menu.light .ps-logo {
    fill: rgb(0, 181, 214);
    filter: none;
}

.desktop-menu.dark .ps-logo {
    fill: rgb(0, 181, 214);
    filter: none;
}

.menu-logo-item {
    background: transparent !important;
    box-shadow: none !important;
}

.menu-item.active .menu-text {
    color: var(--accent) !important;
    font-weight: 500 !important;
}

/* Farb-Klassen */
.desktop-menu.light .menu-container {
    background: transparent;
    box-shadow: none;
    border: none;
}

.desktop-menu.dark .menu-container {
    background: transparent;
    border: none;
}

/* Light theme (default) */
.desktop-menu.light .menu-text,
.desktop-menu.light .menu-logo-text {
    color: #1a1a1a;
}

/* Dark theme */
.desktop-menu.dark .menu-text,
.desktop-menu.dark .menu-logo-text {
    color: #ffffff;
}

/* Mobile Header with Logo */
.mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 15px 20px;
    z-index: 999;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    transform: translateY(0);
}

@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
}

.mobile-header-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mobile-header.light-mode .mobile-header-logo {
    filter: brightness(0) saturate(100%) invert(45%) sepia(98%) saturate(2287%) hue-rotate(150deg) brightness(97%) contrast(101%);
}

.mobile-header.dark-mode .mobile-header-logo {
    filter: brightness(0) invert(1);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: transparent;
    backdrop-filter: none;
    padding: 10px;
    box-shadow: none;
    border: none;
    z-index: 1000;
    gap: 8px;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 11px;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: color 0.3s, transform 0.2s, background 0.3s;
    width: 70px;
    height: 70px;
}

.mobile-nav a:active {
    transform: scale(0.95);
}

.mobile-nav a.active {
    color: var(--accent);
}

.mobile-nav a .material-symbols-outlined {
    font-size: 24px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/homepage/heroimage.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent);
    color: #24242D;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button .material-symbols-outlined {
    color: #24242D;
}

.cta-button:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Sections */
section {
    padding: 100px 20px;
    min-height: 100vh;
}

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

section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
}

/* Impressum Section */
#impressum {
    background: var(--light);
    padding-top: 180px;
    min-height: 100vh;
}

#impressum .project-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    z-index: 100;
    padding: 20px 40px;
    border-radius: 0 0 24px 24px;
}

#impressum h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 50px;
    text-align: center;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-address {
    background: var(--white);
    padding: 40px;
    border-radius: 16px 16px 16px 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.impressum-address h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.impressum-address p {
    color: var(--text);
    line-height: 1.8;
}

.impressum-address a {
    color: var(--accent);
    text-decoration: none;
}

.impressum-disclaimer {
    background: var(--white);
    padding: 40px;
    border-radius: 16px 16px 16px 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.impressum-disclaimer h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
}

.impressum-disclaimer h3 {
    font-size: 1.1rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary);
}

.impressum-disclaimer p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Work Section */
#work {
    background: #24242D;
    padding-bottom: 120px;
}

#work h2 {
    color: #F2F2F2;
    margin-bottom: 40px;
    text-align: left;
}

/* Project Filter */
.project-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.filter-option input {
    display: none;
}

.filter-option span {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.filter-option input:checked + span {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.filter-option:hover span {
    border-color: var(--accent);
}

.filter-reset {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.filter-reset:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7);
}
    }
}

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

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-option span {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Beratung/Leistungen Section */
#leistungen {
    background: #f1f1f4;
    position: relative;
    padding-top:100px;
}

.background-svg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('img/homepage/consulting-illustration.svg') no-repeat center center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

#leistungen {
    overflow: hidden;
}

#leistungen > .container > h2 {
    color: #24242D;
    margin-bottom: 40px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.parallax-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.leistung-block {
    position: relative;
    height: calc(100vw / 6 + 200px);
    margin-top: 0;
}

.leistung-block .parallax-square {
    width: calc(100vw / 6);
    height: calc(100vw / 6);
    background: #24242D;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 200px;
    z-index: 1;
}

.leistung-headline {
    position: absolute;
    left: calc(50% + 10vw);
    transform: translateX(-50%);
    top: 60px;
    background: linear-gradient(10deg, #E7645B, #FFDBBD);
    color: #fff;
    padding:20px 40px;
    border-radius:0px;
    z-index: 2;
    font-size: clamp(1rem, 2vw, 1.8rem);
    text-align: left;
    white-space: nowrap;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistung-headline.right {
    left: calc(50% - 10vw);
}

/* Block 1: Headline von rechts, Quadrat von links */
.leistung-block:nth-child(1) .leistung-headline {
    left: calc(100% + 10vw);
}

.leistung-block:nth-child(1) .leistung-headline.animate-in {
    left: calc(50% + 10vw);
}

.leistung-block:nth-child(1) .parallax-square {
    left: -50%;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistung-block:nth-child(1) .parallax-square.animate-in {
    left: 50%;
}

/* Block 2: Headline von links, Quadrat von rechts */
.leistung-block:nth-child(2) .leistung-headline {
    left: -50%;
}

.leistung-block:nth-child(2) .leistung-headline.animate-in {
    left: calc(50% - 10vw);
}

.leistung-block:nth-child(2) .parallax-square {
    left: 150%;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistung-block:nth-child(2) .parallax-square.animate-in {
    left: 50%;
}

/* Block 3: Headline von rechts, Quadrat von links */
.leistung-block:nth-child(3) .leistung-headline {
    left: calc(100% + 10vw);
}

.leistung-block:nth-child(3) .leistung-headline.animate-in {
    left: calc(50% + 10vw);
}

.leistung-block:nth-child(3) .parallax-square {
    left: -50%;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistung-block:nth-child(3) .parallax-square.animate-in {
    left: 50%;
}

/* Block 4: Headline von links, Quadrat von rechts */
.leistung-block:nth-child(4) .leistung-headline {
    left: -50%;
}

.leistung-block:nth-child(4) .leistung-headline.animate-in {
    left: calc(50% - 10vw);
}

.leistung-block:nth-child(4) .parallax-square {
    left: 150%;
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.leistung-block:nth-child(4) .parallax-square.animate-in {
    left: 50%;
}

.leistung-headline.right {
    left: calc(50% - 10vw);
}





.leistung-block {
    position: relative;
    height: calc(100vw / 6 + 300px);
    margin-bottom: 0;
}

.leistung-block .parallax-square {
    width: calc(100vw / 6);
    height: calc(100vw / 6);
    background: #24242D;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 200px;
    z-index: 1;
}



/* Vertikale Abstände für die Blöcke */
.leistung-block:nth-of-type(1) { margin-top: 0; }
.leistung-block:nth-of-type(2) { margin-top: calc(100vw / 6 + 350px); }
.leistung-block:nth-of-type(3) { margin-top: calc(100vw / 6 + 350px); }
.leistung-block:nth-of-type(4) { margin-top: calc(100vw / 6 + 350px); }

.leistung-block {
    position: relative;
    height: calc(100vw / 6 + 300px);
    margin-bottom: 100px;
}

.leistung-block .parallax-square {
    width: calc(100vw / 6);
    height: calc(100vw / 6);
    background: #24242D;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 200px;
    z-index: 1;
}





.project-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.projects-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Project Filter */
.project-filter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-light);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    transition: color 0.3s;
}

.filter-option input {
    display: none;
}

.filter-option span {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.filter-option input:checked + span {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.filter-option:hover span {
    border-color: var(--accent);
}

.filter-reset {
    margin-left: auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.filter-reset:hover {
    opacity: 1;
}

.filter-bottom {
    text-align: center;
    margin-top: 40px;
}

.filter-reset-bottom {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.filter-reset-bottom:hover {
    border-color: var(--accent);
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 181, 214);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    border-radius: 8px;
}

.project-card:hover::before {
    opacity: 0.30;
}

.project-card:hover .project-info h4 {
    color: rgb(0, 181, 214);
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    background-size: cover;
    background-position: center top;
}

.project-info {
    padding: 25px;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0) 100%);
    position: relative;
    margin-top: -40px;
    z-index: 1;
}

.project-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Leistungen Section */
.leistung-category {
    margin-bottom: 80px;
}

.leistung-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 32px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.leistung-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.leistung-card {
    text-align: left;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.leistung-card h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.leistung-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
}

/* Notification - Toast */
.notification {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    max-width: 500px;
    width: 90%;
}

.notification.show {
    display: flex;
    animation: slideDown 0.5s ease;
}

.notification .material-symbols-outlined {
    color: #2ecc71;
    font-size: 28px;
    flex-shrink: 0;
}

.notification p {
    color: var(--primary);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

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

/* Contact Section */
#contact {
    background: #0d0d11;
    color: var(--white);
    padding: 200px 20px 100px;
    min-height: auto;
    padding-bottom: 150px;
}

#contact h2 {
    color: var(--white);
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--accent);
}

.contact-item .material-symbols-outlined {
    font-size: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, background 0.3s;
}

.form-group textarea {
    border-radius: 25px;
    resize: none;
}

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

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

.contact-form .cta-button {
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

/* Footer */
footer {
    background: #040405;
    color: var(--white);
    text-align: center;
    padding: 30px;
    font-size: 10pt;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-top {
    margin-bottom: 15px;
}

.footer-top a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-top a:hover {
    opacity: 1;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 56px;
    margin-bottom: 20px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #F2F2F2;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-contact .material-symbols-outlined {
    font-size: 18px;
}

footer p {
    position: relative;
    z-index: 1;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: none;
}

.page-transition.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* ========== PROJECT PAGE ========== */
.project-page {
    background: var(--light);
}

/* Dark Project Page Theme */
.project-page.dark-theme {
    background: #24242D;
}

.project-page.dark-theme .project-header {
    background: #24242D !important;
    border-radius: 0 !important;
    padding-top: 160px !important;
}

.project-page.dark-theme .project-header h1 {
    font-size: 32px !important;
}

.project-page.dark-theme .project-header *,
.project-page.dark-theme .project-header *::before,
.project-page.dark-theme .project-header *::after {
    color: #f5f5f5 !important;
    background-color: transparent !important;
}

.project-page.dark-theme .project-header .back-link,
.project-page.dark-theme .project-header .back-link * {
    color: #aaaaaa !important;
}

.project-page.dark-theme .project-header .project-meta .meta-label {
    color: #aaaaaa !important;
}

.project-page.dark-theme .project-header .project-badge {
    background: #333 !important;
    color: #fff !important;
}

.project-page.dark-theme .project-header h1 {
    color: #f5f5f5 !important;
}

.project-page.dark-theme .project-header h1 span {
    color: #fff !important;
}

.project-page.dark-theme .project-screens {
    background: #24242D;
    margin-top: 260px;
}

.project-page.dark-theme .mobile-header,
body.dark-theme .mobile-header,
.project-page .mobile-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

.project-page.dark-theme footer {
    background: #040405;
}

.project-page.dark-theme .project-header-row .back-link {
    color: #aaaaaa;
}

/* Fixed Project Header */
.project-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 30px 40px;
    padding-top: 110px;
}

.project-header-red {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #ff0000;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-header-red::after {
    content: 'PIXELSEKTOR';
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--white);
}

.project-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.project-header-row {
    text-align: left;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent);
}

.back-link .material-symbols-outlined {
    font-size: 20px;
}

.project-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 25px;
    text-align: left;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
    vertical-align: middle;
}

.project-badge.design {
    background: var(--primary);
    color: var(--white);
}

.project-badge.konzept {
    background: var(--accent);
    color: var(--white);
}

.project-meta {
    display: flex;
    gap: 40px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollable Screens - Larger */
.project-screens {
    margin-top: 260px;
    padding: 60px 40px 120px;
}

.screen-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center top;
    cursor: pointer;
    overflow: hidden;
}

/* Lightbox Overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 40px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #24242D;
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #24242D;
    cursor: pointer;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10001;
}

.lightbox-nav-btn {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    color: #24242D;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.lightbox-nav-btn .material-symbols-outlined {
    font-size: 32px;
}

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

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

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: none;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Floating Back to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 0;
    right: 40px;
    width: 60px;
    height: 48px;
    border-radius: 16px 16px 0 0;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 10001;
}

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

.scroll-to-top:hover {
    transform: scale(1.05);
    background: var(--accent);
}

.scroll-to-top .material-symbols-outlined {
    font-size: 28px;
    color: #24242D;
}

/* Beratung Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 40px;
    width: calc(100% - 80px);
    height: auto;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border-radius: 0 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: none;
    background: #1a1a1a;
    margin-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 100px 40px 40px 40px;
    position: relative;
    border: none;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #F9F9F9;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
    max-width: 50%;
    width: 100%;
}

.modal-content > p {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 35px;
    text-align: center;
    max-width: 50%;
    width: 100%;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Beratung Form */
.beratung-form {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-row {
    margin-bottom: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

@media (min-width: 769px) {
    .beratung-form .form-group {
        max-width: 400px;
    }

    .beratung-form .form-row,
    .beratung-form .cta-button {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.form-group label {
    color: #aaaaaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px 16px;
    color: #F9F9F9;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px 16px;
    color: #F9F9F9;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #00B8C8;
}

.captcha-group {
    position: relative;
}

.captcha-question {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

.beratung-form .cta-button {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.beratung-form .cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.beratung-form .cta-button:disabled:hover {
    transform: none;
    background: var(--accent);
}

.beratung-form .submit-row {
    margin-top: 40px;
}

.beratung-form .cancel-row {
    margin-top: 16px;
    padding-bottom: 32px;
    text-align: center;
}

.cancel-btn {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s;
}

.cancel-btn:hover {
    color: #F9F9F9;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: #F9F9F9;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

.modal-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #F9F9F9;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-content p {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 35px;
}

.modal-cta {
    display: inline-block;
}

/* Mobile Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0 20px 20px 20px;
        width: calc(100% - 40px);
    }

    .modal-content {
        padding: 80px 25px 25px 25px;
    }

    .beratung-form .cta-button {
        max-width: 100%;
    }
}

/* Project Navigation Arrows */
.project-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

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

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

.project-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
}

.project-nav a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
}

.project-nav a .material-symbols-outlined {
    font-size: 28px;
}

/* Back to Overview Button */
.back-to-overview {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    z-index: 998;
    transition: all 0.3s ease;
}

.back-to-overview:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-4px);
}

.back-to-overview .material-symbols-outlined {
    font-size: 20px;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 1024px) {
    .projects-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .mobile-header {
        display: flex;
    }

    .mobile-nav {
        display: flex;
        bottom: 20px;
    }

    section {
        padding: 80px 20px;
        padding-bottom: 140px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }

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

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

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    /* Project Page Mobile */
    .project-header {
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }

    .project-meta {
        gap: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .meta-item {
        flex: 0 0 auto;
    }

    .project-screens {
        margin-top: 320px;
        padding: 30px 20px 120px;
    }

    .screen {
        border-radius: 20px;
        background-position: center top;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    /* Impressum Mobile */
    #impressum {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .impressum-address,
    .impressum-disclaimer {
        padding: 25px;
    }

    /* Scroll to top button mobile */
    .scroll-to-top {
        right: 10px;
        width: 50px;
        height: 40px;
    }
    
    .chat-button {
        right: 20px;
        bottom: 260px;
        width: 80px;
    }
    
    /* Hero Mobile */
    .hero-content {
        text-align: center !important;
        width: 100% !important;
        padding: 0 20px !important;
        margin-left: 0 !important;
    }
    
    .hero-content h1,
    .hero-content .tagline,
    .hero-content .cta-button {
        margin-left: 0 !important;
    }
}

/* Floating Chat Button */
.chat-button {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 100px;
    height: auto;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 10002;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.modal-overlay.active ~ .chat-button,
body:has(.modal-overlay.active) .chat-button {
    opacity: 0;
    pointer-events: none;
}

.chat-button:hover {
    transform: scale(1.1);
    animation: none;
}

.chat-button img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .chat-button {
        bottom: 100px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(36, 36, 45, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.cookie-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-button {
    background: var(--accent);
    color: #24242D;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-button:hover {
    background: #0099bb;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cookie-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-button {
        width: 100%;
    }
}

/* Parallax Elements - Clean Definitions */
.parallax-square {
    width: calc(100vw / 6);
    height: calc(100vw / 6);
    background: #24242D;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 220px;
    z-index: 1;
}



.parallax-square h2 {
    color: #F2F2F2;
    text-align: left;
    font-size: clamp(0.5rem, 0.85vw, 2rem);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 4000px) {
    .leistung-block .parallax-square {
        width: calc(100vw / 5);
        height: calc(100vw / 5);
    }
}
