* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff9800;
}

.hero {
    background: #fff;
    color: #000;
    padding: 6rem 2rem;
    text-align: center;
    width: 100%;
    margin: 0;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 150px;
    width: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e68900;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    scroll-margin-top: 100px;
}

section.hero {
    max-width: 100%;
    padding: 6rem 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #000;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-paragraph {
    margin-top: 1.5rem;
}

.about-highlight {
    margin-top: 1.5rem;
    font-weight: bold;
    color: #000;
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e0e0e0;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: #ff9800;
}

.service-card h3 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    text-align: center;
}

.services-note {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: #f9f9f9;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    text-align: center;
}

.services-note p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.services-note strong {
    color: #000;
    display: block;
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid #e0e0e0;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #ff9800;
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-placeholder-item {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #666;
    font-size: 1.3rem;
    font-weight: bold;
}

.placeholder-content p {
    margin: 0;
    line-height: 1.4;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff9800;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 20px;
    user-select: none;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    color: #ff9800;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 18px;
    text-align: center;
    width: 100%;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background: #f5f5f5;
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h3 {
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-info a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff9800;
}

.footer-credit {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-logo {
    height: 20px;
    width: auto;
}

.footer-credit-text {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

.footer-credit-text strong {
    color: #fff;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cookie-banner.show {
    display: flex;
}

.cookie-popup {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    border: 2px solid #e0e0e0;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cookie-close:hover {
    color: #ff9800;
}

.cookie-body {
    padding: 2rem;
}

.cookie-body > p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

.cookie-category {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category-header strong {
    color: #000;
    font-size: 1.1rem;
}

.cookie-category-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-left: 3.5rem;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #ff9800;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #ff9800;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000;
}

.cookie-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.cookie-info a {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
}

.cookie-info a:hover {
    text-decoration: underline;
}

.cookie-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.cookie-accept-all {
    background: #ff9800;
    color: white;
}

.cookie-accept-all:hover {
    background: #e68900;
}

.cookie-accept-selected {
    background: #000;
    color: white;
}

.cookie-accept-selected:hover {
    background: #1a1a1a;
}

.cookie-decline-all {
    background: transparent;
    color: #666;
    border: 2px solid #ccc;
}

.cookie-decline-all:hover {
    border-color: #999;
    color: #333;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-logo-img {
        height: 100px;
    }

    .logo-img {
        height: 50px;
    }

    nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 3rem 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .services-note {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-item img {
        height: 200px;
    }

    .contact-content {
        padding: 2rem 1.5rem;
    }

    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    .prev, .next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .cookie-popup {
        margin: 1rem;
        max-height: 85vh;
    }

    .cookie-header {
        padding: 1rem 1.5rem;
    }

    .cookie-header h3 {
        font-size: 1.2rem;
    }

    .cookie-body {
        padding: 1.5rem;
    }

    .cookie-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-category-desc {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Zusätzliche Optimierung für sehr kleine Handys */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-logo-img {
        height: 80px;
    }

    nav ul {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    .close {
        right: 10px;
        font-size: 35px;
    }

    .cookie-popup {
        margin: 0.5rem;
        max-height: 95vh;
    }

    .cookie-header h3 {
        font-size: 1.1rem;
    }

    .cookie-body {
        padding: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-footer {
        gap: 0.5rem;
    }
}