body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f4f5f7;
    color: #222;
    line-height: 1.6;
}

header {
    background: #0d0d0f;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #006650;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 600;
}

.btn:hover {
    transform: scale(1.05);
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    font-size: 2rem;
    margin-top: 60px;
}

.projects {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

footer {
    margin-top: 60px;
    background: #0d0d0f;
    color: #bababa;
    padding: 30px;
    text-align: center;
}

footer a {
    color: #006650;
    text-decoration: none;
}

#about {
    font-size: larger;
}

.name {
    color: #00ffc8a0;
    /* Neon-Cyan */
    font-weight: 700;
    padding: 8px 12px;
    /* macht genug Platz für das Quadrat */
    border: 2px solid #00ffc8a0;
    /* Rahmen um den Namen */
    border-radius: 4px;
    /* leicht abgerundet */
    display: inline-block;
    /* damit padding + border korrekt funktioniert */
    transition: all 0.3s ease;
    z-index: 0;
}

.name:hover {
    background: #006650;
    color: inherit;
    box-shadow: 0 0 8px #00ffc8a0, 0 0 16px #00ffc8a0;

    /* Text drehen */
    transform: rotate(-360deg);
}

#copyright {
    margin-right: 10px;
}

.hero-animated-bg {
    position: relative;
    overflow: hidden;
    border: 4px solid transparent;
    /* Platz für die animierte Linie */

    z-index: 0;
}

.hero-animated-bg::before {
    content: "";
    position: absolute;
    top: +4px;
    left: +8px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border: 4px solid #ff00ff99;
    /* Startfarbe */
    border-radius: 8px;
    box-sizing: border-box;
    border-color: #ff00ff70 transparent #ff00ff70 transparent;
    animation: rotate-border 40s linear infinite, color-cycle 8s linear infinite;
    transition: border-color 0.5s;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(1440deg);
    }
}

@keyframes color-cycle {
    0% {
        border-color: #ff00ff70 transparent #ff00ff70 transparent;
    }

    12.5% {
        border-color: #00ffff70 transparent #00ffff70 transparent;
    }

    25% {
        border-color: #00ff0070 transparent #00ff0070 transparent;
    }

    37.5% {
        border-color: #ffff0070 transparent #ffff0070 transparent;
    }

    50% {
        border-color: #ff000070 transparent #ff000070 transparent;
    }

    62.5% {
        border-color: #ff880070 transparent #ff880070 transparent;
    }

    75% {
        border-color: #0088ff70 transparent #0088ff70 transparent;
    }

    87.5% {
        border-color: #ff008870 transparent #ff008870 transparent;
    }

    100% {
        border-color: #ff00ff70 transparent #ff00ff70 transparent;
    }
}