/**
 * flugbuchen.de — Fragenbaum Styles
 *
 * Styles for the interactive questionnaire (Fragenbaum) page including
 * question cards, answer options, progress bar, world map, and transitions.
 *
 * @copyright reDim GmbH | @link https://www.redim.de | @contact team@redim.de
 */

/* ========================================
   Page Header
   ======================================== */

.fragenbaum__header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
    padding: 2rem 0 1.75rem;
    color: #fff;
}

.fragenbaum__header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .fragenbaum__header-inner {
        padding: 0 2rem;
    }
}

.fragenbaum__header-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.fragenbaum__header-text h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.fragenbaum__header-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .fragenbaum__header-text h1 {
        font-size: 1.625rem;
    }
    .fragenbaum__header-text p {
        font-size: 0.9375rem;
    }
}

/* ========================================
   Layout
   ======================================== */

.fragenbaum {
    min-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    background: var(--color-bg-alt);
}

.fragenbaum__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 1rem 1rem 2rem;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .fragenbaum__inner {
        flex-direction: row;
        gap: 1.5rem;
        padding: 1.5rem 2rem 3rem;
    }
}

/* ========================================
   Progress Bar
   ======================================== */

.fragenbaum__progress {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.fragenbaum__progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.fragenbaum__progress-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.fragenbaum__progress-block {
    font-size: 0.75rem;
    color: var(--color-secondary);
    font-weight: 600;
    background: rgba(13, 148, 136, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.fragenbaum__progress-bar {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.fragenbaum__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), #10B981);
    border-radius: 2px;
    transition: width 0.3s ease;
    min-width: 2%;
}

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

/* ========================================
   World Map Panel (Sidebar on Desktop)
   ======================================== */

.fragenbaum__map-panel {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

/* Mobile: collapsible */
.fragenbaum__map-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    background: transparent;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.fragenbaum__map-panel.is-expanded .fragenbaum__map-toggle {
    border-bottom-color: var(--color-border);
}

.fragenbaum__map-toggle-icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.2s ease;
    color: var(--color-text-secondary);
}

.fragenbaum__map-panel.is-expanded .fragenbaum__map-toggle-icon {
    transform: rotate(180deg);
}

.fragenbaum__map-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fragenbaum__map-panel.is-expanded .fragenbaum__map-container {
    max-height: 780px;
}

.fragenbaum__map-svg-wrap {
    padding: 0.75rem 0.75rem 0.5rem;
    position: relative;
}

.fragenbaum__map-counter {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    padding: 0 0.75rem 0.75rem;
    font-weight: 500;
}

.fragenbaum__map-counter strong {
    color: var(--color-secondary);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .fragenbaum__map-container {
        transition: none;
    }
    .fragenbaum__map-toggle-icon {
        transition: none;
    }
}

/* Desktop: sticky sidebar on the right */
@media (min-width: 1024px) {
    .fragenbaum__map-panel {
        width: 624px;
        min-width: 624px;
        position: sticky;
        top: 5rem;
        align-self: flex-start;
        order: 2;
    }

    .fragenbaum__map-toggle {
        display: none;
    }

    .fragenbaum__map-container {
        max-height: none;
        overflow: visible;
    }

    .fragenbaum__map-svg-wrap {
        padding: 0.75rem;
    }
}

@media (min-width: 1440px) {
    .fragenbaum__map-panel {
        width: 700px;
        min-width: 700px;
    }
}

/* World Map SVG (v2 — real country boundaries) */
.fragenbaum__map-svg-wrap svg.worldmap {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.fragenbaum__map-svg-wrap .country {
    fill: #E2E8F0;
    /* Dünne weiße Trennlinien zwischen Ländern — PIXEL-KONSTANT
       (non-scaling-stroke), damit sie auf jeder Zoom-Stufe gleich
       dünn bleiben und niemals unnötig dick werden */
    stroke: #fff !important;
    stroke-width: 0.5px !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke;
    transition: fill 0.4s ease, opacity 0.4s ease;
    /* Kein hässlicher schwarzer Focus-Rahmen beim Klick */
    outline: none;
}

.fragenbaum__map-svg-wrap .country:focus,
.fragenbaum__map-svg-wrap .country:focus-visible {
    outline: none;
    /* Keine stroke-Änderung bei focus — bleibt sonst nach Click kleben.
       Visuelles Feedback kommt nur über :hover (fill-Änderung) */
}

.fragenbaum__map-svg-wrap .country--destination {
    /* !important um Konflikte mit Inline-Styles oder SVG-Attributen
       sicher zu überschreiben */
    fill: #0D9488 !important;
    cursor: pointer;
}

/* Deutlich sichtbarer Hover-Effekt: dunklere Füllung.
   KEINE stroke-Änderung, weil Browser :hover bei Focus-Persistenz
   falsch zeichnen kann und Borders kleben bleiben. */
.fragenbaum__map-svg-wrap .country--destination:hover {
    fill: #064E3B !important;
}

/* Auch gefadete Länder (während Fokus-Modus) bekommen einen Hover-Effekt */
.fragenbaum__map-svg-wrap .country--faded:hover {
    fill: #94A3B8 !important;
    cursor: pointer;
}

.fragenbaum__map-svg-wrap .country--faded {
    fill: #CBD5E1 !important;
    opacity: 1;
}

.fragenbaum__map-svg-wrap .country--no-destination {
    fill: #CBD5E1 !important;
    opacity: 1;
    pointer-events: none;
}

.fragenbaum__map-svg-wrap .country--highlight {
    fill: var(--color-cta) !important;
}

.fragenbaum__map-svg-wrap .country--focused {
    fill: var(--color-cta) !important;
    /* Keine Border — die Farb-Abgrenzung (orange CTA) ist als
       visueller Indikator ausreichend */
}

/* ========================================
   Inset-Fenster für Sonderländer
   (Alaska, Hawaii, Kanaren, Madeira, etc.)
   ======================================== */

.worldmap-insets {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 5;
    pointer-events: none;
}

.worldmap-inset {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    padding: 0.25rem 0.25rem 0.125rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
    width: 120px;
    position: relative;
    pointer-events: auto;
    animation: worldmap-inset-fade-in 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.worldmap-inset:hover,
.worldmap-inset:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.2);
    border-color: #F97316;
    outline: none;
}

.worldmap-inset-label {
    font-size: 0.5625rem;
    font-weight: 600;
    color: #1B2A4A;
    text-align: center;
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.worldmap-inset-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.25rem;
    background: #F8FAFC;
}

.worldmap-inset-pins {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    top: 1.3rem; /* unter dem Label */
    bottom: 0.125rem;
    pointer-events: none;
}

.worldmap-inset-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.4);
    color: #fff;
    font-size: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    animation: worldmap-inset-pin-pop 0.3s ease-out both;
    transition: transform 0.15s;
}

