@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════
   FLASCHENFINDER | coupons.css (Gutscheinseite)
   Mobile first. Der Gutschein ist ein Ticket: Perforation und Kerben
   sind Gestaltung, bewegt wird beim Hover nur die Karte selbst:
   dieselben Werte wie bei den Produktkacheln der Startseite.
   ═══════════════════════════════════════════════════════════════ */

.cpn-page {
    --cpn-paper:       #faf9f7;
    --cpn-perf:        #cfcac0;
    --cpn-coupon-bg:   #FBF3E4;
    --cpn-coupon-text: #7A4A00;
    --cpn-code-border: #b9c9c6;
}

/* Breite und Ränder wie .ff-container (Kopfleiste, Startseite), damit
   der Inhalt auf jeder Seite an derselben Kante beginnt wie das Logo. */
.cpn-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 640px) { .cpn-container { padding: 0 20px; } }
@media (min-width: 768px) { .cpn-container { padding: 0 24px; } }

/* ── Bausteine ──────────────────────────────────────────────── */
.cpn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--ff-radius-md);
    background: var(--ff-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--ff-transition);
}

.cpn-btn:hover, .cpn-btn:focus-visible { background: var(--ff-primary-dark); color: #fff; }

.cpn-btn--ghost {
    background: #fff;
    color: var(--ff-primary);
    border: 1px solid var(--ff-primary);
}

.cpn-btn--ghost:hover { background: var(--ff-bg-subtle); color: var(--ff-primary-dark); }

.cpn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-pill);
    background: #fff;
    color: var(--ff-text);
    font-size: 13.5px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.cpn-chip:hover { border-color: var(--ff-primary); color: var(--ff-primary-dark); }
.cpn-chip--on { background: var(--ff-primary-dark); border-color: var(--ff-primary-dark); color: #fff; font-weight: 600; }
.cpn-chip--on:hover { background: var(--ff-primary); color: #fff; }
.cpn-chip--sel { background: #e4f0f0; border-color: var(--ff-primary); color: var(--ff-primary-dark); font-weight: 600; }
.cpn-chip__n { font-size: 12px; color: var(--ff-text-light); }
.cpn-chip--on .cpn-chip__n, .cpn-chip--sel .cpn-chip__n { color: inherit; opacity: .8; }

.cpn-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ff-text-muted); }
.cpn-crumbs a { color: var(--ff-text-muted); }

/* ── Kopf ───────────────────────────────────────────────────── */
.cpn-head {
    background: var(--cpn-paper);
    border-bottom: 1px solid var(--ff-border-light);
    padding: 18px 0 22px;
}

.cpn-head__grid { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }

.cpn-head__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.cpn-head__lead {
    margin: 10px 0 0;
    max-width: 62ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ff-text-muted);
}

.cpn-stats { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }

.cpn-stats li {
    flex: 1 1 0;
    padding: 12px 14px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
}

.cpn-stats strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

.cpn-stats span { font-size: 11.5px; color: var(--ff-text-muted); }

@media (min-width: 768px) {
    .cpn-head { padding: 28px 0 32px; }
    .cpn-head__title { font-size: 40px; }
    .cpn-head__lead { font-size: 16px; }
    .cpn-head__grid { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
    .cpn-stats { flex: 0 0 auto; }
    .cpn-stats li { min-width: 140px; padding: 14px 16px; }
    .cpn-stats strong { font-size: 26px; }
}

/* ── Filterleiste ───────────────────────────────────────────── */
.cpn-filterbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--ff-border-light);
}

