/* Section Headers mit schwarzem Text - einfache Version */
#about .section-header h2,
#projects .section-header h2,
#contact .section-header h2 {
    color: black !important;
}

#about .section-header p,
#projects .section-header p,
#contact .section-header p {
    color: black !important;
}/* Portfolio CSS */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --text-color: #ffffff;
    --text-light: #cccccc;
    --bg-color: rgba(0, 0, 0, 0.7);
    --bg-light: rgba(30, 30, 30, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Das geometrische Muster */
.main-page::before {
    content: ''; /* Generiert ein Pseudo-Element */
    position: fixed;
    top: -100px;
    left: -100px;
    width: 120%; /* Breiter als der Bildschirm für volle Abdeckung */
    height: 130%; /* Höher als der Bildschirm */
    background: radial-gradient(circle, #edebea, #585656 60%, transparent 80%); /* Kreisförmiger Verlauf */
    animation: spin 20s linear infinite; /* Langsames Drehen */
    z-index: -1; /* Hinter den anderen Inhalten anzeigen */
}

/* Animation für Rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: white;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
}

.menu-toggle .bar {
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-buttons .btn {
    margin: 0 10px 10px 0;
}

/* About Section */
.about {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Skills */
.skills {
    margin-top: 40px;
}

.skills h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background-color: rgba(67, 97, 238, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(67, 97, 238, 0.4);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: rgba(67, 97, 238, 0.4);
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    position: relative;
    z-index: 1;
}

.projects-slider {
    position: relative;
    margin-top: 40px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.prev-btn, .next-btn {
    background-color: var(--bg-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.slides-container {
    overflow: hidden;
    position: relative;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    display: block;
    opacity: 1;
}

.project-card {
    background-color: rgba(15, 15, 15, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.project-img {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f5f5f5; /* optionaler Hintergrund */
  }

.project-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 350px; /* oder eine andere passende Höhe */
  }

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact {
    position: relative;
    z-index: 1;
}

/* Behält das Grid-Layout für Desktop bei */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

/* Medienabfrage für Mobilgeräte */
@media (max-width: 768px) {
    .contact-wrapper {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }
    
    /* Icons und Kontaktinformationen zentrieren */
    .contact-info {
        text-align: center;
        padding-right: 0;
    }
    
    .info-item {
        justify-content: center;
    }
    
    /* Sozialmedia-Icons zentrieren */
    .social-links {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    
    /* Formular mittig zentrieren */
    .contact-form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Eingabefelder für bessere mobile Nutzung */
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 12px;
    }
    
    /* Reduzierter Außenabstand für mobile Ansicht */
    .info-item {
        margin-bottom: 15px;
    }
}

.icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.details h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.details p {
    color: var(--text-light);
    margin-bottom: 0;
}

.details p a {
    color: var(--primary-color);
}

.details p a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background-color: rgba(15, 15, 15, 0.5);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
    color: white;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.input-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 50px;
    backdrop-filter: blur(5px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: var(--transition);
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        text-align: center;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 15px 0;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .skills-grid {
        justify-content: center;
    }
}