body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;

}


@font-face {
    font-family: 'Diablo Heavy';
    src: url('fonts/DiabloHeavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

.container {
    text-align: center;
    background-color: black;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 150px;
    min-width: 1408px;


}



.button-container {
    margin-top: 30px; /* Abstand vom Passwortfeld */
    text-align: center; /* Zentriert den Button */

}




input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    width: 100%;
    max-width: 200px;
    border: 2px solid #00ff00;
    border-radius: 5px;
    background-color: black;
    color: #00ff00;
    text-align: center;

}


input[type="password"]:focus {
    border: 2px solid blue; /* Behalte den blauen Rahmen beim Fokus */
    outline: none; /* Entfernt die Standard-Fokusumrandung des Browsers */
    box-shadow: 0 0 20px #a8b0d3; /* Optional: Glüheffekt beim Fokus */

}




input[type="password"]::placeholder {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 20px #32cd32;
    font-style: italic;
}


/* Globale Einstellungen */
button {
    font-family: 'Diablo Heavy', serif; /* Diablo-Stil */
    font-size: 1.2rem;
    margin-top: 5px;
    color: black;
    padding: 10px 20px;
    background-color: black;
    border: 3px solid rgb(165, 165, 207); /* Leuchtender Rahmen */
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-style: outset;
    border-left-style: outset;
    border-right-style: inset;
    border-bottom-style: outset;
    cursor: pointer;  /* Zeiger zeigt auf Klickbarkeit */
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0px 4px 25px rgba(255, 69, 0, 0.5); /* Glühender Schatten */
    animation: textPulse 7s infinite;
    overflow: hidden; /* Alles, was über die Kanten hinausgeht, wird nicht angezeigt */

    /* position: relative; NICHT gesetzt, um das Feature zu erhalten

    ⚠ FEATURE: Der Farbverlauf-Effekt breitet sich über den gesamten Bildschirm aus,
    wenn die Maus während der Animation den Button verlässt.
    Dies ist gewollt und kein Bug – es erzeugt einen coolen "Aura-/Glitch-Effekt".
    Falls der Effekt auf den Button begrenzt werden soll, kann man `position: relative;` setzen.
    */




}



button:hover {
    border-color: darkorange;
    transform: scale(1.1);



}

@keyframes textPulse {
    0%, 100% {
        color: #00ff00;
    }
    50% {
        color: darkorange;
    }
}



.error {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}


.header img {
display: block; /* Verhindert, dass es neben anderen Elementen erscheint */
width: 100%; /* Optional: Breite des Bildes */
height: auto; /* Proportionale Skalierung */
margin: 0 auto; /* Zentrierung */
}


/* === Button-Klick-Effekt === */
button::before,
button::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%; /* Sorgt dafür, dass auch die Ecken abgedeckt sind */
    background: linear-gradient(50deg, darkorange, darkred);
    z-index: -1; /* Von -1 auf 1 geändert */
    transform: scaleX(0);
    transition: transform 1s ease;

    /*
    ⚠ FEATURE: Der Farbverlauf kann sich über den Bildschirm ausdehnen,
    wenn die Maus den Button verlässt – gewollt für einen Aura-/Glitch-Effekt.
    Um das zu verhindern, `position: relative;` beim Button setzen.
    */




}

button::before {
    left: 0;
    transform-origin: left;
    background: linear-gradient(90deg, gold, orange, orangered, crimson, darkred);
    border-bottom-left-radius: 30px;

}

button::after {
    right: 0;
    transform-origin: right;
    background: linear-gradient(90deg, darkred, crimson, orangered, orange, gold);
    border-bottom-right-radius: 30px;

}

/* === Animation beim Klick aktivieren === */
button.clicked::before,
button.clicked::after {
transform: scaleX(1); /* Etwas größer, um die Mitte minimal zu überlappen */
opacity: 2; /* Leichte Transparenz für weicheren Effekt */
}




/* === Optisches Feedback beim aktiven Zustand === */
button.clicked {
    border: 3px solid #32cd32;
    box-shadow: 0px 0px 10px rgba(50, 205, 50, 0.7); /* Leuchtender Effekt */
    color: rgb(161, 137, 110) !important;

}








@media (max-width: 768px) {
    .container {
        min-width: 90%; /* Passt sich kleineren Displays an */
        margin-top: 80px;
    }

    input[type="password"] {
        max-width: 150px;
    }
}
