/* Eigener Newsletter-Kasten im Logo-Band des Footers (layout/footer/ks-newsletter.html.twig, Schalter
   newsletterKasten). Rückmeldung Denis 03.12.2026: Feld schmaler und mittig, alles in der Sprache der Seite.
   Lukas 04.12.: Variante A aus dem Entwurf – Zeile aus Feld und Knopf, Fehler, Einwilligung und Dank höchstens
   840 px breit und mittig im blauen Kasten. Farben wie bisher (Kasten #69C8F3, Knopf #383838), im Dunkeln wie der
   Klaviyo-Kasten in dunkel/ktp-dunkel.css (Fläche #172636, gelber Rand mit Schein, gelber Knopf).
   Die Farben stehen als Variablen, der Dunkelmodus setzt nur sie (erzeuge.py lässt var(…) aus).
   Die Regeln sind so spezifisch, dass ks-fusszeile.css (Knopf, Ausrichtung im Klaviyo-Formular, !important) und die
   daraus erzeugten Gegenregeln in ktp-dunkel.css den Kasten nicht treffen. */
.footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl,
.ks-nl {
    --ks-nl-box: #69c8f3;
    --ks-nl-titel: #fff;
    --ks-nl-text: #0d3347;
    --ks-nl-feld-bg: #fff;
    --ks-nl-feld-text: #1b232c;
    --ks-nl-feld-rand: #fff;
    --ks-nl-platzhalter: #5f6b77;
    --ks-nl-knopf: #383838;
    --ks-nl-knopf-text: #fff;
    --ks-nl-knopf-hover: #222;
    --ks-nl-fehler: #7a1508;
    --ks-nl-ok-bg: rgba(255, 255, 255, .7);
    --ks-nl-rand: transparent;
    --ks-nl-schein: none;
    --ks-nl-zeile: 840px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 18px 22px 20px;
    border: 1px solid var(--ks-nl-rand);
    border-radius: 10px;
    background: var(--ks-nl-box);
    box-shadow: var(--ks-nl-schein);
    color: var(--ks-nl-text);
    text-align: left;
}

html.ktp-dunkel .footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl,
html.ktp-dunkel .ks-nl {
    --ks-nl-box: #172636;
    --ks-nl-titel: #e8eef5;
    --ks-nl-text: #b9c6d3;
    --ks-nl-feld-bg: #0a1520;
    --ks-nl-feld-text: #e8eef5;
    --ks-nl-feld-rand: #2f4560;
    --ks-nl-platzhalter: #8798ab;
    --ks-nl-knopf: #ffd54a;
    --ks-nl-knopf-text: #0b1520;
    --ks-nl-knopf-hover: #ffe07a;
    --ks-nl-fehler: #ffb4a8;
    --ks-nl-ok-bg: rgba(10, 21, 32, .7);
    --ks-nl-rand: #ffd54a;
    --ks-nl-schein: 0 0 18px rgba(255, 213, 74, .28);
}

.ks-nl .ks-nl-titel {
    margin: 0;
    color: var(--ks-nl-titel);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.ks-nl .ks-nl-hinweis {
    margin: 4px 0 0;
    color: var(--ks-nl-text);
    font-size: 14px;
    text-align: center;
}

.ks-nl .ks-nl-form {
    margin: 0;
}

.ks-nl .ks-nl-zeile,
.ks-nl .ks-nl-form .ks-nl-fehler,
.ks-nl .ks-nl-form .ks-nl-einwilligung,
.ks-nl .ks-nl-ok {
    max-width: var(--ks-nl-zeile);
    margin-right: auto;
    margin-left: auto;
}

.ks-nl .ks-nl-zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ks-nl .ks-nl-feld {
    flex: 1 1 200px;
    box-sizing: border-box;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--ks-nl-feld-rand);
    border-radius: 8px;
    background: var(--ks-nl-feld-bg);
    color: var(--ks-nl-feld-text);
    font: inherit;
    font-size: 16px;
}

.ks-nl .ks-nl-feld::placeholder {
    color: var(--ks-nl-platzhalter);
    opacity: 1;
}

.ks-nl .ks-nl-feld:focus {
    outline: 2px solid var(--ks-nl-titel);
    outline-offset: 1px;
}

.ks-nl .ks-nl-feld[aria-invalid="true"] {
    border: 2px solid var(--ks-nl-fehler);
}

/* Fängt Formular-Roboter: unsichtbar, nicht per Tab erreichbar; ist es gefüllt, wird nichts gesendet */
.ks-nl .ks-nl-falle {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl .ks-nl-knopf,
.ks-nl .ks-nl-knopf {
    flex: 0 0 auto;
    height: 46px;
    margin: 0;
    padding: 0 22px !important;
    border: 0;
    border-radius: 8px !important;
    background: var(--ks-nl-knopf) !important;
    color: var(--ks-nl-knopf-text) !important;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl .ks-nl-knopf:hover,
.ks-nl .ks-nl-knopf:hover {
    background: var(--ks-nl-knopf-hover) !important;
}

.ks-nl .ks-nl-knopf:focus-visible {
    outline: 2px solid var(--ks-nl-titel);
    outline-offset: 2px;
}

.ks-nl .ks-nl-knopf:disabled {
    opacity: .7;
    cursor: progress;
}

.footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl .ks-nl-form p,
.ks-nl .ks-nl-form p {
    text-align: left !important;
}

.ks-nl .ks-nl-form .ks-nl-fehler {
    margin-top: 6px;
    margin-bottom: 0;
    color: var(--ks-nl-fehler);
    font-size: 14px;
    font-weight: 500;
}

.ks-nl .ks-nl-form .ks-nl-einwilligung {
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--ks-nl-text);
    font-size: 12.5px;
    line-height: 1.45;
}

.footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl .ks-nl-einwilligung a,
.ks-nl .ks-nl-einwilligung a {
    color: inherit;
    text-decoration: underline;
}

.ks-nl .ks-nl-ok {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    margin-bottom: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--ks-nl-ok-bg);
    color: var(--ks-nl-text);
    font-size: 15px;
    font-weight: 500;
}

.ks-nl .ks-nl-ok[hidden],
.ks-nl .ks-nl-form[hidden],
.ks-nl .ks-nl-fehler[hidden] {
    display: none;
}

.ks-nl .ks-nl-ok svg {
    flex: none;
    margin-top: 1px;
}

.ks-nl .ks-nl-ok:focus {
    outline: none;
}

/* Handy: Feld und Knopf je über die ganze Breite */
@media (max-width: 575.98px) {
    .footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl,
    .ks-nl {
        padding: 16px 16px 18px;
    }

    .ks-nl .ks-nl-titel {
        font-size: 17px;
    }

    .ks-nl .ks-nl-feld {
        flex-basis: 100%;
    }

    .footer-main .custom-footer-newsletter-top .footer-newsletter-col .ks-nl .ks-nl-knopf,
    .ks-nl .ks-nl-knopf {
        flex: 1 1 100%;
    }
}
