/* =========================================================================
   Seite: aspect app (Athleten Portal) – /aspect-app/
   Prefix: .app-
   ========================================================================= */

/* Manrope-Datei ist variabel (200–800). site.css deklariert nur 400–800;
   das Original nutzt Fliesstext in 300 – daher hier der leichte Bereich. */
.page-aspect-app {
  --app-ink: #1b2226;
  --app-teal: #1a3840;
  --app-fs-large: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
  --app-fs-medium: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.392), 18px);
}

/* wie im Original-Theme: ausgewogene Umbrueche, minimal enger Fliesstext */
.page-aspect-app main :is(p, h2, h3) { text-wrap: pretty; }
.page-aspect-app main { letter-spacing: -0.1px; }

/* ---------- Hero ---------- */
.app-hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 10px 100px 65px;
  margin-bottom: 100px;
  background: #3a2c1c url(/static/uploads/2025/07/Coaching-Mail.webp) no-repeat 26% 100% / cover fixed;
  overflow: hidden;
}
.app-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(14, 14, 14, .87) 18%, rgba(70, 45, 0, .32) 100%);
}
.app-hero__inner { position: relative; }
.app-hero__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 130px; font-weight: 800; line-height: .8; letter-spacing: -12px;
  text-shadow: 5px 5px 8px #000;
}
.app-hero__title em { font-style: italic; }
.app-hero__sub {
  margin: 0 0 10px;
  color: #fff;
  font-size: 50px; font-weight: 700; line-height: 1.125; letter-spacing: -2px;
  text-shadow: 5px 5px 8px #000;
}

/* ---------- Intro-Satz ---------- */
.app-intro { padding: 100px 12px 180px; }
.app-intro__text {
  max-width: 1200px; margin: 0 auto;
  text-align: center; color: #111;
  font-size: clamp(21.536px, 1.346rem + ((1vw - 3.2px) * 1.32), 35px);
  font-weight: 400; letter-spacing: -1px; line-height: 1.4;
}
.app-intro__text strong { font-weight: 700; }

