/* Seite "Mietinteressenten": Einleitung und Formular "Wohnungsanfrage".

   Das Formular ist eigenes HTML, nicht mehr BaForms. Alle Regeln haengen an
   .wohnungsanfrage bzw. an den IDs der Einleitung, damit nichts auf andere
   Seiten durchschlaegt. */

/* --- Einleitung ---------------------------------------------------------- */

/* Rechte Spalte: Ueberschrift weiss und groesser als das Template-h4 */
#item-1730216290601 h4 {
    color: #fff;
    font-size: 30px;
    line-height: 1.35;
    margin-bottom: 20px;
}

#item-1730216290601 p a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#item-1730216290601 p a:hover {
    color: #fff;
}

/* Linke Spalte: Hinweis unter der Mailadresse */
.wa-kontakt-hinweis {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text);
}

@media (max-width: 667px) {
    #item-1730216290601 h4 {
        font-size: 24px;
    }
}

/* --- Formular ------------------------------------------------------------ */

.wohnungsanfrage {
    --wa-navy: #1c345a;
    --wa-gruen: #68a106;
    --wa-gruen-hell: #eef6dc;
    --wa-linie: #d9dbe0;
    --wa-text: #1f1e23;
    --wa-leise: #6b6a70;

    padding: 15px 30px 30px;
    color: var(--wa-text);
    font-size: 15px;
    line-height: 1.5;
}

.wohnungsanfrage *,
.wohnungsanfrage *::before,
.wohnungsanfrage *::after {
    box-sizing: border-box;
}

.wohnungsanfrage .wa-titel {
    margin: 0;
    color: var(--wa-navy);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.wohnungsanfrage .wa-pflicht {
    margin: 4px 0 0;
    color: var(--wa-leise);
    font-size: 14px;
}

.wohnungsanfrage .wa-stern {
    color: #d0342c;
}

.wohnungsanfrage .wa-abschnitt {
    padding: 26px 0 28px;
    border-bottom: 1px solid #ececec;
}

.wohnungsanfrage .wa-abschnitt h3 {
    margin: 0 0 14px;
    color: var(--wa-gruen);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wohnungsanfrage .wa-raster {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 28px;
}

.wohnungsanfrage .wa-breit {
    grid-column: span 2;
}

.wohnungsanfrage .wa-feld {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wohnungsanfrage .wa-feld > label,
.wohnungsanfrage .wa-feld > legend {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
}

.wohnungsanfrage .wa-zusatz {
    margin-left: 4px;
    color: #444;
}

.wohnungsanfrage input[type="text"],
.wohnungsanfrage input[type="email"],
.wohnungsanfrage input[type="tel"],
.wohnungsanfrage input[type="number"],
.wohnungsanfrage select,
.wohnungsanfrage textarea {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid var(--wa-linie);
    border-radius: 6px;
    background: #fff;
    color: var(--wa-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
}

.wohnungsanfrage textarea {
    height: auto;
    min-height: 108px;
    resize: vertical;
}

.wohnungsanfrage select {
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23444'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* Platzhalteroption grau wie die Platzhalter der Textfelder */
.wohnungsanfrage select:invalid {
    color: #8a8a8f;
}

.wohnungsanfrage select option {
    color: var(--wa-text);
}

.wohnungsanfrage ::placeholder {
    color: #8a8a8f;
    opacity: 1;
}

/* gridbox.css nimmt fokussierten Feldern Rahmen und Schatten per !important;
   ohne !important hier verschwaende der Rahmen beim Hineinklicken. */
.wohnungsanfrage input:focus,
.wohnungsanfrage select:focus,
.wohnungsanfrage textarea:focus {
    outline: none;
    border-color: var(--wa-gruen) !important;
    box-shadow: 0 0 0 3px rgba(104, 161, 6, .18) !important;
}

.wohnungsanfrage small {
    display: block;
    margin-top: 6px;
    color: var(--wa-leise);
    font-size: 13px;
}

/* Standorte als anklickbare Pillen; das Kaestchen selbst bleibt fuer
   Tastatur und Screenreader erhalten, ist aber unsichtbar. */
.wohnungsanfrage .wa-standorte {
    margin-bottom: 22px;
}

.wohnungsanfrage .wa-pillen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wohnungsanfrage .wa-pille {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.wohnungsanfrage .wa-pille input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.wohnungsanfrage .wa-pille span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--wa-linie);
    border-radius: 999px;
    background: #fff;
    color: var(--wa-text);
    font-size: 14px;
    line-height: 1.4;
    transition: background-color .15s, border-color .15s;
}

.wohnungsanfrage .wa-pille:hover span {
    border-color: var(--wa-gruen);
}

.wohnungsanfrage .wa-pille input:checked + span {
    border-color: var(--wa-gruen);
    background: var(--wa-gruen-hell);
    color: #3d6300;
}

.wohnungsanfrage .wa-pille input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(104, 161, 6, .3);
}

/* Ja/Nein */
.wohnungsanfrage .wa-optionen label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 22px 0 0;
    font-size: 15px;
    cursor: pointer;
}

/* Das Template setzt ab Tablet-Breite "-webkit-appearance: none !important"
   auf alle Eingabefelder ausser Checkboxen - Radio-Knoepfe waeren dann
   unsichtbar. Der hoehere Selektor gewinnt gegen dessen !important. */
.wohnungsanfrage .wa-optionen input[type="radio"],
.wohnungsanfrage .wa-datenschutz input[type="checkbox"] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--wa-gruen);
    flex: none;
}

