/* Zusatzstyles für Geissert Schienentransporte */

.transport-body {
    background: linear-gradient(180deg, #f4f6f8 0%, #eef1f4 100%);
}

.transport-hero {
    padding: 90px 0 50px;
    background:
        linear-gradient(rgba(25, 28, 33, 0.72), rgba(25, 28, 33, 0.82)),
        url('images/bg_1.png');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.transport-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.transport-hero p {
    max-width: 760px;
    opacity: 0.92;
}

.booking-section {
    padding: 55px 0 80px;
}

.booking-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
}

.search-panel,
.results-panel,
.payment-status,
.ticket-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.05);
    border: 1px solid #e7eaef;
}

.search-panel {
    padding: 24px;
    position: sticky;
    top: 110px;
}

.search-panel h2,
.results-head h2,
.ticket-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.muted {
    color: #69707d;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
    font-size: 0.95rem;
}

.form-control,
.form-button,
.buy-button,
.details-toggle {
    font-family: 'Inter', sans-serif;
}

.form-control {
    width: 100%;
    border: 1px solid #cfd6df;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.97rem;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(144, 224, 92, 0.18);
}

.form-button {
    width: 100%;
    background: #28313d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.form-button:hover,
.buy-button:hover,
.details-toggle:hover {
    transform: translateY(-1px);
}

.form-button:hover,
.buy-button:hover {
    background: #1d242d;
}

.search-hints {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #d7dde5;
    font-size: 0.92rem;
    color: #69707d;
}

.search-hints strong {
    color: #1f2730;
}

.results-panel {
    padding: 24px;
}

.results-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.results-summary {
    color: #69707d;
    text-align: right;
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.route-card {
    background: #fdfdfd;
    border: 1px solid #dde3eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.route-card.recommended {
    border-color: rgba(144, 224, 92, 0.75);
    box-shadow: 0 8px 24px rgba(144, 224, 92, 0.12);
}

.route-top {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.route-top-left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.route-title h3 {
    font-size: 1.45rem;
    line-height: 1.15;
    margin-bottom: 4px;
}

.route-subtitle {
    font-size: 0.95rem;
    color: #69707d;
    font-weight: 600;
}

.price-box {
    text-align: right;
    min-width: 150px;
}

.price-box .price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #1e2530;
}

.price-box .price-note {
    font-size: 0.88rem;
    color: #69707d;
    margin-top: 6px;
}

.route-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-recommended {
    background: rgba(144, 224, 92, 0.16);
    color: #296300;
}

.tag-price {
    background: rgba(252, 156, 0, 0.14);
    color: #b35f00;
}

.tag-transfer {
    background: rgba(40, 49, 61, 0.08);
    color: #28313d;
}

.route-body {
    border-top: 1px dashed #d5dbe3;
    padding: 20px;
}

.segment {
    margin-bottom: 18px;
}

.segment:last-child {
    margin-bottom: 0;
}

.segment-bar {
    background: #28313d;
    color: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.segment-provider {
    opacity: 0.9;
    font-size: 0.88rem;
}

.segment-code {
    color: #ffd699;
}

.segment-points {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 0;
    font-size: 1.1rem;
}

.segment-points .point {
    flex: 1;
}

.segment-points .point.right {
    text-align: right;
}

.segment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #69707d;
    font-size: 0.92rem;
    margin-top: 6px;
}

.segment-alerts {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alert-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.94rem;
}

.alert-row.warning { color: #c53218; }
.alert-row.info { color: #2b3645; }

.route-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.details-toggle {
    background: transparent;
    color: #2e3742;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
}

.buy-button {
    background: #fff;
    border: 1px solid #aeb6c1;
    color: #2e3742;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.buy-button.primary {
    border-color: #28313d;
}

.route-details {
    display: none;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e3e7ee;
}

.route-details.open {
    display: block;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.detail-box {
    background: #f4f6f8;
    border-radius: 10px;
    padding: 14px;
}

.detail-box strong {
    display: block;
    font-size: 0.82rem;
    color: #69707d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #d2d9e2;
    border-radius: 12px;
    color: #69707d;
    background: #fafbfc;
}

.payment-status,
.ticket-panel {
    margin-top: 24px;
    padding: 24px;
}

.payment-status.success {
    border-color: rgba(12, 166, 120, 0.25);
    background: #f4fffb;
}

.payment-status.error {
    border-color: rgba(240, 0, 0, 0.16);
    background: #fff7f7;
}

.ticket-card {
    border: 1px dashed #bfc8d4;
    border-radius: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f6f8fa);
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.ticket-code {
    font-weight: 800;
    font-size: 1.1rem;
}

.ticket-download a {
    color: #1c5aa6;
    font-weight: 700;
    text-decoration: none;
}

.ticket-download a:hover {
    text-decoration: underline;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.ticket-meta div {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e5eaf0;
}

.ticket-meta strong {
    display: block;
    font-size: 0.82rem;
    color: #69707d;
    margin-bottom: 3px;
}

.small-note {
    font-size: 0.85rem;
    color: #7a828f;
    margin-top: 10px;
}

@media (max-width: 960px) {
    .booking-shell {
        grid-template-columns: 1fr;
    }

    .search-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .transport-hero h1 {
        font-size: 2.25rem;
    }

    .route-top,
    .results-head,
    .route-actions,
    .ticket-head,
    .segment-points {
        flex-direction: column;
        align-items: flex-start;
    }

    .segment-points .point.right,
    .price-box,
    .results-summary {
        text-align: left;
    }

    .price-box {
        min-width: auto;
    }
}

/* Aus der HTML ausgelagerte Timeline- und Ticket-Detailstyles */
.journey-timeline {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.journey-timeline-item,
.journey-transfer-zone {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: stretch;
}

.journey-timeline-item {
    position: relative;
}

.journey-timeline-rail,
.journey-transfer-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.journey-timeline-rail {
    min-height: 100%;
    padding-top: 4px;
}

.journey-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 3px solid #64748b;
    background: #fff;
    display: block;
    z-index: 2;
}

.journey-timeline-line {
    position: absolute;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #94a3b8 0%, #cbd5e1 100%);
    border-radius: 999px;
}

.journey-timeline-line.end {
    display: none;
}

.journey-timeline-content {
    display: grid;
    gap: 10px;
    padding-bottom: 10px;
}

.journey-segment-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
}

.journey-segment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.journey-station-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.journey-segment-train {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

.journey-segment-provider {
    color: #334155;
    font-weight: 700;
}

.journey-segment-route,
.journey-segment-stops,
.journey-transfer-note-inline {
    color: #475569;
    line-height: 1.5;
}

.journey-arrival-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
}

.journey-transfer-zone {
    min-height: 82px;
    margin: -2px 0 12px;
}

.journey-transfer-rail::before,
.journey-transfer-rail::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed #94a3b8;
}

.journey-transfer-rail::before {
    top: 0;
    height: 18px;
}

.journey-transfer-rail::after {
    bottom: 0;
    height: 18px;
}

.journey-transfer-line {
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dashed #94a3b8;
}

.journey-transfer-box {
    background: #e9edf2;
    border-top: 1px dashed #b8c2cf;
    border-bottom: 1px dashed #b8c2cf;
    padding: 18px 16px;
    display: flex;
    align-items: center;
}

.journey-transfer-note-inline {
    font-weight: 700;
}

.segment-alerts.compact {
    margin-top: 10px;
}

.ticket-card + .ticket-card {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .journey-timeline-item,
    .journey-transfer-zone {
        grid-template-columns: 22px 1fr;
        gap: 10px;
    }

    .journey-segment-box,
    .journey-transfer-box {
        padding: 12px;
    }
}


.segment-detail-list {
    margin-bottom: 18px;
}

.journey-strip-modal .journey-timeline {
    margin-top: 18px;
}

.route-details .journey-timeline {
    margin-top: 0;
}

.route-details .detail-grid {
    margin-top: 20px;
}

.journey-segment-box {
    position: relative;
}

.journey-arrival-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #d6dde7;
}

.journey-arrival-row .journey-arrival-station {
    font-weight: 800;
}

.journey-transfer-zone {
    min-height: 98px;
    margin: -2px 0 12px;
}

.journey-transfer-box {
    background: #eef2f6;
    border-top: 1px dashed #b8c2cf;
    border-bottom: 1px dashed #b8c2cf;
    min-height: 80px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
}

.journey-transfer-note-inline {
    font-weight: 700;
}


/* DB-naehere Verbindungsdarstellung */
.route-card-db {
    border-radius: 18px;
    overflow: hidden;
}

.db-route-top {
    align-items: center;
    gap: 24px;
}

.db-route-top-left {
    width: 100%;
    align-items: flex-start;
}

.db-route-title {
    flex: 1 1 auto;
}

.db-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #475569;
    font-weight: 700;
    font-size: 0.96rem;
    margin-bottom: 10px;
}

.db-route-meta span + span::before {
    content: '•';
    margin-right: 10px;
    color: #94a3b8;
}

.db-price-box {
    min-width: 170px;
}

.db-route-body {
    background: #fff;
}


.journey-strip-line {
    border-radius: 4px;
    text-align: center;
    font-weight: 800;
    padding: 8px 12px;
    letter-spacing: 0.02em;
}

.journey-strip-stations {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 0;
    color: #0f172a;
    font-weight: 600;
}



/* Buchungsmodal */
body.modal-open {
    overflow: hidden;
}

.booking-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 5000;
}

.booking-modal.open {
    display: flex;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

.booking-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    border: 1px solid #dbe4ee;
    padding: 28px 24px 24px;
}

.booking-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.booking-modal-head h2 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 4px 0 0;
    color: #111827;
}

