/* =========================================================
   Location Search
   ========================================================= */

.portal-location-search {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-bottom:20px;
}

.hero--subpage .portal-location-search{
    padding-bottom:0;
    top:85px;
}

.portal-location-search__form {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.5fr)
        minmax(180px, 0.7fr)
        minmax(430px, 1.6fr)
        max-content;
    column-gap: 20px;
    align-items: end;

    padding: 28px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .12),
        0 4px 12px rgba(15, 23, 42, .05);
}



/* =========================================================
   Labels
   ========================================================= */

.portal-location-search label,
.portal-location-search legend {
    display: block;
    margin: 0 0 10px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    color: var(--color-text);
}

.portal-location-search fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}


/* =========================================================
   Standort / Eingabefeld
   ========================================================= */

.portal-location-search__input-wrap,
.portal-location-search__select-wrap {
    position: relative;
}

.portal-location-search__input-icon,
.portal-location-search__select-icon {
    position: absolute;
    left: 16px;
    top: 50%;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: var(--color-text-muted);

    pointer-events: none;
}

.portal-location-search__input-icon svg,
.portal-location-search__select-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.portal-location-search input[type="text"],
.portal-location-search select {
    width: 100%;
    height: 54px;

    padding: 0 16px 0 48px;

    font: inherit;
    font-size: 15px;

    color: var(--color-text);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 9px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.portal-location-search input[type="text"]::placeholder {
    color: var(--color-text-muted);
}

.portal-location-search input[type="text"]:focus,
.portal-location-search select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--color-primary) 14%,
            transparent
        );
}


/* =========================================================
   Aktuellen Standort verwenden
   ========================================================= */

.portal-location-search__current-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 12px;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--color-link);

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition: color .2s ease;
}

.portal-location-search__current-location:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* =========================================================
   Fahrzeit
   ========================================================= */

.portal-location-search select {
    cursor: pointer;
}


/* =========================================================
   Verkehrsmittel
   ========================================================= */

.portal-location-search__transport-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.portal-transport-option {
    margin: 0 !important;
    cursor: pointer;
}

.portal-transport-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-transport-option__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 54px;
    padding: 0 14px;

    white-space: nowrap;

    color: var(--color-text);
    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: 9px;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.portal-transport-option__icon {
    font-size: 17px;
    line-height: 1;
}

.portal-transport-option:hover .portal-transport-option__content {
    border-color: var(--color-primary);
}

.portal-transport-option input:checked + .portal-transport-option__content {
    color: var(--color-primary);

    background:
        color-mix(
            in srgb,
            var(--color-primary) 8%,
            var(--color-surface)
        );

    border-color: var(--color-primary);

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--color-primary) 8%,
            transparent
        );
}


/* =========================================================
   Suchbutton
   ========================================================= */

.portal-location-search__submit{
    margin-left:20px;
}   

.portal-location-search__submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 165px;
    height: 54px;

    padding: 0 22px;

    border: 0;
    border-radius: 9px;

    color: var(--color-button-text);
    background: var(--color-button-background);

    font: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 7px 18px
        color-mix(
            in srgb,
            var(--color-button-background) 25%,
            transparent
        );

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.portal-location-search__submit button svg {
    width: 19px;
    height: 19px;
}

.portal-location-search__submit button:hover {
    background: var(--color-button-hover);
    transform: translateY(-1px);
}

.portal-location-search__submit button:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--color-button-background) 25%,
            transparent
        );
}