.worldmap-inset-pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 10;
}

@keyframes worldmap-inset-fade-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes worldmap-inset-pin-pop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    70%  { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Mobile: Insets in einer Reihe unter der Karte */
@media (max-width: 768px) {
    .worldmap-insets {
        position: absolute;
        top: auto;
        bottom: 0.25rem;
        right: 0.25rem;
        left: 0.25rem;
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.25rem;
        overflow-x: auto;
    }
    .worldmap-inset {
        width: 75px;
        flex-shrink: 0;
    }
    .worldmap-inset-label {
        font-size: 0.5rem;
    }
    .worldmap-inset-pin {
        width: 12px;
        height: 12px;
        font-size: 0.45rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .worldmap-inset,
    .worldmap-inset-pin {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fragenbaum__map-svg-wrap .country {
        transition: none;
    }
}

/* ========================================
   Question Panel
   ======================================== */

.fragenbaum__question-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    order: 1;
}

/* ========================================
   Question Card
   ======================================== */

.fragenbaum__question {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    animation: fb-slide-in 0.25s ease;
}

@keyframes fb-slide-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fragenbaum__question {
        animation: none;
    }
}

@media (min-width: 768px) {
    .fragenbaum__question {
        padding: 2rem 2.5rem;
    }
}

.fragenbaum__question-number {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-secondary);
    background: rgba(13, 148, 136, 0.08);
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.fragenbaum__question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: 0.375rem;
}

@media (min-width: 768px) {
    .fragenbaum__question-text {
        font-size: 1.5rem;
    }
}

