.reiseplaner-widget {
    --rp-red: #D40054;
    --rp-red-hover: #c0004c;
    --rp-red-soft: rgba(212, 0, 84, 0.08);
    --rp-blue: #1B6B93;
    --rp-blue-soft: rgba(27, 107, 147, 0.08);
    --rp-green: #2E7D32;
    --rp-green-soft: rgba(46, 125, 50, 0.08);
    --rp-orange: #E65100;
    --rp-orange-soft: rgba(230, 81, 0, 0.08);
    --rp-text: #333;
    --rp-muted: #575E62;
    --rp-border: #dfdfdf;
    font-family: 'Poppins', sans-serif;
    color: var(--rp-text);
    max-width: 1120px;
    margin: 0 auto;
}

.reiseplaner-widget *,
.reiseplaner-widget *::before,
.reiseplaner-widget *::after {
    box-sizing: border-box;
}

.reiseplaner-widget .rp-heading-main,
.reiseplaner-widget .rp-heading-sub,
.reiseplaner-widget .rp-card-title {
    font-family: 'PT Serif Caption', serif;
}

.reiseplaner-widget .rp-heading-main {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--rp-red);
    margin-bottom: 0.4rem;
}

.reiseplaner-widget .rp-heading-sub {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    margin-bottom: 0.75rem;
}

.reiseplaner-widget .rp-intro {
    max-width: 760px;
    color: var(--rp-muted);
    margin-bottom: 1rem;
}

.reiseplaner-widget .rp-form-card,
.reiseplaner-widget .rp-results-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.reiseplaner-widget .rp-form-shell {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.reiseplaner-widget .rp-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rp-red);
    font-size: 1.15rem;
    margin-bottom: 0;
}

.reiseplaner-widget .rp-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0;
}

.reiseplaner-widget .rp-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reiseplaner-widget .rp-group-card {
    border: 1px solid rgba(212, 0, 84, 0.12);
    background: linear-gradient(180deg, #fff 0%, #fcf7f9 100%);
    border-radius: 16px;
    padding: 1rem;
}

.reiseplaner-widget .rp-group-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--rp-red);
    font-weight: 700;
    margin-bottom: 0.85rem;
    font-size: 0.98rem;
}

.reiseplaner-widget .rp-group-icon,
.reiseplaner-widget .rp-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--rp-red-soft);
    color: var(--rp-red);
    font-size: 1rem;
}

.reiseplaner-widget .rp-group-fields {
    margin-bottom: 0;
}

.reiseplaner-widget .rp-options-row {
    align-items: end;
}

.reiseplaner-widget .rp-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.reiseplaner-widget .rp-field label {
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--rp-muted);
}

.reiseplaner-widget .rp-field-date {
    padding-bottom: 0.15rem;
}

.reiseplaner-widget .rp-form-shell > .rp-field:not(.rp-field-date) {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(43, 51, 63, 0.08);
}

.reiseplaner-widget input,
.reiseplaner-widget select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--rp-border);
    background: #fff;
    font: inherit;
}

.reiseplaner-widget input[type="date"] {
    min-height: 54px;
}

.reiseplaner-widget input:focus,
.reiseplaner-widget select:focus {
    outline: none;
    border-color: var(--rp-red);
    box-shadow: 0 0 0 3px var(--rp-red-soft);
}

.reiseplaner-widget .rp-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: stretch;
}

.reiseplaner-widget .rp-checkbox-card {
    flex: 1 1 180px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 2px solid var(--rp-border);
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
    transition: 0.2s ease;
    cursor: pointer;
    min-height: 88px;
}

.reiseplaner-widget .rp-checkbox-card input {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
}

.reiseplaner-widget .rp-checkbox-card.active-bahn {
    border-color: var(--rp-red);
    background: var(--rp-red-soft);
}

.reiseplaner-widget .rp-checkbox-card.active-schiff {
    border-color: var(--rp-blue);
    background: var(--rp-blue-soft);
}

.reiseplaner-widget .rp-checkbox-card.active-seilbahn {
    border-color: var(--rp-green);
    background: var(--rp-green-soft);
}

.reiseplaner-widget .rp-checkbox-card.active-bus {
    border-color: #e67300;
    background: #fff3e6;
}

.reiseplaner-widget .rp-checkbox-card h4 {
    margin: 0 0 0.15rem;
    font-size: 0.96rem;
    line-height: 1.35;
}

.reiseplaner-widget .rp-checkbox-card p {
    margin: 0;
    color: var(--rp-muted);
    font-size: 0.8rem;
    line-height: 1.3;
}

.reiseplaner-widget .rp-toggle-line {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--rp-border);
    border-radius: 12px;
    background: #fff;
    width: 100%;
}

.reiseplaner-widget .rp-toggle-line input {
    width: 18px;
    height: 18px;
}

.reiseplaner-widget .rp-field-walk-toggle {
    justify-content: end;
}

.reiseplaner-widget .rp-btn-primary,
.reiseplaner-widget .rp-share-btn {
    appearance: none;
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    background: var(--rp-red);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.reiseplaner-widget .rp-btn-primary {
    width: 100%;
    margin-top: 0.4rem;
}

.reiseplaner-widget .rp-form-shell > .rp-field,
.reiseplaner-widget .rp-form-shell > .rp-form-row,
.reiseplaner-widget .rp-form-shell > .rp-btn-primary {
    position: relative;
}

.reiseplaner-widget .rp-form-shell > .rp-field + .rp-form-row,
.reiseplaner-widget .rp-form-shell > .rp-form-row + .rp-field,
.reiseplaner-widget .rp-form-shell > .rp-field + .rp-field,
.reiseplaner-widget .rp-form-shell > .rp-form-row + .rp-form-row,
.reiseplaner-widget .rp-form-shell > .rp-form-row + .rp-btn-primary {
    margin-top: 0.15rem;
}

.reiseplaner-widget .rp-share-btn.email {
    background: var(--rp-blue);
}

.reiseplaner-widget .rp-share-btn.print {
    background: var(--rp-green);
}

.reiseplaner-widget .rp-season-badge {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reiseplaner-widget .rp-season-badge.vor {
    background: #fff3cd;
    color: #7a5d00;
}

.reiseplaner-widget .rp-season-badge.haupt {
    background: #d4edda;
    color: #155724;
}

.reiseplaner-widget .rp-season-badge.nach {
    background: #f8d7da;
    color: #721c24;
}

.reiseplaner-widget .rp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.reiseplaner-widget .rp-plan-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.reiseplaner-widget .rp-plan-section-head-overview {
    margin: 1rem 0 0.75rem;
}

.reiseplaner-widget .rp-plan-section-head-detail {
    margin: 1.4rem 0 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(43, 51, 63, 0.08);
}

.reiseplaner-widget .rp-plan-section-kicker {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--rp-blue);
}

.reiseplaner-widget .rp-plan-section-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-plan-section-copy {
    margin: 0;
    max-width: 500px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--rp-muted);
}

.reiseplaner-widget .rp-route-visual {
    margin-bottom: 1.15rem;
    padding: 1rem 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(27, 107, 147, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f5fafc 100%);
    overflow: visible;
}

