/* =============================================================
   BeteiligungsCheck – Stylesheet
   Wendewerk GKV Tools
   ============================================================= */

.wwgt-beteiligungscheck {
    --btc-primary:  #00acec;
    --btc-dark:     #12405e;
    --btc-success:  #16a34a;
    --btc-warning:  #d97706;
    --btc-danger:   #e53e3e;
    --btc-radius: 8px;
    --btc-shadow: none;

    font-family: inherit;
    color: #1a202c;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────────────────── */
.wwgt-btc-hero {
    position: relative;
    background: linear-gradient(135deg, #12405e 0%, #00acec 100%);
    border-radius: var(--btc-radius);
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    text-align: center;
    overflow: hidden;
    margin-bottom: 32px;
}

.wwgt-btc-hero--has-image {
    background: none;
    background-size: cover;
    background-position: center;
}

.wwgt-btc-hero__overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(0deg, #00aeed 0%, #12405e -100%);
    opacity: 0.9;
    z-index: 0;
}

.wwgt-btc-hero > *:not(.wwgt-btc-hero__overlay) {
    position: relative;
    z-index: 1;
}

.wwgt-btc-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wwgt-btc-hero__eyebrow {
    margin: 0 0 10px;
    color: #00acec;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wwgt-btc-hero__title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.wwgt-btc-hero__subtitle {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 24px;
    color: rgba(255,255,255,.88);
    font-size: 17px;
    line-height: 1.7;
}

.wwgt-btc-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wwgt-btc-hero__facts span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
}

/* ── Form Section ───────────────────────────────────────────── */
.wwgt-btc-form-section {
    background: #ffffff;
    border-radius: var(--btc-radius);
    box-shadow: none;
    padding: clamp(24px, 4vw, 48px);
    margin-bottom: 32px;
}

.wwgt-btc-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wwgt-btc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.wwgt-btc-section-sub {
    margin: -16px 0 0;
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* ── Field ──────────────────────────────────────────────────── */
.wwgt-btc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wwgt-btc-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.wwgt-btc-label__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--btc-primary);
    background: rgba(0,172,236,.08);
    padding: 2px 10px;
    border-radius: 999px;
}

.wwgt-btc-hint {
    margin: 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* ── Slider ─────────────────────────────────────────────────── */
.wwgt-btc-slider-wrap { display: flex; flex-direction: column; gap: 6px; }

.wwgt-btc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.wwgt-btc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--btc-primary);
    border: 3px solid #fff;
    box-shadow: none;
    cursor: pointer;
    transition: transform .15s;
}
.wwgt-btc-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.wwgt-btc-slider::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--btc-primary);
    border: 3px solid #fff;
    box-shadow: none;
}

.wwgt-btc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a0aec0;
}

/* ── Toggle Group ───────────────────────────────────────────── */
.wwgt-btc-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wwgt-btc-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    font-size: inherit;
    font-family: inherit;
}

.wwgt-btc-toggle-btn:hover {
    border-color: var(--btc-primary);
    background: rgba(0,172,236,.05);
}

.wwgt-btc-toggle-btn.is-active {
    border-color: var(--btc-primary);
    background: rgba(0,172,236,.08);
    box-shadow: 0 0 0 3px rgba(0,172,236,.15);
}

