body {
    font-family: sans-serif;
    padding: 1em;
}

h1 {
    margin-bottom: 1.5em;
}

a {
    margin-bottom: 1em;
}

.lehrveranstaltung-item, .protokoll-eintrag  {
    margin-bottom: 10px;
}

#inputThema {
    width: 30vw;
    min-width: 200px;
    max-width: 500px;
}

/* Tablet screens - 50% viewport width */
@media screen and (max-width: 1024px) {
    #inputThema {
        width: 50vw;
    }
}

/* Mobile screens - 75% viewport width */
@media screen and (max-width: 600px) {
    #inputThema {
        width: 75vw;
    }
}

/* Small mobile screens - 100% available width */
@media screen and (max-width: 400px) {
    #inputThema {
        width: calc(100vw - 4em); /* Account for padding and margins */
        max-width: none;
    }
}

/* Form styling */
#konfigurationsForm {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 600px;
}

#konfigurationsForm h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.form-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group input[type="number"]:invalid {
    border-color: #dc3545;
}

#buttonRechenaufgabenErzeugen {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

#buttonRechenaufgabenErzeugen:hover {
    background-color: #0056b3;
}

#buttonRechenaufgabenErzeugen:active {
    background-color: #004085;
}

#buttonKonfigurationSpeichern {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

#buttonKonfigurationSpeichern:hover {
    background-color: #218838;
}

#buttonKonfigurationSpeichern:active {
    background-color: #1e7e34;
}

/* Responsive form styling */
@media screen and (max-width: 600px) {
    #konfigurationsForm {
        padding: 15px;
        margin-left: -0.5em;
        margin-right: -0.5em;
    }

    .form-group input[type="number"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}