/* ==========================================================================
   REEFMANAGER – HARDWARE-BAUER MAP
   Schwarz-transparente Glas-Flächen, ausschließlich Outline-Buttons
   ========================================================================== */

/* Hero wie auf der Index-Seite (header.hero > .container > .hero-text-box) */
#page-bauer .hero {
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
}

#page-bauer .hero-text-box h1 {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

#page-bauer .hero-text-box h2 {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

#page-bauer .hero-text-box .subtitle {
    font-size: 0.98rem;
    color: #94a3b8;
    max-width: 780px;
    margin: 0 auto 1.2rem auto;
    line-height: 1.6;
}

#page-bauer .hero-text-box .bm-stats,
#page-bauer .hero-text-box .bm-actions {
    justify-content: center;
}

#page-bauer .hero + main .bm-card:first-child {
    margin-top: 0.5rem;
}

.bm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.2rem 0 1.4rem 0;
}

.bm-stat {
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.bm-stat strong {
    color: #ffffff;
    font-size: 1.05rem;
    margin-right: 4px;
}

.bm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* --------------------------------------------------------------------------
   OUTLINE-BUTTONS (nie gefüllt)
   -------------------------------------------------------------------------- */
.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.62rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.bm-btn:hover {
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.bm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bm-btn.bm-btn-accent {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

.bm-btn.bm-btn-accent:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.bm-btn.bm-btn-danger {
    border-color: rgba(255, 90, 90, 0.7);
    color: #ffb4b4;
}

.bm-btn.bm-btn-danger:hover {
    border-color: #ff6b6b;
    box-shadow: 0 0 16px rgba(255, 90, 90, 0.3);
}

.bm-btn.bm-btn-ok {
    border-color: rgba(80, 230, 140, 0.75);
    color: #b6ffd2;
}

.bm-btn.bm-btn-small {
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   GLAS-KARTEN
   -------------------------------------------------------------------------- */
.bm-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 1.6rem;
    margin-top: 1.6rem;
}

.bm-card h2 {
    font-size: 1.55rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bm-inner {
    background: var(--inner-glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

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

.bm-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.bm-notice p {
    margin: 0;
}

.bm-notice i {
    margin-top: 3px;
    font-size: 1.1rem;
}

.bm-notice.bm-warn {
    border: 1.5px solid rgba(255, 196, 0, 0.75);
    box-shadow: 0 0 18px rgba(255, 196, 0, 0.12);
}

.bm-notice.bm-warn i {
    color: #ffc400;
}

.bm-notice.bm-info i {
    color: #00e5ff;
}

/* --------------------------------------------------------------------------
   FILTER
   -------------------------------------------------------------------------- */
.bm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    align-items: center;
    margin-bottom: 1rem;
}

.bm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bm-chip {
    padding: 0.36rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--text-color-muted);
    font-size: 0.84rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    user-select: none;
}

.bm-chip:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.bm-chip.active {
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.bm-filter-skill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color-muted);
}

.bm-filter-skill select,
.bm-field input,
.bm-field select,
.bm-field textarea {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.92rem;
    width: 100%;
}

.bm-filter-skill select {
    width: auto;
    padding: 0.3rem 0.5rem;
}

.bm-field select option,
.bm-filter-skill select option {
    background: #05070c;
}

.bm-field input,
.bm-field select,
.bm-field textarea,
.bm-filter-skill select,
.bm-admin-item textarea {
    background: rgba(0, 0, 0, 0.45) !important;
    color: #ffffff !important;
    box-shadow: none;
}

.bm-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #05070c inset !important;
    -webkit-text-fill-color: #ffffff !important;
}

.bm-field input:focus,
.bm-field select:focus,
.bm-field textarea:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.bm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-color-muted);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   KARTE
   -------------------------------------------------------------------------- */
.bm-map-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

#bm-map {
    height: 600px;
    width: 100%;
    background: #05070c;
}

#bm-editor-map {
    height: 260px;
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #05070c;
}

.leaflet-container {
    font-family: inherit;
}

/* Helle OSM-Kacheln in dunklen Kartenstil umwandeln */
.bm-dark-tiles {
    filter: invert(100%) hue-rotate(180deg) brightness(92%) contrast(88%) saturate(55%);
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.55) !important;
    color: #94a3b8 !important;
}

