body {
    background: linear-gradient(to bottom, #081326, #000000);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    font-family: sans-serif;
    padding: 20px;
}

/* Das ist ein neuer Baukasten für alle Boxen */
.portfolio-card {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    color: whitesmoke;
    background: linear-gradient(to bottom, rgba(29, 28, 28, 0.9), rgba(16, 16, 26, 0.8));
    backdrop-filter: blur(10px);
    border: 2px solid cyan;
    border-radius: 15px;
    box-sizing: border-box;
    box-shadow: 0 0 10px cyan;
}

/* Die DNA für alle Buttons */
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0px 15px;
    height: 35px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 3px;
}

/* Zentriert die Skills in der Box */
.portfolio-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;

}

.btn-neon {
    background-color: cyan;
    color: black;
}

/* Der Hover-Effekt für ALLE */
.portfolio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px cyan;
    filter: brightness(1.2);
}

.btn-github {
    background-color: #24292e !important;
    color: whitesmoke !important;
    border-color: whitesmoke !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-github:hover {
    box-shadow: 0 0 20px whitesmoke !important;
}

.btn-github svg {
    flex-shrink: 0;
    /*garantiert, dass das Icon niemals zusammengequetscht wird.*/
}

.contact-links {
    display: flex;
    /* Legt die Buttons nebeneinander */
    justify-content: center;
    /* Zentriert sie in der Mitte der Karte */
    align-items: center;
    /* Das löst dein Problem: Richtet beide Buttons an der Mittellinie aus! */
    gap: 20px;
    /* Sorgt für den Abstand zwischen den Buttons */
    margin-top: 20px;
    /* Abstand zum Text darüber */
}

/* Zusatz-Klasse für Skills */
.skill-tag {
    width: auto;
    min-width: 100px;
    height: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
    /* Verhindert Zeilenumbruch im Button */
}

/* Das sorgt dafür, dass die Box flacher wird und alles zentriert ist */
nav.portfolio-card {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

/* Das macht die Liste horizontal und entfernt die Punkte */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

/* Wichtig: Damit die Buttons in der Box nebeneinander stehen */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.progress-fill {
    height: 100%;
    background-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    border-radius: 10px;

    /* Wichtig für die Zentrierung der Zahl im Balken: */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
}

.progress-bar {
    width: 50%;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* Text-Styling über dem Balken */
.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
}

.skills-container {
    display: flex;
    flex-direction: column;
    /* Sorgt dafür, dass alles UNTEREINANDER steht */
    gap: 20px;
    /* Abstand zwischen den einzelnen Skill-Blöcken */
    max-width: 500px;
    /* Hier stellst du ein, wie breit die Balken sein sollen */

}

.skill-wrapper {
    width: 100%;
}

.skills-layout-wrapper {
    display: flex;
    justify-content: space-between;
    /* Schiebt die Spalten auseinander */
    gap: 40px;
    /* Abstand zwischen den beiden Spalten */
    margin-top: 20px;
    flex-wrap: wrap;
    /* Wichtig: Auf dem Handy stehen sie dann wieder untereinander */
}

.skills-column {
    flex: 1;
    /* Beide Spalten sind gleich breit */
    min-width: 280px;
    /* Verhindert, dass sie zu schmal werden */
}

.projects-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    flex: 1;
    padding: 20px;
    background: rgba(111, 111, 111, 0.482);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 5px cyan;
}

.project-card:hover {
    transform: translateY(-5px);
    /* Die Karte hebt sich leicht an */
    border-color: cyan;
    box-shadow: 0 0 15px rgba(0, 255, 255, 06);
    transition: all 0.3s ease;
    /* Macht die Bewegung weich */
}

.delayed {
    opacity: 0.6;
    /* Macht die Karte etwas transparenter */
    border-style: dashed;
    /* Verwandelt die Linie in eine gestrichelte Linie */
}

.project-card h3 {
    color: white;
    margin-bottom: 10px;
}

.project-tech {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    /* Falls es viele Badges werden, rutschen sie in die nächste Zeile */
}

.project-tech span {
    font-size: 0.7rem;
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.5);
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 255, 255, 0.05);
    font-weight: bold;
    text-transform: uppercase;
    /* Alles in Großbuchstaben sieht technischer aus */
}


#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#home h1 {
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

#home p {
    font-size: 1.1rem;
    margin-top: 0;
}

#ueber-mich ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

img {
    width: 150px;
    border-radius: 15px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 7px 3px cyan;
}

#kontakt {
    text-align: center;
    /* Zentriert Überschrift und Text */
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #00ffff;
    border: 2px solid #00ffff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    /* Am Anfang unsichtbar */
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #00ffff;
    color: #000;
    box-shadow: 0 0 25px #00ffff;
    transform: translateY(-5px);
}

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #00ffff33;
    color: #ccc;
    margin-top: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* Responsive Design für Handys */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        /* Buttons untereinander statt nebeneinander */
        gap: 10px;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        /* Nur eine Projekt-Karte pro Zeile */
    }

    .portfolio-card {
        margin: 10px;
        padding: 15px;
    }
}
