/* Startseite: One-Page mit Hero, Vorteilen, Ablauf, Formular, FAQ */
html { scroll-behavior: smooth; }
body:has(.lp) .public-wrap { display: block; padding: 0; min-height: 0; }
body:has(.lp) { background: var(--bg); }
.lp { overflow-x: clip; }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 860px; }

/* Fortschrittsbalken */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--sun), var(--rose), var(--primary)); box-shadow: 0 0 12px rgba(255,159,67,.7); }

/* Kopfleiste über dem Hero: hell auf dunkel, nach dem Scrollen Theme-Farben */
body:has(.hero3) .sitebar:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
body:has(.hero3) .sitebar:not(.scrolled) .sitebar-brand,
body:has(.hero3) .sitebar:not(.scrolled) .sitebar-link { color: #fff; }
body:has(.hero3) .sitebar:not(.scrolled) .sitebar-brand small { color: rgba(255,255,255,.75); }
.sitebar-link { position: relative; padding: .35rem 0; font-size: .95rem; }
.sitebar-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.sitebar-link:hover { text-decoration: none; }
.sitebar-link:hover::after, .sitebar-link.active::after { transform: scaleX(1); }
@media (max-width: 960px) { .sitebar-link { display: none; } }

/* Reveal-Animationen (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(32px) scale(.98); transition: opacity .9s cubic-bezier(.2,.8,.2,1) var(--delay, 0s), transform .9s cubic-bezier(.2,.8,.2,1) var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero3 { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 7.5rem 1.2rem 5.5rem; overflow: hidden;
  background: linear-gradient(130deg, #17123f 0%, #35299b 40%, #6c4df0 70%, #ff8a5c 115%); background-size: 220% 220%; animation: gshift 16s ease infinite; }
@keyframes gshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero3-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 14s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: #ff9f43; top: -140px; right: -90px; }
.b2 { width: 380px; height: 380px; background: #ff6b9d; bottom: -120px; left: -80px; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #00c2a8; top: 38%; left: 42%; opacity: .22; animation-delay: -9s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 30px) scale(.94); } }
.grain { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px; }
.spark { position: absolute; left: var(--x); bottom: -12px; width: calc(10px * var(--s)); height: calc(10px * var(--s)); border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255,214,120,.2)); box-shadow: 0 0 12px rgba(255,214,120,.9); opacity: 0; animation: rise var(--t) linear var(--d) infinite; }
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translateY(-55vh) translateX(18px); } 100% { transform: translateY(-115vh) translateX(-12px); opacity: 0; } }
.hero3-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; padding: .4rem 1rem; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); font-weight: 700; font-size: .85rem; letter-spacing: .03em; }
.hero3 h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 900; margin: 1.1rem 0 1rem; color: #fff; }
.hero3 .grad { background: linear-gradient(90deg, #ffe3a8, #ff9f43, #ff6b9d, #ffe3a8); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 220% center; } }
.hero3 p { font-size: 1.15rem; max-width: 34rem; color: rgba(255,255,255,.88); margin: 0 0 1.8rem; }
.hero3-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.btn.big { padding: .95rem 1.7rem; font-size: 1.05rem; border-radius: 16px; position: relative; overflow: hidden; }
.btn.big svg { width: 18px; height: 18px; transition: transform .25s; }
.btn.big:hover svg { transform: translateX(5px); }
.btn.sun.big { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 6px 22px rgba(255,159,67,.45), 0 0 0 0 rgba(255,159,67,.5); } 50% { box-shadow: 0 6px 22px rgba(255,159,67,.45), 0 0 0 14px rgba(255,159,67,0); } }
.btn.glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(8px); box-shadow: none; }
.btn.glass:hover { background: rgba(255,255,255,.22); }
.hero3-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat b { font-size: 2.6rem; line-height: 1; font-weight: 900; letter-spacing: -.03em; }
.hstat span { font-size: .85rem; color: rgba(255,255,255,.75); margin-top: .25rem; }
.hero3-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.rays { position: absolute; width: 150%; aspect-ratio: 1; top: 50%; left: 50%; margin: -75% 0 0 -75%; border-radius: 50%; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.5) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-card { position: relative; background: #fff; border-radius: 38px; padding: 16px; box-shadow: 0 40px 90px rgba(10,6,40,.55); width: min(380px, 78vw); animation: bob 6s ease-in-out infinite; transition: transform .15s; transform-style: preserve-3d; }
.logo-card img { width: 100%; height: auto; display: block; border-radius: 26px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 99px; background: rgba(255,255,255,.95); color: #1b1b3a; font-weight: 800; font-size: .85rem; box-shadow: 0 12px 30px rgba(10,6,40,.3); animation: bob 5s ease-in-out infinite; }
.chip svg { width: 18px; height: 18px; color: var(--primary); }
.chip.c1 { top: 8%; left: -2%; animation-delay: -1s; }
.chip.c2 { bottom: 14%; right: -4%; animation-delay: -2.5s; }
.chip.c3 { bottom: 2%; left: 6%; animation-delay: -4s; }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; width: 28px; height: 46px; margin-left: -14px; border: 2px solid rgba(255,255,255,.7); border-radius: 18px; z-index: 3; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 3px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }

/* Abschnitte */
.sec { padding: 6.5rem 1.2rem; position: relative; }
.sec-alt { background: var(--card); }
.sec-title { text-align: center; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 900; letter-spacing: -.03em; margin: 0 0 .8rem; }
.sec-title::after { content: ""; display: block; width: 64px; height: 5px; margin: .9rem auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--sun)); transform: scaleX(0); transition: transform .8s .3s cubic-bezier(.2,.8,.2,1); }
.sec-title.in::after, .no-js .sec-title::after { transform: scaleX(1); }
.sec-sub { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 42rem; margin: 0 auto 3rem; }

