/**
 * Hain Erstgespräch
 * Matches claudia-hain.com design system (Naturgrün).
 */

.heg-form {
    --heg-deep: #1c3d5a;
    --heg-accent: #7a9a6e;
    --heg-accent-hover: #6b8c5e;
    --heg-cream: #f4f7f2;
    --heg-sand: #e4ecdf;
    --heg-warm: #dae5d5;
    --heg-text: #2c3e50;
    --heg-text-light: #5a6b7a;
    --heg-white: #fff;
    --heg-border: rgba(28, 61, 90, 0.08);
    --heg-radius: 12px;
    --heg-radius-lg: 20px;
    --heg-focus: #7a9a6e;
    --heg-error: #c0392b;
    --heg-notice-bg: #edf5ea;
    --heg-notice-border: #7a9a6e;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    max-width: 680px;
}

/* ── Screen reader only ── */
.heg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Errors ── */
.heg-errors {
    background: #fdf0ee;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-left: 3px solid var(--heg-error);
    border-radius: var(--heg-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.heg-error {
    color: var(--heg-error);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ── Notice (green box) ── */
.heg-notice {
    background: var(--heg-notice-bg);
    border: 1px solid rgba(122, 154, 110, 0.2);
    border-radius: var(--heg-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.heg-notice__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(122, 154, 110, 0.15);
}

.heg-notice__icon {
    flex-shrink: 0;
    color: var(--heg-accent);
}

.heg-notice__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--heg-deep);
}

.heg-notice__text {
    font-size: 14px;
    color: var(--heg-text);
    line-height: 1.75;
}

.heg-notice__text p {
    margin: 0 0 10px;
}

.heg-notice__text p:last-child {
    margin-bottom: 0;
}

.heg-notice__text strong {
    color: var(--heg-deep);
}


/* ── Checkbox ── */
.heg-consent {
    margin-bottom: 20px;
}

.heg-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 16px 20px;
    background: var(--heg-sand);
    border-radius: var(--heg-radius);
    transition: background 0.2s;
}

.heg-checkbox:hover {
    background: var(--heg-warm);
}

.heg-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--heg-accent);
    cursor: pointer;
}

.heg-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--heg-focus);
    outline-offset: 2px;
}

.heg-checkbox__text {
    font-size: 13px;
    color: var(--heg-text);
    line-height: 1.65;
}

/* ── Button ── */
.heg-submit {
    margin-top: 8px;
}

.heg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}

.heg-btn:focus-visible {
    outline: 2px solid var(--heg-focus);
    outline-offset: 2px;
}

.heg-btn--book {
    background: var(--heg-accent);
    color: var(--heg-white);
    width: 100%;
    padding: 17px 30px;
    font-size: 16px;
}

.heg-btn--book:hover:not(.heg-btn--disabled):not(.heg-btn--loading) {
    background: var(--heg-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(122, 154, 110, 0.25);
}

.heg-btn--book:active:not(.heg-btn--disabled) {
    transform: translateY(0);
}

.heg-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.heg-btn--loading {
    opacity: 0.7;
    cursor: wait;
}

/* ── Back link ── */
.heg-back__link {
    font-size: 14px;
    color: var(--heg-accent);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.heg-back__link:hover {
    color: var(--heg-accent-hover);
}

.heg-back__link:focus-visible {
    outline: 2px solid var(--heg-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Embed ── */
.heg-embed {
    max-width: 680px;
}

.heg-embed__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.heg-embed__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--heg-deep);
    margin: 0;
}

.heg-embed__widget {
    background: var(--heg-white);
    border: 1px solid var(--heg-border);
    border-radius: var(--heg-radius-lg);
    overflow: hidden;
    min-height: 600px;
}

.heg-embed__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--heg-text-light);
    font-size: 14px;
}

.heg-embed__widget .zeeg-inline-widget,
.heg-embed__widget iframe {
    display: block;
    width: 100%;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .heg-notice {
        padding: 16px;
    }

    .heg-btn--book {
        font-size: 15px;
        padding: 15px 24px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .heg-btn,
    .heg-checkbox {
        transition: none;
    }

    .heg-btn--book:hover:not(.heg-btn--disabled) {
        transform: none;
    }
}
