/* ============================================================
   Bergmann Fahrräder – Borken | Stylesheet
   Palette: Rot #CD2300 · Off-White #F4F4F5 · Schwarz #0F0F11 · Grau #9C9999
   Style: Vibrant & Block-based · Mobile First
   ============================================================ */

:root {
  --red: #cd2300;
  --red-dark: #a31c00;
  --bg: #f4f4f5;
  --ink: #0f0f11;
  --gray: #9c9999;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 15, 17, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 15, 17, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 15, 17, 0.22);

  --radius: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --ease: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.text-accent { color: var(--red); }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--ease), background-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(205, 35, 0, 0.35);
}
.btn--accent:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* ============================================================
   1. HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 244, 245, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(156, 153, 153, 0.3);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand__logo img { height: 56px; width: auto; }

/* Status-Indikator */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(156, 153, 153, 0.4);
  box-shadow: var(--shadow-sm);
}
.status__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--gray);
  position: relative;
}
.status__text { display: flex; flex-direction: column; line-height: 1.15; }
.status__label { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; }
.status__detail { font-size: 0.72rem; color: var(--gray); }

.status[data-state="open"] .status__dot { background: #16a34a; }
.status[data-state="open"] .status__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.5);
  animation: pulse 1.8s ease-out infinite;
}
.status[data-state="open"] .status__label { color: #15803d; }

.status[data-state="closed"] .status__dot { background: var(--red); }
.status[data-state="closed"] .status__label { color: var(--red); }

@keyframes pulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Navigation */
.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  border-radius: 10px;
  position: relative;
  transition: color var(--ease), background-color var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav__menu a:hover { color: var(--red); }
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   2. HERO-SECTION
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 78vh, 720px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("Firmengeb%C3%A4ude.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(15, 15, 17, 0.88) 0%, rgba(15, 15, 17, 0.6) 45%, rgba(15, 15, 17, 0.25) 100%),
    linear-gradient(0deg, rgba(205, 35, 0, 0.25), rgba(205, 35, 0, 0));
}
.hero__content { color: var(--white); max-width: 720px; padding-block: 56px; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--white);
  background: var(--red);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(244, 244, 245, 0.9);
  max-width: 60ch;
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   3. SERVICES-LEISTE
   ============================================================ */
.services {
  background: var(--ink);
  color: var(--bg);
  padding-block: 8px;
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 32px;
}
.service {
  padding: 30px 8px;
  border-bottom: 1px solid rgba(156, 153, 153, 0.25);
}
.service:last-child { border-bottom: none; }
.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red);
  color: var(--white);
  margin-bottom: 16px;
}
.service__icon svg { width: 26px; height: 26px; }
.service__title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.service__text { color: var(--gray); max-width: 42ch; }

/* ============================================================
   Section heads (shared)
   ============================================================ */
.section-head { margin-bottom: 36px; }
.section-head__eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 8px;
}
.section-head__title {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head--light .section-head__title { color: var(--white); }
.section-head--light .section-head__eyebrow { color: var(--white); opacity: 0.85; }

/* ============================================================
   4. MARKENAUSWAHL (BRAND GRID)
   ============================================================ */
.brands { padding-block: 72px; }
.brand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(156, 153, 153, 0.3);
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.brand-tile__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  filter: grayscale(1);
  opacity: 0.78;
  transition: color var(--ease), opacity var(--ease);
}
.brand-tile:hover .brand-tile__name { color: var(--red); opacity: 1; }

