/**
 * © 2026 my-webconcept.de – MF Online-Solutions Marko Feller. Alle Rechte vorbehalten.
 */
:root{--surface:#fff;--soft:#fff0e3}
.status.user-status{background:#fee2e2;color:#991b1b;border:1px solid #f1a5a5;font-weight:700}
.status.user-status--active{background:#dcfce7;color:#166534;border-color:#86d6a0}
.status.user-status--pending{background:#fef3c7;color:#854d0e;border-color:#e4c35d}
html[data-theme="dark"]{--ink:#edf2f7;--muted:#b0bfcd;--line:#445365;--orange:#d9560b;--surface:#18232f;--soft:#2b3644;background:#0c131d;color:var(--ink);color-scheme:dark}
html[data-theme="dark"] body{background:#0c131d;color:var(--ink)}
html[data-theme="dark"] :is(.shell,.legal-document,body>main,.app-menu){background:var(--surface);color:var(--ink)}
html[data-theme="dark"] :is(input,select,textarea){background:#111b27;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9daebf;opacity:1}
html[data-theme="dark"] :is(.secondary,.file,.icon,.distances button,.switch button,.race-save,.race-date,.invitation-icon,.detail-fact,.status,.chips span,pre,code){background:#263444;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] :is(.panel,.plan,.event,details,fieldset,.competition-card,.race-invitation){border-color:var(--line)}
html[data-theme="dark"] :is(.hero,.detail-hero,.features-hero,.countdown,.pace-result,.review-panel){background:linear-gradient(125deg,#3a291f,#18232f);border-color:#a86336;color:var(--ink)}
html[data-theme="dark"] .race-card{background:linear-gradient(120deg,#33261f,#18232f 65%);border-color:#596a7b;border-left-color:#ff9a57}
html[data-theme="dark"] :is(.race-date small,.race-card-info p,.hero p,.features-hero p,.detail-fact dt,.section-heading>span,.competition-date,.distance-unknown,.programme-note,.detail-empty,.about-event p,.invitation-heading p,.detail-note,.competition-topline){color:var(--muted)}
html[data-theme="dark"] :is(.race-category,.race-card-link,.competition-distance,.countdown-number,.sport-label,.features a,.event-source>svg,.detail-fact svg,.detail-back,.orange){color:#ffad76}
html[data-theme="dark"] :is(.competition-card,.race-invitation,.detail-facts,.admin-event-row:nth-of-type(even),#admin-event-form){background:#202d3b}
html[data-theme="dark"] :is(.race-card-info .chips span,.segment-list span,.avatar-placeholder){background:#324354;color:#f1f5f9;border-color:#68798a}
html[data-theme="dark"] :is(.race-card-info .chips .chosen,.chips .chosen,.saved-label,.sport-badge){background:#573a26;color:#ffd5b5;border-color:#aa734a}
html[data-theme="dark"] :is(.map-feedback,.token-secret,.conflict-panel,.features-grid .panel:nth-child(4)){background:#3d3022;color:#f5e4cd;border-color:#a47642}
html[data-theme="dark"] .bottom{background:#16212fee;border-color:var(--line)}
html[data-theme="dark"] :is(.bottom button,footer,footer a,.legal-links a,.legal-document a,.event-source){color:var(--muted)}
html[data-theme="dark"] .bottom .current{color:#fff}
html[data-theme="dark"] .alert{background:#203d59;color:#e3f1ff}
html[data-theme="dark"] :is(.alert.error,.error){background:#47282d;color:#ffb9b9}
html[data-theme="dark"] .danger{color:#ffb0aa}
html[data-theme="dark"] :is(.registered,.finished){background:#214934;color:#c1f5ce}
html[data-theme="dark"] :is(.lottery_pending,.place_received){background:#4c3825;color:#ffe0b1}
html[data-theme="dark"] .planned{background:#253d5b;color:#d2e7ff}
html[data-theme="dark"] :is(.cancelled,.not_selected){background:#4b2b32;color:#ffd3d8}
html[data-theme="dark"] :is(.primary,.active,.detail-primary){background:#b74708!important;border-color:#ed995b!important;color:#fff!important}
html[data-theme="dark"] .password-toggle{color:#c8d5e0}
html[data-theme="dark"] .password-toggle:hover{background:#344454}
html[data-theme="dark"] .event-source{border-color:var(--line)}
html[data-theme="dark"] .leaflet-popup-content-wrapper,html[data-theme="dark"] .leaflet-popup-tip{background:#18232f;color:#edf2f7}
html[data-theme="dark"] .leaflet-popup a{color:#ffad76}
html[data-theme="dark"] .install-app{background:#243447;color:#edf2f7}
html[data-theme="dark"] :focus-visible{outline-color:#ffad76}
html[data-theme="dark"] :is(.import-center,.import-progress){background:#202d3b}
html[data-theme="dark"] :is(.comparison-scroll thead,.review-disclaimer){background:#304256}
html[data-theme="dark"] .comparison-scroll .different{background:#503820}
html[data-theme="dark"] body>main a{color:#ffad76}
html[data-theme="dark"] :is(.hero-location,.detail-eyebrow){color:#e7c0a4}
html[data-theme="dark"] .sport-label{background:#4c3325;color:#ffd2af}
html[data-theme="dark"] .track-lines{border-color:#8e5936;box-shadow:0 0 0 17px #30261f,0 0 0 19px #795034,0 0 0 36px #30261f,0 0 0 38px #67462f}
html[data-theme="dark"] .event-detail .detail-hero{background:linear-gradient(125deg,#30251f,#18232f 75%);border-color:#73513a}
html[data-theme="dark"] .event-detail .hero-location{color:#d5c6bc}
html[data-theme="dark"] .event-detail .detail-eyebrow{color:#ffc497}
html[data-theme="dark"] .event-detail .sport-label{background:#493326;color:#ffd2af}
html[data-theme="dark"] .event-detail .track-lines{border-color:#806047;box-shadow:0 0 0 17px #28282a,0 0 0 19px #66513f,0 0 0 36px #22272d,0 0 0 38px #584b3e;opacity:.7}
html[data-theme="dark"] .event-detail .fact-icon{background:#354353;color:#ffbd8b}
html[data-theme="dark"] .event-detail .competition-topline svg{color:#ffbd8b}
html[data-theme="dark"] .event-detail .detail-facts{background:transparent}
html[data-theme="dark"] .event-detail .event-source strong{color:var(--ink)}
html[data-theme="dark"] .status.user-status{background:#53272e;color:#ffc1c1;border-color:#b9636c}
html[data-theme="dark"] .status.user-status--active{background:#1c4832;color:#b8f5ce;border-color:#4e9e70}
html[data-theme="dark"] .status.user-status--pending{background:#4d3e17;color:#ffe69a;border-color:#ae913e}
/* Keep the apply action visible in both themes, above generic secondary-button rules. */
html .discovery-filters .advanced-content button.apply-filters.secondary{
 border:2px solid #ff6500;
 box-shadow:0 0 0 1px #ff650026;
 font-weight:700;
}
html .discovery-filters .advanced-content button.apply-filters.secondary:hover{
 border-color:#ff8b38;
 box-shadow:0 0 0 3px #ff650033;
}
html .discovery-filters .advanced-content button.apply-filters.secondary:focus-visible{
 outline:3px solid #ff8b38;
 outline-offset:3px;
}
