/* Garnida – Farben wie in der App: „Leinen“ hell, „Walnuss“ dunkel (haekelglueck/src/styles/app.css).
   Leinen als Grund, Espresso für Schrift, ein gedeckter Akzent in Ton. Wiederkehrendes Motiv ist die
   Luftmaschenkette mit einer Honig-Schlaufe (kette-*.svg), dazu das feine Papierkorn der App. */

@font-face { font-family: 'Figtree'; src: url('/fonts/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #F4EEE6;
  --bg-deep: #EAE2D7;
  --surface: #FCF9F5;
  --ink: #362C26;
  --ink-soft: #6E6158;
  --ink-faint: #928374;
  --line: #E4DBD0;
  --accent: #A05A40;
  --accent-soft: #F0DFD5;
  --arch: #E5D3C8;
  --butter: #D8B36C;
  --sage: #9AA88A;
  --rose: #DCC0B3;
  --lilac: #A9B5B8;
  --peach: #E6C7AE;
  /* Pro-Karte: Espresso mit Leinen-Schrift */
  --pro-bg: #362C26;
  --pro-ink: #F8F2EA;
  --pro-soft: #CDBFB2;
  --pro-accent: #E39C80;
  --pro-line: rgba(248, 242, 234, .14);
  --phone-shadow: drop-shadow(0 34px 40px rgba(54, 44, 38, .26)) drop-shadow(0 4px 8px rgba(54, 44, 38, .12));
  --shadow: 0 1px 2px rgba(54, 44, 38, .05), 0 18px 40px -18px rgba(54, 44, 38, .3);
  --kette: url('/garnida/kette-hell.svg');
  --grain-opacity: .3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1814;
    --bg-deep: #161210;
    --surface: #28211C;
    --ink: #F3ECE3;
    --ink-soft: #C8BAAC;
    --ink-faint: #8D7F73;
    --line: #3B322B;
    --accent: #DD8C6E;
    --accent-soft: #4A3026;
    --arch: #4A3026;
    --butter: #D7B46F;
    --sage: #A2AF92;
    --rose: #B98B7B;
    --lilac: #8E9BA0;
    --peach: #D3A283;
    --pro-bg: #4A3026;
    --pro-ink: #F8EDE6;
    --pro-soft: #DCC5B8;
    --pro-accent: #F2A587;
    --pro-line: rgba(255, 255, 255, .12);
    --phone-shadow: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)) drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --kette: url('/garnida/kette-dunkel.svg');
    --grain-opacity: .14;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; isolation: isolate; }
body::before {
  /* feines Papierkorn wie in der App */
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.40 0 0 0 0 0.32 0 0 0 0 0.24 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .laufband:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 96; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 560; color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kette { height: 18px; background: var(--kette) repeat-x left center / 220px 18px; }

/* Kopfzeile */
.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 20px; }
.home { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 50; font-weight: 600; font-size: 21px; }
.home img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.store { font-size: 14px; font-weight: 650; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; white-space: nowrap; }
.bar-end { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; font-weight: 650; color: var(--ink-soft); text-decoration: none; }
.lang:hover { color: var(--ink); text-decoration: underline; }

/* Start: Text links, das Telefon steht in einem Bogen */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: end; padding-top: 24px; }
.hero-text { align-self: center; padding-bottom: 64px; }
.hero-text .icon { display: block; width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.hero h1 { font-size: clamp(46px, 6.2vw, 82px); line-height: .96; letter-spacing: -.03em; margin: 30px 0 0; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 27em; margin: 24px 0 0; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 14px 24px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 700; }
.soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--butter); }
.fine { font-size: 15px; color: var(--ink-faint); margin: 16px 0 0; }

.hero-phone { position: relative; margin: 0; display: flex; justify-content: center; padding: 56px 0 0; }
.hero-phone::before { content: ''; position: absolute; left: 4%; right: 4%; top: 0; bottom: 0; border-radius: 999px 999px 0 0; background: var(--arch); }
.hero-phone > img { position: relative; width: clamp(240px, 25vw, 312px); height: auto; margin-bottom: -48px; filter: var(--phone-shadow); }
.ball { position: absolute; width: clamp(64px, 7vw, 92px); left: 0; bottom: 18%; }
.ball.klein { width: clamp(36px, 4vw, 50px); left: auto; right: 2%; top: 14%; bottom: auto; }

/* Bilder aus dem App Store als ruhiges Laufband. Die Liste steht mehrmals in der Spur (--kopien, breite
   Bildschirme brauchen mehr, das Skript ergänzt sie), die Spur wandert um genau eine Liste nach links,
   so schließt die Schleife nahtlos. Hält an unter der Maus und per Knopf. */