.cpn-filterbar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.cpn-chiplist {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.cpn-chiplist::-webkit-scrollbar { display: none; }
.cpn-sep { display: block; width: 1px; height: 24px; background: var(--ff-border); }

@media (min-width: 1024px) {
    .cpn-chiplist { flex-wrap: wrap; overflow: visible; }
}

.cpn-sort { position: relative; flex: 0 0 auto; }
.cpn-sort > summary { cursor: pointer; list-style: none; }
.cpn-sort > summary::-webkit-details-marker { display: none; }
.cpn-sort__label { color: var(--ff-text-muted); font-size: 12.5px; }
.cpn-chip--sort strong { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 768px) {
    .cpn-chip--sort strong { max-width: none; }
}

@media (max-width: 767px) {
    .cpn-sort__label { display: none; }
}

.cpn-sort__list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
    box-shadow: var(--ff-shadow-lg);
}

.cpn-sort__list a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--ff-radius-sm);
    font-size: 14px;
    color: var(--ff-text);
    text-decoration: none;
}

.cpn-sort__list a:hover { background: var(--ff-bg-subtle); }
.cpn-sort__list a.is-on { background: #e4f0f0; color: var(--ff-primary-dark); font-weight: 600; }

/* ── Abschnittskopf ─────────────────────────────────────────── */
.cpn-section__head { display: flex; flex-direction: column; gap: 3px; margin: 22px 0 14px; }

.cpn-section__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.cpn-section__note { margin: 0; font-size: 12px; color: var(--ff-text-muted); }

@media (min-width: 768px) {
    .cpn-section__head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; margin: 30px 0 18px; }
    .cpn-section__title { font-size: 25px; }
}

/* ── Raster ─────────────────────────────────────────────────── */
.cpn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpn-grid > li { display: flex; }

@media (min-width: 700px) {
    .cpn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (min-width: 1140px) {
    .cpn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ── Das Ticket ─────────────────────────────────────────────── */
.ticket {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid var(--ff-border);
    border-radius: 14px;
    box-shadow: var(--ff-shadow-md);
    /* Bewegung wie die Karten auf der Startseite */
    transition: box-shadow var(--ff-transition), transform var(--ff-transition);
}

.ticket:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-3px); }

.ticket__main {
    flex-grow: 1;
    min-width: 0;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ticket__shop { display: flex; align-items: center; gap: 10px; }

.ticket__logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    border: 1px solid var(--ff-border);
    background: #f2f0ea;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
}

.ticket__logo--text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ff-text-muted);
}

.ticket__shop-text { display: flex; flex-direction: column; min-width: 0; }
.ticket__shop-name { font-size: 12.5px; font-weight: 600; color: var(--ff-text); overflow-wrap: anywhere; }
.ticket__shop-sub { font-size: 11.5px; color: var(--ff-text-light); }

.ticket__deal {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    /* Lange Komposita wie "Versandkostenfrei" brechen sonst aus der Karte. */
    overflow-wrap: break-word;
    hyphens: auto;
}

.ticket__cond { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ff-text-muted); overflow-wrap: break-word; }

.ticket__meta {
    margin: auto 0 0;
    padding-top: 2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 11.5px;
    color: var(--ff-text-muted);
}

.ticket__soon {
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 8px;
    border-radius: var(--ff-radius-sm);
    background: var(--cpn-coupon-bg);
    color: var(--cpn-coupon-text);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* Abriss: mobil unten, ab 1140 px rechts */
.ticket__stub {
    position: relative;
    padding: 15px 16px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cpn-paper);
    border-radius: 0 0 14px 14px;
}

.ticket__perf {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 1px;
    background-image: linear-gradient(90deg, var(--cpn-perf) 52%, transparent 0);
    background-size: 7px 1px;
    background-repeat: repeat-x;
}

.ticket__notch {
    position: absolute;
    top: -8px;
    width: 14px;
    height: 14px;
    border-radius: 14px;
    background: var(--ff-bg-subtle);
    border: 1px solid var(--ff-border);
}

.ticket__notch--start { left: -8px; }
.ticket__notch--end { right: -8px; }

.ticket__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ticket__code {
    flex-grow: 1;
    min-width: 0;
    padding: 10px;
    border: 1px dashed var(--cpn-code-border);
    border-radius: 7px;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--ff-primary-dark);
    text-align: center;
    overflow-wrap: anywhere;
}

