/* ==========================================================================
   Japanese Walking Coach – Website
   Farbwelt aus der App-Illustration (Sonnenuntergang am Fuji):
   Himmel #B02628, Boden #A21E23, Markenrot #822026 (IntervalDefaults.redColor),
   Sonne #F7A25B. Helle Abschnitte auf warmem Papierton.
   ========================================================================== */

/* ===== Tokens ===== */
:root {
  --sky:        #B02628;
  --sky-low:    #D94C28;
  --ground:     #A21E23;
  --brand:      #822026;
  --sun:        #F7A25B;
  --red:        var(--sky);
  --red-dark:   var(--brand);

  --paper:      #FBF4EC;
  --paper-alt:  #F5E9DD;
  --surface:    #FFFBF6;
  --ink:        #2B1314;
  --ink-muted:  #6E4B47;
  --line:       rgba(43,19,20,.12);
  --night:      #5E1619;
  --night-ink:  #F3D9D2;
  --footer:     #2A0F10;

  /* Altnamen für Rechtsseiten / 404 */
  --bg:         var(--paper);
  --bg-alt:     var(--surface);
  --text:       var(--ink);
  --text-muted: var(--ink-muted);

  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:     14px;
  --shadow-device: 0 28px 50px -18px rgba(70,12,14,.55), 0 8px 18px -8px rgba(70,12,14,.35);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --max-width:  1120px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }
