/* Website myntory.com – Design-Tokens und Schriften wie die App (CLAUDE.md), selbst gehostet */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #f3eee4;
  --surface: #fbf8f2;
  --input: #fffdf8;
  --line: #d9cfbf;
  --line-soft: #e4dacb;
  --field-border: #cfc5b4;
  --ink: #17201c;
  --muted: #56615b;
  --accent: #1e6b57;
  --accent-strong: #134a3c;
  --accent-soft: #e3efea;
  --warn-text: #8a4510;
  --warn-soft: #f8ecdd;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --breite: 960px;
  --rand: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Kopf */
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: 10px var(--rand); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.marke { font: 700 1.35rem var(--font-display); color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 999px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sprache { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 760px) {
  .nav { order: 0; width: auto; }
}

/* Inhalt */
main { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand) 40px; }
.held { padding: 48px 0 32px; }
.held-klein { padding-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.gruppe { border-top: 1px solid var(--line); padding: 28px 0 12px; }
.liste { padding-left: 1.2em; margin: 0 0 1em; }
.liste li { margin-bottom: 0.5em; }
.schritte li::marker { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.kacheln { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kachel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px; }
.kachel p { margin: 0; color: var(--muted); }
.hinweise { color: var(--warn-text); }
.hinweise .liste { background: var(--warn-soft); border-radius: 12px; padding: 16px 16px 8px 36px; }
.versionen { list-style: none; padding: 0; margin: 0; }
.version { border-top: 1px solid var(--line-soft); padding: 14px 0 4px; }
.version:first-child { border-top: 0; }
.version time { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; margin-left: 8px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--surface); font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--accent-strong); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.knopf-zweit { background: transparent; color: var(--ink); border: 1px solid var(--field-border); }
.knopf-zweit:hover { background: var(--surface); }
.knopf-klein { min-height: 44px; padding: 0 16px; font-size: 0.95rem; background: var(--accent); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Formular */
.formular { display: grid; gap: 6px; max-width: 560px; }
.formular label { font-weight: 600; margin-top: 12px; }
.formular input, .formular select, .formular textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--input);
  border: 1px solid var(--field-border); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.formular [aria-invalid='true'] { border-color: var(--warn-text); }
.formular .knopf { margin-top: 12px; justify-self: start; }
.hinweis { color: var(--muted); font-size: 0.92rem; margin: 0; }
.meldung { background: var(--warn-soft); color: var(--warn-text); border-radius: 12px; padding: 12px 14px; margin: 8px 0 0; }
.danke { background: var(--accent-soft); color: var(--accent-strong); border-radius: 12px; padding: 16px; font-weight: 600; max-width: 560px; }
.versteckt { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 12px; min-height: 0; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 20px var(--rand); color: var(--muted); font-size: 0.95rem; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.fuss a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 420px) {
  .nav a { padding: 10px 9px; font-size: 0.95rem; }
}

/* ---------- Startseite neu (1.6.3a): großer Einstieg, Szene mit Punkten, Animationen ---------- */
.held { padding: 56px 0 28px; text-align: left; }
.held h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: 14em; }
.held .lead { font-size: clamp(1.1rem, 2.6vw, 1.3rem); }
.geraete { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }
.icon { width: 24px; height: 24px; flex: none; }

.szene { padding: 8px 0 28px; }
.szene h2 { margin-bottom: 4px; }
.szene-hinweis { color: var(--muted); margin-bottom: 12px; }
.szene-flaeche { position: relative; background: linear-gradient(#f8f4ec, var(--bg)); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; }
.szene-bild { display: block; width: 100%; height: auto; }
.punkt { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--surface);
  background: var(--accent); color: var(--surface); font: 700 20px/1 var(--font-display); cursor: pointer; padding: 0;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(23, 32, 28, 0.25); transition: transform 0.25s, background 0.25s; }
.punkt::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--accent); animation: puls 2.2s ease-out infinite; }
.punkt.aktiv { background: var(--warn); transform: scale(1.18); }
.punkt.aktiv::before { border-color: var(--warn); }
.punkt::after { content: ''; position: absolute; inset: -8px; } /* größere Tippfläche */
@keyframes puls { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.szene-info { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 16px 18px; margin-top: 12px; min-height: 92px; }
.szene-info .icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); }
.szene-info h3 { margin: 2px 0 4px; }
.szene-info p { margin: 0; color: var(--muted); }
.szene-info.neu { animation: einblenden 0.45s ease-out both; }
.szene-liste { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.szene-eintrag { display: flex; gap: 12px; }
.szene-eintrag .icon { color: var(--accent); margin-top: 3px; }
.szene-eintrag h3 { margin: 0; } .szene-eintrag p { margin: 0; color: var(--muted); }
html.js .szene-liste { display: none; }
html:not(.js) .punkt, html:not(.js) .szene-hinweis { display: none; }
/* leichte Bewegung in der Szene */
.szene-bild .auto { animation: wippen 5s ease-in-out infinite; }
.szene-bild .baum { animation: wiegen 6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes wippen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes wiegen { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.schritte-grid, .sicher-grid, .karten { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.schritte-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.schritt { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px 20px 18px; }
.schritt p { margin: 0; color: var(--muted); }
.schritt-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 12px; }
.schritt-icon .icon { width: 26px; height: 26px; }
.schritt-nr { position: absolute; top: 16px; right: 18px; font: 700 2rem var(--font-display); color: var(--line); }
.sicher-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sicher-grid li { display: flex; gap: 12px; align-items: center; font-weight: 600; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.sicher-grid .icon { color: var(--accent); }
.wer p { max-width: 46em; }
.karten { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 28px; }
.karte { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 20px 20px 8px; }
.karte h2 { font-size: 1.25rem; }
.karte-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 10px; }
.aeltere summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Einblenden */
@keyframes einblenden { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.einblenden { animation: einblenden 0.7s ease-out both; }
.verzoegert { animation-delay: 0.12s; } .verzoegert2 { animation-delay: 0.24s; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
html.js .reveal.sichtbar { opacity: 1; transform: none; }
.schritte-grid .reveal:nth-child(2), .sicher-grid .reveal:nth-child(2), .karten .reveal:nth-child(2n) { transition-delay: 0.1s; }
.schritte-grid .reveal:nth-child(3), .sicher-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.sicher-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .punkt { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 17px; border-width: 2px; }
}
/* Szene auf dem Handy größer und seitlich wischbar, statt winzig */
.szene-innen { position: relative; }
@media (max-width: 640px) {
  .szene-flaeche { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .szene-flaeche::-webkit-scrollbar { display: none; }
  .szene-innen { width: 640px; }
}
