/* ============================================================
   css/newsletter_section.css · Sammlerliste (Newsletter-Section)
   ------------------------------------------------------------
   Liegt in xxl-art, wird von xxl-art.de UND alexzerr.art geladen
   (content_inc/section/newsletter.php). Ein Markup, zwei Looks:

     .nl--drop     xxl-art    dunkel, grosse Headline, Feld + Button in einer Zeile
     .nl--gallery  alexzerr   hell, feine Headline, Projekt-Textfeld + Button darunter

   Farben und Fonts kommen aus dem jeweiligen Projekt:
     xxl-art   Theme-Tokens (--color-fg, --fg-rgb, --gold, --font-display …)
     alexzerr  site.css (--paynes-grey, --graphite, --font = Archivo)
   alexzerr hat kein Gold: Nummern + Labels dort in --graphite.
   Es gibt hier KEINE festen Fonts.

   Nur altes, sicheres CSS (Grid, Flex, clamp, :focus-within).
   ============================================================ */

.nl {
    --nl-fg:           var(--color-fg, var(--paynes-grey, #23282e));
    --nl-fg-rgb:       var(--fg-rgb, 35 40 46);                 /* alexzerr: --paynes-grey */
    --nl-gold:         var(--gold, var(--graphite, #6b7077));
    --nl-font-display: var(--font-display, var(--font, inherit));
    --nl-font:         var(--font-primary, var(--font, inherit));

    position: relative;
    z-index: 1;
    color: var(--nl-fg);
    font-family: var(--nl-font);
    text-align: center;
}

.nl__inner {
    max-width: 1248px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

/* ── Kopf ─────────────────────────────────────────────────── */
.nl__head {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Gold-Label mit feinen Linien (Eyebrow + "Ihre Vorteile …") */
.nl__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    font-family: var(--nl-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--nl-gold);
}

.nl__label::before,
.nl__label::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: currentColor;
}

.nl__byline {
    display: none;
}

.nl__title {
    margin: 0;
    font-family: var(--nl-font-display);
    line-height: .9;
    text-transform: uppercase;
}

.nl__claim {
    margin: 0;
    font-family: var(--nl-font);
    font-weight: 300;
    line-height: 1.3;
}

/* ── Vorteile ─────────────────────────────────────────────── */
.nl__benefits {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nl__list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 28px;
    text-align: left;
}

.nl__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgb(var(--nl-fg-rgb) / .16);
}

/* Aufzaehlungspunkte aus .content li o.ae. hier nicht */
.nl__item::before {
    content: none;
}

.nl__num {
    font-family: var(--nl-font-display);
    font-size: 13px;
    letter-spacing: .1em;
    color: var(--nl-gold);
}

.nl__item-title {
    font-family: var(--nl-font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nl__item-text {
    font-family: var(--nl-font);
    font-size: 15px;
    line-height: 1.55;
    color: rgb(var(--nl-fg-rgb) / .66);
}

/* ── Formular ─────────────────────────────────────────────── */
.nl__box,
.nl__form {
    width: 100%;
}

.nl__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nl__error {
    margin: 0;
    padding: 12px 14px;
    background: rgb(var(--nl-fg-rgb) / .06);
    font-size: 14px;
    font-weight: 600;
}

.nl__meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: rgb(var(--nl-fg-rgb) / .62);
}

.nl__meta a,
.nl__meta a:visited {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Erfolgsmeldung: js/newsletter_signup.js ersetzt den Kasten
   (alexzerr: Text-Absatz .newsletter-success, xxl-art: HTML vom Server) */
.nl .newsletter-success {
    margin: 0 auto;
    max-width: 640px;
    padding: 24px 0;
    border-top: 1px solid rgb(var(--nl-fg-rgb) / .16);
    border-bottom: 1px solid rgb(var(--nl-fg-rgb) / .16);
    font-size: 18px;
    line-height: 1.5;
}

.nl .newsletter-success:focus {
    outline: none;
}

/* Waehrend des Absendens */
.nl__form.is-loading .nl__submit {
    opacity: .6;
    cursor: progress;
}

.nl__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* ============================================================
   DROP · xxl-art
   ============================================================ */
.nl--drop {
    padding: 88px 24px 80px;
    background: var(--color-bg-page, #0e0e10);
}

.nl--drop .nl__title {
    font-weight: 700;
    font-size: clamp(56px, 11.5vw, 168px);
    letter-spacing: -.01em;
}

.nl--drop .nl__claim {
    max-width: 760px;
    font-size: clamp(19px, 1.8vw, 26px);
    color: rgb(var(--nl-fg-rgb) / .82);
}

.nl--drop .nl__form {
    max-width: 720px;
    margin: 0 auto;         /* Formular in der Mitte (der Kasten ist 100% breit) */
    align-items: center;
}

.nl__row {
    display: flex;
    width: 100%;
    border: 1px solid rgb(var(--nl-fg-rgb) / .32);
    transition: border-color .3s ease;
}

.nl__row:hover {
    border-color: rgb(var(--nl-fg-rgb) / .55);
}

.nl__row:focus-within {
    border-color: var(--nl-gold);
}

/* Feld als eigene, leicht helle Flaeche – hebt sich vom dunklen Grund ab */
.nl--drop .nl__input {
    background: rgb(var(--nl-fg-rgb) / .07);
    transition: background-color .3s ease;
}

.nl--drop .nl__input:focus {
    background: rgb(var(--nl-fg-rgb) / .1);
}

.nl__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 64px;
    margin: 0;
    padding: 0 22px;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--nl-font);
    font-size: 17px;
    color: var(--nl-fg);
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
}

.nl__input::placeholder {
    color: rgb(var(--nl-fg-rgb) / .58);
}

.nl--drop .nl__submit {
    flex-shrink: 0;
    height: 64px;
    padding: 0 32px;
}

/* Newsletter-Anmeldeseite: ohne Kopf, weniger Abstand oben */
.nl--page {
    padding-top: 0;
}


/* ============================================================
   GALLERY · alexzerr.art
   ============================================================ */
.nl--gallery {
    padding: 64px 24px 72px;
}

/* Eyebrow als Kopfzeile: links Label, rechts Byline, Linie drunter */
.nl--gallery .nl__eyebrow {
    align-self: stretch;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(var(--nl-fg-rgb) / .16);
    color: var(--nl-fg);
    letter-spacing: .24em;
}

.nl--gallery .nl__eyebrow::before,
.nl--gallery .nl__eyebrow::after {
    content: none;
}

.nl--gallery .nl__byline {
    display: inline;
    font-weight: 400;
    color: rgb(var(--nl-fg-rgb) / .62);
}

.nl--gallery .nl__title {
    font-weight: 400;
    font-stretch: 75%;          /* Archivo schmal, wie die Ueberschriften auf alexzerr */
    font-size: clamp(52px, 9vw, 132px);
    letter-spacing: .04em;
}

.nl--gallery .nl__claim {
    font-size: clamp(26px, 3.6vw, 52px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* .contact-form-page bringt das Projekt-Textfeld mit, hier nur die Breite */
.nl--gallery .nl__form.contact-form-page {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

/* Feldlinie hier kraeftiger als die helle --rule, damit das Feld klar steht */
.nl--gallery .contact-form-page .field input {
    border-color: var(--nl-fg);
}

.nl--gallery .nl__submit {
    width: 100%;
    margin-top: 2px;
}

.nl--gallery .nl__meta {
    text-align: center;
}


/* ============================================================
   Mobil
   ============================================================ */
@media (max-width: 760px) {
    .nl__inner {
        gap: 40px;
    }

    .nl__list {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;     /* Mobil: Nummer, Titel, Text zentriert */
    }

    .nl__item {
        align-items: center;
    }

    /* Mobil: Button unter dem Feld – Rahmen sitzt am Feld, nicht an der Zeile */
    .nl__row {
        flex-direction: column;
        border: 0;
    }

    .nl--drop .nl__input {
        border: 1px solid rgb(var(--nl-fg-rgb) / .32);
        transition: border-color .3s ease, background-color .3s ease;
    }

    .nl--drop .nl__input:hover {
        border-color: rgb(var(--nl-fg-rgb) / .55);
    }

    .nl--drop .nl__input:focus {
        border-color: var(--nl-gold);
    }

    .nl--drop .nl__submit {
        width: 100%;
        margin-top: 12px;
    }
}