.leaflet-control-attribution a {
    color: #cbd5e1 !important;
}

.leaflet-bar a {
    background: rgba(4, 6, 12, 0.85) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(4, 6, 12, 0.92) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #ffffff !important;
}

/* Marker */
.bm-marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #00e5ff;
    background: rgba(2, 4, 8, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.55), 0 0 2px #000;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.bm-marker:hover {
    transform: scale(1.12);
}

.bm-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-marker.bm-marker-community {
    width: 26px;
    height: 26px;
    font-size: 11px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.bm-marker.bm-marker-own {
    border-color: #ffc400;
    box-shadow: 0 0 16px rgba(255, 196, 0, 0.6);
}

.bm-cluster {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.85);
    background: rgba(2, 4, 8, 0.85);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}

.bm-cluster.bm-cluster-community {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem;
}

.bm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.84rem;
    color: var(--text-color-muted);
}

.bm-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #00e5ff;
    display: inline-block;
}

.bm-dot.white {
    border-color: rgba(255, 255, 255, 0.8);
}

.bm-dot.gold {
    border-color: #ffc400;
}

/* --------------------------------------------------------------------------
   ERGEBNISLISTE
   -------------------------------------------------------------------------- */
.bm-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.bm-result {
    background: var(--inner-glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bm-result:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

.bm-result-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.bm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--text-color-muted);
}

.bm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-avatar.large {
    width: 84px;
    height: 84px;
    font-size: 1.8rem;
}

.bm-result-title {
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.bm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.4rem 0;
}

.bm-tag {
    font-size: 0.74rem;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
}

.bm-tag.dev {
    border-color: rgba(0, 229, 255, 0.55);
}

/* Skill-Balken */
.bm-skill {
    display: grid;
    grid-template-columns: 92px 1fr 22px;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin: 3px 0;
}

.bm-skill-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.bm-skill-bar i {
    height: 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: block;
}

.bm-skill-bar i.on {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

/* --------------------------------------------------------------------------
   FORMULAR
   -------------------------------------------------------------------------- */
.bm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.2rem;
}

.bm-form-grid .full {
    grid-column: 1 / -1;
}

.bm-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.3rem;
}

.bm-field small {
    display: block;
    color: var(--text-color-muted);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.bm-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.4rem 0 0.7rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 8px;
    align-items: center;
}

.bm-range-row {
    display: grid;
    grid-template-columns: 190px 1fr 30px;
    gap: 12px;
    align-items: center;
    margin-bottom: 0.2rem;
}

.bm-range-row input[type=range] {
    width: 100%;
    accent-color: #00e5ff;
}

.bm-range-desc {
    font-size: 0.82rem;
    color: var(--text-color-muted);
    margin: 0 0 0.9rem 202px;
    min-height: 1.2em;
}

.bm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    margin: 0.45rem 0;
    cursor: pointer;
}

.bm-field label.bm-check {
    display: flex;
    font-weight: 400;
    font-size: 0.88rem;
    margin: 0.45rem 0;
}

.bm-check input {
    width: auto !important;
    margin-top: 4px;
    accent-color: #00e5ff;
    flex-shrink: 0;
}

.bm-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.bm-thumb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.bm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.bm-thumb button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}

.bm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid;
}

.bm-status.pending {
    border-color: #ffc400;
    color: #ffe08a;
}

.bm-status.approved {
    border-color: #50e68c;
    color: #b6ffd2;
}

.bm-status.rejected {
    border-color: #ff6b6b;
    color: #ffb4b4;
}

/* --------------------------------------------------------------------------
   MODAL (schwarz-transparent)
   -------------------------------------------------------------------------- */
.bm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.bm-modal.open {
    display: flex;
}

.bm-modal-box {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(4, 6, 12, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.12);
    padding: 1.5rem;
    position: relative;
}

.bm-modal-box.wide {
    max-width: 780px;
}

.bm-modal-box.small {
    max-width: 440px;
}

.bm-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