.fragenbaum__question-hint {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ========================================
   Answer Options (Shared)
   ======================================== */

.fragenbaum__answers {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ========================================
   Answer Card (Single Choice, Ja/Nein)
   ======================================== */

.fragenbaum__answer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    min-height: 3rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    width: 100%;
    line-height: 1.4;
}

.fragenbaum__answer-card:hover {
    border-color: var(--color-secondary);
    background: rgba(13, 148, 136, 0.02);
    box-shadow: var(--shadow-sm);
}

.fragenbaum__answer-card:active {
    transform: scale(0.99);
}

.fragenbaum__answer-card.is-selected {
    border-color: var(--color-secondary);
    background: rgba(13, 148, 136, 0.06);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

.fragenbaum__answer-card:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

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

/* Ja/Nein specific: side by side */
.fragenbaum__answers--ja-nein {
    flex-direction: row;
    gap: 0.75rem;
}

.fragenbaum__answers--ja-nein .fragenbaum__answer-card {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem;
}

/* ========================================
   Bildwahl (Image Choice)
   ======================================== */

.fragenbaum__answers--bildwahl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .fragenbaum__answers--bildwahl {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fragenbaum__bildwahl-card {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: var(--color-bg);
}

.fragenbaum__bildwahl-card:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.fragenbaum__bildwahl-card.is-selected {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

.fragenbaum__bildwahl-card:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.fragenbaum__bildwahl-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.fragenbaum__bildwahl-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #143a5c 40%, var(--color-secondary) 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    padding: 1rem;
    text-align: center;
}

.fragenbaum__bildwahl-label {
    padding: 0.625rem 0.875rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

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

/* ========================================
   Multi-Choice (Checkbox Cards)
   ======================================== */

.fragenbaum__answer-card--multi {
    position: relative;
    padding-left: 2.75rem;
}

.fragenbaum__checkbox {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--color-border);
    border-radius: 3px;
    background: var(--color-bg);
    transition: border-color 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fragenbaum__answer-card--multi.is-selected .fragenbaum__checkbox {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.fragenbaum__checkbox-check {
    width: 0.625rem;
    height: 0.625rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fragenbaum__answer-card--multi.is-selected .fragenbaum__checkbox-check {
    opacity: 1;
}

/* ========================================
   Slider
   ======================================== */

.fragenbaum__slider-wrap {
    padding: 0.5rem 0 1rem;
}

.fragenbaum__slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
}

.fragenbaum__slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 1.375rem;
    height: 1.375rem;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

.fragenbaum__slider::-moz-range-thumb {
    width: 1.375rem;
    height: 1.375rem;
    background: var(--color-secondary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

.fragenbaum__slider:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.fragenbaum__slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.fragenbaum__slider-value {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0.75rem;
}

/* ========================================
   Freitext
   ======================================== */

.fragenbaum__textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--color-text);
    resize: vertical;
    transition: border-color 0.15s ease;
    background: var(--color-bg);
}

.fragenbaum__textarea:focus {
    border-color: var(--color-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.fragenbaum__textarea::placeholder {
    color: var(--color-text-secondary);
}

/* ========================================
   Action Buttons
   ======================================== */

.fragenbaum__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.fragenbaum__btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    min-height: 2.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    font-family: inherit;
}

.fragenbaum__btn-next:hover {
    background: var(--color-secondary-hover);
}

.fragenbaum__btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fragenbaum__btn-next:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

.fragenbaum__btn-skip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.15s ease;
}

.fragenbaum__btn-skip:hover {
    color: var(--color-text);
}

.fragenbaum__btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: color 0.15s ease;
}

.fragenbaum__btn-back:hover {
    color: var(--color-text);
}

.fragenbaum__btn-back::before {
    content: "\2190";
}

/* ========================================
   Results Button (ab Frage 5)
   ======================================== */

.fragenbaum__results-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-cta);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    min-height: 2.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    font-family: inherit;
    margin-left: auto;
}

.fragenbaum__results-btn:hover {
    background: var(--color-cta-hover);
}

.fragenbaum__results-btn:focus-visible {
    outline: 2px solid var(--color-cta);
    outline-offset: 3px;
}

.fragenbaum__results-btn[hidden] {
    display: none;
}

/* ========================================
   Fun Fact
   ======================================== */

.fragenbaum__fun-fact {
    padding: 1rem 1.25rem;
    background: rgba(13, 148, 136, 0.05);
    border-left: 3px solid var(--color-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.25rem 0 0;
    animation: fb-slide-in 0.25s ease;
}

.fragenbaum__fun-fact-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.fragenbaum__fun-fact-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .fragenbaum__fun-fact {
        animation: none;
    }
}

/* ========================================
   Resume Dialog
   ======================================== */

.fragenbaum__resume {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    padding: 1rem;
}

.fragenbaum__resume[hidden] {
    display: none;
}

.fragenbaum__resume-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 26rem;
    width: 100%;
    box-shadow: var(--shadow-lift);
    text-align: center;
}

.fragenbaum__resume-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.fragenbaum__resume-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.fragenbaum__resume-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ========================================
   Result Transition
   ======================================== */

.fragenbaum__result-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
    animation: fb-fade-in 0.5s ease;
}

