* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* 'sans-serif' als Fallback hinzugefügt */
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
}

header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5rem;
    /* 'rgba' hinzugefügt */
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
    width: max-content; /* Verhindert, dass der Header bei wenig Inhalt schrumpft */
}

.logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap; /* 'text-wrap' ist sehr neu, 'white-space' ist sicherer */
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

li a {
    position: relative;
    color: white;
    font-weight: 300;
    padding: 5px 0;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 3px; /* Etwas schmaler sieht oft eleganter aus */
    bottom: -2px; /* 'bottom' statt 'top' für Unterstreichung */
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

/* Reihenfolge korrigiert: :hover vor ::before */
li a:hover::before {
    width: 100%; /* Einheit '%' hinzugefügt */
}

.visit-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(0, 157, 255), rgb(255, 0, 255));
}

.visit-btn:hover {
    background: linear-gradient(to right, rgb(255, 0, 255), rgb(0, 157, 255));
    /* Tipp: Um Gradients zu animieren, eher die Helligkeit oder Skalierung nutzen */
    filter: brightness(1.1);
    transform: scale(1.05);
}

#menu-icon {
    font-size: 2rem;
    display: none;
}
section{
    min-height: 100vh;
    padding: 8rem 12%;
    width: 100%;
    position: relative;
}
.about{
    display: flex;
    align-items: center;
    justify-content: center;
}
.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}
.about img{
    width: 30vw;
    border-radius: 2rem;
}
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.info-box h3{
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}
.info-box h1{
    font-size: 4rem;
    font-weight: 600;
}
.info-box span{
    background: linear-gradient(to right, rgb(90, 38, 95), rgb(0, 157, 255));
    background-clip: text;
    color: transparent;
    font-size: 2rem;
}
.btn-group {
    display: flex;
    gap: 1rem;
}
.btn{
    border-radius: 3rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid black;
    cursor: pointer;
    font-weight: 500;
    text-wrap: nowrap;
    transition: 0.2s ease-in-out;
    text-decoration: none;
    color: black;
}
.btn:hover{
    background-color: black;
    color: white;
}
.section-title{
   text-align: center;
   font-size: 4rem;
   font-weight: 600;
   margin-bottom: 3rem;
}
::-webkit-scrollbar{
    width: 20px;
}
::-webkit-scrollbar-track{
    background-color: rgb(219, 219, 219);
}
::-webkit-scrollbar-thumb{
    background-color: linear-gradient(to bottom, #009dff, #ff00ff);
}
.socials{
    display: flex;
    gap: 2rem;
}
.socials i{
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.socials i:hover{
    transform: scale(1.1);
}

.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 2rem;
}
.project-card{
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    border: 2px solid black;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.project-card:hover{
    background-color: black;
    color: white;
    transform: translateY(-10px)scale(1.02);
}
.project-card img{
    width: 20vw;
    border-radius: 1rem;
}
.project-card:hover .btn{
    border: 2px solid white;
    color: white;
}
.project-card:hover .btn:hover{
    border: 2px solid white;
    background-color: white;
    color: black;
}
.project-card h3{
    font-size: 2rem;
    font-weight: 500;
}
.input-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    margin-top: 5rem;
}
.input-box input{
    border-radius: 3rem;
    border: 2px solid black;
    padding: 2rem 8rem;
    font-size: 3rem;
}
.input-box input::placeholder{
    font-size: 3rem;
}
.input{
    position: relative;
}
.input i {
    position: absolute;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; 
    pointer-events: none; 
    font-size: 2rem; 
}
footer {
    bottom: 0;
    left: 0;
    height: 10rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer ul{
    display: flex;
    align-items: center;
    gap: 3rem;
}
footer ul li a{
    color: black;
    font-weight: 600;
}
.copyright{
    font-size: 300;
    margin-top: 2rem;
}

.social-icon {
    text-decoration: none; /* Macht den Unterstrich weg */
    color: inherit;        /* Nimmt die Farbe deines Footers an */
    transition: 0.3s;      /* Macht Animationen weicher */
}

.social-icon:hover {
    color: #0077b5;        /* Das offizielle LinkedIn-Blau, wenn man drüberfährt */
    transform: scale(1.1); /* Lässt das Icon minimal wachsen beim Drüberfahren */
}

/* Styling für alle Eingabefelder mit der Klasse .text */
/* Das Formular selbst: Alles untereinander ausrichten */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 110%;
    max-width: 600px; /* Oder wie breit dein Formular sein soll */
    margin: 0 auto;   /* Zentriert das Formular in der Mitte */
}

/* Alle Eingabefelder einheitlich stylen */
.contact-input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important; /* DAS verhindert das Abschneiden vom "m" */
    padding: 30px 20px !important; /* 40px Platz RECHTS für das Icon */
    padding-right: 55px !important;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    height: 45px; /* Feste Höhe, damit das Icon sich besser orientieren kann */
}

/* Speziell für die Email-Box mit dem Icon */
.input-group {
    position: relative;
    width: 100%;
    display: block;      /* Verhindert, dass es als Flex-Item schrumpft */
    margin-bottom: 20px;
    clear: both;         /* Sicherheitshalber, falls irgendwo Floats sind */
}

.input-group .contact-input {
    margin-bottom: 0;
    padding-right: 45px; /* Platz für das Icon rechts lassen */
}

.input-group i {
    position: absolute !important;
    top: 50% !important;
    right: 15px !important;    /* 15px vom rechten INNEREN Rand des Inputs */
    transform: translateY(-50%) !important;
    color: #888;
    font-size: 18px;
    pointer-events: none;
    z-index: 5;
    line-height: 1 !important; /* Verhindert, dass das Icon durch Zeilenhöhe abhaut */
}

/* Das Nachrichtenfeld etwas höher machen */
textarea.contact-input {
    min-height: 160px;
    resize: vertical;
}

/* Dein Button */
.contact-form .btn {
    padding: 15x 40px;
    cursor: pointer;
    align-self: flex-start; /* Button klebt links, lösch das wenn er volle Breite sein soll */
}

@media(max-width:1280px){
    header{
        padding: 1rem 2rem;
        gap: 2rem;
    }
    .about .about-container{
        gap: 3rem;
    }
    .input-box input {
        padding: 2rem 5rem;
        font-size: 2.5rem;
    }
    .input input::placeholder {
        font-size: 2.5rem;
    }
    .input-box i{
        font-size: 2.5rem;
    }
}

@media(max-width:768px){
    header{
        gap: 1rem;
        padding: 1rem 1rem;
    }
    header .logo{
        font-size: 1rem;
    }
    header .visit-btn{
        display: none;
    }
    .about-container{
        flex-direction: column;
    }
    .input-box input {
        padding: 1.5rem 4rem;
        font-size: 2rem;
    }
    .input-box input::placeholder {
        font-size: 1.5rem;
    }
    .input-box i{
        display: none;
    }
    
}
@media(max-width:600px){
    header #menu-icon{
        display: block;
    }
    .nav-links{
        position: absolute;
        top: 100%;
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        color: white;
        display: flex;
        flex-direction: column;
        text-align: center;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 3rem;
        display: none;
    }
    .nav-links li{
        margin-top: 1.5rem;
        padding: 1rem;
    }
    .nav-links.active{
        display: block;
    }
    header{
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    header .logo{
        font-size: 1.5rem;
    }

    .about-container img {
        width: 80vw;
    }
    .input-box input{
        padding: 0.5rem 3rem;
        width: 80%;
        font-size: 1.5rem;
    }
    .input-box input::placeholder{
        font-size: 1.5rem;
    }
    footer ul{
        gap: 1rem;
    }
}