@font-face {
    font-family: 'Poppins';
    src: url(../fonts/Poppins-Medium.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background-color: #50586c;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #ffffff;
    background-color: #50586c;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: bold;
}

h2 {
    color: #fff;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.story {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    text-align: left;
}

.story p {
    margin: 0 auto;
    align-self: stretch;
}

.button {
    display: block;
    width: 90%;
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #007BFF;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


p {
    color: #ffffff;
}

.webnoah-container {

    h1 {
        font-family: 'Noahs Font Shit', sans-serif;
        font-size: 60px;
        font-weight: bold;
        background: linear-gradient(90deg, #c49c61, #f7edaa, #c49c61);
        background-size: 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        animation: gradient-move 4s linear infinite;
    }

    @keyframes gradient-move {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 100% 50%;
        }
    }

    p {
        font-family: '20th', sans-serif;
    }
}

.sbutton {
    color: white;
    text-decoration: none;
}

.ubutton {
    display: none;
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #2060a5;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ubutton:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.button:hover .ubutton {
    display: block;
}

footer {
    background-color: #3b4150;
    color: #fff;
    bottom: 0rem;
    width: 70%;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    text-align: center;
    margin: 0 auto;
}

/* Formular-Container */
form {
    background-color: #3b4150;
    /* Passend zum Footer */
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px auto;
}

/* Labels */
form label {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 8px;
}

/* Input-Felder und Textareas */
form input[type="email"],
form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    background-color: #acacac;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Wichtig für das Padding */
}

form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Speziell für Textareas */
form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Der Absende-Button */
form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

form button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

form button[type="submit"]:active {
    transform: translateY(0);
}

a {
    color: #fff;
    margin: 0 auto;
}

hr {
    border: 0;
    height: 3px;
    background: linear-gradient(90deg, #c49c61, #f7edaa, #c49c61);
    /* Deine H1-Farben */
    border-radius: 5px;
    width: 60%;
    margin: 60px auto;
    position: relative;
}

/* Kleiner Punkt in der Mitte als Extra-Effekt */
hr:after {
    content: "◈";
    color: #f7edaa;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #50586c;
    /* Gleiche Farbe wie dein Body-Hintergrund */
    padding: 0 10px;
    font-size: 18px;
}

/* Suchfunktion Styles */
.search-container {
    background-color: #3b4150 !important;
    border-radius: 15px;
    padding: 20px 25px !important;
    max-width: 500px;
    margin: 20px auto !important;
}

.search-container h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #ffffff;
}

.search-container p {
    margin: 10px 0 15px 0;
    color: #ffffff;
    font-size: 16px;
}

#teacherInput {
    width: 100%;
    max-width: 200px;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid transparent;
    background-color: #acacac;
    color: #333;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#teacherInput:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

#teacherInput::placeholder {
    color: #666;
}

#searchBtn {
    padding: 12px 20px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#searchBtn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

#searchBtn:active {
    transform: translateY(0);
}

#errorMsg {
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    border-radius: 8px;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 14px;
    word-break: break-word;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 600px) {
    #teacherInput {
        max-width: 150px;
        padding: 10px 12px;
        font-size: 14px;
    }

    #searchBtn {
        margin-left: 5px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-container {
        padding: 15px 20px !important;
    }
}

#tooltip {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
}