/* ============================================
   Gebrauchte Fahrräder Berlin — Shared Styles
   ============================================ */

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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  background-color: #fff;
  color: #333;
}

/* ── HEADER / HERO ── */
#header {
  width: 100%;
  background-color: #eeeeee;
}

#hero {
  width: 100%;
  max-width: 940px;
  height: 420px;
  margin: 0 auto;
  background-image: url('../images/Banner.jpg');
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: translateX(100%);
  transition: transform 0.6s ease-in-out;
}
.hero-slide.active {
  transform: translateX(0);
}
.hero-slide.leaving {
  transform: translateX(-100%);
}

#hero-title {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #ccf990;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  z-index: 1;
}

#hero-logo {
  display: none;
}

/* ── NAVIGATION ── */
#nav-wrapper {
  display: flex;
  justify-content: center;
}

nav {
  background-color: #E2F9C5;
  width: 100%;
  max-width: 940px;
  border-bottom: 2px solid #333;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 9px 13px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #C8EFA8;
  color: #000000;
}

/* Dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #E2F9C5;
  min-width: 200px;
  z-index: 200;
  flex-direction: column;
  border: 1px solid #a8e09a;
}

nav ul li:hover > ul {
  display: flex;
  flex-direction: column;
}

nav ul li ul li a {
  padding: 8px 14px;
  font-size: 12px;
  border-top: 1px solid #C8EFA8;
  color: #1a1a1a;
}

/* Language switcher */
.lang-switcher a {
  color: #1a1a1a;
}

/* ── PAGE LAYOUT ── */
#page {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

/* Main content area */
#content {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}

/* Sidebar */
#sidebar {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #E2F9C5;
  padding: 16px 14px;
  border-right: 1px solid #C8EFA8;
  order: -1;
  box-sizing: border-box;
}

/* ── BREADCRUMB ── */
#breadcrumb {
  max-width: 940px;
  margin: 0 auto;
  padding: 6px 20px;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid #ddd;
  background: #fafafa;
}

/* ── COUNTDOWN ── */
#countdown-wrapper {
  background: #fff;
  border: 2px solid #E2F9C5;
  border-left: 5px solid #8BC96A;
  border-radius: 4px;
  padding: 18px 20px 14px;
  margin: 14px 0;
  text-align: center;
}

#countdown-label {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: #2a2a2a;
  margin-bottom: 14px;
}

#countdown-label span.cd-event {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #888;
  font-family: Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#countdown-clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cd-card {
  background: #E2F9C5;
  border-bottom: 3px solid #8BC96A;
  border-radius: 3px;
  width: 62px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-card span {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1;
}

.cd-card span.flip {
  transform: none;
  opacity: 1;
}

.cd-sep {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #bbb;
  margin-bottom: 24px;
  line-height: 1;
}

.cd-name {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#countdown-sub {
  margin-top: 6px;
  font-size: 14px;
  color: #555;
  letter-spacing: 0.02em;
}

#countdown-wrapper.finished #countdown-clock {
  display: none;
}

#countdown-wrapper.finished #countdown-label {
  font-size: 16px;
  color: #2a2a2a;
}

/* ── CONTENT ── */
h1.page-title {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #333;
  margin: 10px 0 6px;
}

h2.section-title {
  font-family: Georgia, serif;
  font-size: 16px;
  color: #333;
  margin: 18px 0 8px;
}

hr.divider {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 10px 0;
}

.announcement {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 10px 0 16px;
}

p {
  line-height: 1.7;
  margin-bottom: 10px;
  color: #333;
  font-size: 14px;
}

.price-highlight {
  color: #0325bc;
  font-weight: bold;
}

/* ── SIDEBAR ELEMENTS ── */
#sidebar h3 {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #1a1a1a;
  margin: 14px 0 6px;
  border-bottom: 1px solid #C8EFA8;
  padding-bottom: 4px;
}

#sidebar h3:first-child {
  margin-top: 0;
}

