:root {
    --bg:            #12141c;
    --panel:         #1b1e29;
    --panel-border:  #2a2f3f;
    --text:          #ecedf2;
    --text-dim:      #8d93a6;
    --gold:          #e7b24b;
    --red:           #e8544f;
    --teal:          #4fd1b0;
    --radius:        10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.5;
}

body {
    background-image:
        radial-gradient(circle at 15% 10%, rgba(231, 178, 75, 0.06), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(232, 84, 79, 0.07), transparent 45%);
}

.top-bar {
    position: relative;
    background-color: var(--bg);
    border-bottom: 1px solid var(--panel-border);
}

.hero-image-wrap {
    position: relative;
    line-height: 0;
    overflow: hidden;
    height: 7.5rem;
}

.top-bar-bg {
    display: block;
    width: 190%;
    max-width: none;
    height: auto;
}

.hero-links-stack {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}
.hero-links-stack .support-link {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 0.4em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { color: var(--text-dim); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.orientation-notice { display: none; }
@media (max-width: 900px) and (orientation: landscape) {
    .orientation-notice {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: var(--bg);
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }
    .orientation-notice p {
        font-size: 1.1rem;
        color: var(--text);
        max-width: 360px;
    }
}

.support-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(18, 20, 28, 0.55);
}
.support-link:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* Top-Nav ist die Desktop-Variante; auf Handys übernimmt die Tab-Bar unten */
.site-nav { display: none; }

.site-main {
    max-width: 640px;
    margin: -1rem auto 0;
    padding: 0 1rem calc(2rem + 3.6rem + env(safe-area-inset-bottom));
    position: relative;
    z-index: 2;
}

body.has-tabbar .site-main {
    padding-bottom: calc(4.5rem + 3.6rem + env(safe-area-inset-bottom));
}

/* --- Werbebanner-Platzhalter unten (AdSense-Anchor-Slot) --- */
.ad-banner-slot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    height: 3.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    background: repeating-linear-gradient(45deg, #1a1c26, #1a1c26 10px, #20222e 10px, #20222e 20px);
    border-top: 1px dashed var(--panel-border);
    color: var(--text-dim);
    font-size: 0.7rem;
    text-align: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ad-banner-slot span { font-weight: 700; color: var(--gold); font-size: 0.75rem; }

body.has-tabbar .ad-banner-slot {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

/* --- Werbe-Interstitial-Platzhalter (Zwischenseite nach dem Swipen) --- */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 250px;
    border: 1px dashed var(--panel-border);
    border-radius: 10px;
    background: repeating-linear-gradient(45deg, #1a1c26, #1a1c26 10px, #20222e 10px, #20222e 20px);
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
}
.ad-placeholder span { font-weight: 700; color: var(--gold); font-size: 1rem; }

.site-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* --- Öffentliche Startseite (index.php) --- */
.landing-split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;
}

.landing-cards-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.2rem 1rem 3.5rem;
}

.landing-card-tilt {
    position: relative;
    display: block;
    width: 44%;
    max-width: 190px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--panel-border);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
    background: var(--panel);
    text-align: center;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.landing-card-tilt:hover { text-decoration: none; }
.landing-card-tilt:hover {
    transform: rotate(0deg) scale(1.12) translateY(-6px) !important;
    z-index: 10 !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
}
.landing-card-newest {
    transform: rotate(-9deg) translate(10px, 6px);
    z-index: 1;
}
.landing-card-popular {
    transform: rotate(9deg) translate(-10px, -6px);
    z-index: 2;
    margin-left: -2.6rem;
}
.landing-card-tilt img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.landing-card-title {
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem 0.6rem;
}

.landing-card-label {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #1a1200;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.landing-content-col {
    padding: 0 1.25rem 1.5rem;
}

.landing-hero-inner { text-align: center; }

.landing-eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 1px;
    color: var(--gold);
    line-height: 1.25;
    margin: 0 0 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.landing-sub {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin: 0 auto 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.landing-cta-row {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}
.landing-cta { padding-left: 1.7rem; padding-right: 1.7rem; }

.landing-stores {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    background: #10121a;
}
.store-badge-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--text-dim);
}
.store-badge small { font-weight: 400; font-size: 0.68rem; }

