/* Höhenlinien – gemeinsame Stile */
:root { --rc: #E0662E; }
* { box-sizing: border-box; }
body { margin: 0; background: #FAFAF7; color: #1C1C1A; font-family: Inter, system-ui, sans-serif; }
a { color: #1C1C1A; text-decoration: none; }
a:hover { color: #B8400D; }
img { max-width: 100%; }

/* Kopfzeile */
.site-header { background: #FAFAF7; border-bottom: 1px solid #ECEAE3; }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo b { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.logo span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #6B6A64; }
.nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; }
.site-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: #1C1C1A; font-weight: 600; }
.site-nav a.diary-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #C2410C; color: #FFFFFF; font-weight: 600; border-bottom: none; }
.site-nav a.diary-live::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #FFFFFF; }
.tracking { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 14px; border: 1px solid #DDDBD3; color: #77756D; }
.tracking::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: #CFCDC4; }
.tracking.live { border-color: #C2410C; color: #B8400D; font-weight: 600; }
.tracking.live::before { background: #C2410C; }

/* Rennmodus-Schalter: Elemente werden per Skript ein- oder ausgeblendet */
[data-race="on"] { display: none; }
html.race [data-race="on"] { display: block; }
html.race [data-race="off"] { display: none; }

/* Karten-Baustein */
.karte .map { height: 520px; border: 1px solid #DDDBD3; border-radius: 6px; }
.karte .map.tall { height: 760px; }
.karte .leaflet-tile-pane { filter: saturate(.45) brightness(1.15) contrast(.82); }
.karte .info { min-height: 20px; margin: 12px 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #45443F; }
.karte .prof { border: 1px solid #DDDBD3; border-radius: 6px; background: #FFFFFF; padding: 12px 12px 6px; }
.karte .prof svg { display: block; width: 100%; cursor: crosshair; touch-action: none; }
.karte .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #45443F; }
.karte .legend span { display: flex; align-items: center; gap: 6px; }
.karte .legend i { width: 14px; height: 10px; display: inline-block; border: 1px solid #DDDBD3; }
.karte .note { margin: 10px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #8A887F; }
.hl-pin { width: 24px; height: 24px; border-radius: 12px; background: #FFFFFF; color: var(--rc); border: 2px solid var(--rc); font: 600 13px Inter, sans-serif; display: flex; align-items: center; justify-content: center; }
.cur-pin { width: 16px; height: 16px; border-radius: 8px; background: var(--rc); border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }

@media (max-width: 640px) {
  .site-header .inner { padding: 18px 20px; }
  .karte .map { height: 420px; }
  .karte .map.tall { height: 560px; }
}