.portal-transport-option__icon svg {    
    width:auto;
    height:24px;
    fill: currentColor;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .portal-location-search__form {
        grid-template-columns: 1fr 1fr;
    }

    .portal-location-search__transport {
        grid-column: 1 / -1;
    }

    .portal-location-search__submit {
        grid-column: 1 / -1;
    }

    .portal-location-search__submit button {
        width: 100%;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 700px) {

    .portal-location-search {
        width: min(100% - 24px, 1280px);
    }

    .portal-location-search__form {
        display: block;

        padding: 20px;

        border-radius: 14px;
    }

    .portal-location-search__time,
    .portal-location-search__transport,
    .portal-location-search__submit {
        margin-top: 22px;
    }

    .portal-location-search__transport-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-location-search__submit button {
        width: 100%;
    }
}


/* =========================================================
   Kleine Smartphones
   ========================================================= */

@media (max-width: 400px) {

    .portal-location-search__transport-options {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Standorte, Routenplaner und Suchseite
   (aus components-backup.css übernommen – waren bisher nicht eingebunden)
   ========================================================================== */

   LOCATIONS
   ========================================================== */

.location-overview {
    width: 100%;
}


/* ==========================================================
   LOCATION HERO
   ========================================================== */

.location-hero {
    padding: clamp(70px, 9vw, 130px) 0;
}

.location-hero-inner {
    max-width: 760px;
}

.location-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-primary, #2563eb);
}

.location-hero h1 {
    margin: 0;

    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.location-hero h1 span {
    color: var(--color-primary, #2563eb);
}

.location-hero p {
    max-width: 650px;
    margin: 24px 0 0;

    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
}


/* ==========================================================
   OVERVIEW
   ========================================================== */

.location-overview-content {
    padding: clamp(60px, 8vw, 110px) 0;
}

.location-section-header {
    max-width: 700px;
    margin-bottom: clamp(35px, 5vw, 60px);
}

.location-section-header h2 {
    margin: 0;

    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.location-section-header p {
    margin: 18px 0 0;
    line-height: 1.7;
}


/* ==========================================================
   LOCATION GRID
   ========================================================== */

.location-grid {
    display: grid;

    /* bricht selbst um – ohne Breakpoints */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));

    gap: clamp(20px, 2.5vw, 32px);
}


/* ==========================================================
   LOCATION CARD
   ========================================================== */

.location-card {
    display: flex;
    min-width: 0;
    flex-direction:column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    background: #fff;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.location-card:hover {
    transform: translateY(-4px);

    border-color: rgba(0, 0, 0, 0.12);

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.08);
}

.location-card-content {
    display: flex;
    flex-direction: column;

    width: 100%;
    padding: clamp(24px, 3vw, 34px);
}

.location-card h2 {
    margin: 0 0 16px;

    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
    line-height: 1.25;
}

.location-card h2 a {
    color: inherit;
    text-decoration: none;
}

.location-card-address {
    margin-bottom: 18px;

    font-size: 0.95rem;
    line-height: 1.6;

    opacity: 0.7;
}

.location-card-content > p {
    margin: 0 0 22px;

    line-height: 1.65;
}


/* ==========================================================
   CATEGORIES
   ========================================================== */

.location-card-categories,
.location-category-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;
}

.location-card-categories span,
.location-category-list span {
    display: inline-flex;
    align-items: center;

    padding: 6px 11px;

    border-radius: 999px;

    background: rgba(0, 0, 0, 0.05);

    font-size: 0.78rem;
    font-weight: 600;
}


/* ==========================================================
   CARD LINK
   ========================================================== */

.location-card-more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    color: var(--color-primary, #2563eb);

    font-size: 0.9rem;
    font-weight: 700;

    text-decoration: none;
}

.location-card-more span {
    transition: transform 0.2s ease;
}

.location-card-more:hover span {
    transform: translateX(4px);
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.location-pagination {
    margin-top: clamp(40px, 6vw, 70px);
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.location-empty {
    grid-column: 1 / -1;

    padding: 40px;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    text-align: center;
}


/* ==========================================================
   LOCATION DETAIL
   ========================================================== */

.location-detail-hero {
    padding: clamp(70px, 9vw, 130px) 0;
}

.location-detail-hero-content {
    max-width: 850px;
}

.location-detail-hero h1 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.location-detail-excerpt {
    max-width: 700px;
    margin: 24px 0 0;

    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}


/* ==========================================================
   LOCATION DETAIL BODY
   ========================================================== */

.location-detail-body {
    padding: clamp(50px, 7vw, 100px) 0;
}

.location-detail-body .container {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(min(100%, 300px), 1fr)
        );

    gap: clamp(24px, 3vw, 40px);
}

.location-detail-address,
.location-detail-categories,
.location-detail-contact,
.location-detail-description {
    padding: clamp(24px, 3vw, 36px);

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;

    background: #fff;
}

.location-detail-body h2 {
    margin: 0 0 18px;

    font-size: 1.25rem;
}

.location-detail-address address {
    font-style: normal;
    line-height: 1.7;
}

.location-detail-contact p {
    margin: 0 0 10px;
}

.location-detail-contact p:last-child {
    margin-bottom: 0;
}

.location-detail-contact a {
    color: var(--color-primary, #2563eb);
    text-decoration: none;
}

.location-detail-description {
    grid-column: 1 / -1;

    line-height: 1.75;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .location-hero {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .location-overview-content {
        padding-top: 45px;
    }

    .location-card-content {
        padding: 22px;
    }

    .location-detail-hero {
        padding-top: 50px;
        padding-bottom: 60px;
    }
}





/* =========================================================
   Route Planner
   ========================================================= */

.route-planner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 9px;
    background: var(--color-button-background);
    color: var(--color-button-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.route-planner-button:hover {
    background: var(--color-button-hover);
    transform: translateY(-1px);
}

.route-planner-button svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}


/* Overlay */

.route-planner-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.route-planner-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* Sidebar */

.route-planner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    width: min(520px, 100%);
    height: 100vh;
    height: 100dvh;

    background: var(--color-surface);
    color: var(--color-text);

    box-shadow: 20px 0 50px rgba(15, 23, 42, .18);

    transform: translateX(-105%);
    transition: transform .35s ease;

    overflow-y: auto;
}

.route-planner.is-open {
    transform: translateX(0);
}


/* Header */

.route-planner__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 26px 28px;

    border-bottom: 1px solid var(--color-border);
}

.route-planner__header h2 {
    margin: 3px 0 0;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-text);
}

.route-planner__eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.route-planner__close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: var(--color-surface);
    color: var(--color-text);

    cursor: pointer;
}

