/* Fahrradkontor Lichtenstein — Schwarz #111111 / Rot #ae0305 */
:root {
  --dark: #111111;
  --dark-2: #1a1a1c;
  --red: #ae0305;
  --red-bright: #d40407;
  --light: #f5f5f5;
  --grey: #9a9a9a;
  --font: "Archivo", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Kein scroll-behavior:smooth auf html — bricht Lenis (jeder raf-scrollTo wird animiert) */
html:not(.js) { scroll-behavior: smooth; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: clip; /* clip statt hidden: erzeugt keinen Scroll-Container */
}

h1, h2, h3 { font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.kicker {
  color: var(--red-bright);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Progress bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: rgba(255,255,255,0.08); }
.progress span { display: block; height: 100%; width: 0; background: var(--red-bright); }

/* Notice */
.notice {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 0.6rem 1rem;
  position: relative;
  z-index: 60;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 4vw;
  background: linear-gradient(rgba(17,17,17,0.92), rgba(17,17,17,0));
  transition: background 0.3s;
}
.nav.is-scrolled { background: rgba(17,17,17,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav__brand img { width: 130px; height: auto; }
/* Logo-Morph: Kontor -> Manufaktur beim Hover (beide gleich breit) */
.nav__brand--morph { position: relative; display: block; height: 60px; width: 210px; }
.brand-morph {
  position: absolute; left: 0; top: 50%;
  width: 100% !important; height: auto !important; max-width: none;
  transform-origin: left center;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.brand-morph--a { opacity: 1; transform: translateY(-50%); }
.brand-morph--b { opacity: 0; transform: translateY(calc(-50% + 8px)) scale(0.96); }
.nav__brand--morph:hover .brand-morph--a,
.nav__brand--morph:focus-visible .brand-morph--a { opacity: 0; transform: translateY(calc(-50% - 8px)) scale(0.96); }
.nav__brand--morph:hover .brand-morph--b,
.nav__brand--morph:focus-visible .brand-morph--b { opacity: 1; transform: translateY(-50%) scale(1); }
.nav__links { display: flex; align-items: center; gap: 1.75rem; font-weight: 600; font-size: 0.95rem; }
.nav__links a:not(.btn) { text-decoration: none; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav__links a:not(.btn):hover { opacity: 1; color: var(--red-bright); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--red);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  font-family: var(--font);
  font-size: 1rem;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn--small { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn--big { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; will-change: transform; }
.hero__media canvas { display: none; width: 100%; height: 100%; }
.hero.has-seq .hero__media canvas { display: block; }
.hero.has-seq .hero__media img { display: none; }
/* Panel hängt am Inhalt (fit-content) — Schrift kann nie überstehen */
.hero__shade { display: none; }
.hero__content {
  position: relative;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  width: fit-content;
  max-width: min(900px, 88vw);
  padding: 7rem 1.25rem 4rem 4vw;
  background: rgba(17, 17, 17, 0.96);
}
.hero__content::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: -15px; width: 15px;
  background: linear-gradient(90deg, rgba(17,17,17,0.96), rgba(17,17,17,0));
}
.hero__kicker { color: var(--red-bright); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: inline-block; }
.hero__title .red { color: var(--red-bright); }
.hero__sub { margin: 1.5rem 0 2.25rem; font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d9d9d9; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scrollhint {
  position: absolute; bottom: 1.5rem; left: 4vw;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--grey);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__scrollhint span { display: block; width: 2px; height: 38px; background: linear-gradient(var(--red-bright), transparent); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%,100% { transform: scaleY(0.4); opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* Marquee */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 0.7rem 0; transform: rotate(-1.2deg) scale(1.02); }
.marquee__track { display: flex; width: max-content; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.08em; animation: marquee 28s linear infinite; }
.marquee__track span { flex: 0 0 auto; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(4rem, 10vw, 8rem) 4vw; max-width: 1200px; margin: 0 auto; }
.section--dark { max-width: none; background: var(--dark-2); }
.section--dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 3rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); }
.card__num { font-style: italic; font-weight: 900; font-size: 2.2rem; color: transparent; -webkit-text-stroke: 1px var(--red-bright); display: block; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: #c9c9c9; font-size: 0.95rem; }

/* Sticky Story */
.story { background: #0c0c0d; }
.story__inner { display: grid; grid-template-columns: 1fr 1fr; max-width: 1400px; margin: 0 auto; }
.story__media { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story__img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.story__img.is-active { opacity: 1; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img[data-story-img="2"] img { object-position: 48% 30%; } /* Ulf: Gesicht voll im Bild */
.story__line { position: absolute; top: 0; right: 0; width: 8px; height: 100%; }
.story__line path { stroke: var(--red-bright); stroke-width: 4; fill: none; }
.story__text { padding: 0 clamp(1.5rem, 5vw, 5rem); }
.story__block { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.story__block p:not(.kicker) { color: #c9c9c9; margin-top: 1rem; max-width: 46ch; }
.story__signature { margin-top: 1.5rem; font-size: 0.85rem; color: var(--grey); font-style: italic; letter-spacing: 0.04em; border-left: 3px solid var(--red); padding-left: 0.9rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { padding: 1.5rem; border-left: 3px solid var(--red); background: rgba(255,255,255,0.02); }
.step__num { font-style: italic; font-weight: 900; font-size: 2.5rem; color: var(--red-bright); display: block; margin-bottom: 0.5rem; }
.step p { color: #c9c9c9; font-size: 0.95rem; }

/* Form */
.form { max-width: 720px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.1rem; }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--light);
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red-bright); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: #c9c9c9; }
.form__check input { width: auto; margin-top: 0.2rem; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__status { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }

/* Verify-Slider */
.verify { max-width: 420px; margin: 0.25rem 0 1.4rem; }
.verify__label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.verify__track {
  position: relative;
  height: 54px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.verify__hint, .verify__done {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--grey);
  transition: opacity 0.25s;
  pointer-events: none;
}
.verify__done { opacity: 0; color: #6fdc8c; font-weight: 700; }
.verify__handle {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 100%;
  background: var(--red);
  color: #fff;
  border: 0;
  font-size: 1.6rem; font-weight: 900; font-style: italic;
  cursor: grab;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.verify__handle:active { cursor: grabbing; }
.verify.is-done .verify__hint { opacity: 0; }
.verify.is-done .verify__done { opacity: 1; }
.verify.is-done .verify__track { border-color: #6fdc8c; }
.verify.is-done .verify__handle { background: #1f7a3d; cursor: default; }
.form__status.ok { color: #6fdc8c; }
.form__status.err { color: var(--red-bright); }
.form__success { background: rgba(111,220,140,0.12); border: 1px solid #6fdc8c; color: #6fdc8c; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-weight: 600; max-width: 720px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact address { font-style: normal; color: #d9d9d9; margin: 1.25rem 0 1.75rem; }
.hours { border-collapse: collapse; margin-top: 1.25rem; width: 100%; max-width: 340px; }
.hours td { padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: #d9d9d9; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--light); }

/* SEQ2: Sticky-Scrub-Background für den unteren Seitenbereich */
.seq2 { position: relative; }
.seq2__canvas {
  display: none;
  position: sticky; top: 0;
  width: 100%; height: 100svh;
  margin-bottom: -100svh;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.4);
  transition: opacity 0.5s ease;
}
.seq2.has-seq2 .seq2__canvas { display: block; }
.seq2.is-live .seq2__canvas { opacity: 1; }
.seq2 > .section { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .seq2.has-seq2 > .section,
  .seq2.has-seq2 > .section--dark { background: transparent; }
  .seq2.has-seq2 > #kontakt,
  .seq2.has-seq2 > #termin { background: rgba(12, 12, 13, 0.78); backdrop-filter: blur(2px); }
  /* Termin-BG über volle Breite, Inhalt bleibt im 1200er-Raster */
  .seq2.has-seq2 > #termin {
    max-width: none;
    padding-left: max(4vw, calc((100% - 1200px) / 2));
    padding-right: max(4vw, calc((100% - 1200px) / 2));
  }
}

/* Screenreader-only (SEO-H1-Präfix) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1000px) {
  .faq { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .faq { grid-template-columns: 1fr; }
}
.faq__item { border-left: 3px solid var(--red); padding: 0.25rem 0 0.25rem 1.25rem; }
.faq__item h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.faq__item p { color: #c9c9c9; font-size: 0.95rem; }

/* Kontakt-Fakten */
.contact__facts { margin-top: 1.5rem; color: #9a9a9a; font-size: 0.85rem; max-width: 46ch; }

/* Footer */
.footer { position: relative; z-index: 1; background: var(--dark); text-align: center; padding: 3rem 4vw; color: var(--grey); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.07); }
.footer img { margin: 0 auto 1rem; opacity: 0.7; }
.footer__logo { height: 56px; width: auto; }

/* Leasing */
.leasing__badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: stretch; }
.leasing__logo {
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0;
  overflow: hidden;
  filter: grayscale(35%);
  opacity: 0.92;
  transition: filter 0.25s, opacity 0.25s, transform 0.25s, border-color 0.25s;
}
.leasing__logo img { display: block; width: 180px; height: 70px; object-fit: cover; }
a.leasing__logo:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); border-color: var(--red-bright); }
.leasing__badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--dark-2);
  padding: 0.6rem 1.2rem;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.9rem; color: #e5e5e5;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
a.leasing__badge:hover { border-color: var(--red-bright); transform: translateY(-3px); color: #fff; }
span.leasing__badge:hover { border-color: rgba(255,255,255,0.35); }
.leasing__note { margin-top: 1.5rem; color: var(--grey); font-size: 0.85rem; max-width: 70ch; }
.footer a { color: #c9c9c9; }
.footer__credits { font-size: 0.78rem; color: var(--grey); margin-bottom: 0.4rem; }
.footer__credits a { color: #c9c9c9; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: color 0.2s, border-color 0.2s; }
.footer__credits a:hover { color: #fff; border-color: var(--red-bright); }
.footer__heart { color: var(--red-bright); display: inline-block; animation: heartbeat 2.2s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  8% { transform: scale(1.25); }
  16% { transform: scale(1); }
  24% { transform: scale(1.2); }
  32% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__heart { animation: none; }
}

.footer__gear {
  display: inline-block;
  vertical-align: -2px;
  color: #c9c9c9;
  opacity: 0.55;
  transition: opacity 0.2s, color 0.2s;
}
.footer__gear svg { display: inline-block; animation: gear-spin 7s linear infinite; }
.footer__gear:hover { opacity: 1; color: var(--red-bright); }
.footer__gear:hover svg { animation-duration: 1.6s; }
@keyframes gear-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .footer__gear svg { animation: none; }
}

/* News-Popup */
.popup { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(3px); }
.popup__box {
  position: relative;
  background: var(--dark-2);
  border-top: 4px solid var(--red);
  max-width: 460px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: popup-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes popup-in { from { opacity: 0; transform: translateY(28px) scale(0.96); } }
.popup__img { width: 100%; height: 200px; object-fit: cover; }
.popup__body { padding: 1.5rem 1.75rem 1.75rem; }
.popup__body h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.popup__body p:not(.kicker) { color: #c9c9c9; font-size: 0.95rem; margin-bottom: 1.1rem; }
.popup__close {
  position: absolute; top: 0.35rem; right: 0.35rem; z-index: 2;
  width: 40px; height: 40px;
  background: rgba(17,17,17,0.7);
  color: #fff; border: 0;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.popup__close:hover { background: var(--red); }

/* Reveal initial state (JS setzt Animation; ohne JS sichtbar) */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(36px); }
}

/* Mobile */
@media (max-width: 900px) {
  .nav__links a:not(.btn) { display: none; }
  .story__inner { grid-template-columns: 1fr; }
  .story__media { position: relative; height: 46svh; }
  .story__img { position: absolute; }
  .story__block { min-height: 0; padding: 3.5rem 0; justify-content: flex-start; }
  .story__text { padding-bottom: 2rem; }
  .form__row { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .hero__media img { object-position: 68% center; }
}

@media (max-width: 540px) {
  .nav { padding: 0.6rem 4vw; }
  .nav__brand--morph { width: 150px; height: 48px; }
  .hero__content { padding: 6rem 1.5rem 3rem 5vw; }
  .hero__title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero__sub { font-size: 1rem; }
  .hero__cta .btn { padding: 0.8rem 1.4rem; font-size: 0.9rem; }
  .section { padding: 3.5rem 5vw; }
  .section__head { margin-bottom: 2rem; }
  .marquee__track { font-size: 0.85rem; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 1.5rem 1.25rem; }
  .leasing__logo img { width: 150px; height: 58px; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .story__media { height: 38svh; }
  .story__block { padding: 2.5rem 0; }
  .popup__body { padding: 1.25rem 1.25rem 1.5rem; }
  .popup__body h3 { font-size: 1.25rem; }
  .footer { padding: 2.5rem 4vw 3.25rem; }
  .footer__logo { height: 44px; }
  .btn--big { width: 100%; text-align: center; }
}

/* Cookie-Consent-Banner */
.consent {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  z-index: 1200; width: min(680px, calc(100vw - 2rem));
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1rem 1.25rem; background: rgba(17,17,17,0.97);
  border: 1px solid #2c2c2e; box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #c9c9c9; }
.consent__text a { color: #fff; text-decoration: underline; }
.consent__btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.consent__btn {
  font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  padding: 0.55rem 1.1rem; border: 1px solid #555; background: transparent; color: #ddd;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.consent__btn--no:hover { border-color: #888; color: #fff; }
.consent__btn--yes { background: var(--red); border-color: var(--red); color: #fff; }
.consent__btn--yes:hover { background: var(--red-bright); border-color: var(--red-bright); }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; text-align: center; }
  .consent__btns { justify-content: center; }
}

/* <picture>-Wrapper transparent fürs Layout (img verhält sich wie direktes Kind) */
picture { display: contents; }