.landing-info-ticket { text-align: left; }

@media (min-width: 640px) {
    .landing-split { flex-direction: row; align-items: center; }
    .landing-cards-col { flex: 1 1 50%; padding: 2rem; }
    .landing-content-col { flex: 1 1 50%; padding: 1.5rem 2rem 1.5rem 0; }
    .landing-hero-inner, .landing-sub { text-align: left; }
    .landing-cta-row, .landing-stores { justify-content: flex-start; }
    .landing-sub { margin-left: 0; margin-right: 0; }
}

/* --- Zurück / Nach oben: feste Buttons unten links --- */
.back-fab,
.scrolltop-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + 3.6rem + env(safe-area-inset-bottom));
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.back-fab:hover,
.scrolltop-fab:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.scrolltop-fab {
    bottom: calc(4.2rem + 3.6rem + env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.scrolltop-fab.visible { opacity: 1; pointer-events: auto; }

body.has-tabbar .back-fab { bottom: calc(4.5rem + 3.6rem + env(safe-area-inset-bottom) + 0.6rem); }
body.has-tabbar .scrolltop-fab { bottom: calc(4.5rem + 3.6rem + env(safe-area-inset-bottom) + 4rem); }

body.has-tabbar .site-footer { display: none; }

/* --- Bottom-Tab-Bar (Haupt-Navigation auf dem Handy) --- */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    background: var(--panel);
    border-top: 1px solid var(--panel-border);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 10;
}

.tabbar a {
    flex: 1;
    text-align: center;
    padding: 0.85rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    min-height: 44px;
}
.tabbar a:hover { text-decoration: none; }
.tabbar a.active { color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }

/* Ab Tablet-Breite: klassische Top-Nav statt Tab-Bar */
@media (min-width: 720px) {
    .site-nav {
        display: flex;
        justify-content: flex-end;
        gap: 1.4rem;
        padding: 0.6rem 2rem;
        background: var(--bg);
    }
    .site-nav a {
        color: var(--text);
        font-weight: 600;
        font-size: 0.95rem;
    }
    .site-nav a:hover { color: var(--gold); text-decoration: none; }

    .site-main { padding: 0 1.5rem calc(4rem + 3.6rem); margin-top: -8rem; }
    body.has-tabbar .site-main { padding-bottom: calc(4rem + 3.6rem); }
    body.has-tabbar .back-fab { bottom: calc(1rem + 3.6rem); }
    body.has-tabbar .scrolltop-fab { bottom: calc(4.2rem + 3.6rem); }
    body.has-tabbar .site-footer { display: block; }
    .tabbar { display: none; }
}

/* --- Ticket-Panel: die zentrale Formkarte --- */
.ticket {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 1.4rem;
    position: relative;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 720px) {
    .ticket { padding: 2rem; }
}

.ticket-header {
    padding-bottom: 1.2rem;
    margin-bottom: 1.4rem;
    border-bottom: 2px dashed var(--panel-border);
}

.ticket-header .eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.night-title {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
    white-space: nowrap;
}
@media (min-width: 480px) {
    .night-title { font-size: 2rem; }
}

/* --- Formulare --- */
.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.75rem 0.8rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px; /* verhindert automatisches Reinzoomen auf iOS */
    min-height: 44px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 80px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.3rem;
    min-height: 44px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #d1433e; }

.btn-secondary { background: transparent; border: 1px solid var(--panel-border); color: var(--text); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-accept { background: var(--teal); color: #0c1c18; }
.btn-decline { background: transparent; border: 1px solid var(--panel-border); color: var(--text-dim); }

/* --- Meldungen --- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}
.alert-error   { background: rgba(232, 84, 79, 0.12); border: 1px solid var(--red); color: #ffb3b0; }
.alert-success { background: rgba(79, 209, 176, 0.12); border: 1px solid var(--teal); color: var(--teal); }

/* --- Listen (Freunde, Suche, Anfragen) --- */
.list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--panel-border);
    gap: 0.6rem 1rem;
}
.list-item:last-child { border-bottom: none; }
.list-item .who { flex: 1 1 auto; min-width: 0; }

.list-item .who .name { font-weight: 600; }
.list-item .who .handle { color: var(--text-dim); font-size: 0.85rem; }

.actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.list-item-disabled { opacity: 0.5; }
a.list-item:hover { border-color: var(--panel-border); background: rgba(255, 255, 255, 0.03); text-decoration: none; }

/* --- Anleitung: Inhaltsverzeichnis + Illustrationen --- */
.guide-toc {
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.guide-toc h3 { margin-bottom: 0.6rem; font-size: 1rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; }
.guide-toc li { margin-bottom: 0.35rem; font-size: 0.9rem; }
.guide-toc a { color: var(--text); }
.guide-toc a:hover { color: var(--gold); }

.guide-figure {
    margin: 0;
    text-align: center;
}
.guide-figure svg { width: 100%; max-width: 320px; height: auto; border-radius: 10px; }
.guide-figure figcaption { color: var(--text-dim); font-size: 0.78rem; margin-top: 0.4rem; }

.site-main h2[id] { scroll-margin-top: 4.5rem; }

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--panel-border);
    padding: 0.9rem 0;
}
.faq-item:last-of-type { border-bottom: none; }
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '+';
    display: inline-block;
    width: 1.2rem;
    color: var(--gold);
    font-weight: 800;
}
.faq-item[open] summary::before { content: '\2212'; }
.faq-item p { margin: 0.6rem 0 0 1.2rem; }

