/* ==========================================================
   Hillstar Media – Redesign Querfurt (Landingpage)
   Gestaltung: Indigo + Lime (Hillstar-CI), Signatur = Bogen-Ecke
   aus den Hillstar-Teamfotos, Hero = Vorher/Nachher-Regler
   ========================================================== */

/* Schrift: Inter (Open Source, lokal eingebunden, keine externen Server) */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  --indigo: #0a0444;
  --indigo-deep: #060230;
  --indigo-surface: #14096b;
  --indigo-line: #2a1f8f;
  --lime: #95c11f;
  --lime-bright: #b4dc3a;
  --frost: #eef1f8;
  --white: #ffffff;
  --mute-d: #b7b3e8;
  --text-d: #dedcf8;
  --mute-l: #3b3778;

  --display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad: clamp(20px, 5vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--indigo);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.8rem, 3.3vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.15; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--lime-bright); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--lime); color: var(--indigo); padding: 12px 18px; font-weight: 400; border-radius: 8px;
}
.skip:focus { left: 12px; }

/* ---------- Sektionen ---------- */
.sec { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 140px); }
.sec-dark { background: var(--indigo); color: var(--white); }
.sec-surface { background: var(--indigo-surface); color: var(--white); }
.sec-frost { background: var(--frost); color: var(--indigo); }
.sec-frost p { color: var(--mute-l); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 36em; }
.sec-dark .lead { color: var(--text-d); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  padding: 0.95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 400; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--indigo); }
.btn-lime:hover { background: var(--lime-bright); box-shadow: 0 10px 30px rgba(149, 193, 31, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--indigo); border-color: var(--white); }
.btn-dark { background: var(--indigo); color: var(--white); }
.btn-dark:hover { background: var(--indigo-surface); box-shadow: 0 10px 30px rgba(10, 4, 68, .35); }
.btn-ghost-dark { border-color: rgba(10, 4, 68, .4); color: var(--indigo); }
.btn-ghost-dark:hover { background: var(--indigo); color: var(--white); border-color: var(--indigo); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 4, 68, .6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background-color .3s ease;
}
.site-header.scrolled { background: rgba(10, 4, 68, .88); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); }
.main-nav ul { display: flex; gap: clamp(22px, 3vw, 38px); list-style: none; font-weight: 400; font-size: 1.02rem; }
.main-nav ul a { position: relative; padding: 6px 0; }
.main-nav ul a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav ul a:hover::after { transform: scaleX(1); }
.tel-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: var(--lime); color: var(--indigo); font-weight: 400; font-size: .98rem;
  transition: background-color .2s ease, transform .2s ease;
}
.tel-btn svg { width: 17px; height: 17px; fill: currentColor; }
.tel-btn:hover { background: var(--lime-bright); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (min-width: 861px) {
  .brand img { height: 54px; }
  .header-in { min-height: 84px; }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block; position: relative; z-index: 120; width: 40px; height: 28px;
    background: none; border: 0; cursor: pointer; color: var(--white);
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ''; position: absolute; left: 4px; right: 4px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }
  .nav-toggle::before { top: 5px; }
  .nav-toggle span { top: 13px; }
  .nav-toggle::after { top: 21px; }
  .nav-toggle[aria-expanded="true"]::before { top: 13px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { top: 13px; transform: rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] span { opacity: 0; }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 40px;
    background: var(--indigo); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 26px; font-family: var(--display); font-weight: 900; font-size: 2rem; }
  .tel-btn { font-size: 1.1rem; padding: 14px 26px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--indigo);
  padding-top: clamp(112px, 16vh, 168px); padding-bottom: clamp(56px, 9vh, 112px);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(104, 72, 255, .30), transparent 70%),
    radial-gradient(48% 45% at 0% 100%, rgba(149, 193, 31, .14), transparent 72%);
}
.hero-glow {
  position: absolute; width: 70vmax; height: 70vmax; left: var(--gx, 72%); top: var(--gy, 30%);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(149, 193, 31, .15), transparent 62%);
  transition: left .7s ease-out, top .7s ease-out;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.hero h1 {
  font-weight: 900; letter-spacing: -0.028em; line-height: 0.98;
  font-size: clamp(2.1rem, 4.3vw, 4.1rem); margin-bottom: 0.42em;
}
.hero-text > p { color: var(--text-d); font-size: clamp(1.08rem, 1.45vw, 1.22rem); max-width: 31em; margin-bottom: 1.7em; }

