/**
 * verbindungen.css - Styles für Verbindungen-Unterseiten
 * 
 * Viele Basisstyles sind in style.css definiert (trip-card, timeline, buttons, etc.)
 */

:root {
    --tram-color: #c4122f;
    --bus-color: #8b2d87;
}

/* Container */
.verbindungen-container, .rufbus-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Intro Card */
.intro-card {
    background: white; border-radius: 16px; padding: 40px; margin-top: -60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); border: 1px solid #f0f0f0;
    position: relative; z-index: 10; text-align: center; margin-bottom: 48px;
}
.intro-card p { font-size: 1.1rem; line-height: 1.7; color: #666; margin: 0; }

/* CTA Section */
.cta-section { text-align: center; margin: 48px 0; }

/* View Toggling */
.detail-view { display: none; }
.detail-view.active { display: block; }
.overview-view.hidden { display: none; }

/* Loading */
.loading-container { text-align: center; padding: 40px; color: #888; }
.loading-spinner {
    display: inline-block; width: 40px; height: 40px; border: 3px solid #eee;
    border-top-color: var(--bvg-yellow); border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Links Grid */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.link-card {
    background: white; border: 1px solid #f0f0f0; border-radius: 16px; padding: 36px 28px;
    text-align: center; cursor: pointer; transition: all 0.3s ease; text-decoration: none;
    color: inherit; display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: #e0e0e0; }
.link-card-icon {
    width: 72px; height: 72px; border-radius: 16px; background: #f8f8f8;
    border: 2px solid #e8e8e8; display: flex; align-items: center;
    justify-content: center; margin-bottom: 20px; transition: all 0.3s ease;
}
.link-card:hover .link-card-icon { background: var(--bvg-yellow); border-color: var(--bvg-yellow); }
.link-card-icon i { font-size: 2rem; color: #000; }
.link-card h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px 0; color: #000; }
.link-card p { font-size: 1rem; color: #666; margin: 0; line-height: 1.6; }
.card-arrow { margin-top: 18px; color: #ccc; font-size: 1rem; transition: all 0.3s; }
.link-card:hover .card-arrow { color: #000; transform: translateX(8px); }

/* Quick Access */
.quick-access-section {
    background: white; border: 1px solid #f0f0f0; border-radius: 16px;
    padding: 36px; margin-bottom: 48px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.quick-access-title { font-size: 1.3rem; font-weight: 800; color: #000; margin: 0 0 24px 0; display: flex; align-items: center; gap: 12px; }
.quick-access-title i { color: #666; font-size: 1.4rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-link {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
    background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 10px;
    font-size: 1rem; font-weight: 600; color: #333; text-decoration: none; transition: all 0.2s ease;
}
.quick-link:hover { background: white; border-color: #ddd; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.quick-link i { color: #999; font-size: 1.1rem; }

/* Info Box */
.info-box { background: #fafafa; border: 1px solid #e8e8e8; border-radius: 12px; padding: 24px; margin-bottom: 32px; }
.info-box p { margin: 0; color: #666; font-size: 0.95rem; line-height: 1.7; }
.info-box a { color: #000; font-weight: 700; text-decoration: none; border-bottom: 2px solid #ddd; transition: all 0.2s; }
.info-box a:hover { border-bottom-color: #000; }

/* LINIENÜBERSICHT */
.lines-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-btn { padding: 10px 20px; border: 2px solid #ddd; background: white; border-radius: 6px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { border-color: #999; }
.filter-btn.active { background: var(--bvg-yellow); border-color: var(--bvg-yellow); color: black; }

.lines-category { margin-bottom: 40px; }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; }
.category-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; }
.category-icon.tram { background: var(--tram-color); }
.category-icon.bus { background: var(--bus-color); }
.category-title { font-size: 1.3rem; font-weight: 800; margin: 0; }
.category-count { font-size: 0.9rem; color: #888; font-weight: 400; }

.lines-list { display: flex; flex-direction: column; background: white; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.line-item { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; }
.line-item:last-child { border-bottom: none; }
.line-item:hover { background: #f8f8f8; }

.line-badge { min-width: 55px; height: 36px; padding: 0 10px; border-radius: 6px; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; color: white; margin-right: 15px; }
.line-badge.tram { background: var(--tram-color); }
.line-badge.bus { background: var(--bus-color); }
.line-route { flex: 1; display: flex; align-items: center; font-size: 0.95rem; color: #333; }
.line-route .terminus { font-weight: 600; }
.line-route .separator { margin: 0 8px; color: #999; font-size: 0.85rem; }
.line-arrow { color: #ccc; font-size: 0.85rem; margin-left: 10px; }

.line-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 2px solid #eee; }
.line-badge-large { min-width: 70px; height: 70px; padding: 0 20px; border-radius: 10px; font-weight: 900; font-size: 2rem; display: flex; align-items: center; justify-content: center; color: white; }
.line-badge-large.tram { background: var(--tram-color); }
.line-badge-large.bus { background: var(--bus-color); }
.line-header-info h1 { margin: 0; font-size: 1.5rem; font-weight: 800; }
.line-header-info .line-type { color: #666; font-size: 0.95rem; margin-top: 5px; }
.line-header-info .line-route-header { color: #333; font-size: 1rem; margin-top: 8px; font-weight: 600; }

.direction-switcher { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 15px 20px; background: #f5f5f5; border-radius: 8px; }
.direction-label { font-weight: 700; font-size: 1rem; }
.direction-label i { margin-right: 8px; color: #666; }
.btn-switch-direction { padding: 10px 16px; background: white; border: 2px solid #ddd; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
.btn-switch-direction:hover { border-color: var(--bvg-yellow); background: #fffdf0; }
.btn-switch-direction.active { background: var(--bvg-yellow); border-color: var(--bvg-yellow); }

.stops-container { background: white; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.stops-header { background: #f8f8f8; padding: 15px 20px; font-weight: 700; font-size: 0.9rem; color: #555; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }

/* Haltestellenliste (haltestellenuebersicht) */
.stops-list { display: flex; flex-direction: column; }
.stops-list .stop-item { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: all 0.2s; background: white; border-left: 4px solid transparent; border-bottom: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.stops-list .stop-item:hover { background: #f8f8f8; border-left-color: var(--bvg-yellow); }

/* Linienverlauf Timeline (linienuebersicht) */
.stops-container .stop-item { display: flex; align-items: stretch; border-bottom: 1px solid #f0f0f0; transition: background 0.2s; }
.stops-container .stop-item:last-child { border-bottom: none; }
.stops-container .stop-item:hover { background: #fafafa; }
.stops-container .stop-number { width: 50px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #999; font-size: 0.9rem; background: #f8f8f8; border-right: 1px solid #eee; }
.stops-container .stop-timeline { width: 40px; position: relative; display: flex; justify-content: center; }
.stops-container .stop-timeline::before { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; background: #ddd; }
.stops-container .stop-item:first-child .stop-timeline::before { top: 50%; }
.stops-container .stop-item:last-child .stop-timeline::before { bottom: 50%; }
.stops-container .stop-dot { width: 14px; height: 14px; border-radius: 50%; background: white; border: 3px solid #ddd; position: relative; z-index: 1; align-self: center; }
.stops-container .stop-item:first-child .stop-dot, .stops-container .stop-item:last-child .stop-dot { background: #333; border-color: #333; }
.stops-container .stop-item.tram .stop-timeline::before { background: var(--tram-color); }
.stops-container .stop-item.tram .stop-dot { border-color: var(--tram-color); }
.stops-container .stop-item.tram:first-child .stop-dot, .stops-container .stop-item.tram:last-child .stop-dot { background: var(--tram-color); }
.stops-container .stop-item.bus .stop-timeline::before { background: var(--bus-color); }
.stops-container .stop-item.bus .stop-dot { border-color: var(--bus-color); }
.stops-container .stop-item.bus:first-child .stop-dot, .stops-container .stop-item.bus:last-child .stop-dot { background: var(--bus-color); }
.stops-container .stop-item .stop-name { flex: 1; padding: 15px; font-size: 0.95rem; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.stops-container .stop-item .stop-name:hover { color: #000; text-decoration: underline; }
.stops-container .stop-item .stop-name i { color: #ccc; font-size: 0.8rem; }

.line-actions { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.action-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: white; border: 2px solid #ddd; border-radius: 8px; font-weight: 600; font-size: 0.9rem; color: #333; text-decoration: none; transition: all 0.2s; }
.action-btn:hover { border-color: var(--bvg-yellow); background: #fffdf0; }
.action-btn i { color: #666; }

/* HALTESTELLENÜBERSICHT */
#stop-map { width: 100%; height: 280px; border-radius: 4px; overflow: hidden; border: 1px solid #eee; }

.stop-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.info-card { background: white; border: 1px solid #eee; border-top: 4px solid var(--bvg-yellow); border-radius: 4px; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.info-card.full-width { grid-column: 1 / -1; }
.info-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.info-card-header i { font-size: 1.1rem; color: #666; width: 24px; text-align: center; }
.info-card-header span { font-weight: 800; font-size: 0.85rem; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.info-card-content { font-size: 0.95rem; color: #555; line-height: 1.6; }

.transport-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.transport-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 4px; font-size: 0.9rem; font-weight: 700; color: white; }
.transport-tag.tram { background: #E3000B; }
.transport-tag.bus { background: #9040A5; }

.stats-row { display: flex; gap: 40px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: #333; line-height: 1; }
.stat-label { font-size: 0.75rem; color: #888; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; }

.external-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.external-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #f8f8f8; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; font-weight: 600; color: #333; text-decoration: none; transition: all 0.2s; }
.external-link:hover { background: var(--bvg-yellow); border-color: var(--bvg-yellow); }

.search-box { position: relative; }
.search-input { width: 100%; padding: 15px 15px 15px 45px; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; font-family: var(--font-stack); font-weight: 600; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--bvg-black); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #666; }
.search-clear { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #999; cursor: pointer; font-size: 1.1rem; display: none; }
.search-clear.visible { display: block; }

.alphabet-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.alphabet-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #f8f8f8; border: none; border-bottom: 3px solid #ccc; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.alphabet-btn:hover { border-bottom-color: var(--bvg-black); }
.alphabet-btn.active { background: var(--bvg-yellow); border-bottom-color: var(--bvg-black); }
.alphabet-btn.disabled { color: #ccc; cursor: default; background: #fafafa; }
.alphabet-btn.disabled:hover { border-bottom-color: #ccc; }

.letter-group { margin-bottom: 30px; }
.letter-header { font-size: 1.5rem; font-weight: 900; color: #333; padding: 12px 0; border-bottom: 2px solid #eee; margin-bottom: 10px; }

.stop-name-item { flex: 1; font-weight: 700; font-size: 1rem; color: #333; }
.stop-lines { display: flex; gap: 6px; flex-wrap: wrap; }
.line-badge-small { min-width: 32px; height: 26px; padding: 0 8px; border-radius: 4px; font-weight: 900; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.line-badge-small.tram { background: #E3000B; }
.line-badge-small.bus { background: #9040A5; }
.stop-arrow { color: #ccc; font-size: 0.85rem; margin-left: 15px; }

.stop-header { margin-bottom: 25px; }
.stop-header h1 { margin: 0 0 15px 0; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.stop-header .stop-lines-large { display: flex; gap: 10px; flex-wrap: wrap; }
.line-badge-medium { min-width: 50px; height: 38px; padding: 0 12px; border-radius: 6px; font-weight: 900; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.line-badge-medium:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.line-badge-medium.tram { background: #E3000B; }
.line-badge-medium.bus { background: #9040A5; }

.departures-section { margin-top: 25px; }
.departures-card { background: white; border: 1px solid #eee; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.departures-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f8f8f8; border-bottom: 1px solid #eee; }
.departures-header h2 { margin: 0; font-size: 1rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }
.departures-header h2 i { margin-right: 10px; color: #666; }
.departures-time { font-size: 0.85rem; color: #666; }
.no-departures { padding: 40px; text-align: center; color: #888; }
.no-departures i { font-size: 2.5rem; margin-bottom: 15px; display: block; color: #ccc; }

.next-trip-header { display: flex; align-items: center; gap: 10px; padding: 15px 20px; font-weight: 900; font-size: 0.9rem; text-transform: uppercase; color: #333; background: #f0f0f0; border-bottom: 1px solid #eee; letter-spacing: 0.5px; }
.next-dot { width: 10px; height: 10px; background: #4CAF50; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

/* Trip Card Ergänzungen für Haltestellenübersicht */
.trip-card.highlight { border-left-color: #4CAF50; background: #f9fff9; transform: scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* LINIENNETZPLAN */
.netzplan-wrapper { display: flex; flex-direction: column; gap: 20px; }
.map-container { position: relative; background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
#netzplan-map { width: 100%; height: 600px; }

.filter-panel { background: white; border-radius: 4px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.filter-panel .filter-header { margin-bottom: 15px; }
.filter-title { font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-actions { display: flex; gap: 10px; }
.filter-action-btn { padding: 6px 12px; border: 1px solid #ddd; background: white; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-action-btn:hover { background: #f5f5f5; }

.line-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid #eee; background: white; border-radius: 4px; cursor: pointer; transition: all 0.2s; font-weight: 700; font-size: 0.9rem; }
.line-toggle:hover { border-color: #ccc; }
.line-toggle.active { border-color: var(--line-color, #333); background: var(--line-color, #333); color: white; }
.line-toggle .line-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-color, #333); }
.line-toggle.active .line-dot { background: white; }

.map-controls { position: absolute; top: 10px; right: 10px; z-index: 1000; display: flex; flex-direction: column; gap: 5px; }
.map-control-btn { width: 36px; height: 36px; border: none; background: white; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.2s; }
.map-control-btn:hover { background: var(--bvg-yellow); }

.map-legend { position: absolute; bottom: 20px; left: 10px; z-index: 1000; background: white; padding: 12px 15px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); font-size: 0.8rem; max-width: 200px; }
.map-legend-title { font-weight: 900; margin-bottom: 8px; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.map-legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.map-legend-item:last-child { margin-bottom: 0; }
.legend-line { width: 20px; height: 4px; border-radius: 2px; }
.legend-circle { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #333; background: white; }
.legend-circle.filled { background: #333; }

.info-panel { position: absolute; top: 10px; left: 10px; z-index: 1000; background: white; padding: 15px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); max-width: 280px; display: none; }
.info-panel.visible { display: block; }
.info-panel-close { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #999; }
.info-panel-title { font-weight: 900; font-size: 1rem; margin-bottom: 10px; padding-right: 20px; }
.info-line-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; color: white; margin-right: 5px; margin-bottom: 5px; }

/* RUFBUS */
.hotline-banner-elegant { background: white; border: 1px solid #f0f0f0; border-radius: 16px; padding: 48px; margin: -60px 0 48px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; gap: 40px; position: relative; z-index: 10; }
.hotline-content h2 { font-size: 2rem; font-weight: 900; margin: 0 0 12px 0; color: #000; }
.hotline-content p { font-size: 1.1rem; color: #666; margin: 0 0 24px 0; line-height: 1.7; }
.hotline-badge { background: #f8f8f8; border: 2px solid #e8e8e8; color: #000; font-size: 3rem; padding: 28px; border-radius: 50%; flex-shrink: 0; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.hotline-badge i { color: #666; }
.phone-button { display: inline-flex; align-items: center; gap: 12px; padding: 18px 32px; background: var(--bvg-yellow); color: #000; text-decoration: none; font-size: 1.3rem; font-weight: 700; border-radius: 12px; transition: all 0.2s ease; border: none; cursor: pointer; }
.phone-button:hover { background: #e6ce20; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240, 215, 34, 0.35); }

.section-header-elegant { margin: 64px 0 32px 0; }
.section-header-elegant h2 { font-size: 1.8rem; font-weight: 900; margin: 0 0 8px 0; color: #000; }
.section-header-elegant p { font-size: 1rem; color: #666; margin: 0; }

.feature-grid-elegant { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.feature-card-elegant { background: white; border: 1px solid #f0f0f0; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.feature-card-elegant:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: #e0e0e0; }
.feature-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.feature-card-header h4 { margin: 0; font-size: 1.3rem; font-weight: 800; color: #000; }
.feature-card-icon { width: 56px; height: 56px; background: #f8f8f8; border: 2px solid #e8e8e8; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #000; flex-shrink: 0; }
.feature-card-elegant p { margin: 0; color: #666; line-height: 1.7; font-size: 1rem; }

.info-banner-elegant { background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.info-banner-elegant i { color: #999; font-size: 1.4rem; flex-shrink: 0; }
.info-banner-elegant span { color: #666; font-size: 1rem; line-height: 1.6; }

.steps-grid-elegant { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 48px; }
.step-card-elegant { background: white; border: 1px solid #f0f0f0; border-radius: 12px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.2s ease; }
.step-card-elegant:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.step-card-elegant h4 { margin: 0 0 12px 0; font-size: 1.1rem; font-weight: 800; color: #000; display: flex; align-items: center; gap: 10px; }
.step-card-elegant h4 i { color: #999; font-size: 1.2rem; }
.step-card-elegant p { margin: 0; color: #666; line-height: 1.6; font-size: 0.95rem; }

.contact-grid-elegant { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.contact-card-elegant { background: white; border: 1px solid #f0f0f0; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease; }
.contact-card-elegant:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); border-color: #e0e0e0; }
.contact-card-elegant.highlight { background: #fafafa; border-color: #e0e0e0; }
.contact-card-elegant h4 { margin: 0 0 16px 0; font-size: 1.2rem; font-weight: 800; color: #000; display: flex; align-items: center; gap: 10px; }
.contact-card-elegant h4 i { color: #999; font-size: 1.3rem; }
.contact-card-elegant p { margin: 12px 0; color: #666; line-height: 1.6; }
.contact-card-elegant .phone-number { font-size: 1.4rem; font-weight: 900; color: #000; margin: 16px 0; }
.contact-card-elegant a { color: #000; font-weight: 600; text-decoration: none; border-bottom: 2px solid #ddd; transition: all 0.2s; }
.contact-card-elegant a:hover { border-bottom-color: #000; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .intro-card { padding: 28px 20px; margin-top: -40px; }
    .links-grid { grid-template-columns: 1fr; }
    .quick-access-section { padding: 24px 20px; }
    .quick-links { flex-direction: column; }
    .quick-link { width: 100%; justify-content: center; }
    .link-card { padding: 28px 20px; }
    .stop-info-grid { grid-template-columns: 1fr; }
    .hotline-banner-elegant { flex-direction: column; padding: 32px 24px; margin-top: -40px; text-align: center; }
    .hotline-badge { order: -1; width: 100px; height: 100px; font-size: 2.5rem; }
    .feature-grid-elegant, .steps-grid-elegant, .contact-grid-elegant { grid-template-columns: 1fr; }
    .section-header-elegant h2 { font-size: 1.5rem; }
    .phone-button { font-size: 1.1rem; padding: 16px 28px; }
}
@media (max-width: 600px) { .stop-info-grid { grid-template-columns: 1fr; } }

/* ========================================= */
/* VERBINDUNGSSUCHE                          */
/* ========================================= */

.connection-wrapper {
    display: flex;
    gap: 0;
    min-height: 70vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Linke Seite: Suchformular */
.search-panel {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
}

/* Tabs */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.panel-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.panel-tab:hover { background: #f8f8f8; }
.panel-tab.active { color: #000; border-bottom-color: #000; }
.panel-tab i { font-size: 1rem; }

/* Formular */
.search-form {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.route-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.route-field:last-of-type { border-bottom: none; }

.route-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.route-marker.start { background: #4CAF50; }
.route-marker.end { background: #E53935; }

.route-input {
    flex: 1;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.route-input::placeholder { color: #999; }

.route-actions { display: flex; gap: 8px; }

.route-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.route-action-btn:hover { background: #e0e0e0; color: #000; }

/* Swap Button */
.swap-routes-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    z-index: 5;
}

.swap-routes-btn:hover { background: #f5f5f5; }

/* Zeit-Auswahl */
.time-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.time-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.time-dropdown i { font-size: 0.8rem; color: #666; }

.time-options-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-left: auto;
}

/* Such-Button */
.conn-search-btn {
    background: var(--bvg-yellow);
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 15px;
    transition: all 0.2s;
}

.conn-search-btn:hover { background: #e6ce20; }

/* Tabs unten */
.result-tabs {
    display: flex;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
}

.result-tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
    border-top: 3px solid transparent;
    transition: all 0.2s;
}

.result-tab.active { color: #000; border-top-color: #000; }

/* Ergebnisliste */
.results-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
}

.result-item:hover { background: #f8f8f8; }

.result-icon {
    width: 32px;
    height: 32px;
    background: #9040A5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.result-icon.tram { background: #E3000B; }

.result-info { flex: 1; }

.result-name { font-weight: 600; font-size: 0.95rem; color: #000; }

.result-lines { display: flex; gap: 4px; margin-top: 4px; }

.result-line-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.result-favorite { color: #ccc; font-size: 1.1rem; cursor: pointer; }
.result-favorite:hover { color: #ffc107; }
.result-favorite.active { color: #ffc107; }

/* Rechte Seite: Karte */
.map-panel {
    flex: 1;
    position: relative;
    min-height: 500px;
}

#connection-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Karten-Controls */
.map-search-box {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.map-search-input {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-options-btn {
    padding: 10px 16px;
    background: var(--bvg-yellow);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-zoom-controls {
    position: absolute;
    bottom: 30px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-zoom-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-zoom-btn:hover { background: #f5f5f5; }

/* Panel Toggle (Mobile) */
.panel-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 60px;
    background: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

/* Autocomplete Dropdown */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 40px;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.autocomplete-list.visible { display: block; }

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover { background: #f8f8f8; }
.autocomplete-item:last-child { border-bottom: none; }

/* Haltestellen-Marker auf Karte */
.stop-marker-icon {
    background: #ff7f00;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Layer Switcher Dropdown */
.layer-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    min-width: 160px;
    display: none;
    z-index: 1002;
    overflow: hidden;
}

.layer-dropdown.visible {
    display: block;
}

.layer-dropdown-title {
    padding: 12px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px;
}

.layer-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: background 0.15s;
}

.layer-option:hover {
    background: #f5f5f5;
}

.layer-option.active {
    background: #fff8e6;
    color: #e6a200;
    font-weight: 600;
}

.layer-option i {
    width: 20px;
    text-align: center;
    color: #666;
}

.layer-option.active i {
    color: #e6a200;
}

/* Map Options Button - relative positioning for dropdown */
.map-options-btn {
    position: relative;
}

/* Stop Panel (BVG-Style) */
.stop-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1100;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stop-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.stop-panel-icon {
    width: 36px;
    height: 36px;
    background: #f90;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stop-panel-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.stop-panel-actions {
    display: flex;
    gap: 8px;
}

.stop-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    transition: all 0.15s;
}

.stop-panel-close:hover {
    background: #e0e0e0;
    color: #333;
}

.stop-panel-lines {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

.stop-panel-mode-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.stop-panel-mode-icon.tram {
    background: #c4122f;
}

.stop-panel-mode-icon.bus {
    background: #8b2d87;
}

.stop-panel-line {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.stop-panel-line.tram {
    background: #c4122f;
}

.stop-panel-line.bus {
    background: #8b2d87;
}

.stop-panel-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #eee;
}

.stop-panel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px;
    border: none;
    background: white;
    cursor: pointer;
    transition: background 0.15s;
}

.stop-panel-btn:hover {
    background: #f8f8f8;
}

.stop-panel-btn:active {
    background: #f0f0f0;
}

.stop-panel-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid currentColor;
}

.stop-panel-btn-icon.start {
    color: #4CAF50;
    border-color: #4CAF50;
}

.stop-panel-btn-icon.end {
    color: #E53935;
    border-color: #E53935;
}

.stop-panel-btn-icon.departures {
    color: #666;
    border-color: #666;
}

.stop-panel-btn span:last-child {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

/* Featured Link Card */
.link-card.featured {
    background: linear-gradient(135deg, #f7c600 0%, #e6a200 100%);
    color: #000;
    grid-column: 1 / -1;
}

.link-card.featured .link-card-icon {
    background: rgba(0,0,0,0.15);
    color: #000;
}

.link-card.featured h2 {
    color: #000;
}

.link-card.featured p {
    color: rgba(0,0,0,0.7);
}

.link-card.featured .card-arrow {
    background: rgba(0,0,0,0.15);
    color: #000;
}

.link-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(247,198,0,0.4);
}

.link-card.featured:hover .card-arrow {
    background: rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
    .link-card.featured {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 5px 20px;
        align-items: center;
        padding: 25px 30px;
    }
    
    .link-card.featured .link-card-icon {
        grid-row: 1 / 3;
    }
    
    .link-card.featured h2 {
        margin: 0;
        align-self: end;
    }
    
    .link-card.featured p {
        margin: 0;
        align-self: start;
    }
    
    .link-card.featured .card-arrow {
        grid-row: 1 / 3;
        position: static;
    }
}

/* Map Autocomplete */
.map-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.map-autocomplete-list.visible {
    display: block;
}

.map-autocomplete-list li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.map-autocomplete-list li:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.map-autocomplete-list li:hover {
    background: #fff8e6;
}

/* Map Search Box - position relative for autocomplete */
.map-search-box {
    position: absolute;
    top: 15px;
    right: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

/* Verbindungssuche Mobile */
@media (max-width: 900px) {
    .connection-wrapper {
        flex-direction: column;
    }

    .search-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .map-panel {
        min-height: 400px;
    }

    .results-list {
        max-height: 200px;
    }
    
    .map-search-box {
        top: 10px;
        right: 10px;
        left: 10px;
        flex-direction: column;
    }
    
    .map-search-input {
        width: 100%;
    }
}

/* Swap Button Container */
.swap-btn-container {
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
    margin: -5px 0;
}

/* Result Placeholder */
.result-placeholder {
    color: #888;
    justify-content: center;
    font-size: 0.9rem;
}

/* Autocomplete als UL */
.autocomplete-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.autocomplete-list li.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-list li.autocomplete-item:hover {
    background: #f8f8f8;
}

/* Collapsed Search Panel (Mobile) */
.search-panel.collapsed {
    display: none;
}

@media (max-width: 900px) {
    .search-panel.collapsed + .map-panel .panel-toggle {
        left: 0;
    }
}