/* =========================================================
   Horizon Bay – Startseite
   ========================================================= */

/* ---------- Hero ---------- */
.hb-hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); }
.hb-hero-media { position: absolute; inset: 0; overflow: hidden; }
.hb-hero-img { position: absolute; inset: -4% 0 0; width: 100%; height: 108%; object-fit: cover; object-position: 50% 22%; will-change: transform; }
.hb-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, .72) 0%, rgba(4, 7, 12, .08) 28%, rgba(4, 7, 12, .25) 55%, rgba(4, 7, 12, .92) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgba(4, 7, 12, .55) 0%, rgba(4, 7, 12, 0) 55%);
}
.hb-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 2.6vw, 36px);
  padding: calc(var(--header) + 36px) 0 clamp(28px, 4vw, 48px);
}
.hb-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: auto; }
.hb-hero-scroll { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.hb-hero-scroll i { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line-2); }
.hb-hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: var(--ink); animation: hbScrollLine 2.2s var(--ease-io) infinite; }
.hb-hero-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  /* passt immer in den Inhaltsbereich (Schriftzug ist ca. 4,9 Schriftgrößen breit) */
  font-size: min(calc((100vw - var(--gutter) * 2) / 5.05), calc(var(--container) / 5.05));
  line-height: .8;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: -.035em;
  will-change: transform;
}
.hb-hero-title .hb-accent { color: var(--accent); }
.hb-hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 32px 48px;
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid rgba(238, 243, 249, .16);
}
.hb-hero-lead { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; color: var(--ink-2); }
.hb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-hero-stats { display: flex; justify-content: flex-end; gap: clamp(24px, 3vw, 48px); margin: 0; }
.hb-hero-stats > div { display: flex; flex-direction: column; gap: 6px; }
.hb-hero-stats dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hb-hero-stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 70%; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.hb-hero-stats small { margin-left: 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--ink-3); }

/* ---------- Laufband ---------- */
.hb-band { position: relative; padding: clamp(26px, 3vw, 40px) 0; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.hb-band-track { display: flex; width: max-content; align-items: center; will-change: transform; }
.hb-band-track > span {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(56px, 8.4vw, 140px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.hb-band-track > span.hb-o { -webkit-text-stroke: 1.5px rgba(238, 243, 249, .55); }
.hb-star { flex: none; width: .26em; height: .26em; margin: 0 .42em; background: var(--accent); transform: rotate(45deg); font-size: clamp(56px, 8.4vw, 140px); }

/* ---------- Über uns ---------- */
.hb-about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: end; }
.hb-about-media { position: relative; margin: 0; }
.hb-about-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); clip-path: inset(0 0 0 0 round var(--r-lg)); }
.hb-about-frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hb-about-media figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.hb-about-copy { display: flex; flex-direction: column; gap: 28px; }
.hb-facts { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hb-facts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hb-facts-n { grid-row: span 2; padding-top: 4px; font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.hb-facts b { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; font-size: 24px; line-height: 1; text-transform: uppercase; }
.hb-facts li > span:last-child { font-size: 14px; color: var(--ink-3); }

/* ---------- Features (horizontal) ---------- */
.hb-features { position: relative; background: var(--bg-1); border-block: 1px solid var(--line); }
.hb-ft-pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 5vw, 64px); padding-block: var(--sec); overflow: hidden; }
.hb-ft-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hb-ft-head > div:first-child { display: flex; flex-direction: column; gap: 28px; }
.hb-ft-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; text-align: right; }
.hb-ft-meta .hb-text { max-width: 34ch; }
.hb-ft-count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.hb-ft-count b { font-weight: 500; color: var(--ink); }
.hb-ft-track {
  display: flex;
  gap: clamp(16px, 1.6vw, 24px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  will-change: transform;
}
.hb-ft-card {
  position: relative;
  flex: none;
  width: clamp(300px, 30vw, 460px);
  height: clamp(460px, 64vh, 640px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  isolation: isolate;
}
.hb-ft-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; will-change: transform; }
.hb-ft-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 12, .15) 0%, rgba(4, 7, 12, 0) 30%, rgba(4, 7, 12, .7) 62%, rgba(4, 7, 12, .96) 100%); }
.hb-ft-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 34px); }
.hb-ft-num { position: absolute; z-index: 1; top: clamp(20px, 2vw, 28px); left: clamp(24px, 2.4vw, 34px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--ink); }
.hb-ft-ic { position: absolute; z-index: 1; top: clamp(16px, 1.6vw, 22px); right: clamp(16px, 1.6vw, 22px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 7, 12, .5); border: 1px solid var(--line-2); color: var(--ink); }
.hb-ft-body .hb-h3 { font-size: clamp(28px, 2.4vw, 38px); }
.hb-ft-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---------- So startest du ---------- */
.hb-steps { position: relative; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hb-step {
  position: relative;
  display: grid;
  grid-template-columns: clamp(80px, 11vw, 170px) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 24px clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hb-step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--acc-rgb), .07), transparent 60%); opacity: 0; transition: opacity .6s var(--ease); }
