:root {
    --pink: #FF1493;
    --pink-dark: #ac1071;
    --pink-light: #ff70b6;
    --bg: #fdfdfd;
    --text: #333333;
    --muted: #777777;
    --card: #ffffff;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@font-face {
    font-family: 'Segan';
    src: url('font/Segan-Light.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Aleo-Light';
    src: url('font/Aleo-Light.otf') format('opentype');
    font-display: swap;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Aleo-Light", Georgia, serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
header {
    text-align: center;
    padding: 28px 16px 8px;
}
header h1 {
    font-family: 'Segan', "Aleo-Light", serif;
    font-size: clamp(28px, 7vw, 52px);
    line-height: 1.05;
    margin: 0;
    text-shadow: 1px 1px 3px #bbb;
}
header h1 .pink { color: var(--pink); }
header .claim {
    color: var(--muted);
    font-size: clamp(13px, 3.5vw, 18px);
    margin: 8px 0 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    border-radius: 6px;
}
.btn-surprise {
    background: var(--pink);
    color: #fff;
    font-size: clamp(20px, 5vw, 34px);
    padding: 14px 26px;
    border-bottom: 6px solid var(--pink-dark);
    box-shadow: var(--shadow);
    transition: transform .08s ease, background .15s ease;
}
.btn-surprise:hover { background: #f40c8c; }
.btn-surprise:active { transform: translateY(3px); border-bottom-width: 3px; }

.surprise-row { text-align: center; margin: 22px 0 8px; }
.surprise-row .arrows { color: var(--pink); font-size: 26px; vertical-align: middle; }

/* ---------- Tagesdeal ---------- */
.tagesdeal {
    margin: 18px 0;
    background: linear-gradient(135deg, #fff0f8, #ffe3f2);
    border: 2px dashed var(--pink-light);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.tagesdeal .thumb { flex: 0 0 96px; height: 96px; border-radius: 10px; }
.tagesdeal .badge {
    display: inline-block; background: var(--pink); color: #fff;
    font-size: 12px; letter-spacing: 1px; padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase;
}
.tagesdeal h3 { margin: 6px 0 2px; font-size: 20px; }
.tagesdeal p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

/* ---------- Charts ---------- */
.section-title { font-size: 22px; margin: 26px 0 12px; }
.charts { margin-top: 8px; }
.charts-list { list-style: none; margin: 0; padding: 0; }
.charts-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border-radius: 12px; padding: 10px 12px;
    margin-bottom: 10px; box-shadow: var(--shadow);
}
.charts-item .rank {
    font-size: 20px; font-weight: bold; color: var(--pink);
    width: 26px; text-align: center; flex: 0 0 26px;
}
.charts-thumb {
    width: 48px; height: 48px; border-radius: 8px; flex: 0 0 48px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.charts-body { flex: 1; min-width: 0; text-align: left; }
.charts-body strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.charts-body small { color: var(--muted); font-size: 12px; }
.vote-btn {
    border: 1.5px solid #e3e3e3; background: #fff; border-radius: 20px;
    padding: 6px 12px; cursor: pointer; font-size: 16px; transition: all .12s ease;
}
.vote-btn:hover { border-color: var(--pink-light); }
.vote-btn.voted { background: #fff0f8; border-color: var(--pink); }
.charts-cta {
    background: var(--pink); color: #fff; text-decoration: none;
    padding: 8px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap;
}

/* ---------- Filter chips ---------- */
.filters { margin: 22px 0 6px; }
.filters .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    border: 1.5px solid #e3e3e3;
    background: #fff;
    border-radius: 22px;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: all .12s ease;
    white-space: nowrap;
}
.chip:hover { border-color: var(--pink-light); }
.chip.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip .count { opacity: .6; font-size: 12px; }

/* ---------- Grid ---------- */
.result-info { font-size: 14px; color: var(--muted); margin: 18px 0 10px; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .1s ease;
}
.card:hover { transform: translateY(-3px); }
.card .thumb {
    height: 150px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
    color: rgba(255,255,255,.92);
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.share-btn {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 0; cursor: pointer; background: rgba(255,255,255,.85);
    color: var(--pink); font-size: 16px; line-height: 1;
}
.share-btn:hover { background: #fff; }
.card.flash { animation: flash 1s ease 2; }
@keyframes flash {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 0 0 3px var(--pink); }
}
.card .body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card .geilometer {
    align-self: flex-start;
    font-size: 12px; font-weight: bold; color: var(--pink);
    background: #fff0f8; border-radius: 20px; padding: 2px 10px; margin-bottom: 8px;
}
.card h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.25; }
.card .einzeiler { margin: 0 0 14px; font-size: 13px; color: var(--muted); flex: 1; }
.card .cta {
    background: var(--pink); color: #fff; text-align: center;
    padding: 10px; font-size: 15px; border-radius: 8px; text-decoration: none;
    transition: background .15s ease;
}
.card .cta:hover { background: #f40c8c; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid #eee;
    padding: 24px 16px 40px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}
footer a { color: var(--muted); }
footer .legal { margin-top: 10px; }

/* ---------- Toast ---------- */
#toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    background: #333; color: #fff; padding: 10px 18px; border-radius: 24px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 9999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