.route-planner__close:hover {
    background: var(--color-surface-soft);
}

.route-planner__close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* Body */

.route-planner__body {
    padding: 28px;
}

.route-planner__label,
.route-planner__start label {
    display: block;
    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 600;

    color: var(--color-text-muted);
}


/* Destination */

.route-planner__destination {
    padding: 18px;

    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.route-planner__destination strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.route-planner__destination > span:last-child {
    display: block;
    color: var(--color-text-muted);
    line-height: 1.5;
}


/* Start */

.route-planner__start {
    margin-top: 26px;
}

.route-planner__input-wrap {
    position: relative;
}

.route-planner__input-wrap svg {
    position: absolute;
    top: 50%;
    left: 15px;

    width: 19px;
    height: 19px;

    transform: translateY(-50%);
    fill: var(--color-text-muted);
}

.route-planner__input-wrap input {
    width: 100%;
    height: 52px;

    padding: 0 15px 0 45px;

    border: 1px solid var(--color-border);
    border-radius: 9px;

    background: var(--color-surface);
    color: var(--color-text);

    font: inherit;
    outline: none;
}

.route-planner__input-wrap input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.route-planner__current-location {
    margin-top: 10px;
    padding: 0;

    border: 0;
    background: transparent;

    color: var(--color-link);

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
}

.route-planner__current-location:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}


/* Transport */

.route-planner__transport {
    margin-top: 28px;
}

.route-planner__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.route-planner__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 70px;
    padding: 8px;

    border: 1px solid var(--color-border);
    border-radius: 9px;

    background: var(--color-surface);
    color: var(--color-text);

    font: inherit;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.route-planner__tab:hover {
    border-color: var(--color-primary);
}

.route-planner__tab.is-active {
    color: var(--color-primary);
    background:
        color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
    border-color: var(--color-primary);
}

.route-planner__tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;
}

.route-planner__tab-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}


/* Result */

.route-planner__result {
    min-height: 220px;
    margin-top: 28px;
    padding: 22px;

    border: 1px solid var(--color-border);
    border-radius: 12px;

    background: var(--color-surface);
}