.hb-step:hover::before { opacity: 1; }
.hb-step-n { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-size: clamp(56px, 6.6vw, 104px); line-height: .8; color: var(--ink-4); transition: color .6s var(--ease); }
.hb-step:hover .hb-step-n { color: var(--accent); }
.hb-step-body { display: flex; flex-direction: column; gap: 10px; }
.hb-step-body .hb-h3 { font-size: clamp(26px, 2.4vw, 38px); }
.hb-step-body p { margin: 0; max-width: 52ch; color: var(--ink-2); }
.hb-step-act { justify-self: end; }
.hb-copy {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 7px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .4s ease;
}
.hb-copy:hover { border-color: rgba(var(--acc-rgb), .6); }
.hb-copy b { font-weight: 500; color: var(--accent-ink); }
.hb-copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--f-sans); font-size: 13px; font-weight: 600; }

/* ---------- Partner ---------- */
.hb-partners { border-top: 1px solid var(--line); }
.hb-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hb-marquee-track { display: flex; width: max-content; animation: hbMarquee 60s linear infinite; }
.hb-marquee:hover .hb-marquee-track { animation-play-state: paused; }
.hb-marquee-half { display: flex; }
.hb-partner {
  flex: none;
  width: 340px;
  margin-right: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: border-color .5s var(--ease), background-color .5s var(--ease);
}
.hb-partner:hover { border-color: var(--line-2); background: var(--surface-2); }
.hb-partner-top { display: flex; align-items: center; gap: 16px; }
.hb-partner-logo { flex: none; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); }
.hb-partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.hb-partner-logo span { font-family: var(--f-display); font-weight: 900; font-stretch: 66%; font-size: 22px; color: var(--accent); }
.hb-partner-txt { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-partner-txt b { font-family: var(--f-display); font-weight: 800; font-stretch: 72%; font-size: 24px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-partner-txt > span:last-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.hb-partner-soc { display: flex; gap: 8px; min-height: 38px; padding-top: 18px; border-top: 1px solid var(--line); }
.hb-partner-soc .hb-soc { width: 38px; height: 38px; }

/* ---------- News ---------- */
.hb-news { border-top: 1px solid var(--line); }
.hb-news-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); }
.hb-news-card { display: flex; flex-direction: column; gap: 22px; }
.hb-news-media { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); aspect-ratio: 16 / 10; clip-path: inset(0 0 0 0 round var(--r-lg)); }
.hb-news-media > img, .hb-news-media > .hb-cover { position: absolute; inset: 0; width: 100%; height: 100%; transition: scale 1.2s var(--ease); }
.hb-news-media > img { object-fit: cover; }
.hb-news-card:hover .hb-news-media > img, .hb-news-card:hover .hb-news-media > .hb-cover { scale: 1.05; }
.hb-news-card h3 { margin: 0; font-family: var(--f-display); font-weight: 860; font-stretch: 66%; font-size: clamp(32px, 3.2vw, 52px); line-height: .92; text-transform: uppercase; transition: color .4s ease; }
.hb-news-card:hover h3 { color: var(--accent-ink); }
.hb-news-card p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.hb-news-side { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.hb-news-side .hb-news-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 22px; }
.hb-news-side .hb-news-media { aspect-ratio: 4 / 3; }
.hb-news-side .hb-news-card h3 { font-size: clamp(24px, 2vw, 32px); }
.hb-news-txt { display: flex; flex-direction: column; gap: 14px; }