.modal-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #eef2f6;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-summary-card {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    padding: 18px 18px 16px;
}

.modal-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.modal-summary-top h3 {
    font-size: 1.7rem;
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.15;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.modal-section {
    margin-top: 26px;
}

.modal-section h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: #111827;
}

.modal-info-box {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    padding: 16px 18px;
}

.modal-note-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #475569;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .buy-button.secondary {
    background: #eef2f6;
    border-color: #d7dee7;
}

.modal-actions .buy-button.primary {
    background: #8fdc57;
    border-color: #8fdc57;
    color: #ffffff;
}

.modal-actions .buy-button.primary:hover {
    background: #7ecc49;
}

.modal-tags {
    margin-bottom: 10px;
}

/* Linienbalken in einer Reihe halten */
.journey-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.journey-strip-segment {
    min-width: 160px;
    flex: 1 1 0;
}

.journey-strip::-webkit-scrollbar {
    height: 8px;
}

.journey-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.journey-strip::-webkit-scrollbar-track {
    background: transparent;
}

.db-route-alerts {
    display: grid;
    gap: 6px;
    margin: 10px 0 6px;
}

.db-route-alert {
    color: #c81e1e;
    font-weight: 500;
}

.db-route-alert.warning::before {
    content: '●';
    margin-right: 8px;
}

