@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/Montserrat-Light.woff2') format('woff2');
  }
  
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Montserrat-Regular.woff2') format('woff2');
  }
  
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/Montserrat-SemiBold.woff2') format('woff2');
  }
  
  @font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Montserrat-Bold.woff2') format('woff2');
  }

:root {
    --primary-color: #0a1930;
    --secondary-color: #E0131E;
    --accent-color: #4A90E2;
    --text-color: #333;
    --light-bg: #f4f7fb;
    --dark-bg: #0a1930;
    --tech-bg: #f0f5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    color: #bbb;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 25, 48, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled::before {
    background: rgba(10, 25, 48, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container, .nav-links, .header-cta {
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(rgba(10, 25, 48, 0.8), rgba(10, 25, 48, 0.8)), url('header.jpg') no-repeat center center / cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0111a;
}

.section {
    padding: 80px 0;
    opacity: 0;               /* Anfangszustand unsichtbar */
    transform: translateY(30px); /* Anfangszustand: nach unten verschoben */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Übergangseffekte für Sichtbarkeit und Bewegung */
}

.section2 {
    padding: 80px 0;
}

/* Kontaktbereich */
.contact-section {
    display: flex;
    justify-content: center;
    padding: 150px 20px;
    background-color: #f9f9f9;
}

/* Container für Formular und Kontaktinfo */
.contact-container {
    display: flex;
    max-width: 1200px; /* Etwas breiterer Container für mehr Platz */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Kontaktinformationen */
.contact-info {
    flex: 1.5; /* Mehr Platz für Kontaktinfo */
    padding: 30px;
    background: #0a1930;
    color: white;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.5;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

/* Fehlernachricht */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.error-message i {
    margin-right: 10px;
    font-size: 18px;
}

/* Optional: Hover-Effekt für die Fehlermeldung */
.error-message:hover {
    background-color: #f1b0b7;
    border-color: #f1a7b4;
    cursor: pointer;
}

/* Erfolgsmeldung */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.success-message i {
    margin-right: 10px;
    font-size: 18px;
}

/* Optional: Hover-Effekt für die Erfolgsmeldung */
.success-message:hover {
    background-color: #c3e6cb;
    border-color: #a3d4a8;
    cursor: pointer;
}

/* Kontaktformular */
.contact-form {
    flex: 1; /* Formular auf 1/3 der Breite setzen */
    padding: 30px;
    background: #fff;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input[type="checkbox"] {
    margin-right: 10px;
}

/* Responsiv: Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Spaltenlayout auf kleinen Bildschirmen */
    }

    .contact-info, .contact-form {
        width: 100%; /* Beide Bereiche auf volle Breite setzen */
        margin-bottom: 20px; /* Abstand zwischen den Bereichen */
    }
}

.privacy-group {
    display: flex; /* Flexbox für horizontale Ausrichtung */
    align-items: center; /* Vertikale Ausrichtung der Checkbox und des Textes */
    font-size: 14px;
    margin-bottom: 20px;
}

/* Checkbox Styling */
.privacy-group input[type="checkbox"] {
    margin-right: 10px; /* Abstand zwischen Checkbox und Text */
    margin-top: 0px; /* Verhindert ein Verschieben nach oben */
}

/* Label Styling */
.privacy-group label {
    margin: 0; /* Kein zusätzlicher Abstand */
    white-space: nowrap; /* Verhindert das Umfließen des Texts */
}

@media (max-width: 768px) {
    .privacy-group {
        flex-direction: column; /* Ändert die Ausrichtung auf vertikal */
        align-items: flex-start; /* Align items nach links */
        font-size: 12px; /* Kleinere Schriftgröße auf mobilen Geräten */
        margin-bottom: 15px; /* Etwas weniger Abstand unten */
    }

    .privacy-group input[type="checkbox"] {
        margin-right: 0; /* Entfernt den Abstand nach rechts */
        margin-bottom: 5px; /* Fügt etwas Abstand unter der Checkbox hinzu */
    }

    .privacy-group label {
        white-space: normal; /* Ermöglicht das Umfließen des Texts */
        text-align: left; /* Stellt sicher, dass der Text linksbündig ist */
    }
}

.contact-form button {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background-color: #0a1930;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-top: 10px;
}

.section.visible {
    opacity: 1;               /* Sichtbar machen */
    transform: translateY(0); /* Nach oben schieben */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    display: inline-block;
    padding: 0 20px;
    background-color: inherit;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-title::before {
    right: 100%;
}

.section-title::after {
    left: 100%;
}

#about .section-header {
    text-align: center;
    margin-bottom: 20px;
}

#about .section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0;
}

#about .about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

#about .about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

#about .about-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#about .about-image img {
    width: 100%;
    height: auto;
    display: block;
}

#about .about-text ul {
    margin-bottom: 20px;
    list-style-position: inside;
    padding-left: 0;
}

#about .about-text li {
    margin-bottom: 10px;
    font-size: 16px;
}

#about .about-text p {
    margin-bottom: 20px;
}

#about .about-text p {
    margin-bottom: 20px;
}

#about ul {
    margin-bottom: 20px;
}


.header-cta {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    white-space: normal;
    
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.10);
}

.tech-showcase {
    background-color: var(--tech-bg);
    color: var(--text-color);
    overflow: hidden;
}

.tech-showcase .section-title {
    color: var(--primary-color);
}

.tech-grid {
    display: flex;
    animation: scrollTech 30s linear infinite;
}

.tech-grid-container {
    overflow: hidden;
    width: 100%;
}

.tech-item {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Projects Section */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.project-card p {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: #333;
}

@keyframes scrollTech {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-170px * 5));
    }
}

footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    color: #bbb;
    font-size: 24px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#back-to-top:hover {
    background-color: #c0111a;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: absolute;  /* Ändert die Position des Hamburger-Buttons */
        right: 20px; /* Verschiebt das Symbol weiter nach rechts */
        top: 30px;   /* Optional: Positioniert den Button vertikal etwas weiter unten */
        z-index: 1001;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: #fff;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: 1px;
    }

    .hamburger.active span {
        background-color: #fff;
    }

    /* Optional: Animation für den Hamburger-Button */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .logo-container {
        display: flex;
        align-items: center;
    }
    
    .logo-img {
        height: 50px; /* Kleinere Höhe für mobile Geräte */
        width: 160px;  /* Breite wird automatisch angepasst */
    }

    header {
        background: rgba(10, 25, 48, 0.9);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 25, 48, 0.95);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 18px;
        padding: 10px;
    }

    h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text, .about-image {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-cta {
        display: none;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
    }

    .section-title::before,
    .section-title::after {
        width: 25px;
    }
    
    .section-title {
        font-size: 28px;
        padding: 0 10px;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .tech-grid {
        width: 200%;
    }

    .tech-item {
        width: 150px;
        margin: 0 10px;
    }

    @keyframes scrollTech {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

@media (min-width: 769px) {
    .mobile-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}