.bg-haendler-form {
    --bg-navy: #0a1628;
    --bg-orange: #e8722c;
    --bg-cream: #f7f4ee;
    --bg-line: #e6ddd0;
    --bg-ink: #182333;
    --bg-ink-muted: #5c6b7c;

    max-width: 640px;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--bg-ink);
    background: #fff;
    border: 1px solid var(--bg-line);
    border-radius: 12px;
    padding: 32px;
}

.bg-hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.bg-field-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }

.bg-field-row label { font-size: 13px; font-weight: 600; color: var(--bg-ink); }

.bg-required { color: var(--bg-orange); margin-left: 2px; }

.bg-field-row input[type="text"],
.bg-field-row input[type="email"],
.bg-field-row input[type="tel"],
.bg-field-row input[type="number"],
.bg-field-row select,
.bg-field-row textarea {
    border: 1px solid var(--bg-line);
    border-radius: 6px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--bg-ink);
    background: var(--bg-cream);
    width: 100%;
    box-sizing: border-box;
}

.bg-field-row textarea { min-height: 90px; resize: vertical; }

.bg-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    background: var(--bg-cream);
    border: 1px solid var(--bg-line);
    border-radius: 6px;
    padding: 14px;
}

.bg-checkbox-option { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; }

.bg-form-submit {
    background: var(--bg-orange);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 26px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 6px;
}

.bg-form-submit:hover { opacity: 0.92; }

.bg-form-legal { font-size: 12px; color: var(--bg-ink-muted); margin-top: 12px; line-height: 1.5; }

.bg-form-notice {
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 640px;
}