/* --- Forum --- */
.forum-post {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--panel-border);
}
.forum-post-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.forum-post-head .name { font-weight: 600; font-size: 0.9rem; }
.forum-post-head .handle { color: var(--text-dim); font-size: 0.78rem; }
.forum-post-body { font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }

.muted-note { color: var(--text-dim); font-size: 0.9rem; }

.section-gap { margin-top: 2.2rem; }

.helper-text {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* --- Avatare --- */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10121a;
    border: 1px solid var(--panel-border);
    font-family: 'Bebas Neue', sans-serif;
    color: var(--gold);
}

.avatar-sm { width: 40px; height: 40px; font-size: 1rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.8rem; }

.avatar-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avatar-actions form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.file-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.file-input {
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 100%;
}

.who {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* --- Freunde-Grid --- */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 1.4rem 1rem;
    margin-top: 0.6rem;
}

.friend-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.friend-tile-name {
    font-weight: 600;
    font-size: 0.92rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-wrap {
    position: relative;
}

.avatar-wrap .avatar-lg { width: 92px; height: 92px; font-size: 1.9rem; }

.avatar-link { display: inline-block; border-radius: 50%; transition: opacity 0.15s ease; }
.avatar-link:hover { opacity: 0.85; text-decoration: none; }
.avatar-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.fav-form { position: absolute; top: -6px; right: -6px; margin: 0; }

.fav-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.fav-badge.is-fav {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(231, 178, 75, 0.15);
}

.tile-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: #10121a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.icon-btn-edit { color: var(--teal); }
.icon-btn-edit:hover { border-color: var(--teal); }

.icon-btn-delete { color: var(--red); }
.icon-btn-delete:hover { border-color: var(--red); background: rgba(232, 84, 79, 0.1); }

.nickname-editor { position: relative; }
.nickname-editor summary { list-style: none; }
.nickname-editor summary::-webkit-details-marker { display: none; }

.nickname-editor .nickname-form {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.9rem;
    z-index: 5;
    text-align: left;
}

/* --- Filmabend: Formular-Zeilen & Checkbox-Kacheln --- */
.field-row {
    display: flex;
    gap: 0.8rem;
}
.field-row .field { flex: 1; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.7rem;
}

.topic-subfilter-group {
    border-left: 2px solid var(--gold);
    padding-left: 0.8rem;
    margin-top: 0.4rem;
}

.premium-box {
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 0.2rem 0.9rem 0.9rem;
    margin-top: 1.4rem;
    background: rgba(231, 178, 75, 0.05);
}
.premium-box > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--gold);
    padding: 0.7rem 0;
    list-style: none;
}
.premium-box > summary::-webkit-details-marker { display: none; }
.premium-box > summary::after { content: ' \25BE'; }
.premium-box[open] > summary::after { content: ' \25B4'; }

