/* Startseiten-Hero: helles Vollbild-Foto aus dem Cockpit, ruhige Typografie, Kompassband.
   Passt zur hellen Seite (Weiß, helles Blau, Marineblau). Die Bewegungen laufen bewusst auch bei
   "Bewegung reduzieren" (langsam und zurückhaltend). */

.hero.hero-xl {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(56px, 7vw, 104px) 0 0;
  min-height: min(calc(100vh - 72px), 940px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
}
.hero.hero-xl::before, .hero.hero-xl::after { display: none; }

/* ---------- Foto ---------- */
.hx-photo { position: absolute; inset: -4% 0 -4% 0; z-index: -3; overflow: hidden; will-change: transform; }
.hx-photo img {
  position: absolute; top: 0; bottom: 0; right: 0; width: 88%; height: 100%; object-fit: cover;
  object-position: 50% 42%; transform-origin: 0% 45%; scale: 1.26;
  filter: saturate(1.08) contrast(1.02);
  animation: hxSettle 2.6s cubic-bezier(.16, .84, .24, 1) both, hxDrift 38s ease-in-out 2.6s infinite alternate;
}
@keyframes hxSettle { from { scale: 1.48; opacity: 0; } 18% { opacity: 1; } to { scale: 1.26; opacity: 1; } }
@keyframes hxDrift { from { translate: 0 0; } to { translate: -1.4% -1%; } }

/* Weißer Verlauf von links für dunklen Text, unten läuft das Bild sauber in die weiße Seite aus */
.hx-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .96) 28%, rgba(255, 255, 255, .72) 44%, rgba(255, 255, 255, .22) 62%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 70%, #fff 100%);
}
.hx-grain { display: none; }

/* ---------- Inhalt ---------- */
.hero-xl .hx-wrap { max-width: 1360px; padding: 0 clamp(20px, 4vw, 56px); flex: 1; display: flex; align-items: center; padding-bottom: clamp(36px, 5vw, 72px); }
.hero-xl .hero-grid { width: 100%; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 4.5vw, 80px); align-items: center; }

.hx-kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 650; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 28px; }
.hx-kicker i { display: block; width: 46px; height: 2px; background: var(--blue); transform-origin: 0 50%; animation: hxLine 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes hxLine { from { transform: scaleX(0); } to { transform: none; } }

.hero-xl h1 { color: var(--ink); font-size: clamp(40px, 5.3vw, 84px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 26px; font-weight: 750; text-wrap: balance; }
.js .hero-xl h1 { animation: none; }
.hx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .16em; margin: 0 -.05em -.16em; }
.hx-w > span { display: inline-block; transform: translateY(112%); opacity: 0; animation: hxWord 1.1s cubic-bezier(.16, .84, .24, 1) forwards; animation-delay: calc(.3s + var(--i, 0) * 90ms); }
@keyframes hxWord { to { transform: none; opacity: 1; } }

/* Akzentwort im Blau der Seite, mit sehr leichtem Schimmer */
.hero-xl h1 .accent, .js .hero-xl h1 .accent, .js .hero-xl h1 .accent.hl { background: none; color: var(--blue); }
.hero-xl h1 .accent .hx-w > span { background: linear-gradient(95deg, #0f56bd 0%, #3b86f0 50%, #0f56bd 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hxWord 1.1s cubic-bezier(.16, .84, .24, 1) forwards, hxWarm 7s ease-in-out 1.8s infinite; animation-delay: calc(.3s + var(--i, 0) * 90ms), 1.8s; }
@keyframes hxWarm { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-xl .lede { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 21px); max-width: 600px; margin-bottom: 38px; }

.hero-xl .btn-row { gap: 28px; align-items: center; }
.hero-xl .btn { padding: 18px 32px; font-size: 16.5px; }
.hero-xl .btn-primary.hx-cta { position: relative; overflow: hidden; gap: 12px; box-shadow: 0 14px 34px rgba(21, 101, 216, .35); }
.hero-xl .btn-primary.hx-cta:hover { box-shadow: 0 18px 44px rgba(21, 101, 216, .48); }
.hero-xl .btn-primary.hx-cta::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-18deg); animation: hxSheen 6s ease-in-out 2.2s infinite; }
@keyframes hxSheen { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.hero-xl .btn-primary.hx-cta svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.hero-xl .btn-primary.hx-cta:hover svg { transform: translateX(5px); }

.hx-link { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--blue-dark); font-weight: 650; font-size: 16.5px; padding: 6px 0; text-decoration: none; }
.hx-link::after { content: ''; position: absolute; left: 0; right: 26px; bottom: 0; height: 2px; background: currentColor; transform: scaleX(.28); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.hx-link:hover { color: var(--blue); text-decoration: none; }
.hx-link:hover::after { transform: scaleX(1); }
.hx-link svg { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.hx-link:hover svg { transform: translateX(5px); }

/* Drei Zusagen: nummeriert, nur feine Linien, keine Kästen */
.hx-proofs { list-style: none; margin: clamp(36px, 4.5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 36px); border-top: 0; }
.hx-proofs .proof { position: relative; padding-top: 18px; border-top: 1px solid rgba(14, 34, 56, .16); display: block; }
.hx-proofs .proof::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 2px; background: var(--blue); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.hx-proofs .proof:hover::before { width: 100%; }
.hx-proofs b { display: block; font-size: 12.5px; letter-spacing: .16em; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.hx-proofs strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; margin-bottom: 4px; }
.hx-proofs span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }

/* ---------- Handy und Gründerkarte ---------- */
.hx-visual { position: relative; min-height: clamp(420px, 44vw, 620px); }
.hero-xl .hero-phone { position: absolute; right: 4%; top: 50%; width: min(330px, 68%); margin-top: -34%; z-index: 2; filter: drop-shadow(0 34px 44px rgba(14, 34, 56, .38)); }
.hero-xl .hero-phone .phone { transform: rotate(3deg); animation: floaty 8s ease-in-out infinite; }
.lite .hero-xl .hero-phone .phone { animation: floaty 8s ease-in-out infinite; }

.hx-founder { position: absolute; left: 0; bottom: 6%; z-index: 3; display: flex; align-items: center; gap: 16px; max-width: 340px; padding: 14px 20px 14px 14px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 22px 54px rgba(14, 34, 56, .22), 0 2px 6px rgba(14, 34, 56, .06); }
.hx-founder img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--blue); }
.hx-founder strong { display: block; font-size: 16px; line-height: 1.25; color: var(--ink); }
.hx-founder span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }

