/* ==========================================================================
   LiMA Crowdfunding – Styles
   Colors: Red #e30613, Purple #5b2d8e, White #fff
   ========================================================================== */

/* ---------- Reset & Base ---------- */
.lima-support,
.lima-spenden,
.lima-teaser {
    --lima-red: #e30613;
    --lima-purple: #5b2d8e;
    --lima-white: #ffffff;
    --lima-dark: #1a1a1a;
    --lima-gray: #f5f5f5;
    --lima-radius: 8px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--lima-dark);
    line-height: 1.6;
}

.lima-spenden {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lima-spenden .lima-section h2 {
    text-align: center;
}

.lima-spenden .lima-donate__hint,
.lima-spenden .lima-donate__fallback {
    text-align: center;
}

.lima-support *,
.lima-spenden *,
.lima-teaser * {
    box-sizing: border-box;
}

/* ---------- Sections ---------- */
.lima-section {
    margin: 3rem 0;
    padding: 0;
}

.lima-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--lima-purple);
}

/* ---------- Hero ---------- */
.lima-hero {
    text-align: center;
    padding: 2rem 0 1rem;
}

.lima-hero__logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.lima-hero h1 {
    font-size: 2rem;
    color: var(--lima-red);
    margin-bottom: 1rem;
}

.lima-hero__intro {
    font-size: 1.125rem;
    font-weight: 600;
}