/* --- Freitext-Themensuche (Premium) --- */
.kw-search-row { display: flex; gap: 0.5rem; align-items: center; }
.kw-search-row input {
    flex: 1;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
}
.kw-results { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.4rem 0; }
.kw-result { text-align: left; justify-content: flex-start; }
.kw-chosen { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.kw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.4rem 0.3rem 0.75rem;
    background: rgba(231, 178, 75, 0.12);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 0.85rem;
}
.kw-chip-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.kw-chip-remove:hover { color: var(--red); }

.checkbox-tile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #10121a;
}

.checkbox-tile:has(input:checked) {
    border-color: var(--gold);
    background: rgba(231, 178, 75, 0.1);
}

.checkbox-tile input { width: auto; min-height: auto; flex-shrink: 0; }
.checkbox-tile-plain { justify-content: flex-start; }

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

.list-item-link {
    color: inherit;
    display: flex;
}
.list-item-link:hover { text-decoration: none; background: rgba(255,255,255,0.02); }

.status-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.status-pending   { background: rgba(231, 178, 75, 0.15); color: var(--gold); }
.status-accepted  { background: rgba(79, 209, 176, 0.15); color: var(--teal); }
.status-declined  { background: rgba(232, 84, 79, 0.12); color: var(--red); }
.status-cancelled { background: rgba(232, 84, 79, 0.12); color: var(--red); }
.status-host      { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* --- Dashboard: Kopfzeile mit Avatar + Mini-Buttons --- */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dash-avatar-link {
    display: inline-block;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-avatar-link:hover { opacity: 0.85; }

.avatar-md { width: 44px; height: 44px; font-size: 1.1rem; }

.dash-greeting {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-header-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.dash-mini-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    background: #10121a;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.dash-mini-btn:hover { border-color: var(--gold); text-decoration: none; color: var(--gold); }

/* --- Dashboard: 3-Spalten-Filmabend-Übersicht, immer nebeneinander, feste Kartengröße --- */
.dash-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.dash-column h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    margin: 0 0 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-column-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin: 0;
}

.dash-night-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    height: 78px;
    padding: 0.4rem 0.3rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #10121a;
    margin-bottom: 0.4rem;
    color: inherit;
    text-align: center;
    overflow: hidden;
}
.dash-night-card .news-badge {
    top: 3px;
    right: 3px;
    width: 15px;
    height: 15px;
    font-size: 0.6rem;
    border-width: 1px;
}
.dash-night-card:hover { border-color: var(--gold); text-decoration: none; }
.dash-night-card:last-child { margin-bottom: 0; }

.dash-night-date {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.1;
}
.dash-night-meta {
    color: var(--text-dim);
    font-size: 0.62rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-night-status {
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.js-countdown-value {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.news-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    color: #1a1200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
    border: 2px solid var(--bg);
    cursor: help;
}

@media (min-width: 480px) {
    .dash-night-card { height: 88px; }
    .dash-night-date { font-size: 0.85rem; }
    .dash-night-meta { font-size: 0.7rem; }
    .dash-night-status { font-size: 0.68rem; }
    .avatar-md { width: 52px; height: 52px; font-size: 1.25rem; }
    .dash-greeting { font-size: 1.5rem; }
    .dash-mini-btn { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
}

/* ============================================================
   Desktop / Tablet-Querformat (ab 900px) – eigenständiges,
   breiteres Layout. Alle Regeln oberhalb (mobile) bleiben davon
   unberührt, das ist bewusst eine zusätzliche, obendrauf gesetzte
   Schicht, keine Ersetzung.
   ============================================================ */
@media (min-width: 900px) {
    .site-main { max-width: 1140px; }

    /* --- Header-Banner: auf Desktop viel mehr vom Filmstreifen zeigen statt eines schmalen, stark gezoomten Slivers --- */
    .top-bar { border-bottom: none; }
    .hero-image-wrap { height: auto; }
    .top-bar-bg { width: 100%; }
    body.landing-page .top-bar-bg { width: 100%; }
    .hero-image-wrap::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 45%;
        background: linear-gradient(to bottom, transparent, var(--bg));
        pointer-events: none;
    }

    /* --- Dashboard-Kopfzeile --- */
    .dash-header { gap: 1rem; }
    .avatar-md { width: 64px; height: 64px; font-size: 1.5rem; }
    .dash-greeting { font-size: 1.9rem; }
    .dash-header-actions { gap: 0.6rem; }
    .dash-mini-btn { padding: 0.55rem 1rem; font-size: 0.88rem; }

    /* --- Filmabend-Erstellen-Button nicht mehr über die volle Breite --- */
    .dash-create-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* --- 3-Spalten-Übersicht: großzügige Zeilen-Karten statt winziger fester Kästchen --- */
    .dash-columns { gap: 1.4rem; margin-top: 1.2rem; }
    .dash-column h4 {
        text-align: left;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 0.7rem;
    }

    .dash-night-card {
        height: auto;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.85rem 1.1rem;
        gap: 0.8rem;
        margin-bottom: 0.6rem;
    }
    .dash-night-card:hover { transform: translateX(2px); }

    .dash-night-info { min-width: 0; }
    .dash-night-date { font-size: 1rem; }
    .dash-night-meta {
        font-size: 0.82rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .dash-night-status {
        font-size: 0.8rem;
        flex-shrink: 0;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        white-space: nowrap;
        padding: 0.3rem 0.6rem;
    }

    .dash-night-card .news-badge {
        top: -6px;
        right: -6px;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    /* --- Freunde-Kacheln etwas großzügiger --- */
    .friends-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.8rem 1.2rem; }

    /* --- Profil: beide Boxen nebeneinander --- */
    .profile-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .profile-layout .ticket.section-gap { margin-top: 0; }

    /* --- Filmauswahl/Swipe/Rangliste: bewusst schmal & zentriert, keine riesige Karte --- */
    .ticket-narrow {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    /* --- Filmabend-Ansicht: Chat als eigene Spalte, DOM-Reihenfolge bleibt unangetastet --- */
    .night-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 1.5rem;
        align-items: start;
    }
    .night-col-a { grid-column: 1; grid-row: 1; }
    .night-col-b { grid-column: 1; grid-row: 2; }
    .night-col-chat {
        grid-column: 2;
        grid-row: 1 / 3;
        background: #10121a;
        border: 1px solid var(--panel-border);
        border-radius: 10px;
        padding: 1rem;
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    .night-col-chat .chat-box { max-height: 480px; }

    /* --- Öffentliche Startseite: großzügiger --- */
    .landing-split { margin-top: -1.7rem; }
    .landing-eyebrow { font-size: 2.6rem; }
    .landing-sub { font-size: 1.1rem; }
    .landing-card-tilt { max-width: 230px; }
    .landing-card-title { font-size: 0.9rem; }
}

/* --- Filmauswahl: Swipe-Karte --- */
.movie-card {
    text-align: center;
}

.movie-poster {
    width: 100%;
    max-width: 280px;
    border-radius: 10px;
    border: 1px solid var(--panel-border);
    margin: 0 auto 1rem;
    display: block;
}

.movie-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.movie-year { color: var(--text-dim); font-family: 'Work Sans', sans-serif; font-size: 1rem; }

.movie-card p { text-align: left; font-size: 0.92rem; }
.provider-line { color: var(--teal) !important; }

.tmdb-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}
.tmdb-rating .muted-note { font-weight: 400; }

.swipe-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn-swipe { flex: 1; }

/* --- Echtes Swipen: Karte, Stempel, Tutorial --- */
.swipe-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.swipe-card {
    position: relative;
    user-select: none;
    cursor: grab;
    will-change: transform;
    width: 100%;
    max-width: 240px;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card .movie-poster { margin-bottom: 0; }

.swipe-seen-overlay {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(18, 20, 28, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.25rem 0.45rem;
    font-size: 0.68rem;
    color: var(--text);
    cursor: pointer;
}
.swipe-seen-overlay input { width: auto; min-height: auto; margin: 0; }

.swipe-card-noposter {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--text-dim);
}

.movie-info { margin-top: 1rem; }

.swipe-stamp {
    position: absolute;
    top: 1.2rem;
    padding: 0.3rem 0.9rem;
    border: 3px solid currentColor;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    transform: rotate(-12deg);
}
.swipe-stamp-yes  { left: 1rem; color: var(--teal); }
.swipe-stamp-no   { right: 1rem; color: var(--red); transform: rotate(12deg); }
.swipe-stamp-never {
    left: 50%;
    top: 1.2rem;
    transform: translateX(-50%) rotate(0);
    color: var(--gold);
    border: 4px solid var(--red);
    background: rgba(18, 20, 28, 0.55);
    font-size: 1.7rem;
    padding: 0.4rem 1.1rem;
    z-index: 2;
}

.round-title-small {
    font-size: 1.7rem;
}

.ticket-header-tight {
    padding-bottom: 0.3rem;
    margin-bottom: 0.4rem;
}

.active-filters-inline {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.swipe-arrow-actions {
    display: flex;
    gap: 0.5rem;
    margin: 0.2rem 0 0.8rem;
}

.swipe-arrow-btn {
    flex: 1;
    min-height: 46px;
    padding: 0.6rem 0.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    border: none;
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.swipe-arrow-btn:hover { opacity: 0.85; }

.swipe-arrow-no {
    background: var(--red);
    clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 28% 100%, 0% 50%);
    padding-left: 1.4rem;
}
.swipe-arrow-never {
    background: var(--gold);
    clip-path: polygon(0% 0%, 100% 0%, 100% 62%, 50% 100%, 0% 62%);
    padding-bottom: 1.1rem;
}
.swipe-arrow-yes {
    background: var(--teal);
    clip-path: polygon(0% 0%, 72% 0%, 100% 50%, 72% 100%, 0% 100%);
    padding-right: 1.4rem;
}

.wish-summary {
    cursor: pointer;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0;
}

/* --- Aufklappbares Lupen-Suchfeld (z.B. Niemals-Liste) --- */
.list-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.list-search-toggle {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    background: #10121a;
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.list-search-toggle:hover { border-color: var(--gold); color: var(--gold); }
.list-search-input {
    width: 0;
    min-height: 0;
    padding: 0;
    border: none;
    opacity: 0;
    transition: width 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
    flex-shrink: 1;
}
.list-search-input.open {
    width: 100%;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    opacity: 1;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #10121a;
    color: var(--text);
    font-size: 16px;
}

/* --- Altersfreigabe: Doppel-Schieberegler --- */
.fsk-range-slider {
    position: relative;
    height: 36px;
    margin: 0.6rem 0 0.4rem;
}
.fsk-track {
    position: absolute;
    top: 50%;
    left: 11px;
    right: 11px;
    height: 4px;
    background: var(--panel-border);
    border-radius: 2px;
    transform: translateY(-50%);
}
.fsk-range-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: var(--teal);
    border-radius: 2px;
    transform: translateY(-50%);
    margin-left: 11px;
    margin-right: 11px;
}
.fsk-range-slider input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    min-height: 0;
}
.fsk-range-slider input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: transparent;
    height: 36px;
}
.fsk-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg);
    cursor: pointer;
    margin-top: 7px;
}
.fsk-range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    height: 4px;
}
.fsk-range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--bg);
    cursor: pointer;
}
.fsk-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* --- Chat --- */
#chat {
    scroll-margin-top: 4.5rem;
}