::selection { background: rgba(247,162,91,.45); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link, .skip-link:hover { color: #fff; }
#main { scroll-margin-top: 64px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,244,236,.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.nav-logo:hover { color: var(--ink); }
.nav-icon { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; list-style: none; gap: 28px; margin-left: auto; padding-left: 32px; }
.nav-links a { font-size: .95rem; color: var(--ink-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--sky); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; margin-right: -10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex; gap: 8px; align-items: center; margin-left: 20px; padding-left: 20px;
  border-left: 1px solid var(--line);
}
.lang-switcher a {
  position: relative;
  font-size: .75rem; font-weight: 700; color: var(--ink-muted); padding: 4px 10px; text-decoration: none;
  border-radius: 999px; transition: color .2s, background-color .2s; letter-spacing: .04em;
}
.lang-switcher a::after { content: ""; position: absolute; inset: -10px -4px; }
.lang-switcher a:hover { color: var(--sky); background: rgba(176,38,40,.07); }
.lang-switcher a.active { color: #fff; background: var(--brand); pointer-events: none; }

/* ===== Scene (Hero + Abschluss) ===== */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.scene { --sun-y: 0px; }
.scene .sun { transform-box: view-box; transform-origin: 720px 830px; transform: translateY(var(--sun-y)); }
.scene-rise .sun { animation: sunrise 1.8s var(--ease-out) both; }
@keyframes sunrise { from { transform: translateY(calc(var(--sun-y) + 70px)); } to { transform: translateY(var(--sun-y)); } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; text-align: center;
  padding-top: 88px;
  background: var(--sky);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 22px; }
.hero-lead { font-size: 1.2rem; max-width: 36em; margin: 0 auto 32px; color: #FFF4EC; }
.hero-req { margin-top: 18px; font-size: .95rem; color: #FFF4EC; }
.hero-devices {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: flex-end;
  margin: 56px auto -150px;
  padding-left: 60px;
}
.hero .device-phone { width: 290px; }
.hero .device-watch { width: 190px; margin-right: -64px; margin-bottom: 190px; z-index: 2; transform: rotate(-4deg); }

.cta-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; }
.app-store-badge { display: inline-block; border-radius: 13px; line-height: 0; }
.app-store-badge img { width: 190px; height: auto; transition: transform .25s var(--ease-out); }
.app-store-badge:hover img { transform: translateY(-2px); }
.hero :focus-visible, .cta-band :focus-visible, .privacy-section :focus-visible, .footer :focus-visible { outline-color: #fff; }
.trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; font-weight: 600; font-size: .98rem; }
.trust-line li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.icon-check { width: 16px; height: 16px; flex: 0 0 auto; color: var(--sun); stroke-width: 2.5; }

/* ===== Devices ===== */
.device { background: #1B0F10; box-shadow: var(--shadow-device); }
.device img { width: 100%; }
.device-phone { border-radius: 48px; padding: 10px; }
.device-phone img { border-radius: 39px; }
.device-watch { border-radius: 56px; padding: 15px; }
.device-watch img { border-radius: 42px; }

/* ===== Sections ===== */
section[id] { scroll-margin-top: 72px; }
main section { padding: 104px 0; }
main section h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.015em; margin-bottom: 16px; }
.section-lead { color: var(--ink-muted); font-size: 1.15rem; max-width: 60ch; margin-bottom: 56px; }

/* ===== Method ===== */
.method { background: var(--paper); }
.flow { margin-bottom: 64px; padding: 28px 28px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.flow h3 { font-size: 1rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 18px; }
.flow-bar { display: flex; gap: 4px; height: 14px; margin-bottom: 22px; }
.flow-bar span { flex: 3; border-radius: 7px; }
.seg-easy { background: var(--sun); }
.seg-fast { background: var(--sky); }
.flow-list { list-style: none; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; }
.flow-time { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--brand); }
.flow-what { color: var(--ink-muted); font-size: .95rem; }
.flow-what strong { display: block; color: var(--ink); }
.flow-note { margin-top: 18px; color: var(--ink-muted); font-size: .9rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.benefit { border-top: 2px solid var(--brand); padding-top: 18px; }
.benefit h3 { font-size: 1.2rem; margin-bottom: 6px; }
.benefit p { color: var(--ink-muted); font-size: .98rem; }

/* ===== Showcase ===== */
.showcase { background: var(--paper-alt); }
.showcase h2 { margin-bottom: 64px; }
.step { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.step + .step { margin-top: 96px; }
.step:nth-child(odd of .step) .step-text { order: 2; }
.step-text h3 { font-size: 1.65rem; line-height: 1.2; margin-bottom: 12px; }
.step-text p { color: var(--ink-muted); font-size: 1.08rem; max-width: 40ch; }
.step-shots { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.step .device-phone { width: 240px; }
.step .device-watch { width: 190px; }

/* ===== Features ===== */
.features { background: var(--paper); }
.features h2 { margin-bottom: 48px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feature .icon { width: 30px; height: 30px; color: var(--sky); margin-bottom: 14px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { font-size: .98rem; color: var(--ink-muted); }

/* ===== Privacy ===== */
.privacy-section { background: var(--night); color: #fff; }
.privacy-content { max-width: 760px; }
.icon-lg { width: 40px; height: 40px; color: var(--sun); margin-bottom: 18px; }
.privacy-text { max-width: 58ch; margin-bottom: 30px; font-size: 1.15rem; color: var(--night-ink); line-height: 1.7; }
.btn-outline {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 2px solid var(--brand); color: var(--brand); text-decoration: none;
  padding: 10px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.privacy-section .btn-outline { border-color: var(--night-ink); color: #fff; }
.privacy-section .btn-outline:hover { background: #fff; color: var(--night); }

/* ===== FAQ ===== */
.faq-section { background: var(--paper); }
.faq-section h2 { margin-bottom: 36px; }
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { color: var(--sky); }
.faq-item p { color: var(--ink-muted); padding: 0 40px 26px 0; max-width: 65ch; }

/* ===== Closing CTA ===== */
main .cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding: 120px 0 320px; background: var(--sky); }
.cta-band .scene { --sun-y: 170px; }
.cta-band-content { position: relative; z-index: 1; }
main .cta-band h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-band p { font-size: 1.15rem; margin-bottom: 32px; color: #FFF4EC; }

/* ===== Footer ===== */
.footer { padding: 40px 0; background: var(--footer); color: #CDB2AC; font-size: .92rem; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #E9CFC8; display: inline-block; padding: 12px 4px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; margin-top: 8px; }

/* ===== Legal Pages ===== */
.legal-page { padding: 96px 0 72px; min-height: 70vh; }
.legal-page > .container { max-width: 760px; }
.legal-page p, .legal-page ul { max-width: 68ch; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-page .legal-date { color: var(--ink-muted); font-size: .9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.3rem; margin: 36px 0 12px; color: var(--brand); }
.legal-page p, .legal-page li { color: var(--ink-muted); font-size: 1rem; line-height: 1.7; }
.legal-page ul { padding-left: 20px; margin: 8px 0; }
.legal-page li { margin-bottom: 4px; }

/* ===== 404 ===== */
.notfound { padding: 120px 0 80px; min-height: 70vh; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: 4.5rem; font-weight: 800; color: var(--sky); line-height: 1; margin-bottom: 16px; }
.notfound h1, .notfound .h1-like { font-size: 1.7rem; margin-bottom: 8px; }
.notfound p { color: var(--ink-muted); margin-bottom: 24px; }
.notfound .lang-block + .lang-block { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { gap: 18px; padding-left: 20px; }
  .nav-links a { font-size: .9rem; }
  .lang-switcher { margin-left: 14px; padding-left: 14px; }
  main section { padding: 80px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 32px; }
  .step:nth-child(odd of .step) .step-text { order: 0; }
  .step + .step { margin-top: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; background: var(--paper); padding: 8px 24px 16px; gap: 0; box-shadow: 0 12px 24px -12px rgba(43,19,20,.25); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-container { gap: 12px; }
  .nav-logo { margin-right: auto; font-size: 1rem; line-height: 1.2; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .lang-switcher { border-left: none; margin-left: 0; padding-left: 0; flex-shrink: 0; }

  .hero { padding-top: 56px; }
  .hero .scene { --sun-y: 130px; }
  .hero-lead { font-size: 1.08rem; }
  .hero-devices { margin: 44px auto -110px; padding-left: 40px; }
  .hero .device-phone { width: 210px; }
  .hero .device-watch { width: 132px; margin-right: -44px; margin-bottom: 150px; }
  .device-phone { border-radius: 36px; padding: 8px; }
  .device-phone img { border-radius: 29px; }
  .device-watch { border-radius: 40px; padding: 11px; }
  .device-watch img { border-radius: 30px; }

  .flow { padding: 20px; }
  .flow-list { grid-template-columns: 1fr; gap: 16px; }
  .benefits, .features-grid { grid-template-columns: 1fr; gap: 28px; }
  .step-shots { gap: 16px; }
  .step .device-phone { width: 46%; }
  .step .device-watch { width: 40%; }
  .faq-item p { padding-right: 0; }
  main .cta-band { padding: 88px 0 240px; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-rise .sun { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .app-store-badge:hover img { transform: none; }
}