.reiseplaner-widget .rp-route-visual-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.reiseplaner-widget .rp-route-visual-title {
    font-weight: 700;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-route-visual-range {
    color: var(--rp-muted);
    font-size: 0.9rem;
}

.reiseplaner-widget .rp-route-visual-scroll {
    overflow: visible;
    padding-bottom: 0.35rem;
}

.reiseplaner-widget .rp-route-visual-stage {
    position: relative;
    min-height: 232px;
    width: 100%;
    padding: 0 18px;
    box-sizing: border-box;
}

.reiseplaner-widget .rp-route-track-base {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    height: 12px;
    border-radius: 999px;
    background: #d8dde4;
}

.reiseplaner-widget .rp-route-segment {
    position: absolute;
    top: 76px;
    height: 12px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.reiseplaner-widget .rp-route-segment.bahn {
    background: linear-gradient(90deg, #d40054 0%, #ea5a8c 100%);
}

.reiseplaner-widget .rp-route-segment.schiff {
    background: linear-gradient(90deg, #1b6b93 0%, #5ca8cf 100%);
}

.reiseplaner-widget .rp-route-segment.seilbahn {
    background: linear-gradient(90deg, #2e7d32 0%, #67b36b 100%);
}

.reiseplaner-widget .rp-route-segment.walk {
    background: linear-gradient(90deg, #e65100 0%, #f0a65d 100%);
}

.reiseplaner-widget .rp-route-segment.bus {
    background: linear-gradient(90deg, #0D9488 0%, #E6B94A 100%);
}

.reiseplaner-widget .rp-route-segment.poi {
    background: linear-gradient(90deg, #8E44AD 0%, #B06ECB 100%);
}

.reiseplaner-widget .rp-route-point {
    position: absolute;
    top: 82px;
    transform: translateX(-50%);
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    z-index: 2;
}

.reiseplaner-widget .rp-route-point.lane-top-2::after,
.reiseplaner-widget .rp-route-point.lane-bottom-2::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    border-left: 1px dashed rgba(87, 94, 98, 0.32);
    transform: translateX(-50%);
    pointer-events: none;
}

.reiseplaner-widget .rp-route-point.lane-top-2::after {
    top: -42px;
    height: 42px;
}

.reiseplaner-widget .rp-route-point.lane-bottom-2::after {
    top: 16px;
    height: 42px;
}

.reiseplaner-widget .rp-route-point-dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.reiseplaner-widget .rp-route-point.bahn .rp-route-point-dot {
    background: var(--rp-red);
}

.reiseplaner-widget .rp-route-point.schiff .rp-route-point-dot {
    background: var(--rp-blue);
}

.reiseplaner-widget .rp-route-point.seilbahn .rp-route-point-dot {
    background: var(--rp-green);
}

.reiseplaner-widget .rp-route-point.walk .rp-route-point-dot {
    background: var(--rp-orange);
}

.reiseplaner-widget .rp-route-point.bus .rp-route-point-dot {
    background: #0D9488;
}

.reiseplaner-widget .rp-route-point.poi .rp-route-point-dot {
    background: #8E44AD;
}

.reiseplaner-widget .rp-route-point.transfer .rp-route-point-dot {
    background: #7e8792;
}

.reiseplaner-widget .rp-route-point-label {
    position: absolute;
    left: 50%;
    width: var(--rp-label-width, 102px);
    transform: translateX(-50%);
    text-align: center;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-route-point.lane-top-1 .rp-route-point-label {
    bottom: 28px;
}

.reiseplaner-widget .rp-route-point.lane-top-2 .rp-route-point-label {
    bottom: 64px;
}

.reiseplaner-widget .rp-route-point.lane-bottom-1 .rp-route-point-label {
    top: 28px;
}

.reiseplaner-widget .rp-route-point.lane-bottom-2 .rp-route-point-label {
    top: 64px;
}

.reiseplaner-widget .rp-route-point.start .rp-route-point-label {
    left: 0;
    transform: none;
    text-align: left;
}

.reiseplaner-widget .rp-route-point.end .rp-route-point-label {
    left: auto;
    right: 0;
    transform: none;
    text-align: right;
}

.reiseplaner-widget .rp-route-point-time {
    display: block;
    font-size: 0.79rem;
    font-weight: 700;
}

.reiseplaner-widget .rp-route-point-station {
    display: block;
    font-size: 0.78rem;
    color: var(--rp-muted);
    line-height: 1.25;
}

.reiseplaner-widget .rp-route-point.compact .rp-route-point-station {
    font-size: 0.71rem;
}

.reiseplaner-widget .rp-route-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 18px);
    min-width: 180px;
    max-width: min(240px, 42vw);
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    background: rgba(21, 27, 35, 0.94);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: left;
    transform: translate(-50%, 6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    z-index: 12;
}

.reiseplaner-widget .rp-route-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: rgba(21, 27, 35, 0.94);
    transform: translateX(-50%) rotate(45deg);
}

.reiseplaner-widget .rp-route-point.start .rp-route-tooltip {
    left: 0;
    transform: translate(0, 6px);
}

.reiseplaner-widget .rp-route-point.start .rp-route-tooltip::after {
    left: 22px;
    transform: rotate(45deg);
}

.reiseplaner-widget .rp-route-point.end .rp-route-tooltip {
    left: auto;
    right: 0;
    transform: translate(0, 6px);
}

.reiseplaner-widget .rp-route-point.end .rp-route-tooltip::after {
    left: auto;
    right: 18px;
    transform: rotate(45deg);
}

.reiseplaner-widget .rp-route-point:hover .rp-route-tooltip,
.reiseplaner-widget .rp-route-point:focus-visible .rp-route-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.reiseplaner-widget .rp-route-point:hover,
.reiseplaner-widget .rp-route-point:focus-visible {
    z-index: 8;
}

.reiseplaner-widget .rp-route-point.start:hover .rp-route-tooltip,
.reiseplaner-widget .rp-route-point.start:focus-visible .rp-route-tooltip,
.reiseplaner-widget .rp-route-point.end:hover .rp-route-tooltip,
.reiseplaner-widget .rp-route-point.end:focus-visible .rp-route-tooltip {
    transform: translate(0, 0);
}

.reiseplaner-widget .rp-route-point:focus-visible {
    outline: none;
}

.reiseplaner-widget .rp-route-point:focus-visible .rp-route-point-dot {
    box-shadow: 0 0 0 4px rgba(27, 107, 147, 0.14), 0 6px 14px rgba(0, 0, 0, 0.12);
}

.reiseplaner-widget .rp-route-tooltip-line + .rp-route-tooltip-detail,
.reiseplaner-widget .rp-route-tooltip-detail + .rp-route-tooltip-line {
    margin-top: 0.2rem;
}

.reiseplaner-widget .rp-route-tooltip-detail {
    color: rgba(255, 255, 255, 0.82);
}

/* POI section inside the Zeitstrahl tooltip (hover on a station dot). */
.reiseplaner-widget .rp-route-tooltip-pois {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.reiseplaner-widget .rp-route-tooltip-pois-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffd166;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.reiseplaner-widget .rp-route-tooltip-pois-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.reiseplaner-widget .rp-route-tooltip-pois-list li {
    font-size: 0.78rem;
    line-height: 1.3;
}

.reiseplaner-widget .rp-route-tooltip-pois-label {
    color: #ffffff;
    font-weight: 500;
}

.reiseplaner-widget .rp-route-tooltip-pois-meta {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

/* Visible lightbulb next to the station name in the timeline (no hover). */
.reiseplaner-widget .rp-route-point-poi {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8em;
    opacity: 0.9;
}

.reiseplaner-widget .rp-route-point.has-pois .rp-route-point-dot {
    box-shadow: 0 0 0 3px rgba(230, 162, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .reiseplaner-widget .rp-plan-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .reiseplaner-widget .rp-plan-section-copy {
        max-width: none;
    }

    .reiseplaner-widget .rp-route-visual-scroll {
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 0.4rem;
        padding: 15px;
        padding-bottom: 0;
    }

    .reiseplaner-widget .rp-route-visual-stage {
        min-width: 620px;
        min-height: 216px;
    }
    .rp-field.rp-field-target-poi{
        padding-top: 15px;
    }
}

.reiseplaner-widget .rp-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    position: relative;
}

.reiseplaner-widget .rp-timeline-detail {
    --rp-detail-gap: 0.9rem;
    gap: 0.9rem;
    padding: 0.15rem 0 0;
    border: 0;
    background: transparent;
}

.reiseplaner-widget .rp-timeline-detail .rp-step {
    grid-template-columns: 72px 34px 1fr;
    gap: 0.9rem;
    align-items: stretch;
    --rp-step-accent: #7e8792;
    --rp-step-surface: #fff;
    --rp-step-card-border: rgba(43, 51, 63, 0.08);
    --rp-step-card-text: var(--rp-text);
    --rp-step-card-detail: var(--rp-muted);
    --rp-step-card-shadow: 0 12px 24px rgba(16, 24, 40, 0.05);
    --rp-step-badge-bg: rgba(126, 135, 146, 0.12);
    --rp-step-badge-text: #58616c;
}

.reiseplaner-widget .rp-timeline-detail .rp-step.bahn {
    --rp-step-accent: var(--rp-red);
    --rp-step-surface: linear-gradient(90deg, #d40054 0%, #ea5a8c 100%);
    --rp-step-card-border: var(--rp-red);
    --rp-step-card-text: #fff;
    --rp-step-card-detail: rgba(255, 255, 255, 0.92);
    --rp-step-card-shadow: 0 12px 28px rgba(212, 0, 84, 0.18);
    --rp-step-badge-bg: #fff;
    --rp-step-badge-text: var(--rp-red);
}

.reiseplaner-widget .rp-timeline-detail .rp-step.schiff {
    --rp-step-accent: var(--rp-blue);
    --rp-step-surface: linear-gradient(90deg, #1b6b93 0%, #5ca8cf 100%);
    --rp-step-card-border: var(--rp-blue);
    --rp-step-card-text: #fff;
    --rp-step-card-detail: rgba(255, 255, 255, 0.92);
    --rp-step-card-shadow: 0 12px 28px rgba(27, 107, 147, 0.18);
    --rp-step-badge-bg: #fff;
    --rp-step-badge-text: var(--rp-blue);
}

.reiseplaner-widget .rp-timeline-detail .rp-step.seilbahn {
    --rp-step-accent: var(--rp-green);
    --rp-step-surface: linear-gradient(90deg, #2e7d32 0%, #67b36b 100%);
    --rp-step-card-border: var(--rp-green);
    --rp-step-card-text: #fff;
    --rp-step-card-detail: rgba(255, 255, 255, 0.92);
    --rp-step-card-shadow: 0 12px 28px rgba(46, 125, 50, 0.18);
    --rp-step-badge-bg: #fff;
    --rp-step-badge-text: var(--rp-green);
}

.reiseplaner-widget .rp-timeline-detail .rp-step.walk {
    --rp-step-accent: var(--rp-orange);
    --rp-step-surface: linear-gradient(90deg, #e65100 0%, #f0a65d 100%);
    --rp-step-card-border: var(--rp-orange);
    --rp-step-card-text: #fff;
    --rp-step-card-detail: rgba(255, 255, 255, 0.92);
    --rp-step-card-shadow: 0 12px 28px rgba(230, 81, 0, 0.18);
    --rp-step-badge-bg: #fff;
    --rp-step-badge-text: var(--rp-orange);
}

.reiseplaner-widget .rp-timeline-detail .rp-step.transfer {
    --rp-step-accent: #7e8792;
    --rp-step-surface: #fff;
    --rp-step-card-border: rgba(126, 135, 146, 0.22);
    --rp-step-card-text: var(--rp-text);
    --rp-step-card-detail: var(--rp-muted);
    --rp-step-card-shadow: 0 12px 24px rgba(16, 24, 40, 0.05);
    --rp-step-badge-bg: rgba(126, 135, 146, 0.12);
    --rp-step-badge-text: #58616c;
}

.reiseplaner-widget .rp-timeline-detail .rp-step::after {
    display: none;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-time-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    align-self: center;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-rail {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    min-height: 100%;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-rail::before,
.reiseplaner-widget .rp-timeline-detail .rp-step-rail::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    border-left: 2px dashed rgba(125, 133, 144, 0.28);
    transform: translateX(-50%);
    z-index: 0;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-rail::before {
    top: calc(var(--rp-detail-gap) * -0.5);
    bottom: 50%;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-rail::after {
    top: 50%;
    bottom: calc(var(--rp-detail-gap) * -0.5);
}

.reiseplaner-widget .rp-timeline-detail .rp-step:first-child .rp-step-rail::before {
    display: none;
}

.reiseplaner-widget .rp-timeline-detail .rp-step:last-child .rp-step-rail::after {
    display: none;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-card {
    min-width: 0;
    padding: 0.9rem 1rem 0.85rem;
    border-radius: 18px;
    border: 2px solid var(--rp-step-card-border);
    background: var(--rp-step-surface);
    box-shadow: var(--rp-step-card-shadow);
    align-self: center;
}

.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: -18px;
    width: 2px;
}

.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step.bahn:not(:last-child)::after,
.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step.transfer:not(:last-child)::after {
    background: rgba(212, 0, 84, 0.35);
}

.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step.schiff:not(:last-child)::after {
    background: rgba(27, 107, 147, 0.35);
}

.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step.seilbahn:not(:last-child)::after {
    background: rgba(46, 125, 50, 0.35);
}

.reiseplaner-widget .rp-timeline:not(.rp-timeline-detail) .rp-step.walk:not(:last-child)::after {
    width: 0;
    border-left: 2px dashed rgba(230, 81, 0, 0.45);
}

.reiseplaner-widget .rp-step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-dot {
    width: 34px;
    height: 34px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--rp-step-accent);
    background: #fff;
    color: var(--rp-step-accent);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08);
    font-size: 0.95rem;
}

.reiseplaner-widget .rp-step.bahn .rp-step-dot,
.reiseplaner-widget .rp-step.transfer .rp-step-dot {
    background: var(--rp-red);
}

.reiseplaner-widget .rp-step.schiff .rp-step-dot {
    background: var(--rp-blue);
}

.reiseplaner-widget .rp-step.seilbahn .rp-step-dot {
    background: var(--rp-green);
}

.reiseplaner-widget .rp-step.walk .rp-step-dot {
    background: var(--rp-orange);
}

.reiseplaner-widget .rp-timeline-detail .rp-step.bahn .rp-step-dot,
.reiseplaner-widget .rp-timeline-detail .rp-step.transfer .rp-step-dot,
.reiseplaner-widget .rp-timeline-detail .rp-step.schiff .rp-step-dot,
.reiseplaner-widget .rp-timeline-detail .rp-step.seilbahn .rp-step-dot,
.reiseplaner-widget .rp-timeline-detail .rp-step.walk .rp-step-dot {
    background: #fff;
    color: var(--rp-step-accent);
}

.reiseplaner-widget .rp-step-time {
    font-weight: 700;
    font-size: 1.05rem;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-time {
    font-size: 1rem;
    line-height: 1.1;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-step-station {
    font-weight: 600;
    font-size: 1.02rem;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-station {
    color: var(--rp-step-card-text);
}

.reiseplaner-widget .rp-step-details {
    color: var(--rp-muted);
    margin-top: 0.15rem;
    line-height: 1.4;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-details {
    margin-top: 0.2rem;
    color: var(--rp-step-card-detail);
}

.reiseplaner-widget .rp-step-badge {
    display: inline-flex;
    margin-top: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-badge {
    background: var(--rp-step-badge-bg);
    color: var(--rp-step-badge-text);
}

.reiseplaner-widget .rp-step-badge.bahn {
    background: var(--rp-red-soft);
    color: var(--rp-red);
}

.reiseplaner-widget .rp-step-badge.schiff {
    background: var(--rp-blue-soft);
    color: var(--rp-blue);
}

.reiseplaner-widget .rp-step-badge.seilbahn {
    background: var(--rp-green-soft);
    color: var(--rp-green);
}

.reiseplaner-widget .rp-step-badge.walk,
.reiseplaner-widget .rp-step-badge.transfer {
    background: var(--rp-orange-soft);
    color: var(--rp-orange);
}

.reiseplaner-widget .rp-step-badge.transfer {
    background: rgba(126, 135, 146, 0.12);
    color: #58616c;
}

.reiseplaner-widget .rp-timeline-detail .rp-step-badge.bahn,
.reiseplaner-widget .rp-timeline-detail .rp-step-badge.schiff,
.reiseplaner-widget .rp-timeline-detail .rp-step-badge.seilbahn,
.reiseplaner-widget .rp-timeline-detail .rp-step-badge.walk,
.reiseplaner-widget .rp-timeline-detail .rp-step-badge.transfer {
    background: var(--rp-step-badge-bg);
    color: var(--rp-step-badge-text);
}

.reiseplaner-widget [id$='-map'] {
    height: 400px;
    border-radius: 16px;
    border: 2px solid var(--rp-border);
    overflow: hidden;
}

/* ==========================================================================
   Share section — redesigned (no gradient background, title+subtitle on the
   left, primary "PDF herunterladen" button plus two icon buttons on the right;
   icon buttons expand an inline recipient form instead of opening prompt()).
   ========================================================================== */
.reiseplaner-widget .rp-share-section {
    background: #F5F5F3;
    border: 1px solid rgba(43, 51, 63, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.reiseplaner-widget .rp-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.reiseplaner-widget .rp-share-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.reiseplaner-widget .rp-share-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--rp-text, #2B333F);
    line-height: 1.2;
}

.reiseplaner-widget .rp-share-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

.reiseplaner-widget .rp-share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.reiseplaner-widget .rp-share-btn-primary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: var(--rp-red, #D40054);
    color: #fff;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
    text-decoration: none;
    line-height: 1.1;
}
.reiseplaner-widget .rp-share-btn-primary:hover {
    background: #b3003f;
}
.reiseplaner-widget .rp-share-btn-primary:active {
    transform: translateY(1px);
}
.reiseplaner-widget .rp-share-btn-primary:focus-visible {
    outline: 2px solid var(--rp-red, #D40054);
    outline-offset: 2px;
}
.reiseplaner-widget .rp-share-btn-primary .rp-share-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}
.reiseplaner-widget .rp-share-btn-primary .rp-share-icon svg {
    width: 18px;
    height: 18px;
}

.reiseplaner-widget .rp-share-icon-btn {
    appearance: none;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(43, 51, 63, 0.2);
    border-radius: 8px;
    color: var(--rp-text, #2B333F);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.reiseplaner-widget .rp-share-icon-btn svg {
    width: 18px;
    height: 18px;
}
.reiseplaner-widget .rp-share-icon-btn:hover {
    border-color: var(--rp-red, #D40054);
    color: var(--rp-red, #D40054);
    background: #fff;
}
.reiseplaner-widget .rp-share-icon-btn.is-active {
    border-color: var(--rp-red, #D40054);
    color: var(--rp-red, #D40054);
    background: #fff;
}
.reiseplaner-widget .rp-share-icon-btn:focus-visible {
    outline: 2px solid var(--rp-red, #D40054);
    outline-offset: 2px;
}
.reiseplaner-widget .rp-share-icon-btn--whatsapp:hover,
.reiseplaner-widget .rp-share-icon-btn--whatsapp.is-active {
    border-color: #25D366;
    color: #25D366;
}

/* Inline expanding form. Animates height + opacity with max-height keeping
   the transition purely CSS-driven (no JS measurement). 300px is a generous
   ceiling — the form never gets that tall in practice. */
.reiseplaner-widget .rp-share-form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 250ms ease-out, opacity 250ms ease-out, margin-top 250ms ease-out;
    margin-top: 0;
}
.reiseplaner-widget .rp-share-form.is-open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
    overflow: visible;
}
.reiseplaner-widget .rp-share-form[hidden] {
    display: none;
}

.reiseplaner-widget .rp-share-form-inner {
    position: relative;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(43, 51, 63, 0.1);
    border-radius: 10px;
}

.reiseplaner-widget .rp-share-form-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #6B7280;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.reiseplaner-widget .rp-share-form-close:hover {
    background: #F5F5F3;
    color: #2B333F;
}
.reiseplaner-widget .rp-share-form-close svg {
    width: 14px;
    height: 14px;
}

.reiseplaner-widget .rp-share-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 6px;
    padding-right: 28px; /* leave room for close button */
}

.reiseplaner-widget .rp-share-form-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.reiseplaner-widget .rp-share-form-input {
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(43, 51, 63, 0.2);
    border-radius: 8px;
    background: #fff;
    color: var(--rp-text, #2B333F);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.reiseplaner-widget .rp-share-form-input:focus {
    outline: none;
    border-color: var(--rp-red, #D40054);
    box-shadow: 0 0 0 2px rgba(212, 0, 84, 0.2);
}
.reiseplaner-widget .rp-share-form-input.is-invalid {
    border-color: #D40054;
    box-shadow: 0 0 0 2px rgba(212, 0, 84, 0.15);
}

.reiseplaner-widget .rp-share-form-submit {
    appearance: none;
    flex: 0 0 auto;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: var(--rp-red, #D40054);
    color: #fff;
    font: inherit;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s ease, opacity 0.15s ease;
    line-height: 1.1;
}
.reiseplaner-widget .rp-share-form-submit:hover:not(:disabled) {
    background: #b3003f;
}
.reiseplaner-widget .rp-share-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.reiseplaner-widget .rp-share-form-submit:focus-visible {
    outline: 2px solid var(--rp-red, #D40054);
    outline-offset: 2px;
}

.reiseplaner-widget .rp-share-form-error {
    margin-top: 6px;
    font-size: 12.5px;
    color: #D40054;
    line-height: 1.3;
}
.reiseplaner-widget .rp-share-form-error[hidden] {
    display: none;
}

/* Shake animation for failed validation. Tiny horizontal jiggle, 300ms total,
   plays exactly once per failed submit (JS re-triggers by removing/re-adding
   the class). Respected by prefers-reduced-motion below. */
@keyframes rp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}
.reiseplaner-widget .rp-share-form-input.rp-shake {
    animation: rp-shake 300ms ease-in-out;
}

/* Success state — animated check-mark + recipient label. Circle draws in via
   stroke-dashoffset, then the check strokes. Total ~500ms. */
.reiseplaner-widget .rp-share-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 10px;
    color: #1b7e3f;
}
.reiseplaner-widget .rp-share-success-check {
    width: 48px;
    height: 48px;
    color: #25D366;
}
.reiseplaner-widget .rp-share-success-check svg {
    width: 100%;
    height: 100%;
}
.reiseplaner-widget .rp-share-success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: rp-draw-circle 300ms ease-out forwards;
}
.reiseplaner-widget .rp-share-success-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: rp-draw-check 220ms 260ms ease-out forwards;
}
.reiseplaner-widget .rp-share-success-check.is-static .rp-share-success-circle,
.reiseplaner-widget .rp-share-success-check.is-static .rp-share-success-mark {
    animation: none;
    stroke-dashoffset: 0;
}
@keyframes rp-draw-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes rp-draw-check {
    to { stroke-dashoffset: 0; }
}
.reiseplaner-widget .rp-share-success-text {
    font-size: 14px;
    color: #2B333F;
    font-weight: 500;
    text-align: center;
}
.reiseplaner-widget .rp-share-success-recipient {
    color: #6B7280;
    font-weight: 400;
    word-break: break-all;
}

/* Honour the user's OS-level motion preference. Skip shake + stroke anims +
   form max-height transition — state changes happen instantly instead. */
@media (prefers-reduced-motion: reduce) {
    .reiseplaner-widget .rp-share-form { transition: none; }
    .reiseplaner-widget .rp-share-form-input.rp-shake { animation: none; }
    .reiseplaner-widget .rp-share-success-circle,
    .reiseplaner-widget .rp-share-success-mark { animation: none; stroke-dashoffset: 0; }
    .reiseplaner-widget .rp-share-btn-primary,
    .reiseplaner-widget .rp-share-icon-btn,
    .reiseplaner-widget .rp-share-form-submit,
    .reiseplaner-widget .rp-share-form-input { transition: none; }
}

.reiseplaner-widget .rp-loading,
.reiseplaner-widget .rp-message {
    background: #fff;
    border: 1px solid var(--rp-border);
    border-radius: 14px;
    padding: 1rem;
}

.reiseplaner-widget .rp-route-notes {
    margin: 1.2rem 0 1.45rem;
    padding: 1.05rem 1.15rem;
    background: linear-gradient(180deg, #fffdfb 0%, #fff9f2 100%);
    border-color: rgba(220, 145, 63, 0.2);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.04);
}

.reiseplaner-widget .rp-route-notes-title {
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.45rem;
}

.reiseplaner-widget .rp-route-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-route-note {
    line-height: 1.5;
}

.reiseplaner-widget .rp-schedule-details {
    margin-top: 1rem;
    border: 1px solid rgba(27, 107, 147, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfefe 0%, #f5fafc 100%);
    overflow: hidden;
}

.reiseplaner-widget .rp-schedule-details summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.1rem;
    font-weight: 600;
    color: var(--rp-blue);
}

.reiseplaner-widget .rp-schedule-details summary::-webkit-details-marker {
    display: none;
}

.reiseplaner-widget .rp-schedule-details summary::after {
    content: '+';
    float: right;
    font-size: 1.1rem;
}

.reiseplaner-widget .rp-schedule-details[open] summary::after {
    content: '-';
}

.reiseplaner-widget .rp-schedule-panel {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid rgba(27, 107, 147, 0.12);
}

.reiseplaner-widget .rp-schedule-caption {
    color: #5f6874;
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 1rem 0 1.15rem;
}

.reiseplaner-widget .rp-schedule-block + .rp-schedule-block {
    margin-top: 1.35rem;
}

.reiseplaner-widget .rp-schedule-title {
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 0.8rem;
    font-size: 1.03rem;
}

.reiseplaner-widget .rp-schedule-group + .rp-schedule-group {
    margin-top: 1rem;
}

.reiseplaner-widget .rp-schedule-group-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7b8592;
    margin-bottom: 0.55rem;
}

.reiseplaner-widget .rp-schedule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reiseplaner-widget .rp-schedule-list li {
    line-height: 1.5;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(43, 51, 63, 0.08);
}

.reiseplaner-widget .rp-schedule-list li:first-child {
    padding-top: 0.15rem;
}

.reiseplaner-widget .rp-schedule-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0.2rem;
}

.reiseplaner-widget .rp-schedule-line-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.35rem;
}

.reiseplaner-widget .rp-schedule-line-ship {
    font-weight: 700;
    color: #234967;
}

.reiseplaner-widget .rp-schedule-route {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.34rem 0.4rem;
    color: var(--rp-text);
}

.reiseplaner-widget .rp-schedule-stop {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    white-space: nowrap;
}

.reiseplaner-widget .rp-schedule-time {
    font-weight: 700;
    color: #1f2937;
}

.reiseplaner-widget .rp-schedule-station {
    color: #374151;
}

.reiseplaner-widget .rp-schedule-arrow {
    color: #9aa4b2;
    font-size: 0.92rem;
}

.reiseplaner-widget .rp-schedule-line-flags {
    margin-top: 0.5rem;
}

.reiseplaner-widget .rp-schedule-line-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reiseplaner-widget .rp-schedule-line-note {
    color: #6b7280;
    font-size: 0.88rem;
    margin-top: 0.38rem;
}

.reiseplaner-widget .rp-train-status {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    vertical-align: middle;
}

.reiseplaner-widget .rp-train-status.yellow {
    background: #fff3cd;
    color: #7a5d00;
}

.reiseplaner-widget .rp-train-status.red {
    background: #f8d7da;
    color: #721c24;
}

.reiseplaner-widget .rp-schedule-empty {
    color: var(--rp-muted);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .reiseplaner-widget .rp-form-card,
    .reiseplaner-widget .rp-results-card {
        padding: 1rem;
    }

    .reiseplaner-widget .rp-journey-grid {
        grid-template-columns: 1fr;
    }

    .reiseplaner-widget [id$='-map'] {
        height: 280px;
    }

    .reiseplaner-widget .rp-share-header {
        flex-direction: column;
        align-items: stretch;
    }
    .reiseplaner-widget .rp-share-actions {
        display: grid;
        grid-template-columns: 1fr 40px 40px;
        gap: 8px;
        width: 100%;
    }
    .reiseplaner-widget .rp-share-btn-primary {
        justify-content: center;
        width: 100%;
    }
    .reiseplaner-widget .rp-btn-primary {
        width: 100%;
    }

    .reiseplaner-widget .rp-timeline-detail .rp-step {
        grid-template-columns: 58px 34px 1fr;
        gap: 0.75rem;
    }

    .reiseplaner-widget .rp-timeline-detail {
        --rp-detail-gap: 0.75rem;
    }

    .reiseplaner-widget .rp-route-notes {
        margin: 1rem 0 1.25rem;
        padding: 0.95rem 1rem;
    }

    .reiseplaner-widget .rp-timeline-detail .rp-step-card {
        padding: 0.8rem 0.9rem 0.78rem;
    }

    .reiseplaner-widget .rp-timeline-detail .rp-step-time {
        font-size: 0.92rem;
    }

    .reiseplaner-widget .rp-timeline-detail .rp-step-station {
        font-size: 0.96rem;
    }

    .reiseplaner-widget .rp-schedule-panel {
        padding: 0 0.95rem 1rem;
    }

    .reiseplaner-widget .rp-schedule-route {
        gap: 0.28rem 0.34rem;
    }

    .reiseplaner-widget .rp-schedule-stop {
        white-space: normal;
    }
}

/* ==========================================================================
   Printable layout (shared by html2pdf download AND window.print()).
   Rendered into an off-screen container by app.js:exportPdf for the PDF
   capture. For window.print we rely on the same markup being re-rendered
   into a permanent .rp-printable node on demand (see @media print below).
   ========================================================================== */
.rp-printable {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2B333F;
    background: #ffffff;
    /* Host container is sized to the A4 content area (190mm = 210mm − 2×10mm
       html2pdf margin). Internal padding provides a safety buffer so any
       subpixel overflow from right-aligned text, long URLs, or nowrap headers
       cannot bleed into the canvas right edge (which gets cropped by
       html2canvas at scale:2). */
    padding: 4mm 6mm 4mm 4mm;
    line-height: 1.4;
    font-size: 10.5pt;
    box-sizing: border-box;
    overflow: hidden;
}
.rp-printable * { box-sizing: border-box; max-width: 100%; }

/* Header uses flex (not <table>) so it can't pick up the site-wide Contao
   table border CSS. The earlier flex attempt cropped on the right edge, but
   that was fixed by narrowing the PDF host to 190mm + adding padding on
   .rp-printable — the right-column text now has plenty of safe space. */
.rp-printable .rp-printable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
    border: 0 !important;
    border-bottom: 3px solid #D40054 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.rp-printable .rp-printable-header-left {
    flex: 1 1 auto;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
}
.rp-printable .rp-printable-header-right {
    flex: 0 0 auto;
    text-align: right;
    border: 0 !important;
    background: transparent !important;
}
.rp-printable .rp-printable-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rp-printable .rp-printable-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #D40054;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.rp-printable .rp-printable-brand-title {
    font-family: 'PT Serif Caption', Georgia, serif;
    color: #D40054;
    font-size: 14pt;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.rp-printable .rp-printable-brand-sub {
    font-size: 8.5pt;
    color: #575E62;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.rp-printable .rp-printable-kicker {
    font-size: 8.5pt;
    color: #575E62;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rp-printable .rp-printable-date {
    font-family: 'PT Serif Caption', Georgia, serif;
    font-size: 14pt;
    color: #2B333F;
    white-space: nowrap;
}
.rp-printable .rp-printable-route {
    font-size: 10pt;
    color: #575E62;
    margin: 0 0 14px 0;
    text-align: center;
}

/* Strip the "Tipp: waehlen Sie eine Ziel-Sehenswuerdigkeit…" hint from the
   trip-summary card when it's rendered inside a printable — no sense
   showing a UI prompt on the printed page. */
.rp-printable .rp-trip-summary-hint {
    display: none !important;
}

.rp-printable .rp-printable-overview {
    margin-bottom: 14px;
    break-inside: avoid;
}

.rp-printable .rp-printable-section-title {
    font-family: 'PT Serif Caption', Georgia, serif;
    font-size: 13pt;
    color: #D40054;
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eadfe3;
    break-after: avoid;
}

/* Two-column step grid. For long plans (10+ steps) this keeps everything on
   one page instead of burning a second sheet on sparse right-side whitespace.
   Order is row-major (1 2 / 3 4 / 5 6 …) which matches how the eye scans.
   A single trailing step (odd count) takes just the left column, leaving the
   right cell empty — that's expected. */
.rp-printable .rp-printable-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 8px;
}
.rp-printable .rp-printable-step {
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e3e5e8;
    border-left: 4px solid #575E62;
    background: #fafbfc;
    break-inside: avoid;
    page-break-inside: avoid;
    font-size: 9.5pt;
}
.rp-printable .rp-printable-step.bahn { border-left-color: #D40054; }
.rp-printable .rp-printable-step.schiff { border-left-color: #1B6B93; }
.rp-printable .rp-printable-step.bus { border-left-color: #0D9488; }
.rp-printable .rp-printable-step.seilbahn { border-left-color: #2E7D32; }
.rp-printable .rp-printable-step.walk { border-left-color: #575E62; }
.rp-printable .rp-printable-step.poi { border-left-color: #8E44AD; }
.rp-printable .rp-printable-step.transfer { border-left-color: #FFC107; }

.rp-printable .rp-printable-step-num {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2B333F;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9pt;
}
.rp-printable .rp-printable-step-body { flex: 1 1 auto; min-width: 0; }
.rp-printable .rp-printable-step-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.rp-printable .rp-printable-step-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #2B333F;
}
.rp-printable .rp-printable-step-icon { font-size: 12pt; }
.rp-printable .rp-printable-step-station { font-weight: 600; }
.rp-printable .rp-printable-step-badge {
    font-size: 8pt;
    padding: 1px 8px;
    border-radius: 10px;
    background: #eee;
    color: #575E62;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.rp-printable .rp-printable-step-badge.bahn { background: rgba(212,0,84,0.12); color: #D40054; }
.rp-printable .rp-printable-step-badge.schiff { background: rgba(27,107,147,0.12); color: #1B6B93; }
.rp-printable .rp-printable-step-badge.bus { background: rgba(201,154,27,0.18); color: #8a6a13; }
.rp-printable .rp-printable-step-badge.poi { background: rgba(142,68,173,0.15); color: #6a2c87; }
.rp-printable .rp-printable-step-badge.seilbahn { background: rgba(46,125,50,0.12); color: #2E7D32; }
.rp-printable .rp-printable-step-details {
    font-size: 9.5pt;
    color: #575E62;
    margin-top: 2px;
}

.rp-printable .rp-printable-map {
    width: 180mm;
    height: 100mm;
    max-width: 100%;
    border: 1px solid #d7dadd;
    margin: 0 auto;
    break-inside: avoid;
    page-break-inside: avoid;
}

.rp-printable .rp-printable-notes {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 4px solid #FFC107;
    break-inside: avoid;
}
.rp-printable .rp-printable-notes h3 {
    font-size: 11pt;
    margin: 0 0 4px;
    color: #856404;
    border: none;
    padding: 0;
}
.rp-printable .rp-printable-notes ul {
    margin: 0;
    padding-left: 18px;
    font-size: 10pt;
    color: #555;
}

.rp-printable .rp-printable-ticket {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(212,0,84,0.04);
    border: 1px solid rgba(212,0,84,0.15);
    break-inside: avoid;
}
.rp-printable .rp-printable-qr {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    background: #fff;
    padding: 4px;
    border: 1px solid #e3e5e8;
}
.rp-printable .rp-printable-ticket-kicker {
    font-size: 9pt;
    text-transform: uppercase;
    color: #575E62;
    letter-spacing: 0.6px;
}
.rp-printable .rp-printable-ticket a {
    color: #D40054;
    font-weight: 600;
    word-break: break-all;
}
.rp-printable .rp-printable-share {
    margin-top: 10px;
    font-size: 9.5pt;
    color: #575E62;
    word-break: break-all;
}
.rp-printable .rp-printable-share a { color: #1B6B93; }
.rp-printable .rp-printable-footer {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #e3e5e8;
    font-size: 8.5pt;
    color: #8a8f94;
    text-align: center;
}
.rp-printable .rp-printable-footer-date {
    margin-bottom: 2px;
}
.rp-printable .rp-printable-footer-link a {
    color: #8a8f94;
    text-decoration: none;
}

/* ==========================================================================
   Print styles.
   When the browser enters print mode we hide everything EXCEPT a
   .rp-printable element (if one exists on the page — rendered into a
   permanent container by renderResults). If none exists, fall back to
   the legacy rules that hide the form/share section and print whatever's
   in .rp-results-shell.
   ========================================================================== */
@media print {
    @page { size: A4; margin: 15mm; }

    body * { visibility: hidden; }

    /* Preferred path: a .rp-printable node is present → that's the only
       thing we show. */
    .rp-printable,
    .rp-printable * { visibility: visible; }
    .rp-printable {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        z-index: auto !important;
    }

    /* Fallback: no printable layout mounted — still print the results card
       but hide controls. */
    .reiseplaner-widget .rp-results-shell,
    .reiseplaner-widget .rp-results-shell * {
        visibility: visible;
    }
    .reiseplaner-widget .rp-form-shell,
    .reiseplaner-widget .rp-share-section,
    .reiseplaner-widget [id$='-map'] {
        display: none !important;
    }

    /* If both .rp-printable and the legacy results-shell are in the DOM, we
       only want the printable one — hide the results-shell explicitly when a
       sibling .rp-printable exists. CSS can't traverse up, so app.js sets a
       data-rp-printing="1" marker on the widget when the printable is
       mounted for window.print(). */
    .reiseplaner-widget[data-rp-printing="1"] .rp-results-shell,
    .reiseplaner-widget[data-rp-printing="1"] .rp-form-shell,
    .reiseplaner-widget[data-rp-printing="1"] .rp-share-section {
        display: none !important;
    }
}

/* ==========================================================================
   Split view: Detailplan + Streckenkarte (synced)
   ========================================================================== */
.reiseplaner-widget .rp-split-view {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    border: 1px solid #d7dadd;
    background: #ffffff;
    min-height: 520px;
    max-height: 640px;
}
.reiseplaner-widget .rp-step-list {
    flex: 0 0 380px;
    max-width: 380px;
    overflow-y: auto;
    border-right: 1px solid #e3e5e8;
    padding: 10px 6px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfc;
    scroll-behavior: smooth;
}
.reiseplaner-widget .rp-step-list-item {
    all: unset;
    display: block;
    cursor: pointer;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-left: 4px solid #575E62;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.reiseplaner-widget .rp-step-list-item:hover {
    background: #f4f5f6;
}
.reiseplaner-widget .rp-step-list-item.rp-active {
    background: #fff0f5;
    box-shadow: inset 0 0 0 1px #D40054;
}
.reiseplaner-widget .rp-step-list-item.bahn { border-left-color: #D40054; }
.reiseplaner-widget .rp-step-list-item.schiff { border-left-color: #1B6B93; }
.reiseplaner-widget .rp-step-list-item.seilbahn { border-left-color: #2E7D32; }
.reiseplaner-widget .rp-step-list-item.walk { border-left-color: #E65100; }
.reiseplaner-widget .rp-step-list-item.bus { border-left-color: #0D9488; }
.reiseplaner-widget .rp-step-list-item.transfer { border-left-color: #7E8792; }
.reiseplaner-widget .rp-step-list-item.poi { border-left-color: #8E44AD; }
.reiseplaner-widget .rp-step-list-item.poi .rp-step-list-badge { background: #8E44AD; }
.reiseplaner-widget .rp-step-list-item.bus .rp-step-list-badge { background: rgba(201, 154, 27, 0.18); color: #8a6a13; }

/* Numbered chip that correlates the timeline card with the numbered pin on
   the map. Same number on both sides => easy visual link. Positioned in the
   top-right corner so it doesn't disturb the existing time/body layout. */
.reiseplaner-widget .rp-step-list-item .rp-step-list-index {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background: #575E62;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #575E62;
}
.reiseplaner-widget .rp-step-list-item.bahn .rp-step-list-index { background: #D40054; box-shadow: 0 0 0 1px #D40054; }
.reiseplaner-widget .rp-step-list-item.schiff .rp-step-list-index { background: #1B6B93; box-shadow: 0 0 0 1px #1B6B93; }
.reiseplaner-widget .rp-step-list-item.seilbahn .rp-step-list-index { background: #2E7D32; box-shadow: 0 0 0 1px #2E7D32; }
.reiseplaner-widget .rp-step-list-item.walk .rp-step-list-index { background: #E65100; box-shadow: 0 0 0 1px #E65100; }
.reiseplaner-widget .rp-step-list-item.bus .rp-step-list-index { background: #0D9488; box-shadow: 0 0 0 1px #0D9488; }
.reiseplaner-widget .rp-step-list-item.poi .rp-step-list-index { background: #8E44AD; box-shadow: 0 0 0 1px #8E44AD; }

/* --- Numbered map pins (Leaflet divIcon) --- */
.rp-map-pin-wrap {
    background: transparent !important;
    border: none !important;
    transition: opacity 0.2s, transform 0.15s;
}
.rp-map-pin {
    width: var(--rp-pin-width, 24px);
    height: var(--rp-pin-height, 24px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 0 2px var(--rp-pin-color, #575E62);
    background: var(--rp-pin-color, #575E62);
    padding: 0 4px;
}
.rp-map-pin .rp-map-pin-num {
    font-size: 0.78rem;
    color: #ffffff;
    pointer-events: none;
    white-space: nowrap;
}
.rp-map-pin--outline {
    background: #ffffff;
    border-color: var(--rp-pin-color, #575E62);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.rp-map-pin--outline .rp-map-pin-num {
    color: var(--rp-pin-color, #575E62);
}

/* Reset ("show all") button next to the up/down nav arrows over the map. */
.reiseplaner-widget .rp-map-nav .rp-map-nav-btn--reset {
    margin-top: 4px;
    font-size: 1.1rem;
}

/* --- Target-POI selector in the form --- */
.reiseplaner-widget .rp-field-target-poi {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff8f0 0%, #fffdf8 100%);
    border: 1px solid #e4d5c0;
    border-radius: 8px;
}
.reiseplaner-widget .rp-field-target-poi > label {
    display: block;
    font-weight: 600;
    color: #5a3f22;
    margin-bottom: 6px;
}
.reiseplaner-widget .rp-target-poi-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c9b597;
    border-radius: 6px;
    background: #fff;
    font-size: 0.95rem;
}
.reiseplaner-widget .rp-field-help {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #7a6348;
    line-height: 1.4;
}

/* --- Target-POI card in the results --- */
.reiseplaner-widget .rp-target-poi-card {
    margin: 14px 0 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fffaf2 0%, #ffffff 100%);
    border: 1px solid #e0c9a9;
    border-left: 5px solid #8c5a2b;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(140, 90, 43, 0.08);
}
.reiseplaner-widget .rp-target-poi-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.reiseplaner-widget .rp-target-poi-icon-main {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
}
.reiseplaner-widget .rp-target-poi-title { flex: 1; }
.reiseplaner-widget .rp-target-poi-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8c5a2b;
    font-weight: 600;
}
.reiseplaner-widget .rp-target-poi-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3a2612;
    line-height: 1.25;
    margin-top: 2px;
}
.reiseplaner-widget .rp-target-poi-meta {
    font-size: 0.88rem;
    color: #6a4a2a;
    margin-bottom: 8px;
}
.reiseplaner-widget .rp-target-poi-desc {
    margin: 0 0 10px;
    color: #45321d;
    line-height: 1.5;
    font-size: 0.94rem;
}
.reiseplaner-widget .rp-target-poi-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.reiseplaner-widget .rp-target-poi-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #3a2612;
}
.reiseplaner-widget .rp-target-poi-line a {
    color: #8c5a2b;
    text-decoration: underline;
}
.reiseplaner-widget .rp-target-poi-icon {
    width: 18px;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}
.reiseplaner-widget .rp-target-poi-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #8c5a2b;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.reiseplaner-widget .rp-target-poi-btn:hover {
    background: #6e4520;
}
.reiseplaner-widget .rp-step-list-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #575E62;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.reiseplaner-widget .rp-step-list-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.reiseplaner-widget .rp-step-list-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex: 0 0 auto;
    padding-top: 2px;
}
.reiseplaner-widget .rp-step-list-text {
    flex: 1 1 auto;
    min-width: 0;
}
.reiseplaner-widget .rp-step-list-station {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}
.reiseplaner-widget .rp-step-list-details {
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.35;
    margin-bottom: 6px;
}
.reiseplaner-widget .rp-step-list-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    color: #ffffff;
    background: #575E62;
}
.reiseplaner-widget .rp-step-list-badge.bahn { background: #D40054; }
.reiseplaner-widget .rp-step-list-badge.schiff { background: #1B6B93; }
.reiseplaner-widget .rp-step-list-badge.seilbahn { background: #2E7D32; }
.reiseplaner-widget .rp-step-list-badge.walk { background: #E65100; }
.reiseplaner-widget .rp-step-list-badge.transfer { background: #7E8792; }

/* POI hints attached to dwell/arrival steps (e.g. "In der Naehe: Atoll Achensee ...") */
.reiseplaner-widget .rp-step-list-pois {
    margin-top: 8px;
    padding: 8px 10px;
    background: #fff7e6;
    border-left: 3px solid #e6a200;
    border-radius: 2px;
}
.reiseplaner-widget .rp-step-list-pois-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8a6200;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}
.reiseplaner-widget .rp-step-list-pois-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.reiseplaner-widget .rp-step-list-poi {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.4;
    padding: 2px 0;
}
.reiseplaner-widget .rp-step-list-poi-label {
    font-weight: 600;
}
.reiseplaner-widget .rp-step-list-poi-meta {
    color: #666;
    font-size: 0.78rem;
}

.reiseplaner-widget .rp-map-panel {
    flex: 1 1 auto;
    position: relative;
    min-height: 520px;
    background: #e8ecef;
}

/* --- Overview card above the split view (trip summary or target POI) --- */
.reiseplaner-widget .rp-detail-overview {
    margin-bottom: 16px;
}

/* --- Info panel (replaces map on the right of the Detailplan) --- */
.reiseplaner-widget .rp-info-panel {
    flex: 1 1 auto;
    position: relative;
    min-height: 520px;
    background: #fafbfc;
    padding: 16px 18px 18px;
    overflow-y: auto;
}
.reiseplaner-widget .rp-info-panel-body {
    max-width: 540px;
    margin: 0 auto;
}
.reiseplaner-widget .rp-info-nav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.reiseplaner-widget .rp-info-nav-btn {
    width: 34px;
    height: 34px;
    background: #ffffff;
    color: #D40054;
    border: 1px solid #D40054;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    border-radius: 4px;
}
.reiseplaner-widget .rp-info-nav-btn:hover {
    background: #D40054;
    color: #ffffff;
}
/* POI card inside the info panel: drop the large outer margin since the panel already pads */
.reiseplaner-widget .rp-info-panel .rp-target-poi-card {
    margin: 0;
}

/* --- Trip summary card (shown in info panel when no POI selected) --- */
.reiseplaner-widget .rp-trip-summary-card {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-left: 5px solid #1B6B93;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(27, 107, 147, 0.06);
}
.reiseplaner-widget .rp-trip-summary-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.reiseplaner-widget .rp-trip-summary-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.reiseplaner-widget .rp-trip-summary-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1B6B93;
    font-weight: 600;
}
.reiseplaner-widget .rp-trip-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2733;
    line-height: 1.25;
    margin-top: 2px;
}
.reiseplaner-widget .rp-trip-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.reiseplaner-widget .rp-trip-summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
    color: #2a3742;
}
.reiseplaner-widget .rp-trip-summary-ico {
    width: 22px;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}
.reiseplaner-widget .rp-trip-summary-hint {
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px dashed #d9dee3;
    font-size: 0.85rem;
    color: #6a7380;
    line-height: 1.45;
}
.reiseplaner-widget .rp-disclaimer-block {
    margin: 1.4rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px dashed #d9dee3;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
}
.reiseplaner-widget .rp-disclaimer-block .rp-disclaimer {
    margin: 0;
    padding-top: 0;
    border-top: none;
}
.reiseplaner-widget .rp-disclaimer {
    margin: 1.4rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px dashed #d9dee3;
    font-size: 0.8rem;
    color: #8a929d;
    line-height: 1.5;
    font-style: italic;
}
.reiseplaner-widget .rp-disclaimer-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid #cfd5dc;
    color: #4a5160;
    font-size: 0.82rem;
    line-height: 1.3;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.reiseplaner-widget .rp-disclaimer-btn:hover,
.reiseplaner-widget .rp-disclaimer-btn:focus-visible {
    background: #f4f6f9;
    border-color: #9aa3b1;
    color: #1f2630;
    outline: none;
}

.rp-official-modal[hidden] { display: none !important; }
.rp-official-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.rp-official-modal .rp-official-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 32, 0.55);
    backdrop-filter: blur(2px);
}
.rp-official-modal .rp-official-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 22, 32, 0.35);
    max-width: 540px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.rp-official-modal .rp-official-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e9ef;
}
.rp-official-modal .rp-official-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2630;
}
.rp-official-modal .rp-official-close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 1.7rem;
    line-height: 1;
    color: #6a7380;
    cursor: pointer;
    padding: 0 0.3rem;
}
.rp-official-modal .rp-official-close:hover { color: #1f2630; }
.rp-official-modal .rp-official-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    overflow-y: auto;
}
.rp-official-modal .rp-official-item + .rp-official-item {
    border-top: 1px solid #f0f2f5;
}
.rp-official-modal .rp-official-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s ease;
}
.rp-official-modal .rp-official-link:hover,
.rp-official-modal .rp-official-link:focus-visible {
    background: #f6f8fb;
    outline: none;
}
.rp-official-modal .rp-official-label {
    font-weight: 600;
    color: #c8156e;
    font-size: 0.98rem;
}
.rp-official-modal .rp-official-desc {
    font-size: 0.85rem;
    color: #4a5160;
    line-height: 1.4;
}
.rp-official-modal .rp-official-url {
    font-size: 0.78rem;
    color: #6a7380;
    word-break: break-all;
}
body.rp-modal-open { overflow: hidden; }
.reiseplaner-widget .rp-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 520px;
}
.reiseplaner-widget .rp-map-nav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.reiseplaner-widget .rp-map-nav-btn {
    width: 34px;
    height: 34px;
    background: #ffffff;
    color: #D40054;
    border: 1px solid #D40054;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.reiseplaner-widget .rp-map-nav-btn:hover {
    background: #D40054;
    color: #ffffff;
}

.rp-map-arrow {
    background: transparent !important;
    border: none !important;
    pointer-events: none;
}
.rp-map-arrow-inner {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 0 2px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff;
    display: block;
    width: 20px;
    height: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .reiseplaner-widget .rp-split-view {
        flex-direction: column;
        max-height: none;
        min-height: 0;
    }
    .reiseplaner-widget .rp-step-list {
        flex: 0 0 auto;
        max-width: none;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #e3e5e8;
    }
    .reiseplaner-widget .rp-map-panel,
    .reiseplaner-widget .rp-map-canvas {
        min-height: 320px;
    }
    .reiseplaner-widget .rp-info-panel {
        min-height: 0;
        padding: 12px;
    }
}

