/* =========================================================================
   Omnibusbetrieb Franz Staab GmbH & Co. KG · Startseite
   Konzeptentwurf Silberschmidt Media
   Tokens und Maße 1:1 aus dem Figma-Layout „Staab Reisen · Startseite".
   Mobile-first, Grid/Flex, fluide Typo via clamp(). Kein CDN.
   ========================================================================= */

/* ---------- 1. Schriften (lokal) ---------- */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens (Figma-Variablen) ---------- */

:root {
  /* Marke */
  --green: #114431;
  --green-soft: #315d4b;
  --gold: #fcca3e;
  --gold-ink: #7a5b00;   /* Gold als TEXT auf hellem Grund, WCAG AA */
  --sand: #e3ce97;
  --cream: #fbf8ef;
  --white: #ffffff;

  /* Text */
  --ink: #2e332f;
  --ink-muted: #5f665f;
  --ink-onDark: #e7ede6;

  /* Linien */
  --rule: #dcd4c0;
  --rule-onDark: rgba(227, 206, 151, 0.3);

  /* Schrift-Stacks */
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type-Scale, Min/Max aus dem Layout */
  --t-display-xl: clamp(2.5rem, 6.39vw, 5.75rem);      /* 92px */
  --t-display-l: clamp(1.875rem, 3.89vw, 3.5rem);      /* 56px */
  --t-slide: clamp(1.625rem, 2.78vw, 2.5rem);          /* 40px */
  --t-display-m: clamp(1.5rem, 2.22vw, 2rem);          /* 32px */
  --t-display-s: clamp(1.1875rem, 1.53vw, 1.375rem);   /* 22px */
  --t-body-l: clamp(1.0625rem, 1.39vw, 1.25rem);       /* 20px */
  --t-body-s: 0.9375rem;                               /* 15px */
  --t-data: 0.9375rem;                                 /* 15px */
  --t-badge: 0.8125rem;                                /* 13px */
  --t-label: 0.75rem;                                  /* 12px */

  /* Abstände */
  --gutter: clamp(1.25rem, 6.67vw, 6rem);              /* 96px */
  --pad-section: clamp(3.5rem, 8.9vw, 8rem);           /* 128px */
  --gap-xl: clamp(2.5rem, 4.72vw, 4.25rem);            /* 68px */
  --gap-l: clamp(1.75rem, 3.33vw, 3rem);               /* 48px */
  --gap-m: clamp(1.25rem, 1.67vw, 1.5rem);             /* 24px */
  --gap-s: 0.75rem;

  --radius: 4px;
  --shell: 1440px;
  --media-h: clamp(16rem, 38.9vw, 35rem);              /* 560px */
}

/* ---------- 3. Reset und Grundlagen ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green);
}

p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  text-decoration: none;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 4. Typo-Klassen ---------- */

.display-xl {
  font-size: var(--t-display-xl);
  line-height: 0.96;
  letter-spacing: -0.024em;
}
.display-l {
  font-size: var(--t-display-l);
  line-height: 1.04;
  letter-spacing: -0.016em;
}
.display-m {
  font-size: var(--t-display-m);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.display-s {
  font-size: var(--t-display-s);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.005em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.label--gold { color: var(--gold-ink); }

.lead {
  font-size: var(--t-body-l);
  line-height: 1.55;
  color: var(--ink);
  max-width: 40ch;
}
.lead--center { margin-inline: auto; text-align: center; max-width: 48ch; }

.fine {
  font-size: var(--t-body-s);
  color: var(--ink-muted);
}
.fine a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--t-data);
  font-weight: 500;
  line-height: 1.35;
  flex-wrap: wrap;
}
.meta__date { color: var(--green); }
.meta__span { color: var(--ink-muted); }
.meta__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

/* ---------- 5. Buttons und Links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9375rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--t-body-s);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: var(--green);
  color: var(--cream);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--green-soft); }

.btn--ghost {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--green); color: var(--cream); }

.btn--sand {
  border-color: var(--sand);
  color: var(--sand);
  background: transparent;
}
.btn--sand:hover,
.btn--sand:focus-visible { background: var(--sand); color: var(--green); }
.btn--sand:hover .wedge,
.btn--sand:focus-visible .wedge { color: var(--green); }

.wedge {
  color: var(--gold);
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.btn:hover .wedge { transform: translateX(3px); }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--t-body-s);
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
}
.link-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-cta:hover .wedge { transform: translateX(3px); }

/* ---------- 6. Header ---------- */

