.hc-rb-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    font-family: Arial, Helvetica, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    --night:#0F1724;
    --slate:#233044;
    --steel:#5b7a9e;
    --mist:#8898aa;
    --fog:#c8d4e0;
    --off:#F7F8FA;
    --white:#ffffff;
    --border:rgba(15,23,36,0.10);
    --border-strong:rgba(15,23,36,0.18);
    --ink:#0F1724;
    --ink-mid:#233044;
    --shadow:0 18px 48px rgba(15,23,36,0.18);
}

.hc-rb-widget *,
.hc-rb-widget *::before,
.hc-rb-widget *::after {
    box-sizing: border-box;
}

.hc-rb-phone-direct {
    width: 224px;
    min-height: 34px;
    padding: 9px 15px;
    border: 1px solid rgba(200,212,224,0.16);
    background: rgba(15,23,36,0.66);
    color: var(--fog);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: Arial, Helvetica, system-ui, sans-serif !important;
    font-size: 13px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 30px rgba(15,23,36,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

.hc-rb-phone-direct:hover {
    background: rgba(15,23,36,0.82);
    border-color: rgba(200,212,224,0.26);
    color: var(--white);
    transform: translateY(-1px);
}

.hc-rb-phone-direct:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 3px;
}

.hc-rb-phone-icon {
    width: 13px;
    height: 13px;
    display: inline-flex;
    flex: 0 0 auto;
    opacity: .78;
}

.hc-rb-phone-icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    display: block;
}

.hc-rb-phone-text {
    white-space: nowrap;
}

.hc-rb-trigger {
    width: 224px;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 14px 18px !important;
    background: var(--night) !important;
    color: var(--off) !important;
    font-family: Arial, Helvetica, system-ui, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15,23,36,0.20) !important;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
    animation: none !important;
}

.hc-rb-trigger:hover {
    background: var(--slate) !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(15,23,36,0.24) !important;
}

.hc-rb-trigger:focus-visible,
.hc-rb-submit:focus-visible,
.hc-rb-close:focus-visible {
    outline: 2px solid var(--steel);
    outline-offset: 3px;
}

.hc-rb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--steel);
    box-shadow: 0 0 0 5px rgba(91,122,158,.16);
    flex: 0 0 auto;
}

.hc-rb-panel {
    position: absolute;
    right: 0;
    bottom: 102px;
    width: min(410px, calc(100vw - 32px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--white);
    color: var(--ink);
    border-radius: 0;
    box-shadow: var(--shadow);
    padding: 26px 24px 24px;
    border: 1px solid var(--border);
}

.hc-rb-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--steel);
}

.hc-rb-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--mist);
    padding: 3px 5px;
    transition: color .18s ease;
}

.hc-rb-close:hover {
    color: var(--night);
}

.hc-rb-header strong {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0 28px 8px 0;
}

.hc-rb-header p {
    margin: 0 20px 20px 0;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 300;
    color: var(--mist);
}

.hc-rb-form label {
    display: block;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mist);
    margin: 13px 0 7px;
}

.hc-rb-form input[type="text"],
.hc-rb-form input[type="email"],
.hc-rb-form input[type="tel"],
.hc-rb-form textarea,
.hc-rb-form select {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 12px 13px !important;
    font-family: Arial, Helvetica, system-ui, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 300 !important;
    background: var(--white) !important;
    color: var(--night) !important;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .18s ease, background .18s ease;
}

.hc-rb-form select {
    background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px !important;
}

.hc-rb-form input::placeholder,
.hc-rb-form textarea::placeholder {
    color: #a8b3bf;
}

.hc-rb-form input:focus,
.hc-rb-form textarea:focus,
.hc-rb-form select:focus {
    outline: none;
    border-color: var(--steel) !important;
    background: var(--off) !important;
}

.hc-rb-form textarea {
    resize: vertical;
    min-height: 104px;
}

.hc-rb-phone-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 10px;
    align-items: end;
}

