/* ════════════════════════════════════════════════════════════════
   NOWE Trip Info – trip.css
   Lädt nach ../style.css; überschreibt/ergänzt trip-spezifisch.
   ════════════════════════════════════════════════════════════════ */

/* ─── Eingabe-Bereich ──────────────────────────────────────────── */

#trip-input-wrapper {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 2px solid #ff9900;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trip-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

#trip-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.88em;
    color: #333;
}

#trip-input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255,153,0,.2);
}

.trip-date-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.trip-date-row label {
    font-weight: 700;
    font-size: 0.85em;
    white-space: nowrap;
    color: #555;
}

#trip-date {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

#trip-date:focus {
    outline: none;
    border-color: #ff9900;
}

#btn-trip-fetch {
    padding: 8px 18px;
    background: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

#btn-trip-fetch:hover  { background: #e68a00; }
#btn-trip-fetch:active { background: #cc7a00; }

/* ─── Status ───────────────────────────────────────────────────── */

.trip-status {
    padding: 7px 14px;
    font-size: 0.88em;
    text-align: center;
    border-radius: 0;
    min-height: 28px;
}

.trip-status--info    { background: #E3F2FD; color: #0d47a1; }
.trip-status--success { background: #E8F5E9; color: #1b5e20; }
.trip-status--error   { background: #FFEBEE; color: #b71c1c; }

/* ─── Trip-Header (Linien-Badge + Destination + Zugnummer) ─────── */

.trip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ff9900;
    color: #fff;
    flex-wrap: wrap;
}

.trip-header__badge {
    background: rgba(0,0,0,.18);
    border-radius: 4px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: .03em;
    white-space: nowrap;
}

.trip-header__dest {
    flex: 1;
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-header__num {
    font-size: 0.82em;
    opacity: .85;
    white-space: nowrap;
}

/* ─── Perlschnur-Tabelle ───────────────────────────────────────── */

.perlschnur {
    width: 100%;
    border-collapse: collapse;
    padding: 0 4px;
    table-layout: fixed;
}

/* Spaltenbreiten */
.perlschnur .ps-col-time { width: 90px;  }
.perlschnur .ps-col-dot  { width: 28px;  }
.perlschnur .ps-col-name { width: auto;  }

.ps-row td {
    padding: 0;
    vertical-align: top;
    background: #fff;
}

/* ── Zeitspalte ────────────────────────────────────────────────── */

.ps-col-time {
    text-align: right;
    padding-right: 6px !important;
    padding-top: 10px !important;
    line-height: 1.4;
}

.ps-time {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    color: #222;
    white-space: nowrap;
}

.ps-time--arr { color: #555; }
.ps-time--dep { color: #111; font-weight: 600; }

/* ── Delay-Badge ───────────────────────────────────────────────── */

.delay-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 4px;
    margin-left: 3px;
    vertical-align: middle;
    white-space: nowrap;
}

.delay-badge--late  { background: #e60000; color: #fff; }
.delay-badge--early { background: #0070c0; color: #fff; }

/* ── Dot-Spalte (Linie + Punkt) ────────────────────────────────── */

.ps-col-dot {
    padding: 0 !important;
    position: relative;
}

.ps-line-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 44px;
}

.ps-line {
    flex: 1;
    width: 3px;
    background: #ff9900;
    min-height: 10px;
}

.ps-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff9900;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ff9900;
    flex-shrink: 0;
    z-index: 1;
}

.ps-dot--first,
.ps-dot--last {
    width: 14px;
    height: 14px;
    background: #cc7700;
    box-shadow: 0 0 0 2px #cc7700;
}

/* ── Name-Spalte ───────────────────────────────────────────────── */

.ps-col-name {
    padding: 10px 4px 10px 8px !important;
    line-height: 1.4;
}

.ps-name {
    font-size: 0.93em;
    font-weight: 500;
    color: #222;
}

.ps-row--first .ps-name,
.ps-row--last  .ps-name {
    font-weight: 700;
    font-size: 0.97em;
    color: #111;
}

.ps-quay {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.78em;
    background: #eee;
    color: #555;
    border-radius: 3px;
    padding: 1px 5px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Rollstuhl / Ersatztransport ───────────────────────────────── */

.access-icon {
    margin-left: 5px;
    font-size: 0.9em;
    vertical-align: middle;
    opacity: .85;
}

.access-icon--ok  { filter: none; }
.access-icon--alt { opacity: .7;  }

/* ─── Board-Container ──────────────────────────────────────────── */

#trip-board {
    padding: 0 0 24px 0;
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 480px) {
    .perlschnur .ps-col-time { width: 76px; }
    .ps-time { font-size: 0.82em; }
    .ps-name { font-size: 0.88em; }
    .trip-header__num { display: none; }
}