.db-route-actions {
    margin-top: 12px;
    align-items: center;
}

.db-details-heading {
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1.1;
    color: #111827;
}

.db-timeline {
    display: grid;
    gap: 0;
    margin-top: 6px;
}

.db-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
}

.db-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.db-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 3px solid #64748b;
    background: #fff;
    position: relative;
    z-index: 2;
}

.db-rail-line {
    position: absolute;
    top: 16px;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #7b8794;
}

.db-rail-line.hidden {
    display: none;
}

.db-row.station .db-content {
    padding-bottom: 10px;
}

.db-row.station.start.first .db-rail-line {
    top: 16px;
}

.db-station-name {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.db-row.ride .db-content {
    padding: 2px 0 18px;
}

.db-row.ride .db-rail-line {
    top: 0;
    bottom: 0;
}

.db-line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 8px 14px;
    font-weight: 800;
    min-width: 72px;
    margin-bottom: 10px;
}

.db-line-destination {
    color: #334155;
    font-size: 1.18rem;
    margin-bottom: 2px;
}

.db-line-provider,
.db-line-via {
    color: #6b7280;
    font-size: 1rem;
}

.segment-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.segment-service-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.92rem;
}

.segment-notice-list {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.segment-notice {
    font-size: 1rem;
    line-height: 1.45;
}

.segment-notice.warning,
.segment-notice.line {
    color: #c81e1e;
}

.segment-notice.info {
    color: #1f2937;
}

.db-row.transfer {
    min-height: 88px;
}

.db-row.transfer .db-rail-line {
    top: 0;
    bottom: 0;
    background: transparent;
    border-left: 3px dotted #9aa5b1;
    width: 0;
}

.db-transfer-box {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #eef2f6;
    border-top: 1px solid #d8e0e8;
    border-bottom: 1px solid #d8e0e8;
    color: #475569;
    font-weight: 700;
}

.db-segment-detail-list {
    margin-bottom: 20px;
}

.db-modal-summary-card .journey-strip {
    margin-top: 16px;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .db-route-top {
        align-items: flex-start;
    }

    .db-station-name {
        font-size: 1.3rem;
    }
}


@media (max-width: 700px) {
    .booking-modal {
        padding: 12px;
    }

    .booking-modal-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 20px 16px 18px;
        border-radius: 20px;
    }

    .booking-modal-head h2 {
        font-size: 1.45rem;
    }

    .modal-summary-top,
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-price {
        font-size: 1.6rem;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .journey-strip-segment {
        min-width: 130px;
    }
}


@media (max-width: 700px) {
    .journey-strip {
        grid-template-columns: 1fr;
    }

    .db-row {
        grid-template-columns: 28px 1fr;
        gap: 12px;
    }

    .db-station-name {
        font-size: 1.12rem;
    }

    .db-line-destination {
        font-size: 1rem;
    }

    .db-details-heading {
        font-size: 1.4rem;
    }
}


/* Eingabefelder mit Vorschlagsliste */
input.form-control[list]::-webkit-calendar-picker-indicator {
    display: none !important;
}

.journey-strip-stations.joined {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
    align-items: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.journey-strip-stations.joined span {
    position: relative; 
    text-align: center;
}

.journey-strip-stations.joined span:not(:last-child)::after {
    content: "?";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 700;
}

.journey-strip-lines {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
}

.journey-strip-line-block {
    display: flex;
    justify-content: center;
}

.db-row.transfer .transfer-content {
    padding-left: 0;
}

.db-row.transfer .db-transfer-box {
    display: block;
    width: calc(100% + 36px);
    margin-left: -36px;
    box-sizing: border-box;
}

.journey-strip.journey-strip-fixed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journey-strip-lines {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
}

.journey-strip-line-block {
    display: flex;
}

.journey-strip-line-block .journey-strip-line {
    width: 100%;
    text-align: center;
}

.journey-strip-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1f3556;
    line-height: 1.35;
}

.journey-strip-chain-station {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.journey-strip-arrow {
    color: #64748b;
    font-weight: 700;
}

.db-row.transfer .transfer-content {
    padding-left: 0;
}

.db-row.transfer .db-transfer-box {
    display: block;
    width: calc(100% + 36px);
    margin-left: -36px;
    box-sizing: border-box;
}

/* Wagen */

.wagenreihe {
    display:flex;
    align-items:flex-end;
    gap:4px;
    overflow-x:auto;
    padding:10px 0;
}

/* Basis Wagen */
.wagon {
    width:55px;
    height:42px;
    border:2px solid #9ca3af;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:14px;
    background:#f3f4f6;
}

/* 2. Klasse */
.wagon-second {
    background:#f3f4f6;
    color:#374151;
}

/* 1. Klasse */
.wagon-first {
    background:#4b5563;
    color:#fff;
}

/* Mischklasse */
.wagon-mixed {
    background:linear-gradient(90deg,#4b5563 50%, #f3f4f6 50%);
    color:#111;
}

/* Bordbistro */
.wagon-bistro {
    background:#fff7ed;
    color:#c2410c;
    font-size:18px;
}

/* Schlafwagen */
.wagon-sleeper {
    background:#eef2ff;
    color:#3730a3;
    font-size:18px;
}

/* Symmetrische Lok */
.wagon-lok {
    width:60px;
    height:42px;
    background:#111827;
    color:#fff;
    border-color:#111827;
    border-radius:10px 10px 6px 6px;
    position:relative;
    clip-path:polygon(16% 0, 84% 0, 100% 100%, 0 100%);
}

.wagon-lok::after {
    content:'';
    position:absolute;
    left:12px;
    right:12px;
    bottom:6px;
    height:2px;
    background:rgba(255,255,255,0.22);
}

/* gerichtete Köpfe */
.wagon-cab-left,
.wagon-cab-right,
.wagon-power-left,
.wagon-power-right {
    position:relative;
    overflow:visible;
}

.wagon-power-left,
.wagon-power-right {
    width:60px;
    height:42px;
    background:#111827;
    color:#fff;
    border-color:#111827;
}

.wagon-power-left { border-radius:0 8px 8px 0; }
.wagon-power-right { border-radius:8px 0 0 8px; }

.wagon-cab-left,
.wagon-cab-right {
    background:#f3f4f6;
    color:#374151;
}

.wagon-cab-left { border-radius:0 8px 8px 0; }
.wagon-cab-right { border-radius:8px 0 0 8px; }

.wagon-power-left::before,
.wagon-cab-left::before {
    content:'';
    position:absolute;
    top:-2px;
    left:-16px;
    width:18px;
    height:42px;
    background:inherit;
    border-top:2px solid #9ca3af;
    border-left:2px solid #9ca3af;
    border-bottom:2px solid #9ca3af;
    border-right:none;
    clip-path:polygon(100% 0, 100% 100%, 0 100%, 8% 65%, 18% 25%, 35% 0);
    border-radius:16px 0 0 8px;
}

.wagon-power-right::before,
.wagon-cab-right::before {
    content:'';
    position:absolute;
    top:-2px;
    right:-16px;
    width:18px;
    height:42px;
    background:inherit;
    border-top:2px solid #9ca3af;
    border-right:2px solid #9ca3af;
    border-bottom:2px solid #9ca3af;
    border-left:none;
    clip-path:polygon(0 0, 65% 0, 82% 25%, 92% 65%, 100% 100%, 0 100%);
    border-radius:0 16px 8px 0;
}

/* letzter Wagen rund */
.wagon:last-child {
    border-radius:0 10px 10px 0;
}