.wwgt-btc-toggle-btn__icon  { font-size: 24px; }
.wwgt-btc-toggle-btn__label { font-size: 15px; font-weight: 700; color: #1a202c; }
.wwgt-btc-toggle-btn__sub   { font-size: 12px; color: #718096; }

/* Small toggle (Bonusheft) */
.wwgt-btc-toggle-group--small {
    grid-template-columns: repeat(3, 1fr);
}

.wwgt-btc-toggle-btn--small {
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    border-radius: 8px;
}

/* ── Stepper ────────────────────────────────────────────────── */
.wwgt-btc-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.wwgt-btc-stepper__btn {
    width: 44px;
    height: 44px;
    background: #f7fafc;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--btc-primary);
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}

.wwgt-btc-stepper__btn:hover { background: rgba(0,172,236,.1); }

.wwgt-btc-stepper__value {
    min-width: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    padding: 0 8px;
}

/* ── Zuzahlungs-Grid ────────────────────────────────────────── */
.wwgt-btc-zz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wwgt-btc-zz-card {
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s;
}

.wwgt-btc-zz-card:focus-within {
    border-color: var(--btc-primary);
    box-shadow: 0 0 0 3px rgba(0,172,236,.1);
}

.wwgt-btc-zz-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wwgt-btc-zz-card__icon { font-size: 28px; flex-shrink: 0; }

.wwgt-btc-zz-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2px;
}

.wwgt-btc-zz-card__rule {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
}

.wwgt-btc-zz-card__input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wwgt-btc-zz-card__input-label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.wwgt-btc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wwgt-btc-input {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    color: #1a202c;
    transition: border-color .2s, box-shadow .2s;
}

.wwgt-btc-input:focus {
    outline: none;
    border-color: var(--btc-primary);
    box-shadow: 0 0 0 3px rgba(0,172,236,.15);
}

.wwgt-btc-input-suffix {
    position: absolute;
    right: 12px;
    font-size: 13px;
    color: #a0aec0;
    pointer-events: none;
    white-space: nowrap;
}

.wwgt-btc-zz-card__result {
    padding: 10px 14px;
    background: rgba(0,172,236,.06);
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    border: 1px solid rgba(0,172,236,.12);
}

.wwgt-btc-zz-card__result strong {
    color: var(--btc-danger);
    font-size: 15px;
}

/* ── Total Bar ──────────────────────────────────────────────── */
.wwgt-btc-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #12405e, #1a5276);
    border-radius: 8px;
    color: #ffffff;
}

.wwgt-btc-total-bar__label { font-size: 15px; font-weight: 600; }
.wwgt-btc-total-bar__value { font-size: 24px; font-weight: 800; }

/* ── Calc Button ────────────────────────────────────────────── */
.wwgt-btc-calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--btc-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.wwgt-btc-calc-btn:hover {
    background: #0090c8;
    transform: translateY(-1px);
}

/* ── Result ─────────────────────────────────────────────────── */
.wwgt-btc-result {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Headline Block ─────────────────────────────────────────── */
.wwgt-btc-headline-block {
    background: linear-gradient(135deg, #12405e 0%, #1a5276 100%);
    border-radius: var(--btc-radius);
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
    color: #ffffff;
}

.wwgt-btc-headline-block__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wwgt-btc-headline-block__amount {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.wwgt-btc-headline-block__sub {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,.7);
}

/* ── Chart Block ────────────────────────────────────────────── */
.wwgt-btc-chart-block {
    background: #ffffff;
    border-radius: var(--btc-radius);
    box-shadow: none;
    padding: 28px;
}

.wwgt-btc-chart-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

.wwgt-btc-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wwgt-btc-chart-row {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    align-items: center;
    gap: 12px;
}

.wwgt-btc-chart-row__label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wwgt-btc-chart-row__bar-wrap {
    height: 28px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
}

.wwgt-btc-chart-row__bar-gkv {
    height: 100%;
    background: #00acec;
    transition: width .5s ease;
}

.wwgt-btc-chart-row__bar-eigen {
    height: 100%;
    background: var(--btc-danger);
    transition: width .5s ease;
}

.wwgt-btc-chart-row__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--btc-danger);
    text-align: right;
}

.wwgt-btc-chart-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
}