.route-planner__placeholder {
    display: flex;
    min-height: 175px;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.route-planner__placeholder strong {
    margin-bottom: 7px;
}

.route-planner__placeholder p {
    max-width: 320px;
    margin: 0;

    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.55;
}



.route-planner__actions {
    margin-top: 24px;
}

.route-planner__submit {
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--color-button-background);
    color: var(--color-button-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.route-planner__submit:hover {
    background: var(--color-button-hover);
}

.route-planner__submit:disabled {
    opacity: .6;
    cursor: wait;
}




/* ---------------------------------------------------------
   Route result
--------------------------------------------------------- */

.route-planner__route {
    width: 100%;
}

.route-planner__route-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.route-planner__route-summary > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.route-planner__route-summary strong {
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--color-text);
}

.route-planner__summary-label {
    font-size: .85rem;
    color: var(--color-text-muted);
}

.route-planner__transfers {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--color-surface-soft);
    color: var(--color-text-muted);
    font-size: .8rem;
    font-weight: 600;
}


/* Timeline */

.route-planner__timeline {
    position: relative;
}

.route-planner__timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
}

.route-planner__timeline-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.route-planner__timeline-marker::after {
    content: "";
    position: absolute;
    top: 24px;
    bottom: -10px;
    left: 50%;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
}

.route-planner__timeline-item:last-child
.route-planner__timeline-marker::after {
    display: none;
}


/* Walking */

.route-planner__timeline-item--walk {
    padding-bottom: 20px;
}

.route-planner__walk-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-surface-soft);
    color: var(--color-primary);
}

.route-planner__walk-icon svg {
    width: 10px;
    height: 16px;
    fill: currentColor;
}

.route-planner__timeline-item--walk
.route-planner__timeline-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-top: 3px;
}

.route-planner__timeline-item--walk
.route-planner__timeline-content strong {
    color: var(--color-text);
    font-size: .9rem;
}

.route-planner__timeline-item--walk
.route-planner__timeline-content > span {
    color: var(--color-text-muted);
    font-size: .85rem;
}


/* Station */

.route-planner__station-dot {
    position: relative;
    z-index: 2;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-surface);
}

.route-planner__station {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.route-planner__station strong {
    font-size: .9rem;
    line-height: 1.4;
    color: var(--color-text);
}

.route-planner__time {
    color: var(--color-text-muted);
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}


/* Connection */

.route-planner__connection {
    position: relative;
    margin: 12px 0 12px 56px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--color-surface-soft);
}

.route-planner__connection-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-planner__connection-head > strong {
    color: var(--color-text);
    font-size: .85rem;
}

.route-planner__line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.route-planner__direction {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: .8rem;
    line-height: 1.35;
}

.route-planner__station--arrival {
    margin-bottom: 22px;
}


/* Mobile */

@media (max-width: 480px) {

    .route-planner__route-summary {
        gap: 12px;
    }

    .route-planner__route-summary strong {
        font-size: 1.15rem;
    }

    .route-planner__timeline-item {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
    }

    .route-planner__connection {
        margin-left: 0;
    }

    .route-planner__station {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}



/* ---------------------------------------------------------
   Intermediate stops
--------------------------------------------------------- */

.route-planner__intermediate {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.route-planner__intermediate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}

.route-planner__intermediate-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform .2s ease;
}

.route-planner__intermediate-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}


.route-planner__intermediate-stops {
    position: relative;
    margin-top: 12px;
}


/* Einzelner Zwischenhalt */

.route-planner__intermediate-stop {
    position: relative;
    display: grid;
    grid-template-columns: 42px 12px minmax(0, 1fr);
    gap: 8px;
    min-height: 32px;
    align-items: start;
}


/* kleine Verbindungslinie */

.route-planner__intermediate-stop::after {
    content: "";
    position: absolute;
    top: 13px;
    bottom: -3px;
    left: 55px;
    width: 1px;
    background: var(--color-border);
}

.route-planner__intermediate-stop:last-child::after {
    display: none;
}


/* Uhrzeit */

.route-planner__intermediate-time {
    padding-top: 1px;
    color: var(--color-text-muted);
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
}


/* kleiner Haltepunkt */

.route-planner__intermediate-dot {
    position: relative;
    z-index: 2;
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-surface-soft);
}


/* Haltestellenname */

.route-planner__intermediate-name {
    color: var(--color-text-muted);
    font-size: .78rem;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   Address autocomplete
--------------------------------------------------------- */

.route-planner__input-wrap {
    position: relative;
}

.route-planner__suggestions {
    position: absolute;
    z-index: 100;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    max-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;

    border: 1px solid var(--color-border);
    border-radius: 12px;

    background: var(--color-surface);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .14);
}

