/* ============================================================
   KWB Shop – shop_at.css
   Mobile-only static offers page for use in Ionic app iframe
   ============================================================ */

/* ── Minimal reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* ── Body ──────────────────────────────────────────────────────
   Ionic CSS vars are applied via class toggles in JS.
   Fallbacks match the KWB light-theme values from styles.css.
   ─────────────────────────────────────────────────────────── */
body {
    background-color: var(--ion-background-color, #f6f6f6);
    color: var(--ion-text-color, #1f1f1f);
    font-family: "Roboto", "Helvetica Neue", sans-serif;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    position: static !important;
    contain: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Page container (mobile-first, max 430 px) ─────────────── */
.shop-page {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 16px calc(200px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Individual offer ──────────────────────────────────────── */
.offer {
    padding: 4px 0 8px;
    display: flex;
    flex-direction: column;
}

/* ── Headline ──────────────────────────────────────────────── */
.offer-headline {
    font-size: 1.375rem;  /* 22 px */
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--ion-color-primary, #007e95);
    margin-bottom: 12px;
}

/* ── Descriptive body text ─────────────────────────────────── */
.offer-description {
    font-size: 0.9375rem;  /* 15 px */
    line-height: 1.6;
    text-align: center;
    color: var(--ion-subtitle-color, #707070);
    margin-bottom: 20px;
}

/* ── Image card (rounded, contains button overlay) ─────────── */
.offer-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent;
    width: 100%;
}

.offer-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── CTA button: floating at image bottom, above scrim ─────── */
.offer-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;

    padding: 11px 24px;
    border-radius: 50px;
    border: none;

    background-color: var(--ion-color-primary, #007e95);
    color: var(--ion-color-primary-contrast, #ffffff);

    font-family: inherit;
    font-size: 0.9375rem;  /* 15 px */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.30);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.offer-btn:hover {
    opacity: 0.92;
}

.offer-btn:active {
    opacity: 0.80;
    transform: translateX(-50%) scale(0.96);
}

.offer-btn-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ── Section divider ───────────────────────────────────────── */
.offer-divider {
    border: none;
    border-top: 1px solid var(--ion-color-deactivated, #b7b7b7);
    opacity: 0.35;
    margin: 4px 0;
}

/* ── "Jetzt neu!" pill badge ───────────────────────────────── */
.offer-new-badge {
    display: inline-block;
    font-size: 1.375rem;  /* 22 px */
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--ion-color-primary, #007e95);
    margin-bottom: 12px;
    text-transform: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* ── Extra-small screen adjustment ────────────────────────── */
@media (max-width: 390px) {
    .shop-page {
        padding: 8px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .offer-headline {
        font-size: 1.125rem;
        margin-bottom: 6px;
    }

    .offer-description {
        font-size: 0.875rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .offer-btn {
        font-size: 0.875rem;
        padding: 9px 16px;
        bottom: 12px;
    }
}