@keyframes fb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fragenbaum__result-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}

.fragenbaum__result-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.fragenbaum__result-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

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

/* ========================================
   Skeleton Loading
   ======================================== */

.fragenbaum__skeleton {
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--color-bg-alt) 25%, #e8edf4 50%, var(--color-bg-alt) 75%);
    background-size: 200% 100%;
    animation: fb-skeleton-pulse 1.5s ease infinite;
}

@keyframes fb-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fragenbaum__skeleton--question {
    height: 2rem;
    width: 80%;
    margin-bottom: 1.5rem;
}

.fragenbaum__skeleton--answer {
    height: 3rem;
    width: 100%;
    margin-bottom: 0.625rem;
}

@media (prefers-reduced-motion: reduce) {
    .fragenbaum__skeleton {
        animation: none;
        background: var(--color-bg-alt);
    }
}

/* ========================================
   Micro-Reward Block Transition
   ======================================== */

.fragenbaum__micro-reward {
    padding: 1rem 1.25rem;
    background: rgba(249, 115, 22, 0.05);
    border-left: 3px solid var(--color-cta);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1rem 0 0;
    animation: fb-slide-in 0.25s ease;
}

.fragenbaum__micro-reward-prefix {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cta);
    margin-bottom: 0.25rem;
}

.fragenbaum__micro-reward-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* === Autocomplete (F_ZIEL) === */
.fragenbaum__autocomplete {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}
.fragenbaum__autocomplete-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.fragenbaum__autocomplete-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1B2A4A;
    background: #fff;
    transition: border-color 0.2s;
    outline: none;
}
.fragenbaum__autocomplete-input:focus {
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.fragenbaum__autocomplete-icon {
    position: absolute;
    left: 0.875rem;
    color: #94A3B8;
    font-size: 1.1rem;
    pointer-events: none;
}
.fragenbaum__autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    list-style: none;
    padding: 0.5rem 0;
}
.fragenbaum__autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}
.fragenbaum__autocomplete-item:hover,
.fragenbaum__autocomplete-item--active {
    background-color: #F0FDFA;
}
.fragenbaum__autocomplete-item-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
}
.fragenbaum__autocomplete-item-name {
    font-weight: 600;
    color: #1B2A4A;
}
.fragenbaum__autocomplete-item-count {
    font-size: 0.8rem;
    color: #64748B;
    margin-left: auto;
}
.fragenbaum__autocomplete-map-hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px dashed #0D9488;
    border-radius: 8px;
    background: #F0FDFA;
    font-size: 0.85rem;
    color: #0D9488;
    text-align: center;
}
.fragenbaum__autocomplete-no-match {
    margin-top: 1rem;
    padding: 1rem;
    background: #FFFBEB;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #92400E;
}
.fragenbaum__autocomplete-surprise-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #0D9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.fragenbaum__autocomplete-surprise-btn:hover {
    background: #0F766E;
}

/* ========================================
   Pin Overlay
   ======================================== */

/* Map wrap needs position context for overlay */
.fragenbaum__map-svg-wrap {
    position: relative;
}

.worldmap-pin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.worldmap-pin {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: pin-pop 0.4s ease-out both;
    transition: width 0.3s, height 0.3s, opacity 0.3s, box-shadow 0.3s;
}

/* Pin-Größen: um 30% reduziert damit sich Pins bei dichten Ländern
   (z.B. Italien, Deutschland) nicht zu sehr überlappen */
.worldmap-pin--xl {
    width: 31px;
    height: 31px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
    z-index: 4;
}

.worldmap-pin--lg {
    width: 27px;
    height: 27px;
    font-size: 0.78rem;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3);
    z-index: 3;
}

