/* Carousel-specific styles */
.carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.carousel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.carousel-head h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.carousel-head .sub {
    color: var(--ink-2);
    font-size: 14px;
    margin-top: 4px;
}
.carousel-controls {
    display: flex;
    gap: 6px;
}
.car-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    transition: all 0.2s;
}
.car-btn:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.car-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.tile.dark .car-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.tile.dark .car-btn:hover {
    background: var(--bg);
    color: var(--ink);
}

.car-track {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.car-track::-webkit-scrollbar {
    display: none;
}

.book {
    flex: 0 0 auto;
    width: 170px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-snap-align: start;
}
.book.lg {
    width: 200px;
}
.book .cover {
    aspect-ratio: 2/3;
    background: var(--bg-2);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.04),
        0 12px 28px -16px rgba(0, 0, 0, 0.25);
}
.book .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book .cover .new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
}
.book .meta {
    padding: 0 2px;
}
.book .title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile.dark .book .title {
    color: var(--bg);
}
.book .pub {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tile.dark .book .pub {
    color: rgba(255, 255, 255, 0.55);
}

/* Satz der Woche */
.satz {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: "Barlow", serif;
}
.satz blockquote {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-wrap: balance;
    margin-top: 8px;
}
.satz .quote-mark {
    font-size: 38px;
    margin-bottom: -8px;
}
.satz .src {
    font-size: 11px;
    padding-top: 10px;
    margin-top: 12px;
}
.satz .src {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    justify-content: space-between;
}
.satz .src b {
    color: #fff;
    font-weight: 700;
}
.quote-mark {
    font-size: 64px;
    line-height: 0.6;
    color: rgba(255, 255, 255, 0.35);
    font-family: Georgia, serif;
}

/* Surprise me balloon */
.surprise-tile {
    background: linear-gradient(135deg, #ffe8c7 0%, #f2d9cc 60%, #e9c5da 100%);
    border-color: transparent;
    cursor: pointer;
    overflow: visible;
}
.balloon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 180px;
    height: 220px;
    pointer-events: none;
}
.balloon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.15));
}
.balloon-anim {
    animation: float 4.2s ease-in-out infinite;
    transform-origin: 50% 100%;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}
.surprise-tile h2 {
    font-size: 32px;
    line-height: 1;
    max-width: 9ch;
}
.surprise-tile .play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    align-self: flex-start;
    margin-top: 14px;
}

/* Videos / Events */
.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.thumb-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}
.tile.cream .thumb-row {
    background: rgba(255, 255, 255, 0.55);
}
.thumb-row:hover {
    background: rgba(255, 255, 255, 0.14);
}
.tile.cream .thumb-row:hover {
    background: var(--paper);
}
.thumb {
    width: 64px;
    height: 44px;
    border-radius: 6px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--ink-2), var(--ink));
    position: relative;
    overflow: hidden;
}
.thumb.alt-1 {
    background: linear-gradient(135deg, #c7522a, #7a2d18);
}
.thumb.alt-2 {
    background: linear-gradient(135deg, #2e2a4a, #4a5b3a);
}
.thumb.alt-3 {
    background: linear-gradient(135deg, #6e5a48, #2a2218);
}
.thumb .play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
}
.thumb-meta {
    min-width: 0;
    flex: 1;
}
.thumb-meta .t {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thumb-meta .s {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tile.dark .thumb-meta .s {
    color: rgba(255, 255, 255, 0.6);
}

/* Event tile (cream-style) */
.event-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}
.event-row:first-of-type {
    border-top: 0;
}
.date-block {
    text-align: center;
    background: var(--paper);
    border-radius: 8px;
    padding: 6px 0;
    border: 1px solid var(--line);
}
.date-block .d {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.date-block .m {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 3px;
}
.event-meta .t {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}
.event-meta .s {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
}
.event-tag {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.event-tag.b {
    background: #dce3d5;
    color: var(--moss);
}
.event-tag.c {
    background: #e1dfec;
    color: var(--plum);
}

/* Buchhandlungsfinder */
.finder {
    position: relative;
    height: 100%;
    padding: 0;
}
.finder-content {
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}
.finder-map {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 30% 40%,
            rgba(199, 82, 42, 0.1),
            transparent 32%
        ),
        radial-gradient(
            circle at 70% 65%,
            rgba(46, 42, 74, 0.1),
            transparent 30%
        ),
        #e5fdee;
    z-index: 1;
}
.finder-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
}
.pin {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border: 3px solid #fff;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.pin.you {
    background: var(--ink);
    width: 12px;
    height: 12px;
}
.pin.you::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    opacity: 0.35;
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}
.finder-card {
    margin-top: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.finder-card .b {
    font-size: 13px;
    font-weight: 600;
}
.finder-card .s {
    font-size: 11px;
    color: var(--ink-3);
}
.finder-card .dist {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Verlage */
.verlage-grid {
    margin-top: 14px;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}
.verlag-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 78px;
    transition: all 0.2s;
    cursor: pointer;
}
.verlag-card:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}
.verlag-card .name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
}
.verlag-card .count {
    font-size: 10px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 6px;
}
.verlag-card .swatch {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent), #f2d9cc);
    align-self: flex-end;
}

/* SWIPS */
.swips-tile {
    background: var(--paper);
    border: 1px solid var(--line);
}
.swips-logo {
    width: 100%;
    aspect-ratio: 5/2;
    background: var(--bg);
    border-radius: 8px;
    display: grid;
    place-items: center;
    margin-top: 14px;
    padding: 16px 24px;
    border: 1px solid var(--line);
}
.swips-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.swips-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.swips-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.4;
}
.swips-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 6px;
    flex: 0 0 auto;
}

/* Footer */
.footer {
    max-width: 1480px;
    margin: 0 auto;
    padding: 40px 24px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    font-size: 13px;
    color: var(--ink-2);
}
.footer h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.005em;
}
.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer .brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.footer .brand .dot {
    color: var(--accent);
}
.footer .copy {
    margin-top: 14px;
    line-height: 1.55;
    max-width: 36ch;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 18, 14, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal-backdrop.open {
    display: flex;
}
.modal {
    width: min(560px, 100%);
    background: var(--paper);
    border-radius: 18px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
}
.modal h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.modal .step-num {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink-2);
}
.modal-close:hover {
    background: var(--bg);
}
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}
.choice {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
}
.choice .emo {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}
.choice:hover,
.choice.sel {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.choices.duo {
    grid-template-columns: 1fr 1fr;
}
.modal-footer {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dots {
    display: flex;
    gap: 6px;
}
.dots i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    display: inline-block;
}
.dots i.on {
    background: var(--ink);
}
.btn-primary {
    background: var(--ink);
    color: var(--bg);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-ghost {
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-2);
}

/* Result step */
.result {
    display: flex;
    gap: 20px;
    margin-top: 22px;
    padding: 20px;
    background: var(--bg);
    border-radius: 14px;
}
.result .cover {
    width: 110px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.3);
}
.result .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.result .info .t {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.result .info .pub {
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.result .info .why {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 12px;
    line-height: 1.5;
}
