/* Hamburg erleben — Umfrage-Modal (Preview) */

.erleben-dialog {
    width: min(100%, 440px);
    max-width: calc(100vw - 24px);
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 1.25rem;
    background: transparent;
    overflow: visible;
}

.erleben-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.erleben-dialog__panel {
    position: relative;
    max-height: min(90vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.erleben-dialog__hero {
    padding: 28px 24px 20px;
    background: linear-gradient(145deg, #1f4e2c 0%, #2d5a27 45%, #3d7a35 100%);
    color: #fff;
}

.erleben-dialog__kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.erleben-dialog__title {
    margin: 0 40px 8px 0;
    font-family: var(--font-heading, system-ui, sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.erleben-dialog__lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.92;
}

.erleben-dialog__body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.erleben-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.erleben-dialog__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.erleben-step[hidden] {
    display: none !important;
}

.erleben-field-label {
    display: block;
    margin: 0 0 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.erleben-field-hint {
    margin: -8px 0 12px;
    font-size: 0.8125rem;
    color: #64748b;
}

.erleben-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.erleben-chip {
    flex: 1 1 calc(50% - 5px);
    min-width: 120px;
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.erleben-chip span {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
}

.erleben-chip.is-selected {
    border-color: #2d5a27;
    background: #eaf3ec;
    color: #1f4e2c;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12);
}

.erleben-chip.is-selected span {
    color: #3d6b44;
}

.erleben-chip--full {
    flex: 1 1 100%;
}

.erleben-day-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.erleben-day-pill {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.erleben-day-pill.is-selected {
    border-color: #2d5a27;
    background: #2d5a27;
    color: #fff;
}

.erleben-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.erleben-progress__dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}

.erleben-progress__dot.is-active {
    background: #2d5a27;
}

.erleben-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.erleben-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.erleben-btn--primary {
    background: #2d5a27;
    color: #fff;
}

.erleben-btn--primary:hover {
    background: #1f4e2c;
}

.erleben-btn--ghost {
    background: #f1f5f9;
    color: #334155;
}

.erleben-btn--ghost:hover {
    background: #e2e8f0;
}

.erleben-plan-title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.erleben-plan-sub {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: #64748b;
}

.erleben-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.erleben-timeline__item {
    position: relative;
    padding-left: 28px;
    padding-bottom: 20px;
}

.erleben-timeline__item:last-child {
    padding-bottom: 0;
}

.erleben-timeline__item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.erleben-timeline__item:last-child::before {
    display: none;
}

.erleben-timeline__dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2d5a27;
    border: 3px solid #eaf3ec;
}

.erleben-timeline__time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d5a27;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.erleben-timeline__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #64748b;
    vertical-align: middle;
}

.erleben-timeline__name {
    margin: 4px 0 2px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.erleben-timeline__name a {
    color: #111827;
    text-decoration: none;
}

.erleben-timeline__name a:hover {
    color: #2d5a27;
    text-decoration: underline;
}

.erleben-timeline__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.erleben-footnote {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
}

.erleben-footnote a {
    color: #2d5a27;
}

.erleben-share {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.erleben-share__label {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.erleben-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erleben-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.erleben-share-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.erleben-share-btn.is-copied {
    border-color: #2d5a27;
    background: #eaf3ec;
    color: #1f4e2c;
}

.erleben-share-btn--whatsapp:hover {
    border-color: #25d366;
    color: #128c7e;
}

.erleben-share-btn--telegram:hover {
    border-color: #229ed9;
    color: #229ed9;
}

.erleben-empty {
    padding: 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    font-size: 0.875rem;
    color: #92400e;
}

/* Floating CTA — visuell an Modal-Hero angelehnt */
.erleben-fab {
    position: fixed;
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 20px 8px 8px;
    border: 1px solid #d4e6d8;
    border-radius: 999px;
    background: #ffffff;
    color: #1f4e2c;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.erleben-fab:hover {
    transform: translateY(-3px);
    border-color: #b9d6bf;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.erleben-fab:active {
    transform: translateY(-1px);
}

.erleben-fab:focus {
    outline: none;
}

.erleben-fab:focus-visible {
    outline: 3px solid rgba(234, 243, 236, 0.95);
    outline-offset: 3px;
}

.erleben-fab__icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf3ec;
    color: #1f4e2c;
}

.erleben-fab__icon {
    display: block;
}

.erleben-fab__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-right: 2px;
}

.erleben-fab__title {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.erleben-fab__sub {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .erleben-fab {
        padding: 6px 16px 6px 6px;
        gap: 10px;
    }

    .erleben-fab__icon-wrap {
        width: 38px;
        height: 38px;
    }

    .erleben-fab__title {
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    .erleben-fab__copy {
        display: none;
    }

    .erleben-fab {
        padding: 10px;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .erleben-fab {
        transition: none;
    }

    .erleben-fab:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .erleben-dialog__hero {
        padding: 24px 20px 16px;
    }

    .erleben-dialog__body {
        padding: 16px 20px 20px;
    }

    .erleben-chip {
        flex: 1 1 100%;
    }
}

/* Preview: Share-Bar (rechts unten) + Erleben-FAB nicht überlappen */
@media (max-width: 1024px) {
    body:has(.erleben-fab) .share-bar {
        right: auto;
        left: max(16px, env(safe-area-inset-left, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
        flex-direction: column;
        z-index: 120;
    }

    body:has(.erleben-fab) .erleben-fab {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        z-index: 51;
    }
}
