/* Neon glowing Buttons */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.topnav a {
    position: relative;
    display: inline-block;
    padding: 15px 20px; /* Reduziert: Weniger Innenabstand */
    margin: 20px 0; /* Reduziert: Weniger Außenabstand oben/unten */
    color: #03e9f4; /* Dies ist die Standard-Neonfarbe (ein helles Cyan/Türkis) */
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 3px; /* Reduziert: Etwas weniger Buchstabenabstand, passt zu kleinerer Schrift */
    overflow: hidden;
    margin-right: 30px; /* Reduziert: Weniger Außenabstand rechts */
    font-size: 14px; /* Schriftgröße explizit gesetzt, um den Text zu verkleinern */
    /* KEINE 'filter: hue-rotate()' HIER ODER IN :nth-child() SELECTOREN */
}

.topnav a:hover {
    background: #03e9f4; /* Hintergrundfarbe beim Hover (helles Cyan/Türkis) */
    color: #050801; /* Textfarbe beim Hover (sehr dunkles Grün/Schwarz) */
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 200px #03e9f4; /* Der Glüh-Effekt in der Farbe #03e9f4 */
    -webkit-box-reflect:below 1px linear-gradient(transparent, #0005);
}

/* DIESE REGELN WERDEN ENTFERNT ODER AUSKOMMENTIERT, um die Farben identisch zu halten */
/* a:nth-child(1){
    filter: hue-rotate(270deg);
}
a:nth-child(2){
    filter: hue-rotate(110deg);
} */

.topnav a span {
    position: absolute;
    display: block;
}

.topnav a span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4); /* Die Farbe des Leuchtstreifens (helles Cyan/Türkis) */
    animation: animate1 1s linear infinite;
}

@keyframes animate1 {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.topnav a span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4); /* Die Farbe des Leuchtstreifens (helles Cyan/Türkis) */
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

/* WICHTIG: Hier wurde der Selektor von "button span" auf "a span" korrigiert,
   damit die Animation auf Ihren <a>-Tags funktioniert. */
.topnav a span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4); /* Die Farbe des Leuchtstreifens (helles Cyan/Türkis) */
    animation: animate3 1s linear infinite;
    animation-delay: 0.50s;
}

@keyframes animate3 {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

.topnav a span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4); /* Die Farbe des Leuchtstreifens (helles Cyan/Türkis) */
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}