/* ==========================================================================
   STYLING FÜR TYPO3 FORMULAR (EXT:FORM)
   ========================================================================== */

/* Container des Formulars an den Rest der Seite anpassen */
.form-main-container {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Eingabefelder einheitlich stylen */
.form-control, 
input[type="text"], 
input[type="email"], 
textarea, 
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Wichtig für korrekte Breite */
    font-family: Verdana, sans-serif;
}

/* Fokus-Effekt für Felder (nutzt dein Orange) */
.form-control:focus {
    border-color: #d5810e;
    outline: none;
    box-shadow: 0 0 5px rgba(213, 129, 14, 0.2);
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* Submit Button - nutzt deinen Button-Stil aus news.css */
button[type="submit"], 
input[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #d5810e;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

button[type="submit"]:hover {
    background-color: #b06b0b;
    box-shadow: 0 4px 12px rgba(213, 129, 14, 0.3);
    transform: translateY(-2px);
}

/* Fehlermeldungen (falls Validierung fehlschlägt) */
.form-error, .errors {
    color: #d9534f;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

textarea {
    min-height: 150px; /* Standard-Mindesthöhe */
    resize: vertical;  /* Erlaubt dem Nutzer, die Größe manuell anzupassen */
}

/* ==========================================================================
   ERGÄNZUNG FÜR FORUM-LISTE (TEASER-STYLING)
   ========================================================================== */

.forum-teaser {
    font-size: 0.9rem;          /* Etwas kleiner als der Titel, passt zum restlichen Textstil */
    color: #666;                /* Ein dezentes Grau, passend zu deiner Label-Farbe (#555) */
    margin: 5px 0 10px 0;
    line-height: 1.5;           /* Etwas mehr Zeilenabstand für bessere Lesbarkeit */
    font-family: Verdana, sans-serif; /* Einheitliche Schriftart wie bei deinen Formularfeldern */
}

/* Optional: falls du den Teaser beim Hovern über die Tabellenzeile hervorheben willst */
/* Vorausgesetzt, deine Tabellenzeilen haben eine Klasse beim Hover */
tr:hover .forum-teaser {
    color: #333;                /* Wird bei Hover etwas dunkler */
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .form-main-container {
        padding: 15px;
    }
}