/* ---------- FAQ ---------- */
.hb-faq-sec { border-top: 1px solid var(--line); }
.hb-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.hb-faq-head { position: sticky; top: calc(var(--header) + 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hb-faq-list { border-top: 1px solid var(--line); }
.hb-faq { border-bottom: 1px solid var(--line); }
.hb-faq button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .4s ease;
}
.hb-faq button:hover, .hb-faq.is-open button { color: var(--ink); }
.hb-faq-chev { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease); }
.hb-faq-chev::before, .hb-faq-chev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .6s var(--ease); }
.hb-faq-chev::after { transform: rotate(90deg); }
.hb-faq.is-open .hb-faq-chev { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.hb-faq.is-open .hb-faq-chev::after { transform: rotate(0deg); }
.hb-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.hb-faq.is-open .hb-faq-a { grid-template-rows: 1fr; }
.hb-faq-a > div { overflow: hidden; }
.hb-faq-a p { margin: 0; padding: 0 64px 30px 0; max-width: 62ch; color: var(--ink-2); line-height: 1.75; opacity: 0; transform: translateY(-8px); transition: opacity .5s ease, transform .7s var(--ease); }
.hb-faq.is-open .hb-faq-a p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---------- Call to Action ---------- */
.hb-cta { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.hb-cta-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 0 round 0); will-change: clip-path; }
.hb-cta-media img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.hb-cta-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 30% 55%, rgba(4, 7, 12, .78), rgba(4, 7, 12, .35) 70%), linear-gradient(180deg, rgba(4, 7, 12, .35), rgba(4, 7, 12, .55)); }
.hb-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 30px; padding-block: var(--sec); }
.hb-cta-inner .hb-h1 { max-width: 11ch; }
.hb-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ohne Animationen: Feature-Strecke von Hand wischen */
html.no-motion .hb-ft-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
html.no-motion .hb-ft-card { scroll-snap-align: start; }

@keyframes hbScrollLine { 0% { transform: translateY(-110%); } 60%, to { transform: translateY(240%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .hb-hero-bottom { grid-template-columns: 1fr 1fr; }
  .hb-hero-stats { grid-column: 1 / -1; justify-content: flex-start; }
  .hb-about-grid { grid-template-columns: 1fr; }
  .hb-ft-head { flex-direction: column; align-items: flex-start; }
  .hb-ft-meta { align-items: flex-start; text-align: left; }
  .hb-ft-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .hb-ft-track::-webkit-scrollbar { display: none; }
  .hb-ft-card { scroll-snap-align: start; scroll-margin-left: var(--gutter); width: min(78vw, 420px); height: min(118vw, 560px); }
  .hb-news-layout { grid-template-columns: 1fr; }
  .hb-faq-grid { grid-template-columns: 1fr; }
  .hb-faq-head { position: static; }
}

@media (max-width: 767px) {
  .hb-hero-title { font-size: calc((100vw - var(--gutter) * 2) / 5.05); }
  .hb-hero-bottom { grid-template-columns: 1fr; gap: 22px; }
  .hb-hero-actions .hb-btn { flex: 1 1 auto; }
  .hb-hero-stats { justify-content: space-between; gap: 16px; }
  .hb-hero-stats dd { font-size: 26px; }
  .hb-hero-scroll { display: none; }
  .hb-step { grid-template-columns: 64px minmax(0, 1fr); }
  .hb-step-act { grid-column: 2; justify-self: start; }
  .hb-copy { height: 52px; font-size: 12px; padding-left: 16px; gap: 10px; }
  .hb-news-side .hb-news-card { grid-template-columns: 1fr; }
  .hb-faq button { padding: 22px 0; }
  .hb-faq-a p { padding-right: 0; }
  .hb-partner { width: 280px; }
  .hb-cta { min-height: 0; }
}