.hc-rb-prefix-label,
.hc-rb-number-label {
    margin-bottom: 0 !important;
}

.hc-rb-consent {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-weight: 300 !important;
    line-height: 1.45;
    color: var(--ink-mid) !important;
    margin-top: 16px !important;
}

.hc-rb-consent input {
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--steel);
}

.hc-rb-submit {
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--night) !important;
    color: var(--off) !important;
    padding: 15px 18px !important;
    margin-top: 16px;
    font-family: Arial, Helvetica, system-ui, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background .22s ease, transform .22s ease;
}

.hc-rb-submit:hover {
    background: var(--slate) !important;
    transform: translateY(-1px);
}

.hc-rb-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.hc-rb-status {
    min-height: 18px;
    margin: 11px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--mist);
}

.hc-rb-status.is-error {
    color: #8b3a2a;
}

.hc-rb-status.is-success {
    color: #237a38;
}

.hc-rb-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hc-rb-widget {
        right: 12px;
        bottom: 12px;
        left: auto;
    }

    .hc-rb-phone-direct,
    .hc-rb-trigger {
        width: 212px;
        max-width: calc(100vw - 24px);
    }

    .hc-rb-phone-direct {
        min-height: 32px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .hc-rb-trigger {
        padding: 13px 16px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .hc-rb-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 112px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 110px);
        overflow-y: auto;
        padding: 22px 18px 20px;
        box-sizing: border-box;
    }

    .hc-rb-header strong {
        font-size: 24px;
    }

    .hc-rb-header p {
        font-size: 13px;
        margin-right: 20px;
    }

    .hc-rb-phone-row {
        grid-template-columns: 108px 1fr;
        gap: 8px;
    }
}


/* v25: Mobile Korrekturen und ruhigeres Verhalten */
.hc-rb-widget.is-open .hc-rb-phone-direct,
.hc-rb-widget.is-open .hc-rb-trigger {
    display: none !important;
}

@media (max-width: 640px) {
    .hc-rb-widget {
        right: 10px !important;
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
        left: auto !important;
        width: min(188px, calc(50vw - 12px)) !important;
        max-width: calc(100vw - 20px) !important;
        gap: 6px !important;
    }

    .hc-rb-phone-direct,
    .hc-rb-trigger {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hc-rb-phone-direct {
        min-height: 30px !important;
        padding: 7px 8px !important;
        font-size: 11px !important;
        letter-spacing: 0.02em !important;
        gap: 6px !important;
    }

    .hc-rb-phone-icon,
    .hc-rb-phone-icon svg {
        width: 11px !important;
        height: 11px !important;
    }

    .hc-rb-trigger {
        min-height: 44px !important;
        padding: 12px 10px !important;
        font-size: 10.5px !important;
        letter-spacing: 0.105em !important;
        gap: 8px !important;
        white-space: nowrap !important;
    }

    .hc-rb-dot {
        width: 6px !important;
        height: 6px !important;
        box-shadow: 0 0 0 5px rgba(91,122,158,.16) !important;
    }

    .hc-rb-panel {
        position: fixed !important;
        top: calc(12px + env(safe-area-inset-top)) !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 22px 18px 20px !important;
    }

    .hc-rb-header strong {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin-right: 32px !important;
    }

    .hc-rb-header p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .hc-rb-form input[type="text"],
    .hc-rb-form input[type="email"],
    .hc-rb-form input[type="tel"],
    .hc-rb-form textarea,
    .hc-rb-form select {
        font-size: 16px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .hc-rb-phone-row {
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .hc-rb-consent span {
        line-height: 1.45 !important;
    }
}

@media (max-width: 390px) {
    .hc-rb-widget {
        width: min(176px, calc(50vw - 10px)) !important;
    }

    .hc-rb-trigger {
        font-size: 10px !important;
        letter-spacing: 0.085em !important;
    }

    .hc-rb-phone-direct {
        font-size: 10.5px !important;
    }
}