.bm-detail-head {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.bm-detail-head h3 {
    margin: 0;
}

.bm-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.bm-lock {
    text-align: center;
    padding: 1.2rem;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.bm-lock i {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #00e5ff;
}

.bm-imprint {
    white-space: pre-wrap;
    font-size: 0.82rem;
    color: var(--text-color-muted);
}

/* Admin */
.bm-admin-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.bm-admin-item textarea {
    width: 100%;
    margin-top: 0.4rem;
}

.bm-admin-btns {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 150px;
}

.bm-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Rechtstexte */
.bm-legal h4 {
    margin: 1.1rem 0 0.4rem 0;
    font-size: 1rem;
}

.bm-legal p,
.bm-legal li {
    font-size: 0.88rem;
    color: #e2e8f0;
}

.bm-legal ul {
    margin: 0 0 0.8rem 1.2rem;
}

.bm-legal details {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.35);
}

.bm-legal summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffffff;
}

.bm-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 0.75rem 1.3rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(4, 6, 12, 0.92);
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    display: none;
}

.bm-toast.err {
    border-color: #ff6b6b;
}

.bm-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    #page-bauer .hero-text-box h1 {
        font-size: 1.8rem;
    }

    .bm-card {
        padding: 1.1rem;
    }

    #bm-map {
        height: 460px;
    }

    .bm-form-grid {
        grid-template-columns: 1fr;
    }

    .bm-range-row {
        grid-template-columns: 1fr 30px;
    }

    .bm-range-row label {
        grid-column: 1 / -1;
    }

    .bm-range-desc {
        margin-left: 0;
    }

    .bm-admin-item {
        grid-template-columns: 1fr;
    }

    .bm-admin-btns {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   APP-PROFIL-ANSICHT
   -------------------------------------------------------------------------- */
.bm-kv {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    font-size: 0.88rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.bm-kv:last-child {
    border-bottom: none;
}

.bm-kv > span:first-child {
    color: var(--text-color-muted);
}

.bm-kv > span:last-child {
    white-space: pre-wrap;
}

.bm-aq {
    margin-bottom: 0.8rem;
}

.bm-aq-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

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

.bm-coral .bm-images {
    margin: 0 0 0.5rem 0;
}

.bm-coral .bm-thumb {
    width: 86px;
    height: 86px;
}

.bm-bar5 {
    display: grid;
    grid-template-columns: 78px 1fr 28px;
    gap: 6px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-color-muted);
    margin: 2px 0;
}

.bm-bar5-track {
    height: 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.bm-bar5-track i {
    display: block;
    height: 100%;
    background: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.bm-comment {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.35rem 0.7rem;
    margin: 0.4rem 0;
    font-size: 0.86rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-bm-img] {
    cursor: zoom-in;
}

#bm-lightbox {
    z-index: 100001;
}

#bm-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
    .bm-kv {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --------------------------------------------------------------------------
   APP-ZUGANG / QR-CODES
   -------------------------------------------------------------------------- */
/* App-Zugang: zentriert wie der Kopfbereich */
.bm-app-box {
    text-align: center;
}

.bm-app-box h2 {
    justify-content: center;
}

.bm-app-lead {
    max-width: 780px;
    margin: 0 auto 1.4rem auto;
    color: #cbd5e1;
    line-height: 1.6;
}

.bm-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 1.6rem auto;
}

.bm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.1rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.88rem;
    color: var(--text-color-muted);
}

.bm-step strong {
    color: #ffffff;
    font-size: 1rem;
}

.bm-step-nr {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #00e5ff;
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

@media (max-width: 768px) {
    .bm-steps {
        grid-template-columns: 1fr;
    }
}

.bm-qr-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin: 0.6rem 0 1.2rem 0;
}

.bm-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bm-qr:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
}

.bm-qr img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-sm);
    /* Weißer Rand gehört zum QR-Code (Ruhezone), sonst scannt es auf dunklem Grund schlecht */
    background: #ffffff;
    padding: 6px;
}

.bm-social {
    justify-content: center;
}

.bm-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.bm-social .icon-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bm-social .icon-link:hover {
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Bauer-Sektion im Profil (aufklappbar, ganz oben) */
.bm-builder-sec {
    border: 1.5px solid rgba(0, 229, 255, 0.6);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.15);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
}

.bm-builder-sec > summary {
    cursor: pointer;
    list-style: none;
}

.bm-builder-sec > summary::-webkit-details-marker {
    display: none;
}

.bm-builder-sec-title {
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bm-builder-sec-title::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 6px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.bm-builder-sec[open] .bm-builder-sec-title::after {
    transform: rotate(180deg);
}