.header {
  position: relative;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0.875rem var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  flex-wrap: wrap;
}
.logo { display: block; margin-right: auto; }
.logo img { width: clamp(11rem, 20.5vw, 18.4375rem); height: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  margin-right: -0.75rem;
  border: 0;
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars span {
  display: block; height: 1.5px;
  background: currentColor;
}

.nav { flex: 1 0 100%; }
.nav[data-open="false"] { display: none; }
/* Ohne JS gibt es keinen Umschalter, also bleibt die Navigation offen. */
html.no-js .nav { display: block; }
html.no-js .nav-toggle { display: none; }
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem 0.5rem;
}
.nav__link {
  display: block;
  padding: 0.625rem 0;
  font-size: var(--t-body-s);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
  text-decoration: none;
}
.nav__link--inaktiv { color: var(--ink-muted); }
a.nav__link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 64rem) {
  .header__inner { flex-wrap: nowrap; padding-block: 1.25rem; }
  .nav-toggle { display: none; }
  .nav { flex: 0 0 auto; }
  .nav[data-open="false"] { display: block; }
  .nav__list { flex-direction: row; gap: 1.875rem; padding-block: 0; }
  .nav__link { padding: 0; }
}

/* ---------- 7. Telefon als Floating Action Button ---------- */

.fab {
  position: fixed;
  right: clamp(0.75rem, 2.8vw, 2.5rem);
  bottom: clamp(0.75rem, 2.8vw, 2.5rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.375rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(11, 36, 26, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.fab:hover,
.fab:focus-visible { background: var(--green-soft); transform: translateY(-2px); }
@media (min-width: 48rem) {
  .fab { padding: 1.3125rem 1.875rem 1.3125rem 1.625rem; }
}

/* ---------- 8. Hero ---------- */

.hero__top {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(2.5rem, 5.83vw, 5.25rem) var(--gutter) clamp(2rem, 4.03vw, 3.625rem);
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero__title { max-width: 22ch; }
.hero__title .line { display: block; }

.speedline {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(300px, 70%);
  margin-block: clamp(1.5rem, 3.19vw, 2.875rem) clamp(1.5rem, 2.92vw, 2.625rem);
  color: var(--gold);
}
.speedline svg { flex: 0 0 auto; width: 44%; height: auto; }
.speedline__rule { flex: 1 1 auto; height: 1px; background: var(--rule); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* Angebots-Slider */
.slider { position: relative; }

.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--green);
  overflow: hidden;
}
.slide__img {
  width: 100%;
  height: clamp(13rem, 42vw, 22rem);
  object-fit: cover;
}
.slide__card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.slide__title { color: var(--green); font-size: var(--t-slide); font-weight: 700; letter-spacing: -0.016em; }
.slide__card .label { margin-bottom: 0.875rem; }
.slide__card .slide__title { margin-bottom: 1rem; }
.slide__text {
  font-size: var(--t-body-s);
  color: var(--ink);
  margin-block: 1.125rem 1.5rem;
  max-width: 44ch;
}

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--t-badge);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.125rem;
  padding-block: 0.375rem;
}
/* Sichtbar ist der 8-px-Punkt, angetippt wird die volle Schaltfläche
   von 30 × 44 px. Deshalb sitzt die Optik im ::before. */
.slider__dot {
  width: 30px; height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider__dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--rule);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.slider__dot[aria-current="true"]::before { width: 26px; background: var(--gold); }

.slider__arrows { display: none; }

@media (min-width: 64rem) {
  .slide__img { height: var(--media-h); }
  .slide__card {
    position: absolute;
    left: var(--gutter);
    bottom: 3.5rem;
    width: min(33.75rem, 44vw);
  }
  .slider__dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 1.125rem;
    padding: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  }
  .slider__dot::before { background: rgba(255, 255, 255, 0.92); }
  /* Die Pfeile erscheinen nur, wenn JS sie auch bedienen kann. Ohne JS
     bleibt die Angebotsspur per Wischen und Scrollen erreichbar. */
  html.is-ready .slider__arrows {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.75rem;
  }
  .slider__arrow {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--green);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(11, 36, 26, 0.22);
    transition: transform 0.25s ease;
  }
  .slider__arrow:hover { transform: translateY(-2px); }
}

/* ---------- 9. Sektion Reisen ---------- */

.reisen { padding-block: var(--pad-section); }
.reisen .lead { margin-top: 1.25rem; max-width: 40ch; }

.feature {
  margin-top: var(--gap-xl);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
}
.feature__media img {
  width: 100%;
  height: clamp(14rem, 48vw, 37.5rem);
  object-fit: cover;
}
.feature__body {
  padding: clamp(1.75rem, 5vw, 4rem);
  display: grid;
  align-content: center;
}
.feature__title { margin-block: 1rem 1.125rem; }
.feature__text { font-size: var(--t-body-l); margin-block: 1.375rem 0; max-width: 42ch; }
.feature__action { margin-block: 1.875rem 1rem; }
@media (min-width: 64rem) {
  .feature { grid-template-columns: 620fr 628fr; }
  .feature__media { overflow: hidden; }
  .feature__media img { height: 106%; min-height: 39.75rem; }
}

