
#b2bCard {
    margin-bottom: 20px;
}

.b2b-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}

#b2bCard.is-teaser {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px 2px 14px;
    background: var(--bg-input);
}

.b2b-teaser {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: color 0.15s var(--ease);
}

.b2b-teaser:hover {
    color: var(--text-main);
}

.b2b-teaser .icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.b2b-chev {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: var(--text-muted);
    flex-shrink: 0;
}

#b2bCard.is-mini {
    margin-bottom: 14px;
}

.b2b-mini-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 2px;
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--border);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.76rem;
    color: var(--text-dim);
    text-align: left;
    transition: color 0.15s var(--ease);
}

.b2b-mini-btn:hover {
    color: var(--text-muted);
}

.b2b-mini-btn .icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.b2b-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    flex-shrink: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.b2b-x:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

.b2b-x svg {
    width: 15px;
    height: 15px;
}

.b2b-teaser:active,
.b2b-mini-btn:active,
.b2b-x:active {
    transform: scale(0.97);
}

.b2b-panel.is-open {
    animation: b2bIn 0.18s var(--ease-out) both;
}

@keyframes b2bIn {
    from { opacity: 0; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .b2b-panel.is-open { animation: none; }
}

.b2b-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.b2b-head .b2b-x {
    margin-left: 4px;
    margin-right: -6px;
}

.b2b-head .icon {
    width: 17px;
    height: 17px;
    color: var(--primary);
    flex-shrink: 0;
}

.b2b-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.b2b-exp {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: rgba(var(--warning-rgb), 0.12);
    color: var(--warning);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.b2b-teaser .b2b-exp { margin-left: 2px; }

.b2b-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.b2b-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.b2b-pill.is-on {
    background: rgba(var(--success-rgb), 0.12);
    color: var(--success);
}

.b2b-pill.is-off {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.b2b-body {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.b2b-body strong {
    color: var(--text-main);
    font-weight: 600;
}

.b2b-domok,
.b2b-domno {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.79rem;
    font-weight: 600;
}

.b2b-domok {
    color: var(--success);
}

.b2b-domok svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.b2b-domno {
    color: var(--warning);
    font-weight: 500;
}

.b2b-body .b2b-muted {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.b2b-seg {
    display: inline-flex;
    padding: 3px;
    gap: 3px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 14px 0 12px;
}

.b2b-seg button {
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s var(--ease);
}

.b2b-seg button.is-active {
    background: var(--primary);
    color: #fff;
}

.b2b-form {
    display: grid;
    gap: 10px;
    max-width: 440px;
}

.b2b-form .form-input {
    font-size: 0.86rem;
}

.b2b-form .b2b-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.b2b-form .b2b-fehler {
    font-size: 0.8rem;
    color: var(--danger);
    line-height: 1.5;
}

.b2b-warn {
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: rgba(var(--warning-rgb), 0.08);
    border-left: 2px solid var(--warning);
    font-size: 0.76rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.b2b-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.b2b-codes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.b2b-code {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.b2b-code code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--text-main);
    min-width: 0;
}

.b2b-code .b2b-code-state {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.b2b-code.is-used code {
    color: var(--text-dim);
    text-decoration: line-through;
}

.b2b-code-weg {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.b2b-code-weg svg { width: 14px; height: 14px; }
.b2b-code-weg:hover,
.b2b-code-weg:focus-visible {
    color: var(--danger);
    background: rgba(var(--danger-rgb), 0.10);
    border-color: rgba(var(--danger-rgb), 0.32);
}
@media (hover: none) {
    .b2b-code-weg { color: var(--text-muted); border-color: var(--border); }
}

.b2b-copy {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 9px;
    border-radius: var(--radius-xs);
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
}

.b2b-copy:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

@media (max-width: 520px) {
    #b2bCard {
        padding: 16px;
    }

    .b2b-pill {
        margin-left: 0;
    }

    .b2b-head {
        flex-wrap: wrap;
    }
}
