/* Startseite: Hero, Statement, Fuhrpark, Zeiten, Kurse, Abschluss */

/* ---------- Bild- und Video-Hintergrund (Hero, Abschluss) ---------- */
.fmh-hero-sec, .fmh-cta-sec { position: relative; overflow: hidden; background-color: var(--black, #161616); }
.fmh-hero-sec > .brxe-container, .fmh-cta-sec > .brxe-container { position: relative; z-index: 2; }
.fmh-cover { position: absolute; inset: 0; z-index: 0; }
.fmh-cover video, .fmh-cover img { width: 100%; height: 100%; object-fit: cover; }
.fmh-cover::after { content: ""; position: absolute; inset: 0; }
.fmh-cover--hero video { filter: grayscale(1); }
/* Verdunklung wie live: leichter Grundschleier, dazu Vignette von allen Rändern */
.fmh-cover--hero::after {
  background:
    linear-gradient(rgba(22, 22, 22, 0.35), rgba(22, 22, 22, 0.35)),
    linear-gradient(to top, var(--black, #161616) 0%, transparent 25%),
    linear-gradient(to bottom, var(--black, #161616) 0%, transparent 65%),
    linear-gradient(to right, var(--black, #161616) 0%, transparent 30%),
    linear-gradient(to left, var(--black, #161616) 0%, transparent 30%);
}
.fmh-cover--cta::after { background-color: rgba(23, 23, 23, 0.68); }
/* CTA-Bild: Drohnen-Flug nach unten, Zoom läuft beim Scrollen mit (Wert kommt aus startseite.js) */
.fmh-cover--cta img { transform: scale(var(--fmh-zoom, 1)); transform-origin: 50% 55%; }
.fmh-cover--cta.is-zooming img { will-change: transform; }

/* ---------- Hero ---------- */
.fmh-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vh, 2.5rem);
  min-height: calc(90svh - 2 * var(--section-block, 6rem));
}
@media (max-width: 1024px) { .fmh-hero { min-height: calc(80svh - 2 * var(--section-block, 6rem)); } }
.fmh-hero__title { display: flex; flex-direction: column; gap: clamp(0.5rem, 2vh, 1.5rem); color: var(--white, #FFFFFF); }
.fmh-hero__title span:last-child { align-self: flex-end; text-align: right; }
.fmh-hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m, 1.5rem) var(--space-l, 3rem); }
.fmh-hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; color: rgba(255, 255, 255, 0.82); }
.fmh-hero__rating b { color: var(--white, #FFFFFF); }
.fmh-hero__rlink { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.3em; transition: text-decoration-color var(--motion-fast, 150ms) var(--ease, ease); }
.fmh-hero__rlink:hover, .fmh-hero__rlink:focus-visible { text-decoration-color: currentColor; }
.fmh-hero__stars { display: flex; gap: 0.25rem; }
.fmh-hero__stars svg { width: 1.6875rem; height: 1.6875rem; }
.fmh-hero__stars svg:nth-child(1) { color: #0F6634; }
.fmh-hero__stars svg:nth-child(2) { color: #2B7D4F; }
.fmh-hero__stars svg:nth-child(3) { color: #4A9B6E; }
.fmh-hero__stars svg:nth-child(4) { color: #79B795; }
.fmh-hero__stars svg:nth-child(5) { color: #A9D4BC; }
.fmh-hero__owner {
  position: relative;
  padding-bottom: 0.6rem;
  font-size: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.fmh-hero__owner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--border-s, 1px);
  background: rgba(255, 255, 255, 0.4);
  transform-origin: left center;
}

/* Hero-Einstieg wie live: Unschärfe weg, nacheinander; Inhaber-Zeile zieht sich zusammen, Linie zeichnet sich */
@media (prefers-reduced-motion: no-preference) {
  .fmh-hero__title span,
  .fmh-hero__rating,
  .fmh-hero__owner { animation: fmhBlurIn 0.75s ease-out both; }
  .fmh-hero__title span:last-child { animation-delay: 0.15s; }
  .fmh-hero__rating { animation-delay: 0.3s; }
  .fmh-hero__owner { animation-name: fmhBlurIn, fmhOwnerSpacing; animation-duration: 0.75s, 1.1s; animation-delay: 0.45s, 0.55s; animation-timing-function: ease-out, cubic-bezier(0.16, 1, 0.3, 1); }
  .fmh-hero__owner::after { animation: fmhLineDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both; }
}
@keyframes fmhBlurIn {
  from { opacity: 0; filter: blur(12px); transform: scale(1.05); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes fmhOwnerSpacing {
  from { letter-spacing: 0.55em; }
  to { letter-spacing: 0.3em; }
}
@keyframes fmhLineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 600px) {
  .fmh-hero__title span:last-child { align-self: flex-start; text-align: left; }
  .fmh-hero__foot { flex-direction: column; align-items: flex-start; }
  .fmh-hero__stars svg { width: 1.375rem; height: 1.375rem; }
}


/* ---------- Fuhrpark: zwei Laufbänder, halten bei Maus, Fokus und außerhalb des Bildschirms ---------- */
.fmh-fleet { display: flex; flex-direction: column; gap: var(--head-content-gap, 3rem); }
.fmh-fleet > h2 { text-align: center; }
.fmh-fleet__rows { display: flex; flex-direction: column; gap: 1.25rem; }
.fmh-fleet__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fmh-fleet__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.fmh-fleet__track--left { animation: fmhFleetLeft 40s linear infinite; }
.fmh-fleet__track--right { animation: fmhFleetRight 34s linear infinite; }
.fmh-fleet__rows:hover .fmh-fleet__track,
.fmh-fleet__rows:focus-within .fmh-fleet__track,
.fmh-fleet__rows.is-out .fmh-fleet__track { animation-play-state: paused; }
.fmh-fleet__card {
  position: relative;
  flex: 0 0 auto;
  width: 26.25rem;
  margin-right: 1.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: var(--border-s, 1px) solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-s, 4px);
}
.fmh-fleet__card--wide { width: 43.75rem; aspect-ratio: 2 / 1; }
.fmh-fleet__card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 600ms var(--ease-out, ease-out); }
.fmh-fleet__card:hover img { transform: scale(1.06); }
.fmh-fleet__meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.5rem 1.5rem 1.375rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92));
}
.fmh-fleet__meta strong { font-weight: 500; color: var(--white, #FFFFFF); }
.fmh-fleet__meta span { color: rgba(255, 255, 255, 0.75); }
@keyframes fmhFleetLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fmhFleetRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 600px) {
  .fmh-fleet__card { width: 18.75rem; }
  .fmh-fleet__card--wide { width: 31.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fmh-fleet__track--left, .fmh-fleet__track--right { animation: none; }
  .fmh-fleet__viewport { overflow-x: auto; }
  .fmh-fleet__card img { transition: none; }
}

/* ---------- Zeiten ---------- */
.fmh-times__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-m, 1.5rem); }
.fmh-times__card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  background-color: var(--white, #FFFFFF);
  border: var(--border-s, 1px) solid var(--line, #E5E5E5);
  border-radius: var(--radius-s, 4px);
  transition: border-color var(--motion-fast, 150ms) var(--ease, ease);
}
.fmh-times__card:hover { border-color: var(--accent, #0F6634); }
.fmh-times__card .fs-link { margin-top: 0.4rem; font-weight: 500; }
.fmh-times__list { margin-top: 2rem; }
.fmh-times__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-top: var(--border-s, 1px) solid var(--line, #E5E5E5); }
.fmh-times__row dt { color: var(--accent, #0F6634); }
.fmh-times__row dd { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.fmh-times__row dd span { color: var(--grey, #6B6B6B); white-space: nowrap; }
@media (min-width: 900px) { .fmh-times__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Kurse ---------- */
.fmh-courses { display: grid; gap: var(--space-l, 3rem); }
.fmh-courses__intro p { max-width: 26ch; margin-top: var(--space-m, 1.5rem); }
.fmh-courses__list { display: flex; flex-direction: column; gap: var(--space-s, 0.75rem); }
.fmh-course {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  background-color: var(--white, #FFFFFF);
  border: var(--border-s, 1px) solid var(--line, #E5E5E5);
  border-radius: var(--radius-s, 4px);
  transition: border-color var(--motion-fast, 150ms) var(--ease, ease);
}
.fmh-course.is-open { border-color: var(--accent, #0F6634); }
.fmh-course__head { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.fmh-course__btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-body-s, 0.9375rem);
  color: var(--grey, #6B6B6B);
  cursor: pointer;
}
.fmh-course.is-open .fmh-course__btn { color: var(--accent, #0F6634); }
.fmh-switch { position: relative; width: 2.375rem; height: 1.375rem; background-color: var(--line, #E5E5E5); transition: background-color var(--motion-base, 240ms) var(--ease, ease); }
.fmh-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.125rem;
  height: calc(1.375rem - 4px);
  background-color: var(--white, #FFFFFF);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--motion-base, 240ms) var(--ease-out, ease-out);
}
.fmh-course.is-open .fmh-switch { background-color: var(--accent, #0F6634); }
.fmh-course.is-open .fmh-switch::after { transform: translateX(1rem); }
.fmh-course__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.375rem; margin-top: 0.75rem; padding-bottom: 1.125rem; border-bottom: var(--border-s, 1px) solid var(--line, #E5E5E5); }
.fmh-course__badge { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; color: var(--accent, #0F6634); }
.fmh-course__badge svg { width: 1.125rem; height: 1.125rem; }
.fmh-course__desc { max-width: 48ch; margin-top: 1.125rem; color: var(--grey, #6B6B6B); }
.fmh-course__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.125rem 0 0; padding: 0; list-style: none; }
.fmh-course__chips li { padding: 0.375rem 0.875rem; border: var(--border-s, 1px) solid var(--line, #E5E5E5); border-radius: var(--radius-s, 4px); font-size: var(--fs-body-s, 0.9375rem); color: var(--grey, #6B6B6B); }
.fmh-course__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--motion-base, 240ms) var(--ease, ease); }
.fmh-courses[data-js] .fmh-course:not(.is-open) .fmh-course__panel { grid-template-rows: 0fr; }
.fmh-course__panel > div { min-height: 0; overflow: hidden; }
.fmh-course__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: var(--border-s, 1px) solid var(--line, #E5E5E5); }
.fmh-course__inner p { max-width: 52ch; color: var(--grey, #6B6B6B); }
@media (min-width: 900px) {
  .fmh-courses { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
  .fmh-courses__intro { position: sticky; top: 2rem; align-self: start; }
}

/* ---------- Abschluss ---------- */
.fmh-cta-sec { padding-block: clamp(6rem, 3rem + 10vw, 11rem); }
.fmh-cta { display: flex; flex-direction: column; align-items: center; gap: 2.25rem; text-align: center; }
.fmh-cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 10px rgba(32, 197, 90, 0.1);
  font: inherit;
  color: var(--white, #FFFFFF);
  cursor: pointer;
  transition: box-shadow 300ms var(--ease, ease);
}
.fmh-cta__btn:hover, .fmh-cta__btn:focus-visible { box-shadow: 0 0 35px rgba(255, 255, 255, 0.35), 0 0 20px rgba(32, 197, 90, 0.2); }
.fmh-cta__label {
  position: absolute;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 500ms var(--ease, ease), transform 500ms var(--ease, ease);
}
.fmh-cta__label--default { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; }
.fmh-cta__label--go { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; opacity: 0; transform: scale(0); }
.fmh-cta__btn:hover .fmh-cta__label--default, .fmh-cta__btn:focus-visible .fmh-cta__label--default { opacity: 0; }
.fmh-cta__btn:hover .fmh-cta__label--go, .fmh-cta__btn:focus-visible .fmh-cta__label--go { opacity: 1; transform: scale(1); }
@media (max-width: 768px) {
  .fmh-cta { gap: 1.75rem; }
  .fmh-cta__btn { width: 5.5rem; height: 5.5rem; }
  .fmh-cta__label--default { font-size: 0.5625rem; }
  .fmh-cta__label--go { font-size: 0.625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fmh-cta__btn, .fmh-cta__label { transition: none; }
}