.reisen__grid {
  margin-top: var(--gap-m);
  display: grid;
  gap: var(--gap-m);
}
@media (min-width: 48rem) { .reisen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .reisen__grid { grid-template-columns: repeat(3, 1fr); } }

.karte {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.karte__media { overflow: hidden; }
.karte__media img {
  width: 100%;
  height: clamp(13rem, 34.7vw, 31.25rem);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.karte { transition: transform 0.35s ease, box-shadow 0.35s ease; }
@media (hover: hover) {
  .karte:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(11, 36, 26, 0.12); }
  .karte:hover .karte__media img { transform: scale(1.045); }
}
.karte__body {
  padding: 1.75rem 1.875rem 1.875rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.375rem;
  flex: 1 1 auto;
}
.karte__body .display-s { margin-block: 0.75rem 0.625rem; }
.karte__text { font-size: var(--t-body-s); margin-top: 1rem; }

.reisen__action {
  margin-top: clamp(2rem, 3.89vw, 3.5rem);
  display: flex;
  justify-content: center;
}
.wedge--onDark { color: var(--gold); }

/* ---------- 10. Sektion Infos (grün) ---------- */

.infos { background: var(--green); }
.infos__top {
  padding-top: clamp(3.5rem, 8.61vw, 7.75rem);
  padding-bottom: clamp(3rem, 5.97vw, 5.375rem);
  display: grid;
  justify-items: center;
  text-align: center;
}
.infos h2 { color: var(--sand); }
.infos .lead { color: var(--ink-onDark); margin-top: 1.375rem; }

.usp {
  margin-top: var(--gap-l);
  width: 100%;
  display: grid;
  gap: var(--gap-l);
  text-align: center;
}
@media (min-width: 48rem) { .usp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .usp { grid-template-columns: repeat(4, 1fr); } }

.usp__item { display: grid; justify-items: center; align-content: start; }
.usp__icon { color: var(--sand); margin-bottom: 1.125rem; }
.usp__item h3 { color: var(--sand); }
.usp__item p {
  margin-top: 0.75rem;
  font-size: var(--t-body-s);
  color: var(--ink-onDark);
  max-width: 34ch;
}

.infos__action { margin-top: var(--gap-l); }

.infos__media {
  height: var(--media-h);
  overflow: hidden;
}
.infos__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
}

/* ---------- 11. Vorschau-Fade ---------- */

.handoff {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  max-height: clamp(24rem, 32.6vw, 29.375rem);
}
.handoff__preview { padding-top: clamp(3rem, 6.94vw, 6.25rem); }
.handoff .lead { margin-top: 1.25rem; max-width: 40ch; }

.handoff__cards {
  margin-top: var(--gap-l);
  display: grid;
  gap: var(--gap-m);
  grid-template-columns: repeat(3, 1fr);
}
.handoff__card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.handoff__thumb {
  display: block;
  height: clamp(5rem, 10.4vw, 9.375rem);
  background: var(--sand);
}
.handoff__card .label { display: block; padding: 1.625rem 1.875rem; }

.handoff__veil {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72%;
  background: linear-gradient(to bottom, rgba(251, 248, 239, 0) 0%, rgba(251, 248, 239, 0.86) 46%, var(--cream) 100%);
  pointer-events: none;
}

/* ---------- 12. Pflicht-Abschluss: Pitch ---------- */

.pitch { background: var(--cream); }
.pitch__inner {
  padding-top: clamp(3rem, 6.94vw, 6.25rem);
  padding-bottom: clamp(3.5rem, 8.61vw, 7.75rem);
  display: grid;
  gap: var(--gap-l);
}
@media (min-width: 64rem) {
  .pitch__inner { grid-template-columns: 14.25rem 1fr; gap: 4rem; align-items: start; }
}

.pitch__photo { margin: 0; }
.pitch__photo img {
  width: 14.25rem;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.pitch__photo figcaption {
  margin-top: 1rem;
  font-size: var(--t-body-s);
  font-weight: 500;
  color: var(--ink);
}

.pitch__eyebrow { text-transform: none; letter-spacing: 0.08em; }
.pitch__eyebrow-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.pitch__title { margin-block: 1.375rem 0.875rem; }
.pitch__cta { margin-top: 2rem; }
.pitch__cta .cta__icon { color: var(--green); flex: 0 0 auto; }
.pitch__cta:hover .cta__icon,
.pitch__cta:focus-visible .cta__icon { color: var(--cream); }
.pitch__fine {
  margin-top: 1.625rem;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* ---------- 13. Bewegung reduzieren ---------- */

@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;
  }
}
