/* Kein horizontales Scrollen auf der gesamten Seite */
html, body { overflow-x: hidden; }

/* Dezente Scrollbar rechts (wie beim Menü links): schmal, halbtransparent */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}
html::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

/* Header immer oben fixiert (egal ob Menü oder Seite gescrollt wird) */
header.bk-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}
body.public-body.bk-body-home header.bk-header-fixed { background: #e8e2d8; }
body.public-body:not(.bk-body-home) header.bk-header-fixed { background: var(--theme-primary, #1a1a2e); }
body.public-body { padding-top: var(--header-height, 6rem); }

/* Bierkontakt Admin */
.admin-body { background: #f5f5f5; }
.admin-sidebar {
    background: #1a1a2e;
    color: #eee;
}
.admin-sidebar-inner {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.admin-sidebar-inner::-webkit-scrollbar {
    width: 6px;
}
.admin-sidebar-inner::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}
.admin-sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* User-Layout (layouts/user.php): Sidebar unabhängig scrollbar, dezente Scrollbar */
.user-sidebar {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.user-sidebar::-webkit-scrollbar { width: 6px; }
.user-sidebar::-webkit-scrollbar-track { background: transparent; }
.user-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}
.user-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

.admin-brand-kicker { font-size: 0.7rem; letter-spacing: 0.1em; color: #e94560; display: block; }
.admin-brand-title { font-size: 1.4rem; font-weight: 700; display: block; }
.admin-brand-sub { font-size: 0.85rem; opacity: 0.8; display: block; }
.admin-nav-link { color: rgba(255,255,255,0.8); border-radius: 8px; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.admin-nav-link.active { color: #fff; background: #e94560; }
.admin-nav-icon { margin-right: 0.5rem; }
.admin-main { background: #fff; }
.admin-topbar-title { font-size: 1.5rem; }
.admin-topbar-sub { color: #6c757d; font-size: 0.9rem; }
.admin-page-title { font-size: 1.25rem; }
.admin-page-sub { color: #6c757d; font-size: 0.9rem; }

/* Dashboard & Section Cards (ec-ms style) */
.admin-body .stat-card,
.admin-body .content-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.admin-body .stat-card { border-radius: 0.85rem; }
.admin-section-card { padding: 1rem 1.15rem; }
.admin-section-title { color: #212529; font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.settings-group-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}
.settings-group-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: #495057; }
.chip {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background: #e9ecef;
    color: #495057;
}
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.admin-page-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Einstellungen: Tabs wie ec-ms */
.settings-tabs .nav-link { font-weight: 500; }
.settings-subtabs { border-bottom: 1px solid #dee2e6; }
.settings-subtabs .nav-link { font-size: 0.9rem; padding: 0.4rem 0.75rem; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: #6c757d; }
.settings-subtabs .nav-link:hover { color: #0d6efd; }
.settings-subtabs .nav-link.active { color: #0d6efd; border-bottom-color: #0d6efd; font-weight: 600; }
.settings-subtab-content { padding-top: 1rem; }

/* Admin: Punkte-Historie im Benutzer-Modal mit eigenem Scrollbereich */
.admin-body #adjustPointsHistory {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.admin-body #adjustPointsHistory::-webkit-scrollbar { width: 6px; }
.admin-body #adjustPointsHistory::-webkit-scrollbar-track { background: transparent; }
.admin-body #adjustPointsHistory::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}
.admin-body #adjustPointsHistory::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

/* Media-Picker: Modal mit Bildern statt Dropdown */
.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.media-picker-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #fff;
    color: #212529;
    padding: 0.5rem;
    cursor: pointer;
}
.media-picker-item:hover {
    border-color: #0d6efd;
    background: #f8f9fa;
}
.media-picker-item.selected {
    border-color: var(--bs-accent, #fd7e14);
    background: rgba(253, 126, 20, 0.08);
}
.media-picker-thumb {
    width: 100%;
    height: 100px;
    border-radius: 0.35rem;
    object-fit: cover;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}
.media-picker-thumb.media-picker-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6c757d;
}
.media-picker-caption {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #495057;
    word-break: break-word;
}

/* ========== Startseite: Layout wie Fotos (Strand/Beach, kein Beispiel-Look) ========== */
.bk-main-home {
    width: 100%;
    max-width: none;
    padding: 0;
}
.bk-home-page {
    width: 100%;
    background: #e8e2d8;
}

/* Hero: volle Breite, Strand-Hintergrund, zentrierter Inhalt – direkt unter Header ohne Lücke */
.bk-hero-section {
    position: relative;
    min-height: var(--hero-min-height, 70vh);
    height: var(--hero-height, 70vh);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #87CEEB;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: calc(-1 * var(--header-height, 6rem));
    padding-top: var(--header-height, 6rem);
    box-sizing: border-box;
}
/* Mobil: Bild an Viewport-Breite anpassen, damit der volle Text auf dem Bild sichtbar ist */
@media (max-width: 767px) {
    .bk-hero-section {
        background-size: 100% auto;
        background-position: top center;
        min-height: 100vmin;
        height: auto;
        padding-bottom: 2rem;
    }
}
.bk-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0, var(--hero-overlay, 0.25));
    pointer-events: none;
}
.bk-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}
.bk-hero-inner {
    text-align: center;
    color: #fff;
    padding: 2rem 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.bk-hero-emblem-wrap { margin-bottom: 1.25rem; }
.bk-hero-emblem {
    max-width: 180px;
    height: auto;
    width: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
@media (min-width: 768px) {
    .bk-hero-emblem { max-width: 260px; }
}
.bk-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .bk-hero-title { font-size: 2.5rem; }
}
.bk-hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.98);
    font-weight: 500;
}
.bk-hero-bullets {
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    padding: 0;
}
.bk-hero-bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: #fff;
    font-weight: 500;
}
.bk-hero-bullet-icon {
    color: #f59e0b;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.bk-hero-cta {
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    padding: 0.75rem 1.75rem !important;
}

/* Feature-Bereich: sandiger Hintergrund, nach unten fast weiß wie auf den Fotos */
.bk-features-section {
    background: linear-gradient(180deg, #e8e2d8 0%, #ede9e2 50%, #f5f2ed 100%);
    color: #1a1a2e;
    padding: 3rem 0 4rem;
}
.bk-features-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}
.bk-features-intro {
    text-align: center;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}
.bk-features-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}
.bk-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .bk-features-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.bk-feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.bk-feature-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bk-feature-card-link:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.bk-feature-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-accent, #e94560);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.bk-feature-card-link:hover .bk-feature-cta { text-decoration: underline; }
.bk-feature-icon-wrap {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(212, 168, 75, 0.35));
}
.bk-feature-icon {
    max-width: 88px;
    max-height: 88px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.bk-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.bk-feature-desc {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}
.bk-privacy-text {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* ========== User-Bereich: gleiches Design wie Startseite (bk-body-home) ========== */
.bk-user-area {
    background: linear-gradient(180deg, #e8e2d8 0%, #ede9e2 50%, #f5f2ed 100%);
    color: #1a1a2e;
    padding: 0 0 4rem;
    min-height: 50vh;
    position: relative;
}
.bk-user-area {
    position: relative;
}
.bk-user-area.bk-user-area-has-bg {
    background-color: #e8e2d8;
}
/* Hero/Hintergrundbild: fest am Viewport, nach oben in den Header-Bereich gezogen, damit kein grauer Streifen bleibt */
.bk-user-area-bg {
    position: fixed;
    top: calc(-1 * var(--header-height, 6rem));
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* Hintergrund liegt statisch hinter dem Inhalt und passt sich der Browsergröße an, ohne beim Scrollen zu „springen“ */
    background-attachment: scroll;
}
.bk-user-area-overlay {
    position: fixed;
    top: calc(-1 * var(--header-height, 6rem));
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(232, 226, 216, 0.85) 0%, rgba(237, 233, 226, 0.9) 50%, rgba(245, 242, 237, 0.92) 100%);
    pointer-events: none;
}
.bk-user-area .bk-user-container {
    position: relative;
    z-index: 1;
}
.bk-user-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* Einheitlicher Abstand überall 0.5rem; Menü und Kacheln oben exakt in einer Flucht */
.bk-user-area .row.bk-user-row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0;
}
.bk-user-area .bk-user-main {
    padding-top: 0;
}
.bk-user-area .row.g-4 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
.bk-user-area .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
/* Einheitliche Kachel-Abstände wie Dashboard auf allen User-Seiten (bk-dash-page) */
.bk-dash-page .row.g-4,
.bk-dash-page .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
.bk-user-area .bk-dash-layout { gap: 1rem; }
.bk-user-area .bk-dash-layout .row.g-4,
.bk-user-area .bk-dash-layout .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
.bk-dash-layout { display: flex; flex-wrap: wrap; gap: 1rem; }
.bk-dash-main { flex: 1 1 0; min-width: 0; }
.bk-dash-right { width: 320px; flex-shrink: 0; }
.bk-dash-right .card { margin-bottom: 1.5rem; }
.bk-dash-right .card:last-child { margin-bottom: 0; }
@media (max-width: 991px) { .bk-dash-right { width: 100%; } }
/* User-Sidebar: sticky – klebt oben, scrollt mit, sobald der Footer in die Quere kommt */
@media (min-width: 992px) {
    .bk-user-area .row { align-items: flex-start; }
    .bk-user-area .row > aside.col-lg-3 {
        flex: 0 0 320px;
        width: 320px;
    }
    .bk-user-sidebar {
        position: sticky;
        top: var(--header-height, 4.5rem);
        width: 280px;
        margin-left: 0.5rem;
        border-radius: 0 0 1rem 0;
        overflow-x: hidden;
        z-index: 1020;
        align-self: flex-start;
        padding-bottom: 1.5rem;
    }
}
.bk-user-sidebar {
    background: rgba(255, 255, 255, var(--bk-user-sidebar-opacity, 1));
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    padding-bottom: 1.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    overflow-x: hidden;
}
@media (min-width: 992px) {
    .bk-user-sidebar { overflow-y: visible; }
}
@media (max-width: 991px) {
    .bk-user-sidebar {
        position: relative;
    }
}
.bk-user-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.bk-user-sidebar::-webkit-scrollbar { width: 6px; }
.bk-user-sidebar::-webkit-scrollbar-track { background: transparent; }
.bk-user-sidebar::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.18); border-radius: 3px; }
.bk-user-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }

.bk-user-sidebar-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b9198;
    margin-bottom: 0.35rem;
    margin-top: 0.75rem;
    font-weight: 500;
}
.bk-user-sidebar-kicker:first-of-type { margin-top: 0; }

.bk-user-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    background: rgba(255, 255, 255, var(--bk-user-sidebar-opacity, 1));
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 0.5rem;
}
.bk-user-sidebar-avatar {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 1;
}
.bk-user-sidebar-avatar img.bk-user-sidebar-avatar-img {
    display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; aspect-ratio: 1;
}
.bk-user-sidebar-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.01em;
}

/* Menüpunkte als dezente Kacheln, Text nah an Kachel – wenig Abstand oben/unten (einheitlich auf Dashboard, Profil, QR-Codes, Reisen) */
.bk-user-sidebar .nav { display: flex; flex-direction: column; gap: 0.2rem; }
.bk-user-nav-link,
.bk-user-area .bk-user-sidebar .bk-user-nav-link {
    display: flex;
    align-items: center;
    color: #475569;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    border-radius: 0.35rem;
    padding: 0.22rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bk-user-nav-link i,
.bk-user-area .bk-user-sidebar .bk-user-nav-link i { font-size: 0.95em; opacity: 0.9; }
.bk-user-nav-link:hover,
.bk-user-area .bk-user-sidebar .bk-user-nav-link:hover {
    background: #f0f2f5;
    border-color: rgba(0,0,0,0.08);
    color: #1e3a5f;
}
.bk-user-nav-link.active,
.bk-user-area .bk-user-sidebar .bk-user-nav-link.active {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 500;
    font-size: 0.8125rem;
}
.bk-user-nav-link.active:hover,
.bk-user-area .bk-user-sidebar .bk-user-nav-link.active:hover { color: #fff; filter: brightness(1.05); }
.bk-user-nav-link.text-secondary,
.bk-user-area .bk-user-sidebar .bk-user-nav-link.text-secondary { color: #64748b !important; }
.bk-user-nav-link.text-secondary:hover,
.bk-user-area .bk-user-sidebar .bk-user-nav-link.text-secondary:hover { color: #475569 !important; }
.bk-user-sidebar .bk-share-location-btn { cursor: pointer; }
/* Kacheln: zurückhaltend wie Sidebar – wenig Padding, dezente Schatten, admin-steuerbare Deckkraft */
.bk-user-area .bk-user-card,
.bk-user-area .bk-user-kachel {
    background: rgba(255, 255, 255, var(--bk-user-kachel-opacity, 1));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    color: #1a1a2e;
}
.bk-user-area .bk-user-card {
    padding: 0.75rem 1rem;
}
.bk-user-area .bk-user-kachel {
    padding: 0.5rem 0.75rem;
}
/* Untertabs in eigener Kachel mit kompaktem Padding */
.bk-user-area .bk-user-subtabs-kachel {
    padding: 0.35rem 0.75rem;
}
.bk-user-area .bk-user-subtabs-kachel .bk-user-subtabs {
    margin-bottom: 0;
}
.bk-user-area .bk-user-card .text-muted { color: #64748b !important; }
.bk-user-area .bk-user-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    padding: 0.4rem 0 0.5rem;
}
.bk-user-area .bk-user-card .card-body { padding: 0.5rem 0; }
.bk-user-area .table { color: #374151; font-size: 0.8125rem; }
.bk-user-area .table th { color: #374151; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.02em; text-transform: uppercase; }
/* Einheitliche Typografie wie Dashboard: Basis-Text 0.8125rem, Überschriften klar größer */
.bk-user-area .bk-dash-page {
    font-size: 0.8125rem;
}
.bk-user-area .bk-dash-page h1,
.bk-user-area .bk-dash-page .h1 { font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.bk-user-area .bk-dash-page h2,
.bk-user-area .bk-dash-page .h2 { font-weight: 600; font-size: 0.9375rem; }
.bk-user-area .bk-dash-page h3,
.bk-user-area .bk-dash-page .h3 { font-weight: 600; font-size: 0.875rem; }
.bk-user-area .bk-dash-page h4,
.bk-user-area .bk-dash-page .h4 { font-weight: 600; font-size: 0.875rem; }
.bk-user-area .bk-dash-page h5,
.bk-user-area .bk-dash-page .h5 { font-weight: 600; font-size: 0.8125rem; }
.bk-user-area .bk-dash-page h6,
.bk-user-area .bk-dash-page .h6 { font-weight: 600; font-size: 0.8125rem; }
/* Fallback außerhalb .bk-dash-page (z. B. Inhalte ohne Wrapper) */
.bk-user-area h1, .bk-user-area .h1 { font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.bk-user-area h2, .bk-user-area .h2 { font-weight: 600; font-size: 0.9375rem; }
.bk-user-area h3, .bk-user-area .h3 { font-weight: 600; font-size: 0.875rem; }
.bk-user-area h4, .bk-user-area .h4 { font-weight: 600; font-size: 0.875rem; }
.bk-user-area h5, .bk-user-area .h5 { font-weight: 600; font-size: 0.8125rem; }
.bk-user-area h6, .bk-user-area .h6 { font-weight: 600; font-size: 0.8125rem; }

/* Profil-Seite: Speicher-/Erfolgs-/Fehlermeldung fest unter dem Header, immer voll sichtbar */
.bk-profile-toast-wrapper {
    position: fixed;
    top: calc(var(--header-height, 6rem) + 0.5rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    z-index: 1055;
    pointer-events: none;
}
.bk-profile-toast-wrapper .bk-profile-status-toast {
    pointer-events: auto;
}
.bk-profile-status-toast:not(.d-none) {
    width: auto;
    max-width: min(90vw, 420px);
    min-width: 260px;
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

/* Dashboard Widgets (Referenz: Profi-Dashboard) */
.bk-dash-hero-trip {
    background: rgba(255, 255, 255, var(--bk-user-kachel-opacity, 1));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.bk-dash-hero-trip-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.01em;
    margin-bottom: 0.2rem;
}
@media (min-width: 768px) {
    .bk-dash-hero-trip-title { font-size: 1.1rem; }
}
.bk-dash-hero-trip-meta { font-size: 0.8125rem; color: #5a6268; margin-bottom: 0.5rem; }
.bk-dash-hero-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.bk-dash-hero-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.bk-dash-hero-avatar-plus {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #adb5bd;
}
.bk-dash-widget-title { font-size: 0.8125rem; font-weight: 600; color: #1a1a2e; margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.bk-dash-stat-value { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }
.bk-dash-stat-label { font-size: 0.75rem; color: #6c757d; }
.bk-dash-profile-card .bk-dash-profile-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #e8e2d8 0%, #ede9e2 100%);
}
.bk-dash-online { font-size: 0.8rem; color: #198754; font-weight: 600; }
.bk-dash-online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #198754; margin-right: 0.35rem; vertical-align: middle; }
.bk-dash-unlocked { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bk-dash-unlocked-item { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; color: #5a6268; }
.bk-dash-stat-box { text-align: center; padding: 0.6rem 0.75rem; border-radius: 0.5rem; background: #f8f9fa; }
.bk-dash-stat-box .bk-dash-stat-value { font-size: 1.1rem; }
/* Dashboard-Stat-Kacheln: zurückhaltend wie Sidebar */
.bk-dash-stat-card {
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease;
    overflow: hidden;
}
.bk-dash-stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bk-dash-stat-card .card-body {
    padding: 0.6rem 0.75rem;
}
.bk-dash-stat-card .bk-dash-stat-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.4rem;
    border-radius: 0.4rem;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: none;
}
.bk-dash-stat-card .bk-dash-stat-value { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; letter-spacing: 0.01em; }
.bk-dash-stat-card .bk-dash-stat-label { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.bk-dash-stat-meta { font-size: 0.7rem; margin-top: 0.15rem !important; }
.bk-dash-stat-icon { width: 2rem; height: 2rem; margin: 0 auto 0.4rem; border-radius: 0.4rem; background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.bk-dash-activity { display: flex; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.bk-dash-activity:last-child { border-bottom: 0; }
.bk-dash-activity-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: #fff; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bk-dash-activity-text { font-size: 0.8125rem; color: #1a1a2e; }
.bk-dash-activity-time { font-size: 0.75rem; color: #6c757d; }
.bk-dash-msg { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.bk-dash-msg:last-child { border-bottom: 0; }
.bk-dash-msg-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: #e9ecef; color: #6c757d; font-size: 0.7rem; font-weight: 600; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.bk-dash-event { padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.8125rem; }
.bk-dash-event:last-child { border-bottom: 0; }
.bk-dash-event-time { color: #6c757d; font-size: 0.75rem; }

/* Dashboard an Referenz-Design: horizontale Top-Nav, Breadcrumb, Banner, rechte Widgets */
.bk-user-topnav { border-bottom: 1px solid rgba(0,0,0,0.06); }
.bk-user-topnav-link { color: #475569; font-weight: 500; font-size: 0.9rem; }
.bk-user-topnav-link:hover { color: #1e3a5f; background: rgba(245, 158, 11, 0.1); }
.bk-user-topnav-link.active { color: #fff; background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.bk-user-topnav-user { font-size: 0.9rem; }
.bk-dash-breadcrumb { font-size: 0.75rem; }
.bk-dash-breadcrumb.bk-user-kachel { padding: 0.35rem 0.75rem; }
.bk-dash-breadcrumb .breadcrumb-item + .breadcrumb-item::before { opacity: 0.6; }
.bk-user-area .form-label { font-size: 0.8125rem; font-weight: 500; }
.bk-user-area .form-label.small { font-size: 0.75rem; }
/* Formularfelder im User-Bereich: dezenter, kleiner, Transparenz einstellbar */
.bk-user-area .form-control,
.bk-user-area .form-select {
    font-size: 0.8125rem;
    padding: 0.28rem 0.5rem;
    min-height: 1.75rem;
    border-radius: 0.35rem;
    border-color: rgba(0,0,0,0.12);
    background-color: rgba(255, 255, 255, var(--bk-user-form-opacity, 1));
}
.bk-user-area .form-control:focus,
.bk-user-area .form-select:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 0.15rem rgba(245, 158, 11, 0.15);
}
.bk-user-area .form-control-sm { font-size: 0.75rem; padding: 0.2rem 0.4rem; min-height: 1.5rem; }
.bk-user-area textarea.form-control { min-height: 3rem; padding: 0.35rem 0.5rem; }
/* Sichtbarkeits-Button: nur Symbol, kein Rahmen, kleiner – Auswahlmenü unverändert */
.bk-user-area .bk-visibility-dropdown .bk-visibility-trigger,
.bk-user-area .bk-landing-visibility-dropdown .bk-visibility-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    border-radius: 0.25rem;
    cursor: pointer;
    color: inherit;
    vertical-align: middle;
}
.bk-user-area .bk-visibility-trigger:hover,
.bk-user-area .bk-landing-visibility-dropdown .bk-visibility-trigger:hover {
    background: rgba(0,0,0,0.06);
}
.bk-user-area .bk-visibility-trigger:focus,
.bk-user-area .bk-landing-visibility-dropdown .bk-visibility-trigger:focus {
    outline: none;
    background: rgba(0,0,0,0.08);
}
.bk-user-area .bk-visibility-dropdown .bk-visibility-icon,
.bk-user-area .bk-landing-visibility-dropdown .bk-landing-visibility-icon {
    font-size: 0.9rem;
}
.bk-user-area .bk-visibility-dropdown .dropdown-menu .dropdown-item-sm,
.bk-user-area .bk-landing-visibility-dropdown .dropdown-menu .dropdown-item-sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
}
/* Untertabs im Inhaltsbereich (nicht in der Sidebar) */
.bk-user-subtabs { border-bottom: 1px solid rgba(0,0,0,0.08); gap: 0; }
.bk-user-subtabs .nav-link { color: #64748b; font-weight: 500; font-size: 0.8125rem; padding: 0.4rem 0.75rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; }
.bk-user-subtabs .nav-link:hover { color: #1a1a2e; background: rgba(245, 158, 11, 0.08); }
.bk-user-subtabs .nav-link.active { color: #d97706; background: transparent; border-bottom-color: #f59e0b; }
.bk-points-subtabs { border-bottom-color: transparent; gap: 0.25rem; }
.bk-points-subtabs .nav-link { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.bk-dash-hero-banner { padding: 0.85rem 1rem; }
.bk-user-area .card:not(.bk-user-card) {
    background: rgba(255, 255, 255, var(--bk-user-kachel-opacity, 1));
    border-radius: 0.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 1rem;
}
.bk-dash-avatar-placeholder { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: #fff; }
.bg-success-subtle { background: rgba(25, 135, 84, 0.12); }
.bk-user-sidebar-usercard { display: flex; align-items: center; gap: 0.6rem; }
.bk-user-sidebar-friends { }
.bk-user-sidebar-friend-avatar { width: 2rem; height: 2rem; background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); color: #fff; font-size: 0.65rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.bk-nav-logo { max-height: 2.5rem; height: auto; width: auto; object-fit: contain; vertical-align: middle; display: inline-block; }
/* Header nur wenig höher als Logo; Höhe passt sich der Logo-Größe aus den Einstellungen an */
header .navbar {
    padding-top: calc(var(--bk-nav-logo-height, 2.5rem) * 0.15);
    padding-bottom: calc(var(--bk-nav-logo-height, 2.5rem) * 0.15);
}
/* Footer: einheitlich über Einstellungen (Footer & Texte, Rechtliches) */
.bk-footer { }
.bk-footer-dark {
    background: rgba(0,0,0,0.28);
    color: rgba(255,255,255,0.9);
}
.bk-footer-dark .footer-link { color: rgba(255,255,255,0.85); }
.bk-footer-dark .footer-link:hover { color: #fff; }
.bk-footer-dark .bk-footer-heading,
.bk-footer-dark .bk-footer-company { color: #fff; }
.bk-footer-dark .bk-footer-muted { color: rgba(255,255,255,0.65); }
.bk-footer-dark .bk-footer-bottom { border-color: rgba(255,255,255,0.2) !important; }
.bk-footer-home {
    background: #d4cdc0 !important;
    color: #1a1a2e;
}
.bk-footer-home .footer-link { color: #2c3e50; }
.bk-footer-home .footer-link:hover { color: #1a1a2e; }
.bk-footer-home .bk-footer-heading,
.bk-footer-home .bk-footer-company { color: #1a1a2e; }
.bk-footer-home .bk-footer-text,
.bk-footer-home .bk-footer-muted { color: #5a6268; }
.bk-footer-home .bk-footer-bottom { border-color: rgba(0,0,0,0.12) !important; }
.bk-footer-home .text-secondary { color: #5a6268 !important; }
.bk-footer-home .border-secondary { border-color: rgba(0,0,0,0.12) !important; }
.bk-footer-cookie-btn { color: inherit; }
.bk-footer-dark .bk-footer-cookie-btn { color: rgba(255,255,255,0.85); }
.bk-footer-dark .bk-footer-cookie-btn:hover { color: #fff; }
.bk-footer-home .bk-footer-cookie-btn { color: #2c3e50; }
.bk-footer-home .bk-footer-cookie-btn:hover { color: #1a1a2e; }

/* Cookie-Banner: professionell, DSGVO-freundlich */
.bk-cookie-banner { bottom: 0; border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.bk-cookie-banner .bk-cookie-banner-text { max-width: 60ch; }
.bk-cookie-banner .bk-cookie-link { color: rgba(255,255,255,0.9); text-decoration: underline; }
.bk-cookie-banner .bk-cookie-link:hover { color: #fff; }

/* ========== Public: Builder (nur für Admins) ========== */
.bk-builder-wrap { position: relative; }
.bk-builder-toolbar { box-shadow: 0 -2px 12px rgba(0,0,0,0.15); }
.bk-builder-minimized-btn { align-items: center; justify-content: center; }
.bk-builder-wrap.bk-builder-minimized .bk-builder-toolbar { display: none !important; }
.bk-builder-wrap.bk-builder-minimized .bk-builder-minimized-btn { display: flex !important; }
.bk-builder-minimized-btn.d-none { display: none !important; }
.bk-builder-wrap.bk-builder-minimized .bk-builder-minimized-btn.d-none { display: flex !important; }
.bk-top-strip-empty { display: none; }
body.bk-builder-mode .bk-top-strip-empty { display: block; }
body.bk-builder-mode .builder-service-wrap { position: relative; }
body.bk-builder-mode .builder-drag-handle { cursor: grab; opacity: 0.7; }
body.bk-builder-mode .builder-drag-handle:active { cursor: grabbing; }
.bk-builder-toolbar #bkBuilderGridBtn.active { background: rgba(255,255,255,0.2); color: #fff; }
.builder-service-wrap.bk-dragging { opacity: 0.85; }

/* Builder: verschiebbare Blöcke, Raster, Hilfslinien, Kontextmenü, Format-Leiste (ec-ms) */
.builder-movable {
    position: relative;
    transition: transform 0.12s ease;
}
.builder-mode .builder-movable.builder-movable-enabled {
    outline: 2px dashed rgba(77, 141, 246, 0.65);
    outline-offset: 4px;
}
.builder-mode .builder-edit[data-setting] {
    outline: 2px dashed rgba(77, 141, 246, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}
.builder-mode .builder-link[data-setting] {
    outline: 2px dashed rgba(77, 141, 246, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}
.builder-mode .builder-placeholder-img {
    outline: 2px dashed rgba(77, 141, 246, 0.55);
    outline-offset: 2px;
}
.builder-mode .builder-movable.is-dragging-block {
    transition: none;
    opacity: 0.92;
}
.builder-guide-line {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.builder-guide-line.show { opacity: 1; }
.builder-guide-x {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 77, 79, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.builder-guide-y {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255, 77, 79, 0.92);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.builder-distance-label {
    position: fixed;
    z-index: 1201;
    transform: translate(-50%, -50%);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    background: #1a2f46;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}
.builder-distance-label.show { opacity: 1; }
.builder-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1195;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
    background-image:
        repeating-linear-gradient(to right, rgba(15, 39, 66, 0.06) 0, rgba(15, 39, 66, 0.06) 1px, transparent 1px, transparent 12px),
        repeating-linear-gradient(to bottom, rgba(15, 39, 66, 0.06) 0, rgba(15, 39, 66, 0.06) 1px, transparent 1px, transparent 12px);
}
.builder-grid-overlay.show { opacity: 1; }
.builder-context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 200px;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
}
.builder-context-menu[aria-hidden="false"] { display: block !important; }
.builder-context-menu .bi { margin-right: 0.5rem; opacity: 0.85; }
.builder-context-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 0;
    background: 0;
    font-size: 0.9rem;
    color: #212529;
    cursor: pointer;
    text-align: left;
}
.builder-context-menu-item:hover { background: #f0f4f8; }
.builder-format-bar {
    position: absolute;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: #1a2f46;
    border-radius: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.builder-format-bar.d-none { display: none !important; }
.builder-format-bar .form-select,
.builder-format-bar .form-control {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    min-height: auto;
    background: #fff;
    border-color: #2f3a4d;
}
.builder-format-bar label {
    font-size: 0.75rem;
    color: #c4d4e6;
    margin: 0 0.25rem 0 0;
}
.builder-format-bar .builder-color-input {
    width: 2rem;
    height: 1.75rem;
    padding: 0.15rem;
    cursor: pointer;
}
.builder-placeholder-img {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}
.builder-mode .builder-placeholder-img { cursor: pointer; }

/* ========== Public: Landing (Profil nach QR-Scan, Dark) ========== */
.bk-landing-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    padding-bottom: 2rem;
}
.bk-landing-hero-img-wrap {
    width: 100%;
    max-height: 40vh;
    overflow: hidden;
    background: #0f0f1a;
}
.bk-landing-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bk-landing-content {
    padding: 1.5rem 1rem 2rem;
    max-width: 480px;
    margin: 0 auto;
}
.bk-landing-greeting {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.bk-landing-headline {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}
.bk-landing-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.35rem;
}
.bk-landing-meta-icon {
    color: var(--theme-accent, #e94560);
    margin-right: 0.35rem;
}
.bk-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.bk-landing-btn-primary {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
}
.bk-landing-btn-primary:hover { color: #fff; filter: brightness(1.1); }
.bk-landing-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}
.bk-landing-btn-secondary:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.bk-landing-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-top: 1rem;
}
.bk-landing-fanwand-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.bk-landing-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bk-landing-footer-privacy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.25rem;
}

/* ========== QR-Landing (User-Profil nach Scan – Referenz: Hero, Avatar, Buttons, Galerie, Fanwall) ========== */
.bk-landing-qr {
    width: 100%;
    min-height: 100vh;
    background: #e8e2d8;
    padding: 0.75rem 0 2rem;
    color: #1a1a2e;
    box-sizing: border-box;
}
.bk-landing-qr-card {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--card-radius, 1rem);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}
@media (min-width: 576px) {
    .bk-landing-qr { padding: 1rem 0.5rem 2rem; }
    .bk-landing-qr-card { max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 768px) {
    .bk-landing-qr-card { max-width: 640px; }
}
@media (min-width: 992px) {
    .bk-landing-qr-card { max-width: 880px; }
}
.bk-landing-qr-banner {
    height: 180px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.4) 50%, rgba(180, 83, 9, 0.35) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.bk-landing-qr-banner[style*="background-image"] {
    filter: blur(0.5px);
}
.bk-landing-qr-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -80px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.bk-landing-qr-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.bk-landing-qr-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .bk-landing-qr-banner { height: 200px; }
    .bk-landing-qr-avatar-wrap { margin-top: -90px; }
    .bk-landing-qr-avatar,
    .bk-landing-qr-avatar-placeholder { width: 160px; height: 160px; font-size: 3rem; }
}
.bk-landing-qr-body {
    padding: 0.5rem 1rem 1.5rem;
}
@media (min-width: 576px) {
    .bk-landing-qr-body { padding: 0.75rem 1.5rem 2rem; }
}
.bk-landing-qr-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
    color: #1a1a2e;
}
@media (min-width: 768px) {
    .bk-landing-qr-name { font-size: 1.75rem; }
}
.bk-landing-qr-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}
.bk-landing-qr-blurred a { pointer-events: none; }
.bk-gallery-modal-blurred { filter: blur(8px); pointer-events: none; }

/* Galerie-Modal (öffentliche Seite): helles Design wie Rest der Seite */
#bk-gallery-modal .modal-content .opacity-75 {
    opacity: 0.95;
}
.bk-landing-qr-online {
    text-align: center;
}
.bk-landing-qr-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.bk-landing-qr-online-dot-on {
    background: #22c55e;
}
.bk-landing-qr-tagline {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    text-align: center;
}
.bk-landing-qr-flag { margin-right: 0.25rem; }
.bk-landing-qr-bio {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 0.75rem;
}
.bk-landing-qr-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.bk-landing-qr-meta-icon {
    color: #f59e0b;
    margin-right: 0.35rem;
}
/* Freigaben-Leiste: Symbole für alles, was freigeschaltet werden kann */
.bk-landing-qr-freigaben-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bk-landing-qr-freigabe-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.bk-landing-qr-freigabe-chip .bi { font-size: 0.95em; }
.bk-landing-qr-freigabe-locked {
    background: #e5e7eb;
    color: #6b7280;
    border-color: #d1d5db;
}
.bk-landing-qr-freigabe-locked .bi-lock-fill { color: #9ca3af; }
.bk-landing-qr-freigabe-chip small {
    opacity: 1;
    color: #495057;
}
/* Besserer Kontrast für Zusatztexte auf der Landing-Karte (heller Hintergrund) */
.bk-landing-qr-card .text-muted {
    color: #495057 !important;
}
/* Gesperrte Blöcke: verschwommen/abgedunkelt, damit sichtbar ist, dass es mehr gibt */
.bk-landing-qr-block-locked .bk-landing-qr-gallery-thumbs {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}
.bk-landing-qr-block-locked.bk-landing-qr-fanwall .bk-landing-qr-fanwall-placeholder {
    filter: blur(3px);
    min-height: 2.5rem;
}
.bk-landing-qr-location-card.bk-landing-qr-block-locked .bk-landing-qr-map {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}
.bk-landing-qr-block-locked-hint {
    padding: 0.25rem 0 0;
}
.bk-landing-qr-location-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8f9fa;
}
.bk-landing-qr-location-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bk-landing-qr-map {
    width: 100%;
    height: 200px;
    min-height: 180px;
    background: #e5e7eb;
}
.bk-landing-qr-gallery-fanwall {
    margin-top: 0.5rem;
}
.bk-landing-qr-gallery-col .bk-landing-qr-gallery,
.bk-landing-qr-fanwall-col .bk-landing-qr-fanwall {
    margin-top: 0;
}
@media (min-width: 992px) {
    .bk-landing-qr-gallery-fanwall { margin-top: 1rem; }
    .bk-landing-qr-gallery-col .bk-landing-qr-gallery { margin-top: 0; }
    .bk-landing-qr-fanwall-col .bk-landing-qr-fanwall { border-top: none; padding-top: 0; }
}
.bk-landing-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}
@media (max-width: 575.98px) {
    .bk-landing-qr-actions { gap: 0.6rem; }
    .bk-landing-qr-btn { min-height: 44px; padding: 0.6rem 1rem; }
}
.bk-landing-qr-btn {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
}
.bk-landing-qr-btn-primary {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
}
.bk-landing-qr-btn-primary:hover { color: #fff; filter: brightness(1.08); }
.bk-landing-qr-btn-secondary {
    background: #e5e7eb;
    color: #374151 !important;
}
.bk-landing-qr-btn-secondary:hover { background: #d1d5db; color: #1f2937; }
.bk-landing-qr-gallery {
    margin-top: 1rem;
}
.bk-landing-qr-gallery-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    display: block;
    margin-bottom: 0.5rem;
}
.bk-landing-qr-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
}
.bk-landing-qr-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    background: #f3f4f6;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .bk-landing-qr-thumb { width: 96px; height: 96px; }
}
.bk-landing-qr-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
}
.bk-landing-qr-fanwall {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.bk-landing-qr-fanwall-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.bk-landing-qr-fanwall-placeholder { margin-bottom: 0; }
.bk-landing-qr-anfragen {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.bk-landing-qr-footer {
    text-align: center;
    padding: 1rem 1rem 0;
    max-width: 480px;
    margin: 0 auto;
}

/* Chat: Tages-Trenner zwischen Nachrichten */
.bk-chat-day-sep {
    clear: both;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.bk-chat-time {
    font-size: 0.75rem;
}

/* User-Bereich mobil: kein horizontales Scrollen, immer viewportgerecht */
@media (max-width: 767px) {
    .bk-user-area,
    .bk-user-container,
    .bk-user-area .row.bk-user-row {
        max-width: 100%;
        overflow-x: hidden;
    }
    .bk-user-area .bk-user-main {
        min-width: 0;
    }
}

/* Chat-Seite mobil: kein Zoom beim Fokus in Formularfeldern (iOS zoomt bei font-size < 16px) */
@media (max-width: 767px) {
    .bk-dash-page-chats #bk-user-chat-input,
    .bk-dash-page-chats #bk-user-chat-box input,
    .bk-dash-page-chats #bk-user-chat-box textarea,
    .bk-dash-page-chats #bk-archive-email {
        font-size: 16px !important;
    }
    .bk-dash-page-chats,
    .bk-user-area .bk-dash-page-chats {
        max-width: 100%;
        overflow-x: hidden;
    }
    .bk-dash-page-chats .row,
    .bk-dash-page-chats .row > [class*="col-"] {
        max-width: 100%;
        overflow-x: hidden;
    }
    .bk-dash-page-chats .row > [class*="col-"] {
        min-width: 0;
    }
    .bk-dash-page-chats #bk-user-chat-box,
    .bk-dash-page-chats #bk-user-chat-box .card-body,
    .bk-dash-page-chats #bk-user-chat-messages {
        max-width: 100%;
        overflow-x: hidden;
    }
    .bk-dash-page-chats #bk-user-chat-input {
        max-width: 100%;
        box-sizing: border-box;
    }
    .bk-dash-page-chats .d-flex.gap-2 {
        flex-wrap: nowrap;
        min-width: 0;
    }
}