/* Eintritt */
.js .hero-xl .lede { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .85s both; }
.js .hero-xl .btn-row { animation: rise 1s cubic-bezier(.2, .7, .2, 1) 1s both; }
.js .hero-xl .hx-proofs { animation: none; }
.js .hero-xl .proof { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-xl .proof:nth-child(1) { animation-delay: 1.25s; }
.js .hero-xl .proof:nth-child(2) { animation-delay: 1.37s; }
.js .hero-xl .proof:nth-child(3) { animation-delay: 1.49s; }
.js .hero-xl .hero-phone { animation: hxPhoneIn 1.4s cubic-bezier(.16, .84, .24, 1) .9s both; }
@keyframes hxPhoneIn { from { opacity: 0; transform: translateY(120px) rotate(-6deg); } to { opacity: 1; transform: none; } }
.js .hero-xl .hx-founder { animation: rise 1s cubic-bezier(.2, .7, .2, 1) 1.5s both; }
.lite.js .hero-xl .hx-proofs, .lite.js .hero-xl h1 { animation: none; }

/* ---------- Kompassband ---------- */
.hx-tape { position: relative; height: 54px; border-top: 1px solid rgba(14, 34, 56, .1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.hx-tape-track { position: absolute; left: 50%; top: 8px; width: 3620px; will-change: transform; transform: translateX(calc(-1810px + var(--tp, 0px))); animation: hxTape 140s linear infinite; }
@keyframes hxTape { to { translate: -1800px 0; } }
.hx-tape-svg { display: block; stroke: rgba(14, 34, 56, .4); stroke-width: 1.3; fill: rgba(14, 34, 56, .55); font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.hx-tape-svg text { stroke: none; }
.hx-caret { position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--blue); }

/* Scroll-Hinweis */
.hx-scroll { position: absolute; right: clamp(20px, 4vw, 56px); bottom: 78px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(14, 34, 56, .6); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl; text-decoration: none; z-index: 3; }
.hx-scroll:hover { color: var(--ink); text-decoration: none; }
.hx-scroll i { display: block; width: 1.5px; height: 56px; background: rgba(14, 34, 56, .14); position: relative; overflow: hidden; }
.hx-scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--blue); animation: hxScroll 2.4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes hxScroll { from { top: -40%; } to { top: 110%; } }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
  .hx-proofs { grid-template-columns: 1fr; gap: 14px; }
  .hx-proofs .proof { padding-top: 12px; }
}
@media (max-width: 960px) {
  .hero.hero-xl { min-height: 0; padding-top: 44px; }
  .hx-shade { background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 50%, rgba(255, 255, 255, .96) 100%); }
  .hx-photo img { width: 100%; object-position: 70% 40%; transform-origin: 50% 45%; }
  .hero-xl .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hx-visual { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 12px; }
  .hero-xl .hero-phone { position: relative; right: auto; top: auto; margin: 0; width: min(280px, 72%); }
  .hx-founder { position: relative; left: auto; bottom: auto; max-width: 100%; }
  .hx-scroll { display: none; }
}
@media (max-width: 560px) {
  .hero-xl h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-xl .btn-row { gap: 18px; }
  .hero-xl .btn-primary.hx-cta { width: 100%; }
}
@media print { .hx-tape, .hx-scroll { display: none; } }

/* ---------- Startseite: engere Abstände unter der App-Bühne ---------- */
@media (min-width: 961px) and (min-height: 720px) { .app-pin-track { margin-bottom: -7vh; } }
#app + .band { padding: 52px 0; }
#app + .band + section { padding: 52px 0 40px; }
#app + .band + section .sec-head { margin-bottom: 30px; }
#app + .band + section + .ticker { padding: 8px 0 14px; }
#app + .band + section + .ticker + .band-dark { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 960px) {
  #app .app-pin-sticky { padding: 40px 0 20px; }
  #app .app-features { margin-bottom: 16px; }
  #app .store-note { margin: 10px 0 0; }
  #app + .band { padding: 32px 0; }
  #app + .band .person { gap: 18px; }
  #app + .band .person img { width: 120px; height: 120px; }
  #app + .band + section { padding: 36px 0 24px; }
  #app + .band + section .sec-head { margin-bottom: 20px; }
  #app + .band + section .faq-q { padding: 16px 0; font-size: 17px; }
  #app + .band + section + .ticker { padding: 0 0 6px; }
  #app + .band + section + .ticker .ticker-row { font-size: clamp(44px, 9vw, 72px); }
  #app + .band + section + .ticker + .band-dark { padding-top: 44px; padding-bottom: 44px; }
}