/* ---------- Ueberblick (weisser Block) ---------- */
.app-overview { background: #fff; padding: 100px 0 100px; margin-bottom: 100px; }
.app-container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.app-cols { display: grid; gap: 0; }
.app-col > * + * { margin-top: 19.2px; }
.app-col--center { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.app-eyebrow {
  margin: 0; padding: 50px 0 24px;
  color: #b97e1e; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
}
.app-overview__title {
  margin: 19.2px 0 0; padding-bottom: 24px;
  color: var(--app-ink); font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: 0;
}
.app-list { list-style: none; margin: 19.2px 0 0; padding: 0; }
.app-list li { margin: 0 0 10px; }
.app-list a {
  display: inline-flex; align-items: center;
  color: var(--app-ink); text-decoration: none;
  font-size: var(--app-fs-large); font-weight: 300; line-height: 1.4;
}
.app-list a:hover span { text-decoration: underline; }
.app-list__icon { width: 16px; height: 16px; margin-right: 15px; flex-shrink: 0; fill: currentColor; }
.app-overview__more {
  margin: 0; padding-bottom: 40px;
  color: var(--app-ink); font-size: var(--app-fs-medium); font-weight: 400; line-height: 1.55;
}
.app-preview { margin: 0 auto; width: 100%; max-width: 600px; }
.app-preview img { width: 100%; height: auto; margin-inline: auto; }
.app-col > .app-login { margin: 140px 0 0; text-align: center; }
.app-login__btn {
  display: inline-block;
  padding: 16px 36px;
  background: #153043; color: #fff;
  border-radius: 8px;
  font-size: 18px; font-weight: 600; line-height: 1.4; text-decoration: none;
  box-shadow: 0 20px 30px rgba(0, 0, 0, .15);
  transition: box-shadow .25s, transform .25s;
}
.app-login__btn:hover { color: #fff; box-shadow: 0 0 0 rgba(0, 0, 0, .15); }
.app-col > .app-login__note { margin: 10px 0; text-align: center; font-size: .875rem; font-weight: 400; color: #111; }

@media (min-width: 782px) {
  .app-cols { grid-template-columns: 1fr 1fr; column-gap: 50px; }
  .app-col { padding-inline: 20px; }
  .app-col--center { padding-block: clamp(30px, 5vw, 50px); }
}

/* ---------- Feature-Zeilen (Handy + Text) ---------- */
.app-feature {
  display: flex; align-items: center; justify-content: center;
  max-width: 1440px; margin: 0 auto 100px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.app-feature__media { flex: 0 0 max(25%, 330px); display: flex; justify-content: center; }
.app-feature__text { flex: 0 1 max(25%, 320px); }
.app-feature__text p {
  margin: 0;
  color: #111; font-size: var(--app-fs-large); font-weight: 400; line-height: 1.4;
}
.app-feature__text strong { font-weight: 700; }
.app-feature__text p.app-feature__kicker { margin: 0; color: var(--app-teal); font-weight: 300; }
.app-feature__kicker strong { font-weight: 300; }
.app-feature__title {
  margin: 0 0 15px;
  color: #111; font-size: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.392), 2rem);
  font-weight: 600; line-height: 1.125; letter-spacing: -0.1px;
}
.app-feature__text a { color: inherit; text-decoration: underline; }
.app-feature__text a:hover { color: var(--accent-dark); }

/* Handy-Rahmen (aus dem Original uebernommen) */
.app-phone {
  position: relative;
  width: 300px; max-width: 100%;
  margin: 10px 0 30px; padding: 10px;
  border-radius: 2.4rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #111 100%);
  box-shadow: 0 14px 25px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.app-phone__screen { position: relative; overflow: hidden; border-radius: 1.9rem; line-height: 0; }
.app-phone__screen img { display: block; width: 100%; height: auto; border-radius: 1.9rem; }
.app-phone__btn { position: absolute; width: 3px; background: #2a2a2a; }
.app-phone__btn--r1 { right: -3px; top: 28%; height: 52px; border-radius: 0 2px 2px 0; }
.app-phone__btn--r2 { right: -3px; top: 42%; height: 36px; border-radius: 0 2px 2px 0; }
.app-phone__btn--l1 { left: -3px; top: 26%; height: 40px; border-radius: 2px 0 0 2px; }
.app-phone__btn--l2 { left: -3px; top: 38%; height: 40px; border-radius: 2px 0 0 2px; }

/* ---------- Abschluss-CTA ---------- */
.app-cta { background: #0d2130; min-height: 350px; padding: 100px 0 0; display: flex; justify-content: center; }
.app-cta__inner { width: 90%; max-width: 1200px; padding-bottom: 100px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.app-cta__title { margin: 0; padding-bottom: 5px; color: #fff; font-size: 60px; font-weight: 800; line-height: 1.1; letter-spacing: 0; }
.app-cta__text { margin: 0; color: #fff; font-size: var(--app-fs-medium); font-weight: 400; line-height: 1.55; }
.app-cta__btn {
  display: inline-block; margin-top: 30px;
  padding: 16px 35px;
  background: #fff; color: #111;
  border-radius: 9999px;
  font-size: 18px; font-weight: 700; line-height: 1.4; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.app-cta__btn:hover { color: #111; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.app-cta__btn:focus-visible, .app-login__btn:focus-visible { outline-color: var(--accent); }

/* ---------- Tablet ---------- */
@media (max-width: 976px) {
  .app-hero { padding-left: 20px; background-position: 1% 80%; }
  .app-hero__title { font-size: 100px; letter-spacing: -8px; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767.98px) {
  .app-hero {
    padding: 100px 10px 100px 20px;
    background-image: url(/static/uploads/2026/08/Carb-Lab-Background.webp);
    background-position: 76% 83%;
  }
  .app-hero__title { font-size: 46px; letter-spacing: -2px; }
  .app-hero__sub { font-size: 25px; }

  .app-overview__title { font-size: 28px; }
  .app-col--center { padding-block: 30px; }
  .app-col > .app-login { margin-top: 70px; }
  .app-col > .app-preview { margin-top: 0; }

  .app-feature { flex-direction: column; align-items: stretch; padding: 0 20px; row-gap: 20px; }
  .app-feature__text { order: -1; flex: none; }
  .app-feature__media { flex: none; }
  .app-cta__title { font-size: 28px; }
}

/* iOS/Android: kein fixes Hintergrundbild auf Touch-Geraeten (Ruckeln/iOS ignoriert es) */
@media (hover: none) {
  .app-hero { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .app-hero { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .app-phone { width: min(360px, 88vw); margin-inline: auto; }
}