.lima-hero p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.lima-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: var(--lima-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.lima-btn:hover {
    transform: translateY(-1px);
}

.lima-btn:active {
    transform: translateY(0);
}

.lima-btn--primary {
    background: var(--lima-purple);
    color: var(--lima-white);
}

.lima-btn--primary:hover {
    background: #472272;
    color: var(--lima-white);
}

.lima-btn--download {
    background: var(--lima-dark);
    color: var(--lima-white);
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.lima-btn--download:hover {
    background: #333;
    color: var(--lima-white);
}

.lima-btn--copy {
    background: var(--lima-gray);
    color: var(--lima-dark);
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.lima-btn--copy:hover {
    background: #e0e0e0;
}

.lima-btn--copy.copied {
    background: #2ecc71;
    color: #fff;
}

.lima-btn--cta {
    background: var(--lima-red);
    color: var(--lima-white);
    font-size: 1.15rem;
    padding: 0.85rem 2.5rem;
}

.lima-btn--cta:hover {
    background: #c00510;
    color: var(--lima-white);
}

/* ---------- Sharepics Grid ---------- */
.lima-sharepics__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lima-sharepic-card {
    text-align: center;
}

.lima-sharepic-card img {
    width: 100%;
    height: auto;
    border-radius: var(--lima-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lima-sharepic-card .lima-btn {
    margin-top: 0.75rem;
}

/* ---------- Sharepic Generator ---------- */
.lima-generator__wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.lima-generator__preview {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.lima-generator__demo,
#lima-generator-canvas {
    width: 100%;
    height: auto;
    border-radius: var(--lima-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#lima-generator-canvas {
    cursor: grab;
    touch-action: none;
}

#lima-generator-canvas:active {
    cursor: grabbing;
}

.lima-generator__controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.lima-generator__adjustments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lima-generator__adjustments label {
    font-weight: 600;
    font-size: 0.9rem;
}

.lima-generator__adjustments input[type="range"] {
    width: 100%;
    accent-color: var(--lima-purple);
}

.lima-generator__hint {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.lima-generator__fallback {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.lima-generator__fallback a {
    color: var(--lima-purple);
}

/* ---------- Captions ---------- */
.lima-captions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lima-caption-card {
    background: var(--lima-gray);
    border-radius: var(--lima-radius);
    padding: 1.5rem;
    position: relative;
}

.lima-caption-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--lima-purple);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.lima-caption-card p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.lima-caption-card p:last-of-type {
    margin-bottom: 1rem;
}

.lima-caption-card .lima-btn--copy {
    width: 100%;
}

/* ---------- FAQ / Talking Points ---------- */
.lima-faq__item {
    border: 1px solid #ddd;
    border-radius: var(--lima-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.lima-faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    background: var(--lima-gray);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lima-faq__item summary::-webkit-details-marker {
    display: none;
}

.lima-faq__item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--lima-purple);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.lima-faq__item[open] summary::after {
    content: "−";
}

.lima-faq__content {
    padding: 1rem 1.25rem;
}

.lima-faq__content p {
    margin-bottom: 0.5rem;
}

/* ---------- CTA ---------- */
.lima-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--lima-purple), var(--lima-red));
    color: var(--lima-white);
    padding: 3rem 2rem;
    border-radius: var(--lima-radius);
}

.lima-cta h2 {
    color: var(--lima-white);
}

.lima-cta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    font-size: 1.1rem;
}

.lima-cta li {
    margin-bottom: 0.5rem;
}

.lima-cta li::before {
    content: "→ ";
}

.lima-cta .lima-btn--cta {
    background: var(--lima-white);
    color: var(--lima-red);
    font-size: 1.25rem;
}

.lima-cta .lima-btn--cta:hover {
    background: #f0f0f0;
    color: var(--lima-red);
}

/* ---------- Logos ---------- */
.lima-logos__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.lima-logo-card {
    text-align: center;
}

.lima-logo-card img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
}

/* ---------- [lima_spenden] Impact Cards ---------- */
.lima-impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.lima-impact__card {
    background: var(--lima-gray);
    border-radius: var(--lima-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--lima-purple);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lima-impact__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lima-impact__amount {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--lima-red);
    margin-bottom: 0.75rem;
}

.lima-impact__card p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

/* ---------- [lima_spenden] Donate / Betterplace ---------- */
.lima-donate__wrapper {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--lima-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.lima-donate__consent p {
    max-width: 500px;
    margin: 0 auto 1.25rem;
    font-size: 0.95rem;
    color: #555;
}

.lima-donate__iframe-wrap iframe {
    width: 100%;
    border-radius: var(--lima-radius);
}

.lima-donate__hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.lima-donate__fallback {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.lima-donate__fallback a {
    color: var(--lima-purple);
}

/* ---------- [lima_spenden] Membership ---------- */
.lima-membership__intro {
    max-width: 700px;
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.lima-membership__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.lima-membership__card {
    background: var(--lima-gray);
    border-radius: var(--lima-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lima-membership__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lima-membership__card--highlight {
    border-color: var(--lima-purple);
    background: #f3edf9;
}

.lima-membership__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lima-purple);
    margin-bottom: 0.5rem;
}

.lima-membership__price {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--lima-dark);
    margin-bottom: 1rem;
}

.lima-membership__price small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.lima-membership__card p {
    font-size: 0.95rem;
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.lima-membership__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lima-membership__or {
    font-size: 0.9rem;
    color: #888;
}

/* ---------- [lima_spenden] Contact / Bank ---------- */
.lima-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.lima-contact__card {
    background: var(--lima-gray);
    border-radius: var(--lima-radius);
    padding: 2rem;
}

.lima-contact__card h3 {
    font-size: 1.15rem;
    color: var(--lima-purple);
    margin-top: 0;
    margin-bottom: 1rem;
}

.lima-contact__bank {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
}

.lima-contact__bank dt {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.lima-contact__bank dd {
    margin: 0;
    font-size: 0.95rem;
}

.lima-contact__card p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.lima-contact__card a {
    color: var(--lima-purple);
}

/* ---------- Teaser Overlay ---------- */
.lima-teaser {
    --lima-red: #e30613;
    --lima-purple: #5b2d8e;
    --lima-white: #ffffff;
    --lima-radius: 8px;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--lima-purple), var(--lima-red));
    color: var(--lima-white);
    padding: 4rem 2.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

.lima-teaser__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}

.lima-teaser__close:hover {
    color: #fff;
}

.lima-teaser__inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lima-teaser__logo {
    flex: 0 0 auto;
    width: 300px;
    height: auto;
}

.lima-teaser__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--lima-white);
}

.lima-teaser__content p {
    font-size: 1.25rem;
    margin: 0 0 1.75rem;
    line-height: 1.5;
    color: var(--lima-white);
}

.lima-teaser__content .lima-btn--cta {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: var(--lima-radius);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    background: var(--lima-white);
    color: var(--lima-red);
    transition: background 0.2s, transform 0.1s;
}

.lima-teaser__content .lima-btn--cta:hover {
    background: #f0f0f0;
    color: var(--lima-red);
    transform: translateY(-1px);
}

.lima-teaser__sharepic-link {
    flex: 0 0 auto;
    transition: transform 0.2s;
}

.lima-teaser__sharepic-link:hover {
    transform: scale(1.03);
}

.lima-teaser__sharepic {
    width: 180px;
    height: auto;
    border-radius: var(--lima-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lima-teaser__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lima-btn--cta-outline {
    background: transparent !important;
    color: var(--lima-white) !important;
    border: 2px solid var(--lima-white);
}

.lima-btn--cta-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--lima-white) !important;
}

/* ---------- Teaser Mini Bar ---------- */
.lima-teaser-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--lima-purple, #5b2d8e), var(--lima-red, #e30613));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.6rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lima-teaser-mini__logo {
    height: 50px;
    width: auto;
}

.lima-teaser-mini__links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lima-teaser-mini__link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lima-teaser-mini__link:hover {
    text-decoration: underline;
    color: #fff;
}

.lima-teaser-mini__link + .lima-teaser-mini__link {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 600px) {
    .lima-teaser-mini {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .lima-teaser-mini__logo {
        height: 80px;
        flex-shrink: 0;
    }

    .lima-teaser-mini__links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .lima-teaser-mini__link {
        font-size: 0.85rem;
        white-space: normal;
    }

    .lima-teaser-mini__link + .lima-teaser-mini__link {
        padding-left: 0;
        border-left: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .lima-sharepics__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lima-generator__wrapper {
        flex-direction: column;
    }

    .lima-generator__preview {
        max-width: 100%;
    }

    .lima-logos__grid {
        grid-template-columns: 1fr;
    }

    .lima-impact__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lima-membership__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .lima-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .lima-hero h1 {
        font-size: 1.5rem;
    }

    .lima-section h2 {
        font-size: 1.35rem;
    }

    .lima-sharepics__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .lima-captions__grid {
        grid-template-columns: 1fr;
    }

    .lima-cta {
        padding: 2rem 1.25rem;
    }

    .lima-impact__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .lima-impact__card {
        padding: 1.25rem 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        border-top: none;
        border-left: 4px solid var(--lima-purple);
    }

    .lima-impact__amount {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .lima-impact__card p {
        font-size: 0.95rem;
    }

    .lima-membership__grid {
        margin: 0 auto;
    }

    .lima-membership__price {
        font-size: 1.75rem;
    }

    .lima-donate__wrapper {
        box-shadow: none;
    }

    .lima-membership__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .lima-membership__actions .lima-btn {
        width: 100%;
    }

    .lima-membership__or {
        text-align: center;
    }

    .lima-contact__bank {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .lima-contact__bank dt {
        margin-top: 0.5rem;
    }

    .lima-contact__card {
        padding: 1.25rem;
    }

    .lima-faq__item summary {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .lima-teaser {
        padding: 1.5rem 1.5rem;
        padding-left: calc(1.5rem + env(safe-area-inset-left, 0px));
        padding-right: calc(1.5rem + env(safe-area-inset-right, 0px));
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .lima-teaser__inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .lima-teaser__logo {
        width: 150px;
    }

    .lima-teaser__logo {
        display: none;
    }

    .lima-teaser__sharepic-link {
        order: -1;
    }

    .lima-teaser__sharepic {
        width: 100%;
        max-width: 280px;
    }

    .lima-teaser__buttons {
        justify-content: center;
    }

    .lima-teaser__buttons .lima-btn--cta {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
        white-space: nowrap;
    }

    .lima-teaser__title {
        font-size: 1.3rem;
    }

    .lima-teaser__content p {
        font-size: 0.95rem;
    }
}