.band { background: var(--bg-deep); }
.blick { padding: 112px 0 64px; }
.blick .wrap { text-align: center; }
.blick h2, .features h2, .pricing h2, .help-head h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.04; margin: 0; }
.laufband { margin-top: 40px; padding: 8px 0 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.spur { --kopien: 2; display: flex; width: max-content; animation: laufen 80s linear infinite; }
.laufband:hover .spur, .laufband.steht .spur { animation-play-state: paused; }
@keyframes laufen { to { transform: translateX(calc(-100% / var(--kopien))); } }
.shots { display: flex; gap: 22px; margin: 0; padding: 0 22px 0 0; list-style: none; }
.shots li { flex: none; }
.shots img { display: block; width: clamp(200px, 21vw, 252px); height: auto; aspect-ratio: 600 / 1304; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.pause { display: flex; align-items: center; gap: 10px; margin: 0 auto; padding: 9px 16px 9px 12px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 99px; background: transparent; color: var(--ink-soft); font: 600 14px/1 'Figtree', system-ui, sans-serif; cursor: pointer; }
.pause:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pause svg { width: 16px; height: 16px; fill: currentColor; }
.pause .weiter, .pause.steht .halt { display: none; }
.pause.steht .weiter { display: block; }

/* Was drin ist */
.features { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 64px; padding-top: 112px; padding-bottom: 40px; }
.features-head { align-self: start; position: sticky; top: 32px; }
.features-head p:last-child { color: var(--ink-soft); margin: 20px 0 0; max-width: 22em; }
.features-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; list-style: none; margin: 0; padding: 0; }
.features-list li { border-top: 1px solid var(--line); padding-top: 26px; }
.ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: color-mix(in srgb, var(--c) 30%, var(--surface)); color: var(--accent); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features-list h3 { font-size: 22px; line-height: 1.2; margin: 18px 0 8px; }
.features-list p { color: var(--ink-soft); margin: 0; }

/* Preise */
.pricing { padding-top: 96px; padding-bottom: 120px; }
.pricing .head { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 40px auto 0; align-items: stretch; }
.plan { border-radius: 30px; padding: 34px 34px 30px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan h3 { font-size: 24px; margin: 0; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 14px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price b { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 50, 'opsz' 144; font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.plan-price span { color: var(--ink-soft); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 28px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 14px; width: 15px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; transform: rotate(-20deg); }
.plan-price.beide { gap: 16px 28px; }
.beide p { flex: 1 1 140px; margin: 0; }
.beide b { white-space: nowrap; }
.beide span { display: block; margin-top: 8px; }
.plan-note { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); }
.plan.pro { background: var(--pro-bg); border-color: transparent; color: var(--pro-ink); box-shadow: var(--shadow); }
.plan.pro h3 { color: var(--pro-ink); }
.plan.pro .plan-price { border-color: var(--pro-line); }
.plan.pro .plan-price span, .plan.pro .plan-note { color: var(--pro-soft); }
.plan.pro li::before { border-color: var(--pro-accent); }
.plan.pro li:first-child::before { background: var(--butter); border-color: var(--butter); }

/* Hilfe */
.help-band { padding: 104px 0 112px; }
.help { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.help-head { position: sticky; top: 32px; }
.contact { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.contact p { margin: 0; color: var(--ink-soft); }
.contact .mail { margin-top: 10px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.contact .mail a { color: var(--accent); }
details { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 50; font-size: 19px; font-weight: 560; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); font-family: 'Figtree', system-ui, sans-serif; font-size: 20px; line-height: 1; color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin: -4px 0 22px; max-width: 40em; }
details b { color: var(--ink); font-weight: 650; }

/* Rechtstexte */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.02; margin: 0; hyphens: auto; }
.doc .stand { color: var(--ink-soft); font-size: 15px; margin: 12px 0 0; }
.doc .short { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin-top: 24px; }
.doc h2 { font-family: 'Figtree', system-ui, sans-serif; font-variation-settings: normal; font-size: 19px; font-weight: 700; letter-spacing: 0; margin: 32px 0 6px; }
.doc p { margin: 8px 0 0; }

/* Fußzeile mit Luftmaschenkette als Kante */
.foot { margin-top: 72px; }
.foot::before { content: ''; display: block; height: 18px; background: var(--kette) repeat-x left center / 220px 18px; }
main:has(> .band:last-child) + .foot { margin-top: 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: max(40px, env(safe-area-inset-bottom)); font-size: 15px; color: var(--ink-soft); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--ink-soft); }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
  .hero-text { padding-bottom: 32px; }
  .hero-text .icon { display: none; }   /* steht schon in der Kopfzeile */
  .hero h1 { margin-top: 12px; }
  .hero-phone { max-width: 420px; width: 100%; margin: 0 auto; padding-top: 44px; }
  .features, .help { grid-template-columns: 1fr; gap: 40px; }
  .features-head, .help-head { position: static; }
  .features { padding-top: 88px; }
  .blick { padding-top: 96px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .features-list { grid-template-columns: 1fr; gap: 32px; }
  .plan { padding: 28px 24px 24px; }
  .plan-price b { font-size: 46px; }
  .help-band { padding: 80px 0 88px; }
  .pricing { padding-bottom: 96px; }
  /* Schmal ist für Sprache und Hinweis kein Platz, „bald im App Store“ steht auch auf der Startseite. */
  .bar .store { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
  /* Ohne Bewegung: eine stehende Reihe zum Wischen, das Skript stellt sie mittig */
  .spur { animation: none; }
  .laufband { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .laufband .shots { padding-left: 22px; }
  .shots li { scroll-snap-align: center; }
  .shots[aria-hidden], .pause { display: none; }
}
