/* =========================================================
   Allgemeines Layout
   ========================================================= */
body {
    font-family: Calibri, Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    /*min-height: 100vh;*/
    box-sizing: border-box;
}

/* =========================================================
   Container (Karte)
   ========================================================= */
.container {
    background-image: url("Schule.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    width: 100%;
    max-width: 800px;
    padding: 35px 40px;
    margin: 40px auto;

    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

/* =========================================================
   Überschrift und Text klein
   ========================================================= */
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2a2a2a;
    font-size: 2rem;
    font-weight: 600;
}

.small {font-size:12px;}

/* =========================================================
   Labels
   ========================================================= */
label {
    font-weight: 600;
    color: #444;
    display: block;
    margin-bottom: 6px;
    margin-top: 12px;
    font-size: 1.05rem;
}

/* =========================================================
   Eingabefelder
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 13px;
    margin-bottom: 18px;

    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 1rem;
    /*background: #fff;*/

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

input:focus,
select:focus {
    border-color: #3a8550;
    box-shadow: 0 0 4px rgba(80,150,80,0.3);
    outline: none;
}

/* =========================================================
   Button
   ========================================================= */
button {
    width: 100%;
    padding: 14px;
    background: #3f7d4a;
    color: white;
    border: none;
    border-radius: 8px;

    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

button:hover {
    background: #315e39;
}

/* =========================================================
   Links
   ========================================================= */


a.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #647d6da8;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

a.button-link:hover {
    background-color: #566c56;
}

/* Standard-Linkfarbe */
a {
    color: #399b3f;             /* Grün */
    text-decoration: none;      /* Unterstreichung entfernen */
    font-weight: 500;
}

/* Hover-Effekt */
a:hover {
    color: #003E6B;             /* Dunkleres Blau */
    text-decoration: none; 
}

/* Besuchte Links */
a:visited {
    color: #56bb5d;             /* Hellgrün */
}

/* Aktiver Klick-Zustand */
a:active {
    color: #124002;             /* Dunkelgrün beim Klick */
}

/* =========================================================
   Meldungen (Erfolg / Fehler)
   ========================================================= */

   
#meldung {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

#meldung.success {
    color: #2c7a3d;
}

#meldung.error {
    color: #c62828;
}

#daten {margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    }

/* =========================================================
   Responsive Optimierung
   ========================================================= */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
        margin-top: 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    label {
        font-size: 1rem;
    }

    input,
    select {
        font-size: 1rem;
        padding: 11px;
    }

    button {
        font-size: 1.05rem;
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 18px;
    }

    h1 {
        font-size: 1.4rem;
    }
}