#sidebar p,
#sidebar address {
  font-size: 13px;
  line-height: 1.6;
  font-style: normal;
  color: #333;
}

#sidebar a {
  color: #4a7fb5;
  text-decoration: none;
}

#sidebar a:hover {
  text-decoration: underline;
}

#sidebar hr {
  border: none;
  border-top: 1px solid #C8EFA8;
  margin: 10px 0;
}

/* ── BIKE LISTINGS ── */
.bike-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 12px 0 20px;
}

.bike-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.bike-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.bike-card-img-placeholder {
  background: #eeeeee;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}

.bike-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.bike-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.bike-card-title {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.3;
}

.bike-card-price {
  font-size: 18px;
  font-weight: bold;
  color: #2a7a2a;
}

.bike-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bike-tag {
  font-size: 10px;
  background: #E2F9C5;
  color: #2a2a2a;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #C8EFA8;
}

.bike-card-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.bike-card-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  background: #E2F9C5;
  border: 1px solid #8BC96A;
  border-radius: 3px;
  font-size: 12px;
  color: #1a1a1a;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}

.bike-card-btn:hover {
  background: #C8EFA8;
}

/* ── MAP EMBED ── */
.map-embed {
  margin: 10px 0 16px;
  border: 1px solid #cccccc;
  overflow: hidden;
}

/* ── PHILOSOPHIE FIGURE ── */
.philosophie-fig {
  margin: 24px 0 10px;
  text-align: left;
}

.philosophie-fig img {
  max-width: 100%;
  height: auto;
  border: 1px solid #cccccc;
  display: block;
  margin: 0;
}

.philosophie-fig figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  font-style: italic;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq {
  margin-top: 28px;
  border-top: 2px solid #C8EFA8;
  padding-top: 4px;
}

.faq-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  user-select: none;
}

.faq-toggle::-webkit-details-marker { display: none; }

.faq-toggle::after {
  content: '▸ anzeigen';
  font-size: 13px;
  font-weight: normal;
  color: #5a9e2f;
}

.faq[open] .faq-toggle::after {
  content: '▾ ausblenden';
}

.faq-item {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #f7fdf0;
  border-left: 3px solid #C8EFA8;
}

.faq-item h3 {
  font-size: 14px;
  margin: 0 0 4px 0;
  color: #222;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* ── PHOTO GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
}

/* Content images */
.content-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin: 14px 0;
  border: 1px solid #cccccc;
  display: block;
}

.img-row {
  display: flex;
  gap: 4%;
  flex-wrap: wrap;
  margin: 14px 0;
}

.img-row img {
  width: 48%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid #cccccc;
}

/* ── SITE FOOTER ── */
#site-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

#site-footer-inner {
  background-color: #E2F9C5;
  border-top: 2px solid #333;
  width: 100%;
  max-width: 940px;
  padding: 10px 20px;
  font-size: 12px;
  color: #444;
  text-align: center;
}

#site-footer a {
  color: #1a1a1a;
  text-decoration: none;
}

#site-footer a:hover {
  text-decoration: underline;
}

/* ── FOOTER (legacy) ── */
#footer {
  background-color: #eeeeee;
  border-top: 1px solid #cccccc;
  padding: 10px 20px;
  font-size: 12px;
  color: #777;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

#footer a {
  color: #4a7fb5;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

#footer .footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── HAMBURGER BUTTON ── */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  flex-direction: column;
  gap: 5px;
}

#nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.25s;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  #hero { height: 220px; }

  #hero-title {
    font-size: 17px;
    left: 8%;
    top: 15%;
  }

  #page {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    max-width: unset;
    border-right: none;
    border-bottom: 1px solid #C8EFA8;
    order: 0;
  }

  #nav-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    border-top: 1px solid #C8EFA8;
  }

  nav ul li ul {
    position: static;
    display: flex;
    flex-direction: column;
    background-color: #D4F5B0;
    border: none;
    border-top: 1px solid #C8EFA8;
  }

  nav ul li ul li a {
    padding-left: 24px;
  }
}
