/* Anmeldeformular Marktbericht-Newsletter - bewusst schlicht, damit es sich
   in das Theme einfügt; Farben über Theme-Variablen mit Rückfallwerten. */

.bin-form {
    margin: 2em 0;
    padding: 1.5rem;
    background: var(--c-grey-light, #f5f6f7);
    border-radius: var(--r-md, 8px);
    border-left: 4px solid var(--c-teal, #2f6bb3);
}

/* Kopfzeile: Icon links, Titel und Text rechts daneben */
.bin-form__kopf {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bin-form__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-teal, #2f6bb3);
}

.bin-form__titel {
    margin: 0 0 .25rem;
}

/* Auch hier spezifischer als `.post-content p` */
.bin-form p.bin-form__text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.bin-form p.bin-form__meldung {
    font-size: .95rem;
    line-height: 1.5;
}

.bin-form--aktion {
    margin-bottom: 1.5rem;
}

.bin-form__felder {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bin-form__label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1 1 220px;
    font-size: .95rem;
}

.bin-form__label input {
    padding: .6rem .75rem;
    border: 1px solid #c9ced4;
    border-radius: var(--r-sm, 4px);
    font-size: 1rem;
    width: 100%;
    background: #fff;
}

.bin-form__label input:focus {
    outline: 2px solid var(--c-teal, #2f6bb3);
    outline-offset: 1px;
}

.bin-form__optional {
    color: #787f87;
    font-weight: 400;
}

.bin-form__einwilligung {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bin-form__einwilligung input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin: .1rem 0 0;
    accent-color: var(--c-teal, #2f6bb3);
    cursor: pointer;
}

/* Honeypot: unsichtbar, aber nicht display:none (manche Bots ignorieren das) */
.bin-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bin-form__button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.4rem;
    border: 0;
    border-radius: var(--r-sm, 4px);
    background: var(--c-teal, #2f6bb3);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.bin-form__button-ico {
    flex: 0 0 auto;
}

.bin-form__button:hover {
    filter: brightness(1.08);
}

.bin-form__button:disabled {
    opacity: .6;
    cursor: default;
}

/* Hinweise als Aufzählung mit Haken. Die Auswahl ist bewusst spezifischer als
   `.post-content ul` des Themes - sonst gewinnt dessen Einrückung. */
.bin-form ul.bin-form__hinweis {
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: .8125rem;
    color: #5b6169;
}

.bin-form ul.bin-form__hinweis li {
    display: flex;
    gap: .45rem;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.bin-form__hinweis li::marker {
    content: none;
}

.bin-form__haken {
    flex: 0 0 auto;
    color: var(--c-teal, #2f6bb3);
    font-weight: 700;
    line-height: 1.5;
}

/* Button und Rückmeldung nebeneinander; auf schmalen Displays rutscht die
   Meldung unter den Button. */
.bin-form__aktion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem .75rem;
}

/* Die Rückmeldung als Badge neben dem Button - kleiner als der Fließtext,
   damit sie den Button nicht überstimmt. Auswahl bewusst spezifischer als
   `.post-content p` des Themes, sonst gewinnt dessen Schriftgröße. */
.bin-form p.bin-form__status {
    margin: 0;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 600;
    background: #fff;
    border: 1px solid #d9dde2;
    color: #5b6169;
    max-width: 26rem;
}

/* Solange nichts gemeldet wird, ist da auch kein Badge. */
.bin-form__status:empty {
    display: none;
}

.bin-form__status--ok {
    background: #eefaf3;
    border-color: #9fd9bb;
    color: #14663f;
}

.bin-form__status--fehler {
    background: #fdf0ef;
    border-color: #edb4ae;
    color: #8f1f18;
}

.bin-form__meldung--ok {
    color: #1e7a4b;
}

.bin-form__meldung--fehler {
    color: #a3241c;
}

.bin-form__meldung {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    background: #fff;
    border-radius: var(--r-sm, 4px);
    font-weight: 600;
}
