/* Häkelglück – 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 (.chain), 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;
  --surface: #FCF9F5;
  --ink: #362C26;
  --ink-soft: #6E6158;
  --line: #E4DBD0;
  --accent: #A05A40;
  --accent-soft: #F0DFD5;
  --butter: #D8B36C;
  --sage: #9AA88A;
  --rose: #DCC0B3;
  --lilac: #A9B5B8;
  --peach: #E6C7AE;
  --shadow: 0 1px 2px rgba(54, 44, 38, .05), 0 18px 40px -18px rgba(54, 44, 38, .3);
  --grain-opacity: .3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1814;
    --surface: #28211C;
    --ink: #F3ECE3;
    --ink-soft: #C8BAAC;
    --line: #3B322B;
    --accent: #DD8C6E;
    --accent-soft: #4A3026;
    --butter: #D7B46F;
    --sage: #A2AF92;
    --rose: #7D5B4F;
    --lilac: #8E9BA0;
    --peach: #D3A283;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --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, .shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
h1, h2 { 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; color: var(--accent); }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Kopfzeile */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
.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; }

/* Luftmaschenkette: schräge Schlaufen wie unter dem Zähler der App */
.chain { height: 16px; background: var(--accent); opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'%3E%3Cellipse cx='11' cy='8' rx='9.5' ry='5.6' transform='rotate(-20 11 8)' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x center / 22px 16px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'%3E%3Cellipse cx='11' cy='8' rx='9.5' ry='5.6' transform='rotate(-20 11 8)' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x center / 22px 16px; }

/* Start */
.hero { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.hero .icon { width: 124px; height: 124px; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.hero h1 { font-size: clamp(42px, 8vw, 78px); line-height: .98; margin: 28px auto 0; max-width: 11em; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 31em; margin: 22px auto 0; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 13px 22px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.fine { font-size: 15px; color: var(--ink-soft); margin: 14px 0 0; }

/* Bilder aus dem App Store, waagerecht zum Durchwischen */
.shots { display: flex; gap: 16px; margin: 0; padding: 8px max(20px, calc((100% - 1000px) / 2)) 28px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100% - 1000px) / 2));
  scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { display: block; width: clamp(210px, 24vw, 252px); height: auto; aspect-ratio: 600 / 1304; border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }

/* Abschnitte */
section { padding-top: 64px; }
section h2 { font-size: clamp(30px, 4.6vw, 42px); line-height: 1.05; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.grid h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.grid h3::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--rose)); }
.grid p { color: var(--ink-soft); margin: 0; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
.plan h3 { font-family: 'Fraunces', Georgia, serif; font-variation-settings: 'SOFT' 50; font-size: 26px; font-weight: 600; margin: 0; }
.plan.pro { background: var(--accent-soft); border-color: transparent; }
.plan.pro h3 { color: var(--accent); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { position: relative; padding: 6px 0 6px 26px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; transform: rotate(-20deg); opacity: .75; }
.plan .price { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--ink-soft); }
.plan .price b { color: var(--ink); }

.help { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 650; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font-size: 22px; line-height: 1; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin: 0 0 18px; }
details b { color: var(--ink); font-weight: 650; }
.contact { position: sticky; top: 24px; }
.contact p { margin: 0; color: var(--ink-soft); }
.contact .mail { margin-top: 12px; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.contact .mail a { color: var(--accent); }

/* 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 */
.foot { margin-top: 72px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; 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: 760px) {
  .help { grid-template-columns: 1fr; }
  .contact { position: static; }
  .hero { padding-top: 24px; }
  .hero .icon { width: 104px; height: 104px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