/* ---------- Vorher/Nachher ---------- */
.ba-wrap { filter: drop-shadow(0 34px 50px rgba(0, 0, 0, .45)); }
.ba {
  --pos: 40%;
  --cut: clamp(58px, 9vw, 112px);
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; container-type: inline-size;
  border-radius: 26px 0 26px 26px; background: #e6d7a3;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
          mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
  user-select: none; -webkit-user-select: none;
}
.ba-layer {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; font-size: 3.1cqw;
}
.ba-after { clip-path: inset(0 0 0 var(--pos)); -webkit-clip-path: inset(0 0 0 var(--pos)); }

/* alt */
.ba-before { background: linear-gradient(160deg, #f0e2a8 0%, #e0b45e 100%); color: #5b1010; }
.old-frame {
  width: 84%; padding: 1.6em 1em 1.2em; border: 0.55em double #8b1a1a; background: rgba(255, 245, 200, .55);
  display: flex; flex-direction: column; align-items: center; gap: 0.7em;
}
.old-clip { width: 6.8em; height: auto; filter: drop-shadow(0.25em 0.3em 0 rgba(0, 0, 0, .35)); }
.old-title {
  font-family: 'Times New Roman', Times, serif; font-weight: 900; font-size: 2.55em; line-height: 1;
  color: #b01212; text-shadow: 0.06em 0.06em 0 #ffd34d, 0.12em 0.12em 0 #333; transform: skew(-4deg);
}
.old-slogan { font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', cursive; font-style: italic; font-size: 1.25em; color: #1a3f9c; }
.old-contact { font-family: Arial, sans-serif; font-size: 0.82em; color: #333; border-top: 1px solid #8b1a1a; padding-top: 0.6em; width: 100%; }

/* neu */
.ba-after { background: radial-gradient(120% 90% at 100% 0%, #2a1c9e 0%, #0a0444 55%, #060230 100%); color: var(--white); }
.new-logo { width: 78%; height: auto; }
.new-claim { font-size: 1.3em; margin: 1.5em 0 0; color: var(--text-d); }
.new-bars { display: flex; gap: 0.5em; margin-top: 1.4em; }
.new-bars span { width: 3.2em; height: 0.5em; border-radius: 1em; background: var(--lime); }
.new-bars span:nth-child(2) { background: var(--white); }
.new-bars span:nth-child(3) { background: #6848ff; }
.new-url { font-size: 0.9em; margin: 1.2em 0 0; color: var(--mute-d); letter-spacing: 0.04em; }

.ba-tag {
  position: absolute; bottom: 4%; z-index: 3; padding: 0.35em 0.95em; border-radius: 999px;
  font-weight: 400; font-size: 13px; pointer-events: none;
}
.ba-tag-l { left: 4%; background: #1b1b1b; color: #fff; }
.ba-tag-r { right: 4%; background: var(--lime); color: var(--indigo); }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; z-index: 4;
  background: var(--white); box-shadow: 0 0 0 1px rgba(10, 4, 68, .25); pointer-events: none;
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230a0444' d='M8.6 6 3 12l5.6 6 1.4-1.3L5.8 12 10 7.3zM15.4 6 14 7.3 18.2 12 14 16.7l1.4 1.3L21 12z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.ba-range {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none;
}
.ba:focus-within .ba-knob { outline: 3px solid var(--lime-bright); outline-offset: 3px; }
.ba-note { margin: 18px 0 0; font-size: .92rem; color: var(--mute-d); }

/* ---------- Ticker ---------- */
.ticker { background: var(--lime); color: var(--indigo); overflow: hidden; padding-top: 1.05rem; padding-bottom: 1.05rem; white-space: nowrap; }
.ticker-track { display: flex; width: max-content; animation: tick 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; list-style: none; }
.ticker li { display: flex; align-items: center; padding-left: 1.4rem; padding-right: 1.4rem; font-family: var(--display); font-weight: 900; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.ticker li svg { width: 1.2em; height: 1.2em; margin-left: 2.8rem; fill: var(--indigo); flex-shrink: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Angebot + Ablauf ---------- */
.offer h2 { max-width: 12em; }
.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); padding-bottom: 38px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--lime); color: var(--lime);
  display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.15rem;
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--lime), rgba(149, 193, 31, 0));
}
.steps strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--mute-d); }

/* ---------- SEO-Text + Illustration ---------- */
.seo h2 { max-width: 12em; }
.seo .copy p { max-width: 34em; }
.paper { position: relative; filter: drop-shadow(0 26px 40px rgba(10, 4, 68, .18)); }
.paper::before {
  content: ''; position: absolute; left: -16px; bottom: -16px; width: 62%; height: 62%;
  background: var(--lime); border-radius: 28px;
}
.paper-in {
  --cut: clamp(52px, 8vw, 100px);
  position: relative; background: var(--white); border-radius: 28px 0 28px 28px; padding: clamp(14px, 2vw, 30px);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
          mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
}
.paper-in img { width: 100%; height: auto; }

/* ---------- Team ---------- */
.team-head { max-width: 46em; }
.team-head p { color: var(--text-d); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); }
.person { perspective: 900px; }
.tilt { transition: transform .25s ease-out; transform-style: preserve-3d; will-change: transform; }
.person img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 26px; transition: filter .3s ease; }
.person:hover img { filter: drop-shadow(0 20px 34px rgba(149, 193, 31, .3)); }
.person h3 { margin: 1.1em 0 0.3em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.person h3::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 0.4em; background: var(--lime); border-radius: 4px; }
.person p { color: var(--mute-d); max-width: 30em; }

/* ---------- Weitere Leistungen ---------- */
.svc { list-style: none; margin-top: clamp(32px, 5vw, 60px); }
.svc li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(16px, 4vw, 64px); padding-top: 1.6rem; padding-bottom: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.svc li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.svc h3 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.9rem); }
.svc p { color: var(--text-d); margin: 0 0 .8em; max-width: 34em; }
.btn-sm { padding: 0.7em 1.35em; font-size: .95rem; }
@media (max-width: 760px) { .svc li { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { position: sticky; top: 120px; max-width: 9em; }
.faq details { border-bottom: 1px solid rgba(10, 4, 68, .16); }
.faq details:first-of-type { border-top: 1px solid rgba(10, 4, 68, .16); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 1.5rem; padding-bottom: 1.5rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.faq .plus { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); transition: transform .3s ease, background-color .2s ease; }
.faq .plus::before, .faq .plus::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--white); }
.faq .plus::after { transform: rotate(90deg); transition: transform .3s ease; }
.faq details[open] .plus { background: var(--lime); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: var(--indigo); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq summary:hover .plus { transform: scale(1.08); }
.faq .answer { padding-bottom: 1.6rem; }
.faq .answer p { margin: 0; max-width: 36em; }
.faq details[open] .answer { animation: faq-in .35s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA ---------- */
.cta-sec { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.cta {
  --cut: clamp(70px, 11vw, 160px);
  position: relative; overflow: hidden; background: var(--lime); color: var(--indigo);
  border-radius: 34px 0 34px 34px; padding: clamp(36px, 7vw, 96px);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
          mask: radial-gradient(circle at 100% 0, transparent var(--cut), #000 calc(var(--cut) + 1px));
}
.cta-mark { position: absolute; right: -4%; bottom: -22%; width: min(46%, 440px); fill: var(--indigo); opacity: .09; transform: rotate(-12deg); pointer-events: none; }
.cta > *:not(.cta-mark) { position: relative; }
.cta h2 { font-size: clamp(2rem, 5vw, 4.2rem); max-width: 11em; font-weight: 900; letter-spacing: -0.03em; }
.cta p { color: var(--indigo); max-width: 34em; font-size: clamp(1.08rem, 1.5vw, 1.25rem); margin-bottom: 1.8em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; color: var(--mute-d); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid .logo-f { height: 54px; width: auto; margin-bottom: 18px; }
.footer-grid h2, .footer-grid .fh { font-family: var(--body); font-size: .95rem; font-weight: 400; letter-spacing: 0; margin: 0 0 14px; color: var(--white); }
.footer-grid p { margin: 0 0 .4em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--lime-bright); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: var(--white); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--lime); color: var(--indigo); border-color: var(--lime); }
.footer-bottom { padding-top: 24px; font-size: .9rem; }

/* ---------- Reveal (sparsam: nur Ablauf) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid, .two-col, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid h2 { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .paper { margin-right: 16px; }
}
@media (max-width: 640px) {
  .people { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .ticker li svg { margin-left: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker ul[aria-hidden="true"] { display: none; }
  .ticker { white-space: normal; }
  .hero-glow, .tilt, .btn, .reveal { transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .faq details[open] .answer { animation: none; }
}
