/* WhatsApp-Newsletter: Anmeldekarte (dunkelgruene Flaeche mit Schwung,
   rechts heller Teil mit QR-Code und Button).
   Eigene Datei, weil das kompilierte Tailwind die Klassen nicht enthaelt. */

.nl-card {
    --nl-dark: #0f3d2e;
    --nl-green: #6abf4b;
    --nl-cream: #f7f4ee;
    --nl-ink: #0f2a21;

    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--nl-cream);
    box-shadow: 0 0.75rem 2rem rgba(15, 61, 46, 0.12);
    font-family: 'Manrope', system-ui, sans-serif;
}

/* Schwung: nur in der breiten Ansicht, siehe Media Query */
.nl-card__shape {
    display: none;
}

/* ---------- linke Seite ---------- */

.nl-card__left {
    position: relative;
    padding: 2rem 1.5rem 3.5rem;
    background: var(--nl-dark);
    color: #fff;
    border-bottom-right-radius: 100% 3rem;
}

.nl-card__title {
    margin: 0 0 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.nl-card__title span {
    display: block;
    font-weight: 800;
    color: var(--nl-green);
}

.nl-card__lead {
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #fff;
}

.nl-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nl-card__list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
    font-size: 1rem;
    color: #e6efe9;
}

.nl-card__list svg {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--nl-green);
}

/* ---------- rechte Seite ---------- */

.nl-card__right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.5rem 2rem;
    text-align: center;
    color: var(--nl-ink);
}

.nl-card__bubble {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 0.75rem;
}

/* QR-Code mit Eckmarken, nur ab Tablet */
.nl-card__qr {
    display: none;
    position: relative;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.nl-card__qr::before,
.nl-card__qr::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--nl-green);
    border-radius: 0.4rem;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) top left / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) top right / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) bottom left / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) bottom right / 1.6rem 1.6rem no-repeat;
            mask: linear-gradient(#000 0 0) top left / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) top right / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) bottom left / 1.6rem 1.6rem no-repeat,
                  linear-gradient(#000 0 0) bottom right / 1.6rem 1.6rem no-repeat;
}

.nl-card__qr::after {
    display: none;
}

.nl-card__qr img {
    display: block;
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.9rem rgba(15, 61, 46, 0.12);
}

.nl-card__cta {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--nl-ink);
}

.nl-card__cta span {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
}

.nl-card__swoosh {
    width: 7rem;
    height: 0.75rem;
    margin: 0.35rem 0 1.1rem;
    color: var(--nl-green);
}

a.nl-card__button,
.nl-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

a.nl-card__button:hover,
.nl-card__button:hover {
    background: var(--nl-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nl-card__button i {
    font-size: 1.3rem;
}

.nl-card__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    text-align: center;
}

.nl-card__brand p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nl-ink);
}

.nl-card__brand p span {
    display: block;
    font-weight: 600;
    color: #3f9a2b;
}

/* ---------- Hinweiszeile unter der Karte ---------- */

.nl-card-note {
    margin: 0.9rem 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #475569;
}

.dark .nl-card-note {
    color: #94a3b8;
}

.nl-card-note a {
    text-decoration: underline;
}

/* ---------- Tablet: QR statt Sprechblase ---------- */

@media (min-width: 768px) {
    .nl-card__qr {
        display: block;
    }

    .nl-card__bubble {
        display: none;
    }

    .nl-card__title {
        font-size: 3rem;
    }
}

/* ---------- breit: Flaechen nebeneinander, mit Schwung ---------- */

@media (min-width: 1024px) {
    .nl-card {
        display: grid;
        grid-template-columns: 1.35fr 1fr;
        min-height: 26rem;
    }

    .nl-card__shape {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        color: var(--nl-dark);
    }

    .nl-card__left {
        align-self: center;
        padding: 3rem 2rem 3rem 3.5rem;
        background: transparent;
        border-radius: 0;
    }

    .nl-card__title {
        font-size: 3.6rem;
    }

    .nl-card__right {
        align-self: center;
        padding: 2.5rem 2.5rem 2.5rem 1rem;
    }
}

/* ---------- dezenter Hinweis unten links (whatsapp-newsletter-popup.js) ---------- */

.nl-pop {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 10000;
    width: min(22rem, calc(100vw - 2.5rem));
    overflow: hidden;
    border-radius: 1rem;
    background: #f7f4ee;
    box-shadow: 0 1rem 2.5rem rgba(15, 42, 33, 0.28);
    font-family: 'Manrope', system-ui, sans-serif;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nl-pop.is-visible {
    opacity: 1;
    transform: none;
}

.nl-pop__head {
    padding: 1.25rem 3rem 1.75rem 1.25rem;
    background: #0f3d2e;
    color: #fff;
    border-bottom-right-radius: 100% 1.5rem;
}

.nl-pop__title {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
}

.nl-pop__title span {
    display: block;
    font-weight: 800;
    color: #6abf4b;
}

.nl-pop__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e6efe9;
}

.nl-pop__body {
    padding: 1rem 1.25rem 1.1rem;
    text-align: center;
}

.nl-pop__body .nl-card__button {
    width: 100%;
    justify-content: center;
}

.nl-pop__note {
    margin: 0.7rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #475569;
}

.nl-pop__note a {
    color: inherit;
    text-decoration: underline;
}

.nl-pop__close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nl-pop__close:hover,
.nl-pop__close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 480px) {
    .nl-pop {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nl-pop {
        transform: none;
        transition: none;
    }
}
