/* ============================================================================
   FRONTEND — gerendertes Formular
   ============================================================================ */

   .cms-form-wrap {
    max-width: 680px;
}

.cms-form__group {
    border: none;
    padding: 0;
    margin: 0 0 24px;
}

.cms-form__group-legend {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
    width: 100%;
    display: block;
}

.cms-form__field {
    margin-bottom: 16px;
}

.cms-form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.cms-form__required {
    color: #e53935;
    margin-left: 2px;
}

.cms-form__input,
.cms-form__select,
.cms-form__textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.cms-form__input:focus,
.cms-form__select:focus,
.cms-form__textarea:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, .15);
    outline: none;
}

.cms-form__input:invalid:not(:placeholder-shown),
.cms-form__select:invalid,
.cms-form__textarea:invalid:not(:placeholder-shown) {
    border-color: #e53935;
}

.cms-form__textarea {
    min-height: 120px;
    resize: vertical;
}

.cms-form__input--file {
    padding: 7px;
    background: #fafafa;
    cursor: pointer;
}

/* Radio / Checkbox */
.cms-form__field--radio fieldset,
.cms-form__field--checkbox-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Kaestchen links, Beschriftung rechts daneben.
   Bewusst KEIN display:flex am Label: der Beschriftungstext darf einen Link
   (z. B. auf die Datenschutzerklaerung), <strong> oder das Pflichtfeld-
   Sternchen enthalten - im Flex-Kontext wird jedes dieser Elemente und jedes
   Stueck Text dazwischen zu einer eigenen Spalte, die Beschriftung zerfaellt
   also nebeneinander statt in einer Zeile zu fliessen. Mit Einrueckung +
   absolut gesetztem Kaestchen bleibt die Beschriftung normaler Fliesstext und
   bricht sauber unter sich um. Mehrere Ankreuzfelder stehen untereinander,
   weil jedes in einem eigenen .cms-form__field steht. */
.cms-form__radio-label,
.cms-form__checkbox-label {
    display: block;
    position: relative;
    padding-left: 30px;
    min-height: 20px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    margin-bottom: 8px;
    line-height: 1.5;
}

.cms-form__radio-label input,
.cms-form__checkbox-label input {
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #4285f4;
    cursor: pointer;
}

/* Trennlinie / Überschrift */
.cms-form__divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0;
}

.cms-form__heading {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 20px 0 12px;
}

/* 2-spaltiges Layout */
.cms-form--two-col .cms-form__col-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.cms-form--two-col .cms-form__col-full {
    grid-column: 1 / -1;
}

/* Captcha */
.cms-form__captcha .cms-form__input {
    max-width: 80px;
    display: inline-block;
}

/* Honeypot — visuell versteckt, NICHT display:none */
.cms-form__honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* Submit */
.cms-form__submit-row {
    margin-top: 24px;
}

.cms-form__submit {
    padding: 11px 32px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.cms-form__submit:hover {
    background: #1558c0;
}

.cms-form__submit:disabled {
    background: #90b8f0;
    cursor: not-allowed;
}

/* Fehlermeldungen */
.cms-form__error-box {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #c62828;
}

.cms-form__error-box p {
    margin: 4px 0;
}

/* Fehler direkt beim Feld */
.cms-form__field-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #c62828;
}

.cms-form__input--error,
.cms-form__textarea--error {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .12);
}

/* Erfolgsmeldung */
.cms-form__success {
    padding: 20px 24px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    color: #2e7d32;
    font-size: 16px;
    line-height: 1.5;
}