.worldmap-pin--md {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
    background: linear-gradient(135deg, #14B8A6, #5EEAD4);
    box-shadow: 0 2px 5px rgba(13, 148, 136, 0.2);
    z-index: 2;
}

.worldmap-pin--sm {
    width: 17px;
    height: 17px;
    font-size: 0.55rem;
    background: #CBD5E1;
    opacity: 0.6;
    z-index: 1;
}

@keyframes pin-pop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    70%  { transform: translate(-50%, -50%) scale(1.15); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ========================================
   Pin Tooltip (Desktop)
   ======================================== */

.worldmap-pin-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 20;
    min-width: 180px;
    max-width: 240px;
    animation: tooltip-in 0.2s ease-out;
    pointer-events: auto;
}

/* Variante: Tooltip unterhalb des Pins (wenn oben kein Platz ist) */
.worldmap-pin-tooltip.worldmap-pin-tooltip--below {
    transform: translate(-50%, 0);
    animation: tooltip-in-below 0.2s ease-out;
}

.worldmap-pin-tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

/* Arrow flippt nach oben wenn der Tooltip unter dem Pin steht */
.worldmap-pin-tooltip--below .worldmap-pin-tooltip-arrow {
    bottom: auto;
    top: -6px;
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* Schriftgrößen wurden vom User explizit als Vorlage freigegeben (Apr 2026)
   — siehe memory/worldmap_config.md. NICHT vergrößern ohne User-Rückfrage. */
.worldmap-pin-tooltip-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 0.15rem;
}

.worldmap-pin-tooltip-typ {
    font-size: 0.625rem;
    color: #64748B;
    margin-bottom: 0.35rem;
}

.worldmap-pin-tooltip-desc {
    font-size: 0.6875rem;
    color: #0F172A;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.worldmap-pin-tooltip-flight {
    font-size: 0.625rem;
    color: #0D9488;
    font-weight: 600;
}

@keyframes tooltip-in {
    from { opacity: 0; transform: translate(-50%, -100%) translateY(6px); }
    to   { opacity: 1; transform: translate(-50%, -100%) translateY(0); }
}

@keyframes tooltip-in-below {
    from { opacity: 0; transform: translate(-50%, 0) translateY(-6px); }
    to   { opacity: 1; transform: translate(-50%, 0) translateY(0); }
}

/* ========================================
   Bottom Sheet (Mobile)
   ======================================== */

.worldmap-pin-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    transition: background 0.3s;
}

.worldmap-pin-sheet-backdrop--active {
    background: rgba(0, 0, 0, 0.3);
}

.worldmap-pin-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.worldmap-pin-sheet--active {
    transform: translateY(0);
}

.worldmap-pin-sheet-handle {
    width: 40px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.worldmap-pin-sheet-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.worldmap-pin-sheet-emoji {
    font-size: 1.5rem;
}

.worldmap-pin-sheet-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1B2A4A;
}

.worldmap-pin-sheet-typ {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.worldmap-pin-sheet-desc {
    font-size: 0.9rem;
    color: #0F172A;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.worldmap-pin-sheet-flight {
    font-size: 0.85rem;
    color: #0D9488;
    font-weight: 600;
}

/* === Breadcrumb === */
.fragenbaum__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}
.fragenbaum__breadcrumb-link {
    color: #64748B;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}
.fragenbaum__breadcrumb-link:hover,
.fragenbaum__breadcrumb-link:focus-visible {
    color: #0D9488;
    text-decoration: underline;
    outline: none;
}
.fragenbaum__breadcrumb-sep {
    color: #CBD5E1;
}
.fragenbaum__breadcrumb-current {
    color: #1B2A4A;
    font-weight: 600;
}
/* Aktiver Zustand (aktuelle View) — nicht klickbar */
.fragenbaum__breadcrumb-current--active {
    color: #1B2A4A !important;
    font-weight: 600 !important;
    cursor: default !important;
    text-decoration: none !important;
}
.fragenbaum__breadcrumb-current--active:hover {
    text-decoration: none !important;
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .worldmap-pin {
        animation: none;
    }
    /* --below braucht eigene Regel weil .worldmap-pin-tooltip.worldmap-pin-tooltip--below
       höhere Spezifität hat als nur .worldmap-pin-tooltip */
    .worldmap-pin-tooltip,
    .worldmap-pin-tooltip.worldmap-pin-tooltip--below {
        animation: none;
    }
    .worldmap-pin-sheet-backdrop,
    .worldmap-pin-sheet {
        transition: none;
    }
}
