/* PrivacyBee Onboarding screen (feature 001). Scoped under .pb-onboarding.
   Design: Figma lvduOcMARI1SYJyZiRKDzD node 17455:27115.
   Uses the WordPress admin system font stack (no external font CDN — Constitution I). */

.pb-onboarding {
    --pb-yellow: #feb625;
    --pb-yellow-hover: #ea9d01;
    --pb-navy: #081450;
    --pb-gray-900: #111827;
    --pb-gray-700: #374151;
    --pb-gray-500: #6b7280;
    --pb-gray-300: #d1d5db;
    --pb-gray-50: #f9fafb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--pb-gray-900);
    display: flex;
    justify-content: center;
    margin: 24px 20px 0 0;
}

.pb-onboarding__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 65px;
    align-items: stretch;
    overflow: hidden;
    max-width: 1101px;
    width: 100%;
}

/* Left column — form */
.pb-onboarding__main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 49px 32px;
}

.pb-onboarding__logo {
    width: 125px;
    height: 106px;
    object-fit: contain;
    margin-bottom: 29px;
}

.pb-onboarding__title {
    font-size: 28px;
    line-height: 40px;
    font-weight: 600;
    color: var(--pb-gray-900);
    margin: 0 0 18px;
}

.pb-onboarding__subtitle {
    font-size: 14px;
    line-height: 21px;
    color: var(--pb-gray-500);
    max-width: 407px;
    margin: 0 0 29px;
}

.pb-onboarding__form {
    width: 100%;
    max-width: 409px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Divider between connect (primary) and sign-up (secondary) */
.pb-onboarding__divider {
    width: 100%;
    height: 1px;
    background: var(--pb-gray-300);
    border: 0;
    margin: 0;
}

/* Sign-up (secondary) section */
.pb-onboarding__signup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.pb-onboarding__signup-title {
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--pb-gray-700);
    margin: 0 0 4px;
}

.pb-onboarding__note {
    text-align: center;
    font-size: 14px;
    line-height: 20px;
    color: var(--pb-gray-500);
    margin: 0;
}

.pb-onboarding__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--pb-gray-300);
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 16px;
    line-height: 24px;
    color: var(--pb-gray-900);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pb-onboarding__input:focus {
    outline: 2px solid var(--pb-yellow);
    outline-offset: 1px;
    border-color: var(--pb-yellow);
}

.pb-onboarding__button {
    width: 100%;
    box-sizing: border-box;
    background: var(--pb-yellow);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 10px 17px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pb-onboarding__button:hover,
.pb-onboarding__button:focus {
    background: var(--pb-yellow-hover);
}

/* Secondary (outline) button — sign-up CTA. Declared after the base button so it wins
   when an element carries both classes. */
.pb-onboarding__button--secondary {
    background: #fff;
    border: 1px solid var(--pb-yellow);
    color: var(--pb-gray-900);
}

.pb-onboarding__button--secondary:hover,
.pb-onboarding__button--secondary:focus {
    background: #fff;
    border-color: var(--pb-yellow-hover);
}

/* Connect (API key) — primary block at the top */
.pb-onboarding__connect {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* settings_fields() emits hidden inputs; keep them out of the flex flow so they add no gaps */
.pb-onboarding__connect input[type="hidden"] {
    display: none;
}

.pb-onboarding__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.pb-onboarding__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--pb-gray-700);
}

.pb-onboarding__info {
    width: 16px;
    height: 16px;
    display: block;
}

/* Info tooltip next to the "Dein API Key" label */
.pb-onboarding__tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    outline: none;
}

.pb-onboarding__tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 240px;
    background: var(--pb-gray-900);
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    text-align: left;
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.pb-onboarding__tooltip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--pb-gray-900);
}

.pb-onboarding__tooltip:hover .pb-onboarding__tooltip-bubble,
.pb-onboarding__tooltip:focus .pb-onboarding__tooltip-bubble,
.pb-onboarding__tooltip:focus-within .pb-onboarding__tooltip-bubble {
    opacity: 1;
    visibility: visible;
}

.pb-onboarding__error {
    color: #b32d2e;
    font-size: 13px;
    line-height: 18px;
    margin: 4px 0 0;
}

/* Right column — decorative panel */
.pb-onboarding__aside {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    background-image: url("../image/pb-onboarding-honeycomb.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.pb-onboarding__aside-text {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 600;
    text-align: center;
    color: var(--pb-gray-900);
    max-width: 431px;
    margin: 0;
}

/* "einfach" highlighted like a marker stroke (Figma 17455:27147): a semi-transparent
   PB-Yellow-Rollover highlight BEHIND the word (so the white text stays crisp), with thin
   solid end-caps. */
.pb-onboarding__aside-text .pb-onboarding__aside-accent {
    color: #fff;
    background-color: rgba(234, 157, 1, 0.55); /* #ea9d01 @ 55% — partially see-through */
    padding: 0.02em 6px;
    border-left: 2px solid #ea9d01;
    border-right: 2px solid #ea9d01;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Responsive: drop the right half on narrow viewports (Figma: "Mobile ohne rechte Hälfte") */
@media (max-width: 782px) {
    .pb-onboarding__aside {
        display: none;
    }
    .pb-onboarding__card {
        gap: 0;
    }
}
