/* Sparcode24 v2.0.1 Frontend Styles */
.sc24-container { max-width: 1140px; margin: 0 auto; padding: 24px 16px; }
.sc24-breadcrumbs { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.sc24-breadcrumbs a { color: #2563eb; text-decoration: none; }
.sc24-breadcrumbs a:hover { text-decoration: underline; }

/* Filter-Steuerung */
.sc24-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sc24-controls input,
.sc24-controls select { padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; flex: 1; min-width: 175px; background: #fff; color: #111827; box-sizing: border-box; }
.sc24-cat-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sc24-cat-pill { padding: 6px 13px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.sc24-cat-pill:hover { border-color: #2563eb; color: #2563eb; }
.sc24-cat-pill.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* Typ-Filter Segmented Control (Alle / Nur Codes / Nur Deals) */
.sc24-toolbar-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sc24-type-tabs { display: inline-flex; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; padding: 3px; gap: 3px; }
.sc24-type-tab { padding: 7px 14px; border: none; border-radius: 8px; background: transparent; color: #475569; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s ease; }
.sc24-type-tab:hover { color: #0f172a; }
.sc24-type-tab.is-active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.sc24-results-bar { font-size: 13px; color: #64748b; margin-bottom: 0; }

/* Gutschein-Grid & Karten */
.sc24-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; transition: opacity 0.18s ease; }
.sc24-grid.is-loading { opacity: 0.45; pointer-events: none; }
.sc24-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); scroll-margin-top: 24px; transition: border-color 0.2s, box-shadow 0.2s; }
.sc24-card.is-pinned { border: 2px solid #f59e0b; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.14); background: linear-gradient(180deg, #fffbeb 0%, #ffffff 72px); }
.sc24-card:target { border: 2px solid #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
.sc24-card.is-expired { opacity: 0.6; background: #f9fafb; border-color: #e5e7eb; box-shadow: none; }
.sc24-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sc24-shop-link { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #2563eb; text-decoration: none; letter-spacing: 0.5px; }
.sc24-shop-link:hover { text-decoration: underline; }
.sc24-card-logo { max-height: 28px; max-width: 95px; object-fit: contain; }

/* Rabatt-Badges & Top-Pin */
.sc24-card-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sc24-discount-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; line-height: 1.2; }
.sc24-discount-badge.is-percent { background: #16a34a; color: #fff; }
.sc24-discount-badge.is-amount { background: #0d9488; color: #fff; }
.sc24-discount-badge.is-free { background: #7c3aed; color: #fff; }
.sc24-discount-badge.is-code { background: #0f172a; color: #fff; }
.sc24-discount-badge.is-deal { background: #2563eb; color: #fff; }
.sc24-pin-badge { display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* Bedingungs-Chips (MBW, Neukunden, App, Versand) */
.sc24-cond-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sc24-cond-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; line-height: 1.25; }
.sc24-cond-chip.is-mbw { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.sc24-cond-chip.is-positive { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.sc24-cond-chip.is-customer { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.sc24-cond-chip.is-channel { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.sc24-cond-chip.is-shipping { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.sc24-card-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sc24-card-cat-tag { font-size: 11px; font-weight: 600; background: #f1f5f9; color: #475569; padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.sc24-card-cat-tag:hover { background: #e2e8f0; color: #0f172a; }
.sc24-title { font-size: 18px; font-weight: 700; margin: 0 0 8px 0; color: #111827; line-height: 1.3; }
.sc24-desc { font-size: 14px; color: #4b5563; margin-bottom: 14px; line-height: 1.5; }
.sc24-meta { font-size: 12px; color: #6b7280; margin-bottom: 12px; }

/* Buttons & Mehr-laden */
.sc24-btn { width: 100%; padding: 11px 14px; border: none; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; text-align: center; text-decoration: none; display: inline-block; box-sizing: border-box; transition: background 0.15s ease; }
.sc24-btn:hover { background: #15803d; color: #fff; }
.sc24-btn.is-revealed { background: #0f172a; border: 2px dashed #16a34a; letter-spacing: 0.5px; }
.sc24-btn.is-revealed:hover { background: #1e293b; }
.sc24-btn.is-deal { background: #2563eb; }
.sc24-btn.is-deal:hover { background: #1d4ed8; }
.sc24-load-more-wrap { text-align: center; margin-top: 26px; }
.sc24-load-more-wrap[hidden] { display: none !important; }
.sc24-load-more-btn { padding: 12px 26px; border: 2px solid #2563eb; border-radius: 10px; background: #fff; color: #2563eb; font-weight: 700; font-size: 15px; cursor: pointer; transition: all 0.15s ease; }
.sc24-load-more-btn:hover:not(:disabled) { background: #2563eb; color: #fff; }
.sc24-load-more-btn:disabled { opacity: 0.6; cursor: wait; }
.sc24-notice { font-size: 12px; color: #6b7280; margin-top: 20px; }
.sc24-empty-msg { display: none; padding: 20px; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; color: #475569; margin-top: 12px; }

/* Nutzer-Voting */
.sc24-vote-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.sc24-vote-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: #64748b; }
.sc24-rate-badge { font-weight: 700; padding: 2px 7px; border-radius: 999px; font-size: 11px; }
.sc24-rate-badge.is-good { background: #dcfce7; color: #166534; }
.sc24-rate-badge.is-mid { background: #fef3c7; color: #92400e; }
.sc24-rate-badge.is-low { background: #fee2e2; color: #991b1b; }
.sc24-rate-badge.is-none { background: #f1f5f9; color: #64748b; font-weight: 500; }
.sc24-vote-actions { display: flex; gap: 8px; }
.sc24-vote-btn { flex: 1; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.15s ease; }
.sc24-vote-btn:hover:not(:disabled) { border-color: #94a3b8; background: #fff; }
.sc24-vote-btn.is-up:hover:not(:disabled),
.sc24-vote-btn.is-up.is-chosen { border-color: #16a34a; background: #f0fdf4; color: #15803d; }
.sc24-vote-btn.is-down:hover:not(:disabled),
.sc24-vote-btn.is-down.is-chosen { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.sc24-vote-btn:disabled { cursor: default; opacity: 0.85; }
.sc24-vote-msg { font-size: 11px; color: #475569; margin-top: 6px; min-height: 14px; }

/* Klassisches Gutschein-Modal-Popup */
.sc24-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.68); backdrop-filter: blur(3px); z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.sc24-modal-backdrop[hidden] { display: none !important; }
.sc24-modal-dialog { position: relative; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 28px 24px 22px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28); box-sizing: border-box; animation: sc24ModalIn 0.18s ease-out; }
@keyframes sc24ModalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.sc24-modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: none; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sc24-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.sc24-modal-header { text-align: center; margin-bottom: 18px; }
.sc24-modal-logo-wrap { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; margin-bottom: 10px; }
.sc24-modal-logo-wrap[hidden] { display: none !important; }
.sc24-modal-logo-wrap img { max-height: 44px; max-width: 140px; object-fit: contain; }
.sc24-modal-shop { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #2563eb; margin-bottom: 4px; }
.sc24-modal-title { margin: 0; font-size: 21px; line-height: 1.3; color: #0f172a; font-weight: 800; }
.sc24-modal-code-section { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 14px; }
.sc24-modal-hint { margin: 0 0 10px 0; font-size: 13px; color: #475569; }
.sc24-modal-code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 2px dashed #16a34a; border-radius: 10px; padding: 10px 12px 10px 16px; cursor: pointer; }
.sc24-modal-code-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: 1.2px; color: #0f172a; word-break: break-all; flex: 1; text-align: center; user-select: all; }
.sc24-modal-copy-btn { padding: 9px 15px; border: none; border-radius: 8px; background: #16a34a; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0; transition: background 0.15s; }
.sc24-modal-copy-btn:hover { background: #15803d; }
.sc24-modal-copy-btn.is-copied { background: #0f172a; }
.sc24-modal-copy-status { margin-top: 8px; font-size: 12px; font-weight: 600; color: #15803d; min-height: 16px; }
.sc24-modal-conds { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sc24-modal-conds[hidden] { display: none !important; }
.sc24-modal-details { font-size: 13px; color: #475569; background: #f8fafc; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; line-height: 1.5; }
.sc24-modal-details[hidden] { display: none !important; }
.sc24-modal-desc { margin: 0; }
.sc24-modal-end { margin: 8px 0 0 0; font-size: 12px; color: #64748b; font-weight: 600; }
.sc24-modal-end[hidden] { display: none !important; }
.sc24-modal-footer { text-align: center; }
.sc24-modal-go-btn { font-size: 15px; padding: 13px 16px; }
.sc24-modal-affiliate-note { font-size: 11px; color: #64748b; margin: 10px 0 0 0; line-height: 1.4; }

/* Shop- & Kategorie-Landingpages */
.sc24-shop-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 24px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 28px; }
.sc24-shop-hero-logo { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; justify-content: center; min-width: 140px; min-height: 80px; }
.sc24-shop-hero-logo img { max-height: 64px; max-width: 160px; object-fit: contain; }
.sc24-shop-hero-info { flex: 1; min-width: 240px; }
.sc24-shop-hero-info h1 { margin: 0 0 8px 0; font-size: 28px; line-height: 1.2; color: #0f172a; }
.sc24-badge { display: inline-block; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.sc24-shop-cta { width: auto; padding: 10px 18px; }
.sc24-seo-box,
.sc24-faq-box { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; line-height: 1.7; color: #1f2937; }
.sc24-seo-box h2,
.sc24-seo-box h3,
.sc24-faq-box h2 { margin-top: 0; color: #111827; }
.sc24-faq-item { border-top: 1px solid #e5e7eb; padding: 12px 0; }
.sc24-faq-item:first-of-type { border-top: none; }
.sc24-faq-item summary { font-weight: 700; cursor: pointer; color: #111827; }
.sc24-faq-item p { margin: 8px 0 0 0; color: #4b5563; }

/* A-Z Shop-Verzeichnis */
.sc24-az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.sc24-az-nav a,
.sc24-az-nav span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; box-sizing: border-box; }
.sc24-az-nav a { background: #f1f5f9; color: #1e293b; border: 1px solid #e2e8f0; }
.sc24-az-nav a:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.sc24-az-nav span.is-disabled { background: #f8fafc; color: #cbd5e1; border: 1px solid #f1f5f9; cursor: default; }
.sc24-az-group { margin-bottom: 28px; scroll-margin-top: 24px; }
.sc24-az-heading { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 12px 0; padding-bottom: 6px; border-bottom: 2px solid #e2e8f0; }
.sc24-az-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sc24-az-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: #111827; transition: border-color 0.15s, box-shadow 0.15s; }
.sc24-az-item:hover { border-color: #2563eb; box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08); }
.sc24-az-logo-wrap { width: 44px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f8fafc; border-radius: 6px; overflow: hidden; }
.sc24-az-logo-wrap img { max-width: 40px; max-height: 28px; object-fit: contain; }
.sc24-az-initial { font-weight: 800; font-size: 15px; color: #2563eb; }
.sc24-az-info { min-width: 0; flex: 1; }
.sc24-az-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sc24-az-count { font-size: 12px; color: #16a34a; font-weight: 600; }
.sc24-az-count.is-zero { color: #94a3b8; font-weight: 400; }

/* Top-Shops Logo-Raster [sparcode24_top_shops] – horizontale Mini-Karten */
.sc24-top-shops-wrap { margin-bottom: 22px; }
.sc24-top-shops-heading { font-size: 19px; font-weight: 800; color: #0f172a; margin: 0 0 12px 0; }
.sc24-top-shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.sc24-top-shop-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    text-align: left;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sc24-top-shop-card:hover { border-color: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.sc24-top-shop-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 30px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sc24-top-shop-logo img { max-height: 24px; max-width: 38px; object-fit: contain; }
.sc24-top-shop-monogram {
    width: 44px;
    height: 30px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sc24-top-shop-card > .sc24-top-shop-monogram { grid-column: 1; grid-row: 1 / span 2; }
.sc24-top-shop-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc24-top-shop-count {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    background: transparent;
    color: #15803d;
    padding: 0;
    border-radius: 0;
}

/* Amazon Creators API Zeitstempel & Preis-Disclaimer */
.sc24-amz-disclaimer {
    font-size: 11px;
    line-height: 1.4;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 8px;
    margin: 0 0 10px 0;
}

@media (max-width: 600px) {
    .sc24-top-shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sc24-top-shop-card { grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 7px 8px; }
    .sc24-top-shop-logo,
    .sc24-top-shop-monogram { width: 36px; height: 26px; }
    .sc24-top-shop-logo img { max-height: 20px; max-width: 32px; }
}

