/* ===== RESET & BASE ===== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:#111;
  background:#f7f8fb;
  line-height:1.55;
}
img{max-width:100%;display:block}

/* ===== TOKENS ===== */
:root{
  --brand:#c8102e;
  --brand-dark:#a20c21;
  --ink:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --shadow:0 12px 30px rgba(2,8,23,.08);
  --radius:18px;
}

/* ===== CONTAINER ===== */
.container{width:98%;max-width:1200px;margin:0 auto;padding:0 20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.muted{color:var(--muted)}
.small{font-size:12px}

/* ===== HEADER + NAV ===== */
.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #eee}
.header-flex{
  max-width:1200px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 20px;position:relative
}
.logo{max-height:78px;height:auto}
.menu-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;font-size:22px;border:0;background:transparent;cursor:pointer;color:#333
}
.main-nav{display:none}
.main-nav.show{
  display:block;position:absolute;top:100%;left:0;right:0;background:#fff;z-index:1000;
  border-top:1px solid rgba(0,0,0,.06);box-shadow:0 12px 24px rgba(0,0,0,.08)
}
.nav-list{list-style:none;margin:0;padding:.25rem .75rem;display:flex;flex-direction:column;gap:0}
.nav-item{position:relative}
.nav-link{display:block;padding:.9rem .5rem;text-decoration:none;color:#333;font-weight:700}
.nav-link:hover,.nav-link:focus{color:#007BFF}
.nav-link.is-active{color:var(--brand)}
.submenu{display:none;margin:0;padding:.25rem 0;list-style:none}
.nav-item.open>.submenu{display:block}
.submenu .nav-link{padding:.6rem .5rem;padding-left:1.25rem}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:14px;text-decoration:none;font-weight:900;
  border:1px solid transparent;transition:transform .12s ease, filter .2s ease, background .2s ease;
  white-space:nowrap;cursor:pointer;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 14px 28px rgba(200,16,46,.18)}
.btn-primary:hover{filter:brightness(.97)}
.btn-ghost{background:#fff;border-color:rgba(15,23,42,.14);color:#111}
.btn-ghost:hover{background:#f7f7f7}

/* ===== FORMS / INPUTS ===== */
input,select,textarea{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;color:#111;
  padding:12px 12px;
  outline:none;
}
textarea{resize:vertical}
input:focus,select:focus,textarea:focus{
  border-color:rgba(200,16,46,.45);
  box-shadow:0 0 0 4px rgba(200,16,46,.10)
}

/* ===== HERO ===== */
.k-hero{
  padding:26px 0 18px;
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(200,16,46,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(2,132,199,.10), transparent 60%),
    #f7f8fb;
  border-bottom:1px solid rgba(15,23,42,.08);
}
.k-hero-inner{display:grid;gap:14px}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:.35px;text-transform:uppercase;color:var(--brand)}
.k-hero h1{margin:4px 0 6px;font-size:clamp(26px,3.2vw,40px);letter-spacing:-.02em}
.sub{color:var(--muted);max-width:62ch}

.k-hero-tools{display:grid;gap:12px}
.search label,.filter label{display:block;font-size:12px;color:var(--muted);margin:0 0 6px;font-weight:800}
.filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:680px){.filters{grid-template-columns:1fr}}

.hero-cta{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;font-weight:900;
  padding:12px 14px;border-radius:14px;
  background:#fff;border:1px solid rgba(15,23,42,.12);color:#111;
}
.hero-cta:hover{background:#f7f7f7}

/* ===== BERATER (Swipe-Leiste) – HOCHKANT ===== */
.berater-row{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(150px, 170px); /* schmaler => hochkantiger Look */
    gap:12px;
    overflow:auto;
    padding:6px 2px 10px;
    scroll-snap-type:x mandatory;
  }
  
  .berater-card{
    scroll-snap-align:start;
    display:block;
    text-decoration:none;
    color:#111;
    border:1px solid rgba(15,23,42,.12);
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 12px 26px rgba(2,8,23,.06);
    transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  }
  
  .berater-card:hover{
    transform:translateY(-3px);
    border-color: rgba(200,16,46,.25);
    box-shadow:0 18px 40px rgba(2,8,23,.10);
  }
  
  /* Bild deutlich höher, damit Gesichter sichtbar sind */
  .berater-card img{
    width:100%;
    height:220px;              /* höher = mehr Gesicht */
    object-fit:cover;
    object-position:center 20%; /* leicht nach oben = Gesicht bevorzugt */
    display:block;
  }
  
  .berater-body{
    padding:10px 12px 12px;
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  
  .berater-body strong{ font-size:15px; }
  .berater-body span{ color:var(--muted); font-size:13px; }
  
  .berater-cta{
    margin-top:6px;
    display:inline-flex;
    width:fit-content;
    color:#fff;
    background: var(--brand);
    border-radius:999px;
    padding:7px 10px;
    font-weight:900;
    font-size:12px;
  }
  

/* ===== BIKEFINDER ===== */
.bikefinder{ padding:16px; margin-top:14px; }
.bikefinder-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.bfWizard{ margin-top:12px; display:grid; gap:12px; }
.bfGrid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }
@media (max-width:980px){ .bfGrid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .bfGrid{ grid-template-columns:1fr; } }
.bfQ label{ display:block; font-size:12px; color:var(--muted); margin:0 0 6px; font-weight:800; }
.bfActions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.bfResults{ margin-top:6px; }
.bfCards{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-top:10px; }
@media (max-width:980px){ .bfCards{ grid-template-columns:1fr; } }

.bfMiniCard{
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(2,8,23,.06);
}
.bfMiniMedia{aspect-ratio:16/10;background:#eef2f7}
.bfMiniMedia img{width:100%;height:100%;object-fit:cover}
.bfMiniBody{ padding:12px 14px 14px; display:grid; gap:8px; }
.bfMiniBody h4{ margin:0; font-size:15px; line-height:1.2; }
.bfMiniMeta{ color:var(--muted); font-size:13px; }
.bfMiniSpecs{ padding-left:18px; color:#1f2a3a; font-size:13px; }
.bfMiniActions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== COLLECTIONS ROW ===== */
.collections{padding:18px 0 8px}
.collections-row{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(220px, 1fr);
  gap:12px;
  overflow:auto;
  padding:6px 2px 10px;
  scroll-snap-type:x mandatory;
}
.collection-card{
  display:grid;grid-template-columns:74px 1fr;gap:12px;align-items:center;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;border-radius:16px;padding:10px;
  box-shadow:0 10px 22px rgba(2,8,23,.06);
  cursor:pointer;scroll-snap-align:start;
  transition:transform .12s ease, border-color .2s ease;
}
.collection-card:hover{transform:translateY(-2px);border-color:rgba(200,16,46,.25)}
.collection-card.active{border-color:rgba(200,16,46,.55)}
.cc-media{
  width:74px;height:64px;border-radius:14px;
  background:#eef2ff center/cover no-repeat;
  border:1px solid rgba(15,23,42,.08);
}
.cc-title{display:block;font-weight:1000}
.cc-sub{display:block;font-size:13px;color:var(--muted)}

/* ===== PRODUCTS GRID ===== */
.products{padding:10px 0 10px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:10px 0 12px}
.section-head h2{margin:0;font-size:clamp(18px,2vw,24px)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.grid{grid-template-columns:1fr}}

.product{overflow:hidden}
.p-media{position:relative;aspect-ratio:16/10;background:#eef2f7}
.p-media img{width:100%;height:100%;object-fit:cover}
.p-badges{position:absolute;left:12px;top:12px;display:flex;gap:8px;flex-wrap:wrap}
.badge{
  font-size:12px;padding:6px 10px;border-radius:999px;
  background:rgba(200,16,46,.08);
  border:1px solid rgba(200,16,46,.16);
  color:var(--brand-dark);font-weight:800
}

.p-body{padding:14px}
.p-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.p-head h3{margin:0;font-size:16px;line-height:1.2}
.p-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.uvp{font-size:12px;color:#8b98a8;text-decoration:line-through}
.price{font-weight:1000;font-size:18px;color:var(--brand-dark)}
.save{font-size:12px;font-weight:800;color:#b00020}

.meta{margin:8px 0 0;color:var(--muted);font-size:13px}
.specs{margin:10px 0 0;padding-left:18px;color:#1f2a3a;font-size:13px}
.actions{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}

/* ===== EMPTY ===== */
.empty{margin-top:14px;padding:18px;border:1px dashed rgba(15,23,42,.18);border-radius:18px;background:#fff}

/* ===== CTA ===== */
.cta{margin-top:18px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cta h3{margin:0 0 4px}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* ===== FORM (unten) ===== */
.formCard{ margin-top:18px; padding:16px; }
.form{ margin-top:12px; display:flex; flex-direction:column; gap:12px; }
.form__row label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px;
  font-weight:800;
}
.form__cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
@media (max-width:520px){ .form__cols{ grid-template-columns:1fr; } }
.hint{ margin:8px 0 0; color:var(--muted); font-size:12px; }
.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:13px;
  color:#1f2a3a;
}
.check input{ width:auto; margin-top:3px; }

/* Notices */
.notice{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  margin-top:10px;
  font-size:13px;
}
.notice.success{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
  color:#166534;
}
.notice.error{
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.18);
  color:#991b1b;
}

/* Honeypot */
.hp{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ===== FOOTER ===== */
.site-footer{background:#003366;color:#fff;padding:3rem 1rem 2rem;margin-top:44px}
.footer-flex{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2rem;max-width:1200px;margin:0 auto}
.footer-info,.footer-kontakt,.footer-links{flex:1 1 250px}
.footer-logo{max-width:120px;margin-bottom:10px}
.footer-kontakt a,.footer-links a{color:#fff;text-decoration:none;display:block;margin:.3rem 0;transition:color .2s}
.footer-kontakt a:hover,.footer-links a:hover{color:#aad4ff;text-decoration:underline}
footer .copyright{border-top:1px solid rgba(255,255,255,.2);margin-top:2.5rem;padding-top:1rem;text-align:center;font-size:.9rem;color:#ddd}

.hero-cta-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  
  .hero-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-weight:900;
    padding:12px 14px;
    border-radius:14px;
    background:#fff;
    border:1px solid rgba(15,23,42,.12);
    color:#111;
  }
  
  .hero-cta:hover{ background:#f7f7f7; }
  
  /* Optional: erster Button “wichtiger” */
  .hero-cta.primary{
    background: var(--brand);
    border-color: transparent;
    color:#fff;
    box-shadow:0 14px 28px rgba(200,16,46,.18);
  }
  .hero-cta.primary:hover{ filter:brightness(.97); }
  
  @media (max-width:520px){
    .hero-cta-row{ flex-direction:column; }
    .hero-cta{ width:100%; }
  }
/* ===== ADMIN BAR + MODAL ===== */
#admin-overlay{
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar{
  width: 100%;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.admin-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: #fff;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .12s ease;
}

.admin-btn:hover{
  background: rgba(255,255,255,.24);
}

.admin-btn.primary{
  background: #fff;
  color: #1f3bb3;
  border-color: rgba(255,255,255,.7);
}

.admin-logout{
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background .2s ease;
}

.admin-logout:hover{
  background: rgba(255,255,255,.25);
}

/* Modal Hintergrund */
.admin-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.55);
  z-index: 9998;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-modal.show{
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Modal Karte */
.admin-modal__card{
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  margin: auto 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Modal Kopf bleibt sichtbar */
.admin-modal__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17,24,39,.10);
  background: #f6f8fb;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-x{
  border: 1px solid rgba(17,24,39,.14);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

/* Formular scrollt innerhalb des Modals */
.admin-form{
  padding: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}

.admin-form label{
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #111827;
}

.admin-form input,
.admin-form textarea{
  width: 100%;
  border: 1px solid rgba(17,24,39,.14);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.admin-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-msg{
  margin: 10px 0 0;
  color: #374151;
  font-weight: 600;
}

.admin-hint{
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

/* Kleine Screens */
@media (max-width: 620px){
  .admin-row{
    grid-template-columns: 1fr;
  }

  .admin-bar{
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-actions{
    width: 100%;
  }

  .admin-btn,
  .admin-logout{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .admin-modal{
    padding: 10px;
  }

  .admin-modal__card{
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .admin-form{
    max-height: calc(100vh - 95px);
    padding: 12px;
  }
}