/* ============================================
   SHORTCODE 1: Statische Übersicht
   ============================================ */
.brotauto-uebersicht {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.brotauto-uebersicht h2 {
    font-family: Georgia, serif;
    color: #7E0723;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3 !important; /* Override Elementor global style */
}

.brotauto-uebersicht .intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.route-section {
    background: white;
    border-left: 4px solid #7E0723;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.route-section h3 {
    font-family: Georgia, serif;
    color: #7E0723;
    font-size: 1.6rem;
    margin-bottom: 25px;
    line-height: 1.4 !important; /* Override Elementor global style */
}

.stop-list {
    display: grid;
    gap: 15px;
}

.stop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f5f0;
    border-radius: 5px;
    transition: all 0.3s;
}

.stop-item:hover {
    background: #ffe8e8;
    transform: translateX(5px);
}

.stop-location {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.stop-time {
    color: #7E0723;
    font-weight: 600;
    white-space: nowrap;
}

.route-divider {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, #7E0723 0%, #5a0518 100%);
    color: white;
}

.route-divider p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.route-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.route-column {
    background: white;
    padding: 25px;
    border-top: 3px solid #7E0723;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.route-column h4 {
    font-family: Georgia, serif;
    color: #7E0723;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.4 !important; /* Override Elementor global style */
}

.location-list {
    list-style: none;
    padding: 0;
}

.location-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 1.05rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-list li::before {
    content: '•';
    color: #7E0723;
    font-weight: bold;
    position: absolute;
    left: 5px;
    font-size: 1.3rem;
}

.route-hint {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.route-hint strong {
    color: #7E0723;
}

/* ============================================
   SHORTCODE 2: Dynamische nächste Haltestellen
   ============================================ */
.brotauto-naechste {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 30px;
    background: linear-gradient(135deg, #7E0723 0%, #5a0518 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(126,7,35,0.3);
}

.brotauto-naechste h3 {
    font-family: Georgia, serif;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.3 !important; /* Override Elementor global style */
}

.brotauto-naechste.keine-tour {
    background: #6c757d;
}

.status-message {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.aktueller-stop {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stop-badge {
    background: #28a745;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.stop-badge.jetzt {
    background: #28a745;
}

.stop-badge.nachmittag {
    background: #ff6b35;
}

.stop-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.stop-info strong {
    font-size: 1.2rem;
    color: white;
}

.stop-info .time {
    font-size: 0.95rem;
    opacity: 0.9;
}

.kommende-stops {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stop-item-next {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.stop-item-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.stop-item-next .stop-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffc107;
}

.stop-item-next .stop-location {
    font-size: 1.05rem;
}

.tag-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.tag-info small {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Nachmittags-Info */
.nachmittags-info {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

.nachmittags-text {
    color: white;
    font-size: 1.05rem;
    margin: 15px 0;
    opacity: 0.95;
}

.nachmittags-orte {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ort-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   SHORTCODE 3: Komplette Animation mit Route
   ============================================ */
.tour-container {
    position: relative;
    min-height: 3400px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0 0 0;
}

/* Gerade Straße in der Mitte */
.road {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3200px;
    background: #4A4A4A;
    top: 0;
    display: flex;
    justify-content: center;
}

/* Mittellinie */
.road::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        white 0px,
        white 30px,
        transparent 30px,
        transparent 60px
    );
}

/* Lieferwagen - Sticky in der Mitte der Straße */
.truck-container {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 120px;
    height: 260px;
    z-index: 80;
    pointer-events: none;
    overflow: visible;
    /* Zentriert sich automatisch durch flex parent */
}

/* Blinkende Lichter */
@keyframes blinkLights {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink-light {
    animation: blinkLights 2s ease-in-out infinite;
}

/* Info Cards */
.stop-card {
    position: absolute;
    background: #FFFFFF;
    border-top: 4px solid #7E0723;
    padding: 25px;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stop-card.left {
    right: 55%;
}

.stop-card.right {
    left: 55%;
}

/* Positionen der Karten */
.card-1 { top: 100px; }
.card-2 { top: 400px; }
.card-3 { top: 700px; }
.card-4 { top: 1000px; }
.card-5 { top: 1300px; }
.card-6 { top: 1600px; }
.card-7 { top: 1900px; }
.card-8 { top: 2300px; }
.card-9 { top: 2600px; }

.stop-card h3 {
    color: #7E0723;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4 !important; /* Override Elementor global style */
}

.time-badge {
    background: #7E0723;
    color: #FFFFFF;
    padding: 5px 15px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.stop-card .location-list {
    list-style: none;
    padding: 0;
    color: #333333;
    line-height: 1.8;
}

.stop-card .location-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.stop-card .location-list li::before {
    content: '•';
    color: #7E0723;
    position: absolute;
    left: 5px;
    font-weight: bold;
}

/* Straßenschild über der Straße */
.street-sign {
    position: absolute;
    width: 100%;
    top: 2100px;
    z-index: 95;
    pointer-events: none;
}

.sign-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Pfosten links und rechts */
.sign-pole {
    position: absolute;
    width: 8px;
    height: 150px;
    background: #808080;
    top: 0;
}

.sign-pole.left {
    left: 10%;
}

.sign-pole.right {
    right: 10%;
}

/* Das Schild selbst */
.sign-board {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    background: white;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sign-board p {
    margin: 0;
    color: #7E0723;
    font-size: 1.2rem;
    font-weight: 600;
}

/* CTA Box */
.cta-box {
    position: absolute;
    background: white;
    border: 3px solid #7E0723;
    text-align: center;
    padding: 50px 40px;
    top: 3200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.cta-box h3 {
    color: #7E0723;
    font-size: 2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-btn {
    background: #7E0723;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn:hover {
    background: #5a0518;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126,7,35,0.3);
}

.contact-info {
    border-top: 2px solid #7E0723;
    padding-top: 25px;
    margin-top: 30px;
}

.contact-info p {
    color: #333;
    font-size: 1.1rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #7E0723;
}

.cta-btn .contact-icon {
    fill: white;
}

.contact-info a {
    color: #7E0723;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #5a0518;
    text-decoration: underline;
}

.cta-hint {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .brotauto-uebersicht h2 {
        font-size: 1.8rem;
    }

    .route-section {
        padding: 20px;
    }

    .stop-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stop-time {
        font-size: 0.9rem;
    }

    .route-columns {
        grid-template-columns: 1fr;
    }

    .brotauto-naechste {
        padding: 20px;
    }

    .aktueller-stop {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Animation - Mobile */
    .tour-container {
        min-height: 3200px !important;
        padding: 50px 0 0 0 !important;
    }

    .road {
        width: 50px !important;
        /* Straße endet in der CTA-Box */
        height: 2950px !important;
        position: absolute !important;
        left: auto !important;
        right: 20px !important;
        transform: none !important;
    }

    .road::after {
        width: 2px !important;
    }

    .truck-container {
        width: 80px !important;
        height: 200px !important;
        /* Automatisch zentriert durch flex parent - keine Position nötig */
    }

    .truck-container svg {
        width: 80px !important;
        height: 200px !important;
    }

    .stop-card,
    .stop-card.left,
    .stop-card.right {
        width: calc(100% - 120px) !important;
        max-width: 500px !important;
        padding: 20px !important;
        left: 15px !important;
        right: auto !important;
    }

    .card-1 { top: 100px !important; }
    .card-2 { top: 350px !important; }
    .card-3 { top: 600px !important; }
    .card-4 { top: 850px !important; }
    .card-5 { top: 1100px !important; }
    .card-6 { top: 1350px !important; }
    .card-7 { top: 1600px !important; }
    /* Mehr Abstand für die größeren Karten */
    .card-8 { top: 2000px !important; }
    .card-9 { top: 2450px !important; }

    .street-sign {
        top: 1850px !important;
    }

    .sign-pole.left {
        display: none !important;
    }

    .sign-pole.right {
        right: 40px !important;
    }

    .sign-board {
        left: 15px !important;
        right: 80px !important;
        padding: 12px 20px !important;
    }

    .sign-board p {
        font-size: 1rem !important;
    }

    /* CTA Box - Full Width, Straße endet darin */
    .cta-box {
        top: 2850px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 50px 20px !important;
        border-left: none !important;
        border-right: none !important;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }
}