.bg-form-notice-success { background: #e9f5ea; color: #1e5a24; border: 1px solid #bfe3c2; }
.bg-form-notice-error   { background: #fbeaea; color: #8a2020; border: 1px solid #f0c4c4; margin-bottom: 16px; }

/* ---------- v1.1.0: Passwort, Pflicht-Häkchen ---------- */
.bg-haendler-form a,
.bg-haendler-bereich a { color: #e8722c; }

.bg-section-heading {
    margin: 28px 0 4px;
    padding-top: 20px;
    border-top: 1px solid #e6ddd0;
    font-size: 16px;
    font-weight: 700;
    color: #182333;
}
.bg-section-hint { font-size: 13px; color: #5c6b7c; margin: 0 0 14px; line-height: 1.5; }
.bg-field-hint { font-size: 12px; color: #5c6b7c; }

.bg-field-row input[type="password"] {
    border: 1px solid #e6ddd0;
    border-radius: 6px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #182333;
    background: #f7f4ee;
    width: 100%;
    box-sizing: border-box;
}
.bg-field-row input[readonly] { opacity: 0.7; cursor: not-allowed; }

.bg-legal-checks { gap: 10px; margin-top: 8px; }
.bg-legal-checks .bg-checkbox-option { align-items: flex-start; line-height: 1.5; }
.bg-legal-checks input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.bg-legal-checks a { text-decoration: underline; }

.bg-form-login-hint { font-size: 13px; color: #5c6b7c; margin-top: 14px; }

/* ---------- Händlerbereich / Login ---------- */
.bg-haendler-bereich {
    max-width: 900px;
    font-family: 'Inter', Arial, sans-serif;
    color: #182333;
}
.bg-haendler-bereich .bg-form-notice { margin-bottom: 16px; max-width: none; }
.bg-form-notice-info { background: #eef3fa; color: #1c3a63; border: 1px solid #c9d8ee; }

.bg-login-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e6ddd0;
    border-radius: 12px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.06);
}
.bg-login-title { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 700; color: #0a1628; }
.bg-login-sub { font-size: 14px; color: #5c6b7c; margin: 6px 0 22px; line-height: 1.5; }
.bg-remember { font-size: 13px; margin-bottom: 14px; }
.bg-login-submit { width: 100%; }
.bg-login-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: 13px; color: #5c6b7c; text-align: center; }

.bg-greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a1628;
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 16px;
    font-weight: 600;
}
.bg-greeting a { color: #f2a874 !important; font-weight: 500; font-size: 14px; }

.bg-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e6ddd0; flex-wrap: wrap; }
.bg-tab {
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6b7c !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.bg-tab.is-active { color: #0a1628 !important; border-bottom-color: #e8722c; }

.bg-tab-panel {
    background: #fff;
    border: 1px solid #e6ddd0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 28px;
}
.bg-panel-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #0a1628; }
.bg-panel-title-sub { margin-top: 34px; padding-top: 24px; border-top: 1px solid #e6ddd0; }
.bg-empty { font-size: 14px; color: #5c6b7c; line-height: 1.6; }
.bg-profil-form { max-width: 640px; }

.bg-table-wrap { overflow-x: auto; }
.bg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bg-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #5c6b7c; padding: 10px; border-bottom: 1px solid #e6ddd0; }
.bg-table td { padding: 12px 10px; border-bottom: 1px solid #f0ebe3; vertical-align: top; }

.bg-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #3c4a5a; white-space: nowrap; }
.bg-status-ausgewaehlt { background: #fff1e6; color: #b3531a; }
.bg-status-kontakt_gekauft { background: #e9f5ea; color: #1e5a24; }
.bg-status-abgelehnt,
.bg-status-zurueckgezogen { background: #f3f3f3; color: #8a8a8a; }
.bg-status-erstattet { background: #eef3fa; color: #1c3a63; }

@media (max-width: 600px) {
    .bg-tab-panel, .bg-login-card { padding: 20px; }
    .bg-tab { padding: 10px 12px; font-size: 13px; }
}

/* ---------- v1.2.0: Login-Menü (Header) und Login-Links (Footer) ---------- */
.bg-lm { position: relative; display: inline-block; font-family: 'Inter', Arial, sans-serif; }
.bg-lm-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    user-select: none;
}
.bg-lm-toggle::-webkit-details-marker { display: none; }
.bg-lm-toggle:hover { color: #f2a874; }
.bg-lm-caret {
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s;
}
.bg-lm[open] .bg-lm-caret { transform: rotate(225deg) translateY(-1px); }

.bg-lm-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 200px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e6ddd0;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 14px 34px rgba(10, 22, 40, 0.18);
}
.bg-lm-panel a {
    display: block;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #182333 !important;
    text-decoration: none;
    white-space: nowrap;
}
.bg-lm-panel a:hover { background: #f7f4ee; color: #e8722c !important; }
.bg-lm-panel a:last-child:not(:first-child) { border-top: 1px solid #f0ebe3; border-radius: 0 0 6px 6px; margin-top: 4px; color: #5c6b7c !important; }

.bg-lm-dunkel .bg-lm-toggle { color: #0a1628; }
.bg-lm-dunkel .bg-lm-toggle:hover { color: #e8722c; }

.bg-ll { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.bg-ll a { font-size: 12.5px; color: rgba(255, 255, 255, 0.55) !important; text-decoration: none; }
.bg-ll a:hover { color: #f2a874 !important; }
.bg-ll-dunkel a { color: #5c6b7c !important; }
.bg-ll-dunkel a:hover { color: #e8722c !important; }

/* ---------- v1.3.0: Reiter gut lesbar (weiß auf dunklem Balken) ---------- */
.bg-tabs {
    background: #0a1628;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 6px 10px 0;
    gap: 2px;
}
.bg-tab {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 20px;
    border-bottom: 3px solid transparent;
    margin-bottom: 0;
    transition: color .15s, border-color .15s;
}
.bg-tab:hover { color: #fff !important; border-bottom-color: rgba(255, 255, 255, 0.35); }
.bg-tab.is-active { color: #fff !important; border-bottom-color: #e8722c; }

/* ---------- Sammlungen: Liste, Details, Angebot ---------- */
.bg-back { margin: 0 0 14px; font-size: 14px; }
.bg-detail-title { font-family: 'Fraunces', Georgia, serif; font-size: 26px; margin-bottom: 12px; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bg-chip { background: #f7f4ee; border: 1px solid #e6ddd0; border-radius: 20px; padding: 5px 12px; font-size: 13px; color: #182333; }
.bg-sub-title { font-size: 15px; font-weight: 700; margin: 26px 0 10px; color: #0a1628; }
.bg-sammlung-text { font-size: 15px; line-height: 1.65; color: #182333; }
.bg-sammlung-text p { margin: 0 0 12px; }

.bg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bg-gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e6ddd0; background: #f7f4ee; aspect-ratio: 1 / 1; }
.bg-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.bg-gallery a:hover img { transform: scale(1.04); }

.bg-mini-btn {
    display: inline-block;
    background: #e8722c;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.bg-mini-btn:hover { opacity: 0.9; }
.bg-mini-btn-lg { font-size: 14px; padding: 11px 20px; }
.bg-btn-link { display: inline-block; text-decoration: none; color: #fff !important; }

.bg-offer-box {
    margin-top: 34px;
    padding: 26px;
    background: #f7f4ee;
    border: 1px solid #e6ddd0;
    border-radius: 12px;
}
.bg-offer-title { margin-top: 0; font-size: 18px; }
.bg-offer-box .bg-field-row input[readonly] { opacity: 0.85; background: #fff; }
.bg-offer-sentence { font-size: 15px; line-height: 2.3; margin: 4px 0 18px; color: #182333; }
.bg-inline-input { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bg-offer-sentence input[type="number"],
.bg-offer-sentence input[type="date"] {
    border: 1px solid #d8cdbb;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #182333;
    box-sizing: border-box;
}
.bg-offer-sentence input[type="number"] { width: 130px; }
.bg-offer-note { font-size: 13.5px; color: #5c6b7c; line-height: 1.55; margin: 0 0 14px; }
.bg-offer-current { font-size: 15px; }
.bg-offer-box .bg-form-notice { max-width: none; margin-bottom: 16px; }

.bg-withdraw-form { margin-top: 14px; }
.bg-link-btn { background: none; border: none; padding: 0; color: #8a2020; font-size: 13px; text-decoration: underline; cursor: pointer; font-family: inherit; }

@media (max-width: 600px) {
    .bg-tab { padding: 11px 12px; font-size: 13.5px; }
    .bg-offer-box { padding: 18px; }
    .bg-offer-sentence input[type="number"] { width: 110px; }
}

/* ===== 1.6.0: Credits-Bereich kompakter ===== */
.bg-credits-block { font-size: 14px; }
.bg-haendler-bereich .bg-credits-block h3, .bg-haendler-bereich .bg-credits-block .bgc-paket h3 { font-size: 15px !important; font-weight: 600; margin: 14px 0 2px; line-height: 1.3; }
.bg-credits-block p { font-size: 14px; margin: 0 0 6px; }
.bg-credits-block .bgc-saldo { font-size: 14px; }
.bg-credits-block .bgc-paket { padding: 12px 0; border-bottom: 1px solid #f0ebe3; }
.bg-credits-block .bgc-history { width: 100%; font-size: 13px; }

/* ===== 1.6.0: Mobile – Tabellen als Karten ===== */
.bg-haendler-bereich { max-width: 100%; box-sizing: border-box; }
@media (max-width: 700px) {
    .bg-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bg-tab { white-space: nowrap; }
    .bg-table-wrap { overflow-x: visible; }
    .bg-table, .bg-table tbody, .bg-table tr, .bg-table td { display: block; width: 100%; box-sizing: border-box; }
    .bg-table thead { display: none; }
    .bg-table tr { border: 1px solid #e6ddd0; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
    .bg-table td { border: none; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; word-break: break-word; }
    .bg-table td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #5c6b7c; text-align: left; flex: 0 0 38%; padding-top: 2px; }
    .bg-table td[data-label=""]::before { display: none; }
    .bg-table td[data-label=""] { justify-content: flex-start; padding-top: 8px; }
    .bg-table td[data-label="Sammlung"] { font-size: 15px; }
    .bg-tab-panel { padding: 16px; }
}
