/* Startseite: Profil + Produkt-Kacheln + Pagination. */

/* ── Header-Banner ── */
.header-banner {
    width: 100%;
    display: block;
}

/* ── Profilbereich (Bild ragt ins Banner wie beim Referenz-Shop) ── */
.profil {
    margin-top: -75px;
    padding: 0 3.5rem 1.5rem;
}

.profil-bild {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.75rem;
    object-fit: cover;
}

.profil h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

/* ── Social-Icons ── */
.socials {
    display: flex;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.socials a {
    color: var(--tinte);
    display: inline-grid;
    place-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--gruen);
    transform: translateY(-2px);
}

/* ── Affiliate-Wording ── */
.affiliate-satz {
    max-width: 62ch;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--grau-text);
    background: var(--grau-flaeche);
    border-radius: 14px;
    padding: 1.05rem 1.3rem;
    margin-bottom: 0.5rem;
}

.affiliate-satz strong {
    color: var(--tinte);
}

/* ── Produkt-Grid ── */
.produkt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2.25rem;
    padding: 2.5rem 3.5rem 3rem;
}

.kachel {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.kachel:hover {
    transform: translateY(-4px);
}

.kachel img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--grau-flaeche);
}

.kachel-titel {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gruen);
    margin: 1rem 0 0.15rem;
}

.kachel:hover .kachel-titel {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.kachel-preis {
    font-weight: 700;
    margin: 0;
}

.kachel-preis .preis-alt {
    font-size: 0.95rem;
}

/* ── Pagination (?page=2 wie beim Referenz-Shop) ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0 4rem;
}

.pagination a,
.pagination span {
    min-width: 2.4rem;
    height: 2.4rem;
    display: inline-grid;
    place-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--tinte);
}

.pagination a:hover {
    color: var(--gruen);
}

.pagination .aktiv {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.pagination .pfeil {
    font-size: 1.4rem;
    padding-inline: 0.4rem;
}

/* ── Newsletter (MailerLite) ── */
.newsletter {
    background: var(--grau-flaeche);
    text-align: center;
    padding: 3rem 3.5rem 3.25rem;
}

.newsletter h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.nl-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.nl-form input[type="email"] {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    padding: 0.85em 1.4em;
    border: 1px solid var(--linie);
    border-radius: 999px;
    background: #fff;
    color: var(--tinte);
}

.nl-form input[type="email"]:focus {
    outline: 2px solid var(--gruen);
    outline-offset: 1px;
}

.nl-form button {
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85em 1.9em;
    border: 0;
    border-radius: 999px;
    background: var(--knopf);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nl-form button:hover {
    background: var(--knopf-dunkel);
}

.nl-hinweis {
    font-size: 0.9rem;
    color: var(--grau-text);
    margin: 1rem 0 0;
}

.nl-hinweis a {
    color: var(--gruen);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .profil {
        margin-top: -55px;
        padding: 0 1.5rem 1rem;
    }

    .profil-bild {
        width: 110px;
        height: 110px;
    }

    .produkt-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
        padding: 2rem 1.5rem 2.5rem;
    }

    /* Trennlinie zwischen gestapelten Produkten */
    .kachel + .kachel {
        border-top: 1px solid var(--linie);
        padding-top: 2.75rem;
    }

    .newsletter {
        padding: 2.5rem 1.5rem 2.75rem;
    }

    .nl-form {
        flex-direction: column;
        align-items: stretch;
    }

    .nl-form button {
        width: 100%;
    }
}
