/* Gemeinsame Styles für available_bikes.html und die Bike-Galerien */
:root {
  --orange: #E84A0C;
  --dark: #2a2a2a;
  --darker: #1a1a1a;
  --light: #f5f5f5;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--darker);
  color: var(--light);
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px 64px;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 72%, #cccccc 82%, #666666 91%, var(--darker) 100%);
}
header img { height: 60px; width: auto; }

.page { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

.back-link {
  display: inline-block;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--orange); }

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
h1 span { color: var(--orange); }

.lead { color: #999; margin: 16px 0 12px; max-width: 560px; line-height: 1.6; }

.divider { width: 60px; height: 3px; background: var(--orange); margin: 24px 0 40px; }

/* ── BIKE-ÜBERSICHT ── */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bike-card {
  display: block;
  background: var(--dark);
  text-decoration: none;
  color: inherit;
  border-top: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}
.bike-card:hover { border-color: var(--orange); transform: translateY(-4px); }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #333;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.bike-card:hover .thumb img { transform: scale(1.05); }

.bike-info { padding: 18px 20px 22px; }
.bike-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.bike-info p { font-size: 14px; color: #888; margin-top: 6px; }
.bike-info .price { color: var(--orange); font-weight: 600; margin-top: 10px; }

/* ── EINZELNE BIKE-GALERIE ── */
.bike-meta { color: #aaa; margin: 16px 0 0; line-height: 1.7; max-width: 640px; }
.bike-meta .price { color: var(--orange); font-weight: 600; font-size: 20px; margin-top: 8px; display: block; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #333;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery a:hover img { transform: scale(1.05); }

.cta {
  display: inline-block;
  margin-top: 40px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  transition: background 0.2s;
}
.cta:hover { background: #ff5a1a; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }

footer {
  text-align: center;
  padding: 32px 24px 48px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #555;
}
footer strong { color: var(--orange); }

/* ── LIGHTBOX-NAVIGATION ── */
.lightbox { cursor: zoom-out; }
.lightbox img { cursor: pointer; max-height: calc(100vh - 100px); object-fit: contain; }

.lb-btn {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--orange);
  color: var(--white);
  width: 52px;
  height: 52px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-btn:hover { background: var(--orange); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 16px; right: 16px; font-size: 22px; }

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ── BESCHREIBUNG UNTER DER GALERIE ── */
.description { max-width: 760px; margin-top: 56px; color: #bbb; line-height: 1.7; }
.description .intro { font-size: 18px; color: var(--white); }
.description h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 36px 0 12px;
}
.description h3 { font-size: 15px; font-weight: 600; color: var(--white); margin: 18px 0 6px; }
.description p { margin-top: 6px; }
.description ul { list-style: none; margin-top: 6px; }
.description li { position: relative; padding-left: 22px; margin-top: 4px; }
.description li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 7px; height: 7px; background: var(--orange); }
.description ul.checks li { padding-left: 30px; }
.description ul.checks li::before { content: '✅'; background: none; width: auto; height: auto; left: 0; top: 0; font-size: 14px; }
.description .disclaimer { margin-top: 40px; font-size: 13px; color: #777; }

/* ── TECHNISCHE DATEN (Tabelle) ── */
.description .specs { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.description .specs th, .description .specs td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid #333; }
.description .specs th { width: 38%; color: #888; font-weight: 500; }
.description .specs td { color: var(--light); }
.description .specs tr.group th {
  padding-top: 24px;
  border-bottom: 1px solid var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.description .warn { margin-top: 18px; padding: 14px 16px; background: var(--dark); border-left: 3px solid var(--orange); }
.description .warn::before { content: '⚠️ '; }
@media (max-width: 600px) { .description .specs th { width: 42%; } }
