/* MODULE: rideouts – Wöchentliche Ride-Out Sektion (index.html)
══════════════════════════════════════════════════════════════ */
.rideouts {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
.rideouts::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.rideouts-intro {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Featured card ─────────────────────────────────────────── */
.rof-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.rof-visual { position: relative; min-height: 320px; }

.rof-visual-bg {
  width: 100%;
  height: 100%;
  background-color: var(--tag-color, #FF6B00);
  background-image: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.45) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rof-distance {
  font-family: var(--font-display);
  font-size: 88px;
  color: rgba(255,255,255,0.95);
  line-height: 1;
}
.rof-distance small { font-size: 36px; opacity: 0.75; }

.rof-elevation {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.rof-content {
  padding: 48px 48px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rof-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
  line-height: 1;
  margin: 8px 0 6px;
}

.rof-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.rof-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.rof-difficulty {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Upcoming grid (1–3 cards) ─────────────────────────────── */
.rideouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.roc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.roc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.roc-header {
  padding: 18px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1.5px solid;
  background: transparent;
}

.roc-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.roc-body { padding: 0 20px 20px; }

.roc-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 4px;
}

.roc-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── Featured card date ────────────────────────────────────── */
.rof-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Links (Komoot / Strava / GPX) ─────────────────────────── */
.rof-links, .roc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

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

/* ── Höhenprofil ───────────────────────────────────────────── */
.rof-chart {
  margin-top: 20px;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
}
.rof-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.rof-chart-canvas {
  width: 100%;
  height: 110px;
  display: block;
  border-radius: 6px;
}
.rof-chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.rof-chart-stats strong { color: var(--text); font-weight: 600; }

/* ── CTA ───────────────────────────────────────────────────── */
.rideouts-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Kein Abstand wenn Grid leer (noch nicht geladen) */
.rideouts-grid:empty {
  margin-bottom: 0;
}