/* Light-weight brand wordmark differentiation */
.brand-tile__name[data-style="gazelle"] { font-weight: 600; font-style: italic; letter-spacing: 0.04em; }
.brand-tile__name[data-style="suiss"]   { letter-spacing: 0.28em; font-weight: 600; }
.brand-tile__name[data-style="haibike"] { letter-spacing: 0.04em; font-style: italic; }
.brand-tile__name[data-style="shimano"] { letter-spacing: 0.2em; }
.brand-tile__name[data-style="simplon"] { letter-spacing: 0.12em; font-weight: 600; }
.brand-tile__name[data-style="stromer"] { letter-spacing: 0.22em; font-weight: 800; }
.brand-tile__name[data-style="stevens"] { letter-spacing: 0.18em; }
.brand-tile__name[data-style="ktm"]     { letter-spacing: 0.1em; font-weight: 800; font-style: italic; }
.brand-tile__name[data-style="bianchi"] { letter-spacing: 0.16em; font-weight: 600; }

/* ============================================================
   5. KATEGORIEN (4-SPALTIGES GRID)
   ============================================================ */
.categories { padding-block: 16px 80px; }
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(156, 153, 153, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.cat-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cat-card:hover .cat-card__img { transform: scale(1.06); }

/* Feature-Kachel: E-Bikes hervorgehoben (ohne rote Umrandung – nur Bestseller-Banner) */
.cat-card--feature .cat-card__media { height: 220px; }
.cat-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.cat-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card__title { font-size: 1.4rem; font-weight: 700; }
.cat-card__text { color: var(--gray); font-size: 0.95rem; }
.cat-card__cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--red);
}
.cat-card__cta svg { transition: transform var(--ease); }
.cat-card:hover .cat-card__cta svg { transform: translateX(4px); }

/* ============================================================
   6. KONTAKT-BEREICH (2-SPALTIG 50/50)
   ============================================================ */
.contact { background: var(--ink); color: var(--bg); padding-block: 80px; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(205, 35, 0, 0.16);
  color: var(--red);
  border: 1px solid rgba(205, 35, 0, 0.35);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__body { display: flex; flex-direction: column; gap: 2px; }
.contact-item__label {
  font-family: var(--font-head);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
}
.contact-item__body a:hover { color: var(--red); }
.contact-item__sub { font-size: 0.86rem; color: var(--gray); }
.contact-item__sub:hover { color: var(--red); }

.contact__map {
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(156, 153, 153, 0.35);
  box-shadow: var(--shadow-md);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #0a0a0c; color: var(--gray); padding-block: 28px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer__brand { font-family: var(--font-head); font-weight: 700; color: var(--bg); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer__nav a { font-size: 0.92rem; transition: color var(--ease); }
.footer__nav a:hover { color: var(--red); }
.footer__copy { font-size: 0.84rem; }

/* ============================================================
   ÜBER UNS (eigene Seite)
   ============================================================ */
.about { padding-block: 64px 80px; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(156, 153, 153, 0.3);
  box-shadow: var(--shadow-md);
}
.about__figure img { width: 100%; height: auto; object-fit: cover; }
.about__figcaption {
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
}
.about__figcaption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--gray);
}
.about__body p { margin-bottom: 20px; max-width: 65ch; }
.about__body > :first-child { margin-top: 0; }
.about__subtitle {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--red);
}
.about__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.about__cta .btn--ghost { color: var(--ink); border-color: rgba(15, 15, 17, 0.25); }
.about__cta .btn--ghost:hover { background: rgba(15, 15, 17, 0.06); border-color: var(--ink); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.9fr 1.4fr; gap: 56px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(156, 153, 153, 0.3);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 18px;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path var(--ease), opacity var(--ease);
  }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__menu a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid rgba(156, 153, 153, 0.2); }
  .nav__menu a::after { display: none; }
  .nav__menu li:last-child a { border-bottom: none; }
}

@media (min-width: 600px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .service { border-bottom: none; border-right: 1px solid rgba(156, 153, 153, 0.25); padding: 40px 28px; }
  .service:last-child { border-right: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1160px) {
  .brand-grid { grid-template-columns: repeat(9, 1fr); gap: 12px; }
  .brand-tile { padding: 16px 8px; min-height: 88px; }
  .brand-tile__name { font-size: 0.95rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
