/* Grundlegendes Styling für das Formular */
.halt-verb-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

.halt-verb-form-title {
    font-size: 2.2em;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.halt-verb-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Abstand zwischen den Fieldsets und anderen Abschnitten */
}

/* Fieldset Styling */
.halt-verb-fieldset {
    border: 1px solid #ccc;
    border-radius: 6px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.halt-verb-fieldset:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

/* Legend Styling (wird jetzt klickbar) */
.halt-verb-legend {
    font-size: 1.3em;
    font-weight: bold;
    color: #0056b3;
    padding: 0 10px;
    cursor: pointer;
    position: relative;
    left: -10px;
    background-color: #f9f9f9;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding-bottom: 10px;
    top: -1px;
}

/* Icon für Auf- und Zuklappen (Pfeil) */
.toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 1.2em; /* Etwas größer, damit es besser sichtbar ist */
    text-align: center;
    line-height: 20px;
    transition: transform 0.3s ease;
    color: #0056b3;
    vertical-align: middle; /* Kann helfen, die Ausrichtung zu verbessern */
    /* KEINE background-color oder border-radius hier, wenn Sie nur den Pfeil wollen */
}

.toggle-icon::before {
    content: '▼'; /* Pfeil nach unten */
    display: block; /* Stellen Sie sicher, dass es ein Block-Element ist */
    line-height: inherit; /* Vererbt die Zeilenhöhe vom Parent */
}

/* Zustand: Fieldset ist geöffnet, Pfeil nach oben */
.halt-verb-fieldset.is-open .toggle-icon::before {
    content: '▲'; /* Pfeil nach oben */
}

/* Fieldset-Inhalt steuern */
.fieldset-content {
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0;
    opacity: 0;
    padding: 0 0 0 0;
    pointer-events: none;
}

/* Wenn das Fieldset geöffnet ist */
.halt-verb-fieldset.is-open .fieldset-content {
    /* WICHTIG: Hoher Wert für max-height, um Abstände in Bereich 2 zu vermeiden */
    max-height: 2500px !important; /* Passen Sie diesen Wert bei Bedarf an */
    opacity: 1;
    /* Reduziertes Padding für mehr Kompaktheit */
    padding: 10px 0 0px 0;
    pointer-events: auto;
}


/* Formular-Gruppen */
.halt-verb-form-group {
    margin-bottom: 10px; /* Reduzierter Abstand zwischen den Gruppen (z.B. Label + Input) */
}

.halt-verb-label {
    display: block;
    margin-bottom: 5px; /* Reduzierter Abstand zwischen Label und Eingabefeld */
    font-weight: bold;
    color: #555;
}

.halt-verb-input,
.halt-verb-select {
    width: 100%;
    padding: 8px 10px; /* Reduziertes Padding für kompaktere Felder */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em; /* Kleinere Schriftart für kompaktere Felder */
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.halt-verb-input:focus,
.halt-verb-select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.halt-verb-label-checkbox {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduzierter Abstand zwischen Checkbox und Text */
    font-size: 0.9em; /* Kleinerer Text für Checkbox-Label */
    color: #444;
}

.halt-verb-input-checkbox {
    width: auto;
}

/* Grid Layout für 2 und 3 Spalten */
.halt-verb-grid-group {
    display: grid;
    gap: 15px; /* Reduzierter Abstand zwischen den Spalten und Zeilen im Grid */
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .halt-verb-grid-group {
        grid-template-columns: repeat(2, 1fr);
    }
    .halt-verb-grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Warn- und Fehlermeldungen */
.halt-verb-warning-message {
    color: orange;
    font-size: 0.85em;
    margin-top: 3px; /* Reduzierter oberer Abstand */
}

.halt-verb-error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 3px; /* Reduzierter oberer Abstand */
    font-weight: bold;
}

/* Preis-Ausgabe */
.halt-verb-price-output {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f5ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    color: #0056b3;
    text-align: center;
}

/* Submit Button */
.halt-verb-submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    margin-top: 20px;
}

.halt-verb-submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.halt-verb-submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Styling für Links in Checkboxen */
.halt-verb-label-checkbox a {
    color: #007bff;
    text-decoration: none;
}

.halt-verb-label-checkbox a:hover {
    text-decoration: underline;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}