.chat-jump-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.8rem;
    background: rgba(79, 209, 176, 0.12);
    border: 1px solid var(--teal);
    border-radius: 999px;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.9rem;
}
.chat-jump-btn:hover { background: rgba(79, 209, 176, 0.2); text-decoration: none; }
.chat-jump-btn .news-badge { position: absolute; top: -8px; right: -8px; }

.chat-box {
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.8rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 85%;
}
.chat-message-mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}
.chat-message-mine .chat-bubble {
    background: rgba(79, 209, 176, 0.15);
    border-color: var(--teal);
}

.chat-sender { font-size: 0.75rem; font-weight: 700; color: var(--gold); margin-bottom: 0.15rem; }
.chat-text { font-size: 0.9rem; white-space: pre-wrap; word-break: break-word; }
.chat-time { font-size: 0.68rem; color: var(--text-dim); margin-top: 0.2rem; text-align: right; }

.chat-input-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
.chat-input-row input {
    flex: 1;
    padding: 0.7rem 0.8rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text);
    font-size: 16px;
    min-height: 44px;
}

.chat-send-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--bg);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-send-btn:hover { opacity: 0.85; }

.swipe-onboarding {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 20, 28, 0.92);
    border-radius: 10px;
    transition: opacity 0.3s ease;
}
.swipe-onboarding-hide { opacity: 0; }