.wwgt-btc-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.wwgt-btc-legend-dot--gkv   { background: #00acec; }
.wwgt-btc-legend-dot--eigen { background: var(--btc-danger); }

/* ── KPI Grid ───────────────────────────────────────────────── */
.wwgt-btc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wwgt-btc-kpi {
    background: #ffffff;
    border-radius: var(--btc-radius);
    box-shadow: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 4px solid var(--btc-primary);
}

.wwgt-btc-kpi__label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wwgt-btc-kpi__value {
    font-size: 22px;
    font-weight: 800;
    color: var(--btc-danger);
    line-height: 1.1;
}

.wwgt-btc-kpi__sub { font-size: 12px; color: #a0aec0; }

/* ── Limit Block ────────────────────────────────────────────── */
.wwgt-btc-limit-block {
    background: #ffffff;
    border-radius: var(--btc-radius);
    box-shadow: none;
    padding: 24px;
}

.wwgt-btc-limit-block__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.wwgt-btc-limit-block__label {
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.wwgt-btc-limit-block__value {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
}

.wwgt-btc-limit-block__sub {
    font-size: 13px;
    color: #718096;
    margin-top: 2px;
}

.wwgt-btc-limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.wwgt-btc-limit-badge--success {
    background: rgba(22,163,74,.1);
    color: var(--btc-success);
    border: 2px solid rgba(22,163,74,.25);
}

.wwgt-btc-limit-badge--warning {
    background: rgba(217,119,6,.1);
    color: var(--btc-warning);
    border: 2px solid rgba(217,119,6,.25);
}

.wwgt-btc-limit-badge--info {
    background: rgba(0,172,236,.1);
    color: var(--btc-primary);
    border: 2px solid rgba(0,172,236,.25);
}

.wwgt-btc-progress-bar {
    height: 14px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wwgt-btc-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #00acec, #16a34a);
    border-radius: 999px;
    transition: width .6s ease;
}

.wwgt-btc-progress-note {
    margin: 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

/* ── Alert ──────────────────────────────────────────────────── */
.wwgt-btc-alert {
    border-radius: var(--btc-radius);
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
}

.wwgt-btc-alert--success {
    background: #f0fdf4;
    border-left: 4px solid var(--btc-success);
    color: #14532d;
}

.wwgt-btc-alert--warning {
    background: #fffbeb;
    border-left: 4px solid var(--btc-warning);
    color: #78350f;
}

.wwgt-btc-alert--danger {
    background: #fff5f5;
    border-left: 4px solid var(--btc-danger);
    color: #742a2a;
}

.wwgt-btc-alert--info {
    background: #eff6ff;
    border-left: 4px solid var(--btc-primary);
    color: #1e3a5f;
}

.wwgt-btc-alert strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

/* ── CTA Block ──────────────────────────────────────────────── */
.wwgt-btc-cta-block {
    background: linear-gradient(135deg, #12405e 0%, #1a5276 100%);
    border-radius: var(--btc-radius);
    overflow: hidden;
}

.wwgt-btc-cta-block__inner {
    padding: clamp(28px, 4vw, 48px);
    text-align: center;
}

.wwgt-btc-cta-block__icon { font-size: 40px; margin-bottom: 12px; }

.wwgt-btc-cta-block__title {
    margin: 0 0 12px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #ffffff;
}

.wwgt-btc-cta-block__text {
    margin: 0 0 24px;
    font-size: 15px;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.wwgt-btc-cta-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.wwgt-btc-cta-block__note {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.65);
}

/* ── Buttons ────────────────────────────────────────────────── */
.wwgt-btc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: none;
}

.wwgt-btc-btn--primary {
    background: var(--btc-primary);
    color: #ffffff;
}

.wwgt-btc-btn--primary:hover {
    background: #0090c8;
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.wwgt-btc-btn--secondary {
    background: rgba(255,255,255,.15);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,.35);
}

.wwgt-btc-btn--secondary:hover {
    background: rgba(255,255,255,.25);
    color: #ffffff;
    text-decoration: none;
}

/* ── Reset ──────────────────────────────────────────────────── */
.wwgt-btc-reset-wrap { text-align: center; }

.wwgt-btc-reset-btn {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    color: #718096;
    cursor: pointer;
    transition: all .2s;
}

.wwgt-btc-reset-btn:hover {
    border-color: var(--btc-primary);
    color: var(--btc-primary);
}

/* ── Source Note ────────────────────────────────────────────── */
.wwgt-btc-source-note {
    margin-top: 8px;
    font-size: 11px;
    color: #a0aec0;
    line-height: 1.5;
    text-align: center;
    padding: 0 16px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .wwgt-btc-zz-grid      { grid-template-columns: 1fr; }
    .wwgt-btc-kpi-grid     { grid-template-columns: repeat(2, 1fr); }
    .wwgt-btc-chart-row    { grid-template-columns: 100px 1fr 70px; }
}

@media (max-width: 480px) {
    .wwgt-btc-kpi-grid     { grid-template-columns: 1fr; }
    .wwgt-btc-toggle-group { grid-template-columns: 1fr 1fr; }
    .wwgt-btc-chart-row    { grid-template-columns: 80px 1fr 60px; }
    .wwgt-btc-limit-block__inner { flex-direction: column; }
}
