/* Treffpunkt Gardasee: GardaCast im Template-Look, erzeugt aus plugins/gardacast/assets/gardacast-verkehr-dach.css */
/* GardaCast — DACH-Entscheider (v5.2.51 CSS-Hardening) */

/* Hard-Reset für alle Elemente innerhalb der Komponente */
.gc-dach,
.gc-dach *,
.gc-dach *::before,
.gc-dach *::after {
    box-sizing: border-box;
}

.gc-dach {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5em 0 !important;
    padding: 1.5em !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: visible;
    position: relative;
    float: none !important;
    clear: both !important;
}

.gc-dach__header { margin: 0 0 1.2em; }
.gc-dach__title { font-size: 1.4rem; line-height: 1.3; margin: 0 0 0.3em; color: #14708f; font-weight: 700; }
.gc-dach__subtitle { font-size: 0.95rem; line-height: 1.5; color: #5F5E5A; margin: 0; }

/* Tabs als Grid statt Flex — keine Theme-Button-Kollision */
.gc-dach__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
    margin: 0 0 1em;
    width: 100%;
}
@media (max-width: 480px) {
    .gc-dach__tabs { grid-template-columns: 1fr; }
}

.gc-dach__tab {
    /* Button-Reset gegen Theme-Defaults */
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.6em 1em;
    border: 1px solid #d4d4d4;
    background: #f5f5f5;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
    text-align: center;
    transition: all 0.2s;
}
.gc-dach__tab:hover { background: #ebebeb; }
.gc-dach__tab.is-active { background: #14708f; color: #fff; border-color: #14708f; }

.gc-dach__regions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7em;
    margin: 0 0 1em;
    width: 100%;
}
.gc-dach__loading { padding: 1em; color: #888; font-style: italic; grid-column: 1 / -1; }

.gc-dach__region-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0.85em 1em;
    border: 1px solid #d4d4d4;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s;
}
.gc-dach__region-btn:hover { border-color: #14708f; background: #f0f6fc; }
.gc-dach__region-btn.is-selected { border-color: #14708f; background: #e8f0fa; box-shadow: 0 2px 6px rgba(20, 112, 143,0.15); }

.gc-dach__region-name { font-weight: 600; color: #2a2a2a; line-height: 1.3; }
.gc-dach__region-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    padding: 2px 7px;
    border-radius: 99px;
    font-weight: 600;
    align-self: flex-start;
    line-height: 1.4;
}
.gc-dach__region-status--gut { background: rgba(62, 142, 94,0.15); color: #2f6b47; }
.gc-dach__region-status--mittel { background: rgba(212, 160, 23,0.15); color: #a0661c; }
.gc-dach__region-status--schwer { background: rgba(201, 119, 42,0.18); color: #c2410c; }
.gc-dach__region-status--extrem { background: rgba(163, 47, 47,0.18); color: #7a2020; }

.gc-dach__detail {
    background: #fbfaf4;
    border: 1px solid #e6e0d2;
    border-radius: 12px;
    padding: 1.3em;
    margin: 1em 0 0;
    width: 100%;
}
.gc-dach__detail h3 { margin: 0 0 0.6em; color: #14708f; font-size: 1.15rem; line-height: 1.3; }
.gc-dach__detail p { margin: 0.5em 0; line-height: 1.5; }
.gc-dach__detail-tipp {
    background: #fff8e6;
    border-left: 3px solid #d4a017;
    padding: 0.7em 1em;
    margin: 0.8em 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gc-dach__detail-routes {
    display: grid;
    gap: 0.7em;
    margin: 0.7em 0;
    width: 100%;
}
@media (min-width: 540px) {
    .gc-dach__detail-routes { grid-template-columns: 1fr 1fr; }
}
.gc-dach__route-card {
    background: #fff;
    border: 1px solid #e6e0d2;
    border-radius: 10px;
    padding: 0.9em 1em;
}
.gc-dach__route-card--primary { border-color: #14708f; }
.gc-dach__route-label { font-size: 0.78rem; text-transform: uppercase; color: #65696a; font-weight: 700; letter-spacing: 0.5px; }
.gc-dach__route-name { font-size: 1.05rem; font-weight: 600; margin: 4px 0; line-height: 1.3; }
.gc-dach__route-score { font-size: 1.4rem; font-weight: 700; color: #14708f; line-height: 1.2; }
.gc-dach__route-meta { font-size: 0.85rem; color: #5F5E5A; margin-top: 4px; line-height: 1.4; }

.gc-dach__detail-eta {
    background: #14708f;
    color: #fff;
    padding: 0.8em 1em;
    border-radius: 10px;
    margin-top: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.gc-dach__detail-eta-label { font-size: 0.85rem; opacity: 0.9; }
.gc-dach__detail-eta-time { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

.gc-dach__footer {
    margin: 1em 0 0;
    padding: 0.8em 0 0;
    border-top: 1px solid #ececec;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
}

/* v5.2.54: Wetter-Pille + Premium-Teaser */
.gc-dach__detail-wetter {
    margin: 0.6em 0;
    padding: 0.6em 0.9em;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #d9d3c4;
    background: #fbfaf4;
}
.gc-dach__detail-wetter--gut    { border-left-color: #3e8e5e; background: rgba(62, 142, 94,0.08); }
.gc-dach__detail-wetter--mittel { border-left-color: #d4a017; background: rgba(212, 160, 23,0.08); }
.gc-dach__detail-wetter--schwer { border-left-color: #c9772a; background: rgba(201, 119, 42,0.08); }
.gc-dach__detail-wetter--extrem { border-left-color: #a32f2f; background: rgba(163, 47, 47,0.10); color: #7f1d1d; font-weight: 600; }
.gc-dach__wetter-icon { font-size: 1.2rem; line-height: 1; }

.gc-dach__premium-teaser {
    margin: 1.2em 0 0;
    padding: 1em 1.2em;
    background: linear-gradient(135deg, rgba(20, 112, 143,0.04) 0%, rgba(168, 50, 74,0.04) 100%);
    border: 1px solid rgba(20, 112, 143,0.2);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}
.gc-dach__premium-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #14708f 0%, #a8324a 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 99px;
}
.gc-dach__premium-pill::before { content: '✨ '; margin-right: 2px; }
.gc-dach__premium-text { display: flex; flex-direction: column; gap: 4px; }
.gc-dach__premium-heading { color: #14708f; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.gc-dach__premium-desc { font-size: 0.88rem; color: #4a5660; line-height: 1.5; }

@media (max-width: 480px) {
    .gc-dach__premium-teaser { flex-direction: column; }
}