.swipe-onboarding-inner {
    text-align: center;
    padding: 1.5rem;
}
.swipe-onboarding-inner h3 { margin-bottom: 1rem; }
.swipe-onboarding-inner p { margin: 0.5rem 0; }

.dir-hint {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}
.dir-hint.dir-yes   { color: var(--teal); border: 2px solid var(--teal); }
.dir-hint.dir-no    { color: var(--red); border: 2px solid var(--red); }
.dir-hint.dir-never { color: var(--gold); border: 2px solid var(--gold); }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn:disabled:hover { background: inherit; }

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: #10121a;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    cursor: grab;
}
.rank-item.rank-dragging {
    border-color: var(--gold);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    z-index: 5;
    position: relative;
    cursor: grabbing;
}

.rank-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--gold);
    width: 1.6rem;
    flex-shrink: 0;
    text-align: center;
}

.rank-item-title { flex: 1; font-size: 0.9rem; font-weight: 500; min-width: 0; }

.btn-never {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}
.btn-never:hover { background: rgba(232, 84, 79, 0.1); }

.seen-badge {
    text-align: left;
    color: var(--teal) !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin: 0.8rem 0;
}
.checkbox-label input { width: auto; min-height: auto; }


/* --- Serienrunde: Fortschritts-Abfrage --- */
.progress-prompt {
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 0.2rem 1rem 1rem;
    background: rgba(231, 178, 75, 0.06);
}
.progress-form .field { margin-bottom: 0.7rem; }
.progress-form select,
.progress-form input[type=number] { width: 100%; }
.progress-change {
    margin: 0.4rem 0 0.8rem;
}
.progress-change > summary {
    cursor: pointer;
    color: var(--gold);
    padding: 0.4rem 0;
}


/* --- Dashboard: Filmabend- und Serienrunden-Button nebeneinander --- */
.dash-create-row {
    display: flex;
    gap: 0.6rem;
}
.dash-create-row .dash-create-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}
@media (min-width: 900px) {
    .dash-create-row .dash-create-btn {
        flex: 0 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Serien-Kurzinfo unter dem Plot (Staffeln/Folgen) */
.tv-meta {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
}
