/* ==========================================================================
   Rallyestage Plugin – Minimales CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Zeitplan
   -------------------------------------------------------------------------- */

.rallyestage-zeitplan-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 1.5em 0;
    align-items: flex-start;
}

.rallyestage-zeitplan-day {
    flex: 1 1 220px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rallyestage-day-header {
    background: #222222;
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.rallyestage-day-entries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rallyestage-entry {
    padding: 8px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9em;
}

.rallyestage-entry:last-child {
    border-bottom: none;
}

.rallyestage-entry:nth-child(even) {
    background: #f7f7f7;
}

.rallyestage-time {
    display: block;
    font-size: 0.78em;
    color: #888;
    margin-bottom: 2px;
    white-space: nowrap;
}

.rallyestage-title {
    display: block;
}

.rallyestage-entry--wp .rallyestage-title a {
    font-weight: 600;
    color: #c0392b;
    text-decoration: none;
}

.rallyestage-entry--wp .rallyestage-title a:hover {
    text-decoration: underline;
}

/* Mobile: jeder Tag volle Breite */
@media (max-width: 600px) {
    .rallyestage-zeitplan-day {
        flex: 1 1 100%;
    }
}

/* --------------------------------------------------------------------------
   WP-Detailseite
   -------------------------------------------------------------------------- */

.rallyestage-wp-detail {
    margin: 1.5em 0;
}

.rallyestage-wp-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 0.75em;
}

.rallyestage-map {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Legende */
.rallyestage-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.6em;
    font-size: 0.82em;
}

.rallyestage-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rallyestage-legend-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

/* Fallback-Punkt wenn kein SVG-Icon vorhanden */
.rallyestage-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #aaa;
    border: 2px solid #555;
    flex-shrink: 0;
}

.rallyestage-legend-ss-start .rallyestage-legend-dot      { background: #2ecc40; border-color: #1a7f10; }
.rallyestage-legend-flying-finish .rallyestage-legend-dot { background: #ff4136; border-color: #7f1010; }
.rallyestage-legend-spectator .rallyestage-legend-dot     { background: #0074d9; border-color: #0b5394; }

/* --------------------------------------------------------------------------
   Virtuelle Detailseite
   -------------------------------------------------------------------------- */

.rallyestage-page-content {
    max-width: 900px;
    margin: 2em auto;
    padding: 0 1em;
}

.rallyestage-page-title {
    margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   Fehlermeldungen
   -------------------------------------------------------------------------- */

.rallyestage-error {
    color: #c0392b;
    font-style: italic;
}