/* ═══════════════════════════════════════════════════════════
   EMPFEHLUNGEN
   ═══════════════════════════════════════════════════════════ */

.kke-wrap {
    font-family: var(--rz-font, 'Inter', sans-serif);
    font-weight: var(--rz-weight-body, 300);
    color: var(--rz-color-text, #1a1a1a);
    width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Überschrift ───────────────────────────────────────────── */

.kke-heading {
    font-family: var(--rz-font-heading, 'Inter', sans-serif);
    font-size: 26px;
    font-weight: var(--rz-weight-heading, 600);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--rz-color-text, #1a1a1a);
    margin: 0 0 16px;
}

/* ── Werbehinweis ──────────────────────────────────────────── */

.kke-disclosure {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--rz-color-muted, #8a8a8a);
    font-weight: 300;
    margin: 0 0 40px;
    padding: 15px 18px;
    background: var(--rz-color-bg-soft, #fafafa);
    border-left: 2px solid var(--rz-color-line, #e8e8e8);
}
.kke-disclosure a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Filter ────────────────────────────────────────────────── */

.kke-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.kke-filter-btn {
    font-family: var(--rz-font, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    border: 1px solid var(--rz-color-line, #e8e8e8);
    border-radius: var(--rz-btn-radius, 0px);
    background: transparent;
    color: var(--rz-color-muted, #8a8a8a);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.kke-filter-btn:hover {
    border-color: var(--rz-color-accent, #1a1a1a);
    color: var(--rz-color-text, #1a1a1a);
}
.kke-filter-btn.active {
    background: var(--rz-color-accent, #1a1a1a);
    border-color: var(--rz-color-accent, #1a1a1a);
    color: #fff;
}

/* ── Raster ────────────────────────────────────────────────── */

.kke-grid {
    display: grid;
    grid-template-columns: repeat(var(--rz-grid-cols, 4), minmax(0, 1fr));
    gap: 36px 24px;
}

/* ── Kachel ────────────────────────────────────────────────── */

.kke-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    animation: kkeFadeIn 0.25s ease both;
}
.kke-card.kke-hidden { display: none; }

.kke-grid--border .kke-card {
    border: 1px solid var(--rz-color-line, #e8e8e8);
    border-radius: var(--rz-img-radius, 0px);
    padding: 14px;
    background: #fff;
    transition: border-color 0.2s ease;
}
.kke-grid--border .kke-card:hover { border-color: var(--rz-color-accent, #1a1a1a); }

.kke-grid--shadow .kke-card {
    border-radius: var(--rz-img-radius, 0px);
    padding: 14px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease;
}
.kke-grid--shadow .kke-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.11); }

/* ── Bild ──────────────────────────────────────────────────── */

.kke-card-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: var(--rz-card-ratio, 1/1);
    overflow: hidden;
    background: #f4f4f4;
    border-radius: var(--rz-img-radius, 0px);
    text-decoration: none;
}
.kke-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.kke-card:hover .kke-card-img { transform: scale(1.04); }

.kke-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.kke-card-img--placeholder span { font-size: 40px; opacity: 0.4; }

/* ── Titel & Beschreibung ──────────────────────────────────── */

.kke-card-title {
    font-family: var(--rz-font-heading, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: var(--rz-weight-heading, 600);
    line-height: 1.35;
    letter-spacing: -0.003em;
    color: var(--rz-color-text, #1a1a1a);
    margin: 14px 0 8px;
    padding: 0;
    overflow-wrap: break-word;
}

.kke-card-desc {
    font-size: 13px;
    line-height: 1.55;
    font-weight: var(--rz-weight-body, 300);
    color: var(--rz-color-muted, #8a8a8a);
    margin: 0 0 12px;
}

/* Buttons aller Kacheln einer Reihe sitzen auf gleicher Hoehe */
.kke-card .kke-cta { margin-top: auto; }
.kke-card-title:last-of-type { margin-bottom: 12px; }

/* ── CTA-Button ────────────────────────────────────────────── */

.kke-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    font-family: var(--rz-font, 'Inter', sans-serif);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-align: center;
    padding: 11px 18px;
    border: 1.5px solid var(--rz-color-accent, #1a1a1a);
    border-radius: var(--rz-btn-radius, 0px);
    background: transparent;
    color: var(--rz-color-accent, #1a1a1a);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.kke-cta:hover,
.kke-cta:focus {
    background: var(--rz-color-accent, #1a1a1a);
    color: #fff;
    text-decoration: none;
}
.kke-cta:focus-visible {
    outline: 2px solid var(--rz-color-accent, #1a1a1a);
    outline-offset: 2px;
}

/* ── Leer ──────────────────────────────────────────────────── */

.kke-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--rz-color-muted, #8a8a8a);
}
.kke-empty p { font-size: 15px; margin: 0; }

@keyframes kkeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .kke-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 780px) {
    .kke-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}
@media (max-width: 420px) {
    .kke-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .kke-card-title { font-size: 14px; margin: 12px 0 8px; }
    .kke-card-desc  { font-size: 12.5px; margin-bottom: 10px; }
    .kke-cta { font-size: 11.5px; padding: 10px 12px; }
    .kke-filter-btn { font-size: 12px; padding: 9px 15px; }
    .kke-disclosure { margin-bottom: 30px; padding: 13px 15px; }
}


/* ═══════════════════════════════════════════════════════════
   EMPFEHLUNGEN MIT RABATTCODE
   Grosse Karten in zwei Spalten, oberhalb der normalen Kacheln
   ═══════════════════════════════════════════════════════════ */

.kke-codes {
    margin-bottom: 52px;
}

.kke-codes-title {
    font-family: var(--rz-font-heading, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: var(--rz-weight-heading, 600);
    letter-spacing: 0.02em;
    color: var(--rz-color-text, #1a1a1a);
    margin: 0 0 18px;
}

.kke-codes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* ── Karte ─────────────────────────────────────────────────── */

.kke-code-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rz-color-line, #e8e8e8);
    border-radius: var(--rz-img-radius, 0px);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    animation: kkeFadeIn 0.25s ease both;
}
.kke-code-card:hover { border-color: var(--rz-color-accent, #1a1a1a); }
.kke-code-card.kke-hidden { display: none; }

.kke-grid--shadow.kke-codes-grid .kke-code-card {
    border-color: transparent;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.kke-grid--shadow.kke-codes-grid .kke-code-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.11);
}

/* ── Bild links ────────────────────────────────────────────── */

.kke-code-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: var(--rz-img-radius, 0px);
    text-decoration: none;
}
.kke-code-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.kke-code-card:hover .kke-code-img { transform: scale(1.035); }

.kke-code-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}
.kke-code-img--placeholder span { font-size: 38px; opacity: 0.4; }

/* ── Text rechts ───────────────────────────────────────────── */

.kke-code-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.kke-code-name {
    font-family: var(--rz-font-heading, 'Inter', sans-serif);
    font-size: 17px;
    font-weight: var(--rz-weight-heading, 600);
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--rz-color-text, #1a1a1a);
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
}

.kke-code-desc {
    font-size: 14px;
    line-height: 1.6;
    font-weight: var(--rz-weight-body, 300);
    color: var(--rz-color-muted, #8a8a8a);
    margin: 0;
}

/* ── Code zum Kopieren ─────────────────────────────────────── */

.kke-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    font-family: var(--rz-font, 'Inter', sans-serif);
    padding: 9px 14px;
    border: 1.5px dashed var(--rz-color-accent, #1a1a1a);
    border-radius: var(--rz-btn-radius, 0px);
    background: var(--rz-color-bg-soft, #fafafa);
    cursor: pointer;
    transition: background 0.16s ease;
    margin: 2px 0;
}
.kke-code-chip:hover { background: #f1f1f1; }
.kke-code-chip:focus-visible {
    outline: 2px solid var(--rz-color-accent, #1a1a1a);
    outline-offset: 2px;
}

.kke-code-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rz-color-muted, #8a8a8a);
}

.kke-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rz-color-text, #1a1a1a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kke-code-action {
    font-size: 11px;
    font-weight: 500;
    color: var(--rz-color-muted, #8a8a8a);
    white-space: nowrap;
}
.kke-code-chip.is-copied {
    border-style: solid;
    background: #f0fdf4;
}
.kke-code-chip.is-copied .kke-code-action { color: #0d7c3d; }

/* ── Button gefüllt ────────────────────────────────────────── */

.kke-cta--filled {
    align-self: flex-start;
    background: var(--rz-color-accent, #1a1a1a);
    color: #fff;
    padding: 12px 24px;
    font-size: 13px;
    margin-top: 2px;
}
.kke-cta--filled:hover,
.kke-cta--filled:focus {
    background: transparent;
    color: var(--rz-color-accent, #1a1a1a);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .kke-code-card { gap: 18px; padding: 16px; }
    .kke-code-name { font-size: 16px; }
}

@media (max-width: 860px) {
    .kke-codes-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 520px) {
    /* Bild wandert nach oben, sonst wird die Textspalte zu schmal */
    .kke-code-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: stretch;
    }
    .kke-code-img-wrap { aspect-ratio: 16 / 10; }
    .kke-code-body     { align-items: stretch; }
    .kke-cta--filled   { align-self: stretch; }
    .kke-code-chip     { justify-content: center; }
}