/* Vorteile */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 1.8rem 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.vcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--primary) 18%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; }
.vcard:hover { transform: translateY(-10px); box-shadow: 0 26px 50px rgba(108,92,231,.22); }
.vcard:hover::before { opacity: 1; }
.vcard h3 { font-size: 1.2rem; margin: 1.1rem 0 .5rem; position: relative; }
.vcard p { color: var(--muted); margin: 0; position: relative; }
.vico { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 22px rgba(108,92,231,.4); transition: transform .5s cubic-bezier(.2,1.4,.4,1); position: relative; }
.vico svg { width: 28px; height: 28px; }
.vico.v2 { background: linear-gradient(135deg, var(--rose), #ffa8c5); box-shadow: 0 10px 22px rgba(255,107,157,.4); }
.vico.v3 { background: linear-gradient(135deg, var(--sun), #ffc371); box-shadow: 0 10px 22px rgba(255,159,67,.45); }
.vico.v4 { background: linear-gradient(135deg, var(--mint), #5eead4); box-shadow: 0 10px 22px rgba(0,194,168,.4); }
.vcard:hover .vico { transform: rotate(-10deg) scale(1.12); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 2.15rem; left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--rose), var(--sun)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s .3s cubic-bezier(.3,.7,.2,1); }
.steps.in::before { transform: scaleX(1); }
.step { text-align: center; position: relative; padding: 0 .4rem; }
.step .num { position: relative; z-index: 2; display: inline-flex; width: 4.3rem; height: 4.3rem; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 0 0 8px var(--card), 0 12px 26px rgba(108,92,231,.45); }
.step:nth-child(2) .num { background: linear-gradient(135deg, var(--rose), #ffa8c5); }
.step:nth-child(3) .num { background: linear-gradient(135deg, var(--sun), #ffc371); }
.step:nth-child(4) .num { background: linear-gradient(135deg, var(--mint), #5eead4); }
.sico { width: 2.2rem; height: 2.2rem; margin: 1.1rem auto 0; color: var(--primary); }
.step h3 { margin: .5rem 0 .4rem; font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Formular */
.apply3 { background: radial-gradient(900px 400px at 10% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%), radial-gradient(700px 400px at 100% 100%, color-mix(in srgb, var(--sun) 14%, transparent), transparent 60%); }
.apply-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 1.8rem; box-shadow: 0 30px 70px rgba(27,27,58,.16); }
.apply-card::before { content: ""; position: absolute; inset: -2px; border-radius: 32px; padding: 2px; background: linear-gradient(135deg, var(--primary), var(--rose), var(--sun), var(--mint), var(--primary)); background-size: 300% 300%; animation: gshift 9s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; opacity: .55; }
.apply-card fieldset { background: var(--bg); }
.apply-card input:focus, .apply-card select:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); outline: none; border-color: var(--primary); transition: box-shadow .25s; }
.apply-card .btn[type=submit] { padding: .95rem 1.8rem; font-size: 1.05rem; border-radius: 16px; }

/* FAQ */
.faq { display: grid; gap: .9rem; margin-top: 2.4rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-align: left; cursor: pointer; }
.faq-q i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); transition: transform .4s, background .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--primary); border-radius: 2px; transition: transform .35s; }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i { background: var(--primary); transform: rotate(180deg); }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: #fff; }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* Kontakt */
.contact { padding-top: 2rem; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; flex-wrap: wrap; padding: 2.4rem 2.2rem; border-radius: 30px; color: #fff; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #3b2fa3, #6c4df0 55%, #ff8a5c 130%); background-size: 200% 200%; animation: gshift 12s ease infinite; box-shadow: 0 30px 70px rgba(108,92,231,.35); }
.contact-card h2 { margin: 0 0 .3rem; font-size: 1.9rem; }
.contact-card p { margin: 0; opacity: .9; }
.lp-foot { text-align: center; padding: 2.2rem 1rem 2.6rem; color: var(--muted); font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero3-in { grid-template-columns: 1fr; text-align: left; gap: 2rem; }
  .hero3-visual { min-height: 300px; order: -1; }
  .logo-card { width: min(260px, 62vw); }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .sec { padding: 4.5rem 1.1rem; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero3 { padding-top: 6rem; }
  .chip.c1 { left: 2%; } .chip.c2 { right: 0; }
  .hstat b { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .steps::before { transform: scaleX(1); }
  .sec-title::after { transform: scaleX(1); }
}

.lp-foot .credit { display: inline-block; margin-top: .4rem; font-size: .85rem; }
.lp-foot .credit a { color: var(--primary); font-weight: 700; }
