/* acemaker landing page (26.10.2026). Values from the design draft
   landingpage/2026_10_26-Landingpage-Designdraft/Main.dc.html; fonts are self-hosted
   (no request to Google), see fonts/README.md. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body { margin: 0; background: #0D1520; }
* { box-sizing: border-box; }
a { color: #D5E532; text-decoration: none; }
a:hover { color: #E6F27A; }
.navlink { color: #93A0B3; }
.navlink:hover { color: #E8EDF5; }
.btn-lime { background: #D5E532; color: #0A0F18; }
.btn-lime:hover { background: #E4F25E; color: #0A0F18; }
.btn-ghost { color: #E8EDF5; border: 1px solid #2E3B55; }
.btn-ghost:hover { border-color: #93A0B3; color: #FFFFFF; }
.btn-dark { background: #0A0F18; color: #E8EDF5; }
.btn-dark:hover { background: #1C2639; color: #FFFFFF; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #3A4866; background: #0D1520; color: #E8EDF5; font: inherit; font-size: 16px; }
.field:focus { outline: 2px solid #D5E532; outline-offset: 1px; }
textarea.field { padding: 12px 14px; min-height: 96px; resize: vertical; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .2s ease; }
.ov { position: absolute; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
@media (max-width: 720px) {
  .ov { position: static !important; width: auto !important; max-width: 340px; margin: 12px auto 0; }
}
@keyframes am-bary { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@keyframes am-flow { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes am-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Interactive parts (main.js): tabs, pack switch, forms. */
[hidden] { display: none !important; }
.tab-btn, .pack-btn { cursor: pointer; font: inherit; border: 0; }
.tab-btn[aria-pressed="true"] { background: #D5E532; color: #0A0F18; }
.tab-btn[aria-pressed="false"] { background: transparent; color: #C9D2E0; }
.tab-btn[aria-pressed="true"] .tab-badge { background: #0A0F18; color: #D5E532; }
.tab-btn[aria-pressed="false"] .tab-badge { background: #1C2639; color: #93A0B3; }
.pack-btn[aria-pressed="true"] { background: #1C2639; color: #E8EDF5; }
.pack-btn[aria-pressed="false"] { background: transparent; color: #93A0B3; }
.tl-seg { flex: 1 1 0; height: 5px; border-radius: 3px; display: block; background: #3A4866; transition: background .15s; }
.tl-seg.done { background: #74A9F5; }
.tl-seg.now { background: #D5E532; }
.obs-card { border: 1px solid #2E3B55; transition: border-color .2s; }
.obs-card.active { border-color: #D5E532; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #C9D2E0; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #D5E532; flex: 0 0 18px; }
.form-error { margin: 0; font-size: 14px; color: #F4B65A; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .6; cursor: wait; }
h1, h2, h3 { overflow-wrap: break-word; }

/* Below 900 px the section links no longer fit next to logo and buttons (same links in
   the footer). */
@media (max-width: 900px) {
  nav[aria-label="Hauptnavigation"] { display: none !important; }
  .head-actions { margin-left: auto; }
}

/* Phones (26.10.2026): the draft's desktop spacing left too little room below 720 px.
   The inline styles of the markup need !important here. */
@media (max-width: 720px) {
  header > div { padding: 12px 16px !important; }
  main > section { padding-left: 16px !important; padding-right: 16px !important; }
  main > section:not(.hero):not(.cta-section) { padding-top: 64px !important; padding-bottom: 64px !important; }
  main > section.hero { padding-top: 40px !important; padding-bottom: 56px !important; }
  main > section.cta-section { padding-bottom: 64px !important; }
  footer { padding: 40px 16px !important; }
  footer a.navlink { display: inline-block; padding: 6px 0; }
  .cta-box { padding: 32px 24px !important; }
  #panel-trainer, #panel-spieler, #panel-akademie { padding: 24px 20px !important; gap: 28px !important; }
  #analyse [role="img"] { padding: 20px !important; }
  .price-card { padding: 24px !important; }
  .price-card-hl { padding: 23px !important; }
  .pack-btn { font-size: 13px !important; } /* "100 Analysen" in one line from 375 px */
  .flow-line { display: none; } /* the steps stack, a horizontal line would hang in the air */
  /* Eight phase names do not fit side by side: vertical, read from bottom to top. */
  .phase-labels { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: 10px; }
  .phase-labels > span { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; align-self: start; white-space: nowrap; }
}
@media (max-width: 480px) {
  .head-cta { display: none !important; } /* the hero's button follows right below */
}

/* Hero title (28.10.2026): at 62 px "Aufschlaganalyse" (about 8.2 × the font size) was wider
   than the text column next to the phone from ~1180 px on and broke inside the word. The size
   now also follows the column (container query): never more than 11.5 % of its width. */
.hero-copy { container-type: inline-size; }
.hero-copy .hero-title { font-size: clamp(32px, min(4.8vw, 11.5cqi), 62px) !important; }
.nowrap { white-space: nowrap; }
/* Pack switch (28.10.2026): with three price cards side by side (~1000–1180 px) the switch is
   only ~240 px wide and "100 Analysen" broke onto two lines. Below 270 px the buttons show
   just the number; "Analysen" stays for screen readers. */
.pack-btn { white-space: nowrap; }
.pack-switch { container-type: inline-size; }
@container (max-width: 270px) {
  .pack-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Section headings (28.10.2026): no single word alone in the last line (e.g. "liegt" at
   720–768 px). Browsers without text-wrap simply break as before. */
h2, h3 { text-wrap: balance; }
/* The closing call-to-action on very small phones (320 px): one line instead of two. */
@media (max-width: 400px) {
  .cta-box .btn-dark { font-size: 16px !important; padding: 16px 18px !important; }
}
/* Hero on tablets (06.11.2026): from 721 to 1087 px the phone wraps below the text and its
   column took the full width, so the cards (right: 0 / left: 0) stuck to the page edges, far
   from the centred phone. At most 660 px, centred, the cards overlap the phone as on a computer
   (at 1200 px the column is exactly 660 px wide, so nothing changes there). */
.hero-media { max-width: 660px; margin: 0 auto; }
