/* MODULE: app – Mobile-first PWA Styles für app.html
══════════════════════════════════════════════════════════════ */

/* ── Layout ────────────────────────────────────────────────── */
.app-body {
  background: var(--bg-2);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* ── App-Header ────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.app-back {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-header-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 400;
}

/* ── Scroll-Bereich ────────────────────────────────────────── */
.app-main {
  padding-top: calc(56px + env(safe-area-inset-top, 0px) + 8px);
}

.app-rides-list {
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto;
}

/* ── Ride-Karte ────────────────────────────────────────────── */
.app-ride-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
}

.arc-bar {
  width: 5px;
  flex-shrink: 0;
}

.arc-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.arc-info-block { flex: 1; min-width: 0; }

.arc-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.arc-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Rideout-Typ-Chip (Rennrad / Epic / Einsteiger / Gravel) */
.arc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  white-space: nowrap;
}

.arc-route {
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.arc-route svg { flex: 0 0 auto; margin-top: 2px; opacity: 0.7; }

.arc-notes {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--bg-2, #F7F7F9);
  border-left: 3px solid var(--accent, #FF6B00);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre-line;
}

.arc-detail-sep { color: var(--text-faint, #ABABBA); margin: 0 4px; }

.arc-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  line-height: 1;
  margin: 3px 0 2px;
}

.arc-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.arc-badge-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.arc-km {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
  line-height: 1;
}
.arc-km small { font-size: 14px; color: var(--text-muted); }

.arc-diff {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.arc-details {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ── Links (Komoot / Strava / GPX) ─────────────────────────── */
.arc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.arc-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
}
.arc-link-komoot { border-color: rgba(0,122,76,0.35); color: #007a4c; }
.arc-link-strava  { border-color: rgba(252,76,2,0.35); color: #fc4c02; }
.arc-link-gpx     { background: var(--accent); border-color: var(--accent); color: #fff; }
.arc-link-gpx:hover { background: #FF8C3A; border-color: #FF8C3A; color: #fff; }

/* ── GPX Höhenprofil ───────────────────────────────────────── */
.arc-gpx {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.arc-gpx-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.arc-gpx-canvas {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 8px;
  background: var(--bg-2);
  margin-bottom: 8px;
}
.arc-gpx-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.arc-gpx-stats span { white-space: nowrap; }