/* Datenschutz und Absenden */
.wohnungsanfrage .wa-datenschutz {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 26px 0 0;
    color: var(--wa-text);
    font-size: 14px;
    line-height: 1.55;
    cursor: pointer;
}

.wohnungsanfrage .wa-datenschutz input {
    margin-top: 2px;
}

.wohnungsanfrage .wa-datenschutz a {
    color: var(--wa-gruen);
}

.wohnungsanfrage .wa-absenden {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 26px;
}

.wohnungsanfrage .wa-absenden button {
    padding: 14px 34px;
    border: 0;
    border-radius: 6px;
    background: var(--wa-navy);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}

.wohnungsanfrage .wa-absenden button:hover,
.wohnungsanfrage .wa-absenden button:focus-visible {
    background: #7ec500;
}

.wohnungsanfrage .wa-absenden p {
    margin: 0;
    color: var(--wa-leise);
    font-size: 13px;
}

/* Honeypot: fuer Menschen unsichtbar */
.wohnungsanfrage .ba-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.wohnungsanfrage .wa-leer {
    visibility: hidden;
}

/* --- Kleinere Bildschirme ------------------------------------------------ */

@media (max-width: 1024px) {
    .wohnungsanfrage .wa-raster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wohnungsanfrage .wa-leer {
        display: none;
    }
}

@media (max-width: 667px) {
    .wohnungsanfrage {
        padding: 28px 18px 24px;
    }

    .wohnungsanfrage .wa-titel {
        font-size: 24px;
    }

    .wohnungsanfrage .wa-raster {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .wohnungsanfrage .wa-breit {
        grid-column: auto;
    }

    .wohnungsanfrage .wa-absenden button {
        width: 100%;
    }
}

/* --- Template-Vorgaben neutralisieren ------------------------------------ */

/* Das Theme setzt h2/h4 in Versalien mit Sperrung und zentriert h2. */
#item-1730216290601 h4,
.wohnungsanfrage .wa-titel {
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}

#item-1730216290601 p + p {
    margin-top: 14px;
}

/* Fieldset/Legend bringen aus dem Template Rahmen und volle Breite mit. */
.wohnungsanfrage fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wohnungsanfrage .wa-feld > legend {
    width: auto;
    border: 0;
    float: none;
}

/* Linke Spalte: Hinweis unter die Adresse statt daneben.
   Das Template richtet Symbol und Text an der Oberkante der Zeile aus (Text mit
   Zeilenhoehe 0, Symbol um die halbe Hoehe nach oben geschoben). Mit echter
   Zeilenhoehe saesse die Adresse eine halbe Zeile zu tief - daher der Versatz. */
#item-17294977152950 .ba-icon-list-wrapper ul li a span {
    display: inline-block;
    line-height: 1.3;
    transform: translateY(-.65em);
}

/* Danke-Seite: Ueberschrift wie der Formulartitel statt Template-h2 */
.ba-form-danke {
    padding-left: 30px;
    padding-right: 30px;
}

.ba-form-danke h2 {
    color: #1c345a;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
}