.ticket__nocode { flex-grow: 1; margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ff-text-muted); }

.ticket__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--ff-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--ff-transition);
}

.ticket__go:hover,
.ticket:hover .ticket__go { background: var(--ff-primary-dark); color: #fff; }
.ticket__go.is-copied { background: var(--ff-primary-dark); }

@media (min-width: 1140px) {
    .ticket { flex-direction: row; }
    .ticket__main { padding: 18px 20px; gap: 10px; }
    .ticket__stub {
        width: 184px;
        flex: 0 0 184px;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
        padding: 18px 16px;
        border-radius: 0 14px 14px 0;
    }
    .ticket__perf {
        left: 0;
        right: auto;
        top: 10px;
        bottom: 10px;
        width: 1px;
        height: auto;
        background-image: linear-gradient(var(--cpn-perf) 52%, transparent 0);
        background-size: 1px 7px;
        background-repeat: repeat-y;
    }
    .ticket__notch { left: -8px; right: auto; top: auto; }
    .ticket__notch--start { top: -8px; }
    .ticket__notch--end { bottom: -8px; }
    .ticket__label {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        overflow: visible;
        font-size: 10px;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: #6b665c;   /* 5,4:1 auf dem Papierton; #8a8579 war zu hell */
    }
    .ticket__code { flex-grow: 0; width: 100%; box-sizing: border-box; }
    .ticket__nocode { flex-grow: 0; text-align: center; }
    /* Im senkrechten Abriss darf die Beschriftung umbrechen. */
    .ticket__go {
        width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        padding: 9px 10px;
        font-size: 12.5px;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }
    .ticket__deal { font-size: 21px; }
    /* Titel mit einem sehr langen Wort bekommen einen Grad weniger,
       damit das Wort in eine Zeile passt statt umzubrechen. */
    .ticket__deal--long { font-size: 17px; letter-spacing: -0.01em; }
}

/* ── Kein Treffer ───────────────────────────────────────────── */
.cpn-empty {
    margin: 26px 0 0;
    padding: 24px;
    border: 1px dashed #c9d8d6;
    border-radius: var(--ff-radius-lg);
    background: #f8fbfa;
}

.cpn-empty h2 { margin: 0; font-size: 18px; font-weight: 700; }
.cpn-empty p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--ff-text-muted); }
.cpn-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── So funktioniert es ─────────────────────────────────────── */
.cpn-how {
    margin: 30px 0 0;
    padding: 20px;
    border: 1px solid var(--ff-border-light);
    border-radius: var(--ff-radius-lg);
    background: var(--cpn-paper);
}

.cpn-how__title {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 700;
}

.cpn-how__steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cpn-how__steps li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ff-text-muted); }
.cpn-how__steps strong { color: var(--ff-text); }

.cpn-how__n {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 28px;
    background: #e4f0f0;
    color: var(--ff-primary-dark);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .cpn-how { padding: 26px 28px; }
    .cpn-how__title { font-size: 22px; }
    .cpn-how__steps { flex-direction: row; gap: 28px; }
    .cpn-how__steps li { flex: 1 1 0; }
}

/* ── Fuß ────────────────────────────────────────────────────── */
.cpn-outro {
    margin-top: 30px;
    padding: 24px 0 28px;
    background: var(--ff-bg-subtle);
}

.cpn-outro__grid { display: flex; flex-direction: column; gap: 18px; }
.cpn-outro p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ff-text-muted); }
.cpn-outro a { text-decoration: underline; }

@media (min-width: 900px) {
    .cpn-outro__grid { flex-direction: row; gap: 48px; }
    .cpn-outro__grid p:first-child { flex: 1 1 0; }
    .cpn-outro__grid p:last-child { width: 380px; flex: 0 0 380px; }
}

@media (prefers-reduced-motion: reduce) {
    .cpn-page * { transition: none !important; }
}