.route-planner__suggestion {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 100%;
    padding: 12px 14px;

    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;

    background: var(--color-surface);
    color: var(--color-text);

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition: background .15s ease;
}

.route-planner__suggestion:first-child {
    border-radius: 11px 11px 0 0;
}

.route-planner__suggestion:last-child {
    border-bottom: 0;
    border-radius: 0 0 11px 11px;
}

.route-planner__suggestion:only-child {
    border-radius: 11px;
}

.route-planner__suggestion:hover,
.route-planner__suggestion:focus-visible {
    background: var(--color-surface-soft);
    outline: none;
}


/*
 * Wichtig:
 * überschreibt die SVG-Regeln des normalen Eingabefeldes.
 */
.route-planner__suggestions
.route-planner__suggestion svg {
    position: static;
    top: auto;
    left: auto;
    transform: none;

    flex: 0 0 16px;

    width: 16px;
    height: 16px;
    margin-top: 3px;

    fill: currentColor;
    color: var(--color-primary);

    pointer-events: none;
}

.route-planner__suggestion span {
    display: block;

    min-width: 0;

    color: var(--color-text);

    font-size: .82rem;
    line-height: 1.45;

    overflow-wrap: anywhere;
}




img.is-placeholder {
    filter: grayscale(100%);
}




/* ==========================================================================
   Search Page
   ========================================================================== */

.search-page {
    min-height: 60vh;
    /*padding: clamp(50px, 7vw, 90px) 0; */
    background: var(--color-background);
}


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

.search-results__header {
    margin-bottom: 35px;
}

.search-results__header h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--color-text);
}

.search-results__header p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.search-results__header strong {
    color: var(--color-primary);
}


/* ==========================================================================
   Suchparameter
   ========================================================================== */

.search-results__parameters {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 15px;
    margin-bottom: 35px;
}

.search-results__parameter {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 20px 22px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.search-results__parameter span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.search-results__parameter strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
}


/* ==========================================================================
   Ergebnisbereich
   ========================================================================== */

.search-results__content {
    padding: clamp(30px, 4vw, 50px);

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;

    text-align: center;
}

.search-results__content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}


.route-planner__input-wrap input.is-invalid,
.portal-location-search__input-wrap input.is-invalid {
    border-color: #dc2626;
}


/* =========================================================
   Suchergebnisse – Suchparameter
   ========================================================= */

.search-results__parameters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 42px;
}

.search-results__parameter {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 105px;
    padding: 22px 24px 22px 28px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;

    overflow: hidden;
}

/* Akzent links */
.search-results__parameter::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;

    width: 4px;

    background: var(--color-primary);
    border-radius: 0 4px 4px 0;
}

/* Kleine Bezeichnung */
.search-results__parameter > span {
    display: block;
    margin-bottom: 7px;

    color: var(--color-text-muted);

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Gewählter Wert */
.search-results__parameter > strong {
    color: var(--color-text);

    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    line-height: 1.35;
}

/* Dezenter Hover */
.search-results__parameter {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


/* =========================================================
   Suchergebnisse – Trefferanzahl
   ========================================================= */

.search-results__count {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 24px;

    color: var(--color-text-muted);

    font-size: 1rem;
    line-height: 1.4;
}

.search-results__count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    color: var(--color-primary);
}

.search-results__count-icon svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: currentColor;
}

.search-results__count strong {
    color: var(--color-text);

    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 767px) {

    .search-results__parameters {
        gap: 12px;
        margin-bottom: 30px;
    }

    .search-results__parameter {
        min-height: auto;
        padding: 18px 20px 18px 24px;
    }

}





/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {

    .search-page {
        padding: 10px 0 60px;
    }

    .search-results__header {
        margin-bottom: 25px;
    }

    .search-results__parameters {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 25px;
    }

    .search-results__parameter {
        padding: 16px 18px;
    }

    .search-results__content {
        padding: 30px 20px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .route-planner {
        width: 100%;
    }

    .route-planner__header {
        padding: 20px;
    }

    .route-planner__body {
        padding: 20px;
    }

    .route-planner__tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}






/* ==========================================================
