/* Globale Stile & Typografie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #4285F4; /* Ein modernes Blau, passend für Tech-Startup */
    --accent-light: #6ea8f6; /* Eine hellere Variante für Hover/Glow */
    --border: #222222;
    --glow: rgba(66, 133, 244, 0.2); /* Glow-Effekt mit Akzentfarbe */
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Sanftes Scrollen für Anker-Links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Light Effects */
.light-spot {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.05) 0%, transparent 70%); /* Glow mit Akzentfarbe */
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    z-index: 0; /* Hinter den Inhalten */
}

.light-spot:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.light-spot:nth-child(2) { top: 60%; right: 10%; animation-delay: 2s; }
.light-spot:nth-child(3) { bottom: 20%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Flying Island Header */
.flying-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    transition: all 0.3s ease;
}

.flying-header.scrolled {
    top: 10px;
    transform: translateX(-50%) scale(0.80);
}

.island-container {
    position: relative;
    background: rgba(17, 17, 17, 0.5); /* Hintergrund leicht transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px); /* Stärkerer Blur für den Glas-Effekt */
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 0.8rem 1.5rem;
}

.island-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-icon:hover, .nav-icon.active {
    color: var(--accent);
    transform: scale(1.1);
    background: rgba(66, 133, 244, 0.1); /* Hintergrund mit Akzentfarbe */
    box-shadow: 0 0 15px var(--glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    text-align: center; /* Zentriert den Text in der Hero-Section */
}

.hero-small {
    min-height: 60vh; /* Kleinere Höhe für Unterseiten-Hero */
    padding-top: 100px;
}

.hero-content {
    z-index: 2;
    max-width: 800px; /* Größere Breite für Mosi ProTec Slogan */
    margin: 0 auto; /* Zentriert den Inhalt */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%); /* Verlauf mit Akzentfarbe */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-small h1 {
    font-size: 3rem; /* Kleinere Schrift für Unterseiten-Überschrift */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 10.2s ease both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow);
}

/* Sections Allgemein */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--accent);
}

/* Services Section (angelehnt an Courses Grid) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center; /* Text innerhalb der Karte zentrieren */
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px var(--glow); /* Zusätzlicher Glow */
}

.course-icon {
    font-size: 2.5rem; /* Größer für mehr Präsenz */
    color: var(--accent);
    margin-bottom: 1rem;
}

.course-title {
    font-size: 1.5rem; /* Größer für Lesbarkeit */
    font-weight: 600;
    margin-bottom: 1rem;
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.course-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.course-link:hover {
    gap: 1rem;
}

/* Call to Action Section (angelehnt an Apply Section) */
.apply-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--border);
}

.apply-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.apply-content {
    text-align: left; /* Text linksbündig im Inhaltsbereich */
}

.apply-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.apply-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.requirements h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.req-list {
    list-style: none;
    margin-bottom: 2rem;
}

.req-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.req-list i {
    color: var(--accent);
    width: 16px;
}

.apply-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apply-btn.primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.apply-btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.apply-btn:hover {
    transform: translateY(-2px);
}

.apply-btn.primary:hover {
    box-shadow: 0 10px 30px var(--glow);
}

.apply-btn.secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.apply-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 80px; /* Größer */
    height: 80px; /* Größer */
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Größer */
    color: var(--accent);
    animation: floatElement 6s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.float-element:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.float-element:nth-child(2) { top: 60%; right: 20%; animation-delay: 1.5s; }
.float-element:nth-child(3) { bottom: 30%; left: 40%; animation-delay: 3s; }
.float-element:nth-child(4) { top: 40%; right: 40%; animation-delay: 4.5s; }

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Team Section Styles */
.team-members-section .section-title {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-member-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 15px var(--glow);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent);
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5); /* Leichter Schatten um das Bild */
}

.team-member-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.team-member-card .role {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-card .bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.team-member-card .social-links {
    margin-top: 1rem;
}

.team-member-card .social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.team-member-card .social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Projects Section Styles */
.projects-list-section .section-title {
    margin-bottom: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left; /* Text im Projekt-Card linksbündig */
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), 0 0 15px var(--glow);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
}

.project-info {
    padding: 1.8rem;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.project-tech-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: var(--border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 1rem;
}

.center-content {
    text-align: center;
}

/* Contact Section Styles */
.contact-form-section .section-title {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Info links, Formular rechts */
    gap: 4rem;
    align-items: start;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.contact-info .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.contact-info .social-links a {
    color: var(--text-secondary);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info .social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.contact-form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow);
}


/* Footer */
.footer-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Projects Section - Single Project Layout */
.single-project-grid {
    display: flex; /* Nutze Flexbox */
    justify-content: center; /* Zentriere das Element horizontal */
    align-items: center; /* Zentriere das Element vertikal (falls Grid-Elemente unterschiedliche Höhen hätten) */
    gap: 0; /* Entferne Gaps, wenn nur ein Element */
}

.single-project-grid .project-card {
    max-width: 700px; /* Begrenze die Breite der einzelnen Projektkarte */
    width: 100%; /* Stelle sicher, dass sie responsive ist */
}

/* Responsive Design */
@media (max-width: 992px) {
    .apply-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .apply-content, .contact-info {
        text-align: center;
    }
    .apply-content .section-title {
        text-align: center;
    }
    .apply-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-small h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .courses-grid, .team-grid, .project-grid {
        grid-template-columns: 1fr;
    }
    .flying-header {
        top: 10px;
        width: 90%;
    }
    .island-nav {
        gap: 1rem;
    }
    .nav-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .footer-section .container {
        flex-direction: column;
    }
    .footer-links {
        margin-top: 15px;
    }
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-small h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cta-button, .apply-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    .form-group input, .form-group textarea, .submit-btn {
        font-size: 0.95rem;
    }
}