/* GiftPlanner Website – Design-System "Petrol & Safran" */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var-latin.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-var-latin.woff") format("woff"); font-weight: 200 900; font-display: swap; }

:root {
  --petrol: #0F4C4A;
  --petrol-deep: #0B3836;
  --petrol-tint: #E1ECEA;
  --saffron: #F0B13A;
  --saffron-soft: #F3C165;
  --on-saffron: #3A2600;
  --bg: #F1F4F3;
  --surface: #FFFFFF;
  --hairline: #DFE6E4;
  --outline: #81908E;
  --ink: #10201F;
  --ink-2: #5E6B69;
  --text: #33433F;
  --on-petrol-2: rgba(255, 255, 255, 0.78);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Typografie */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--petrol); margin-bottom: 16px; }
.eyebrow--light { color: var(--saffron-soft); }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.02em; max-width: 620px; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.h2--narrow { max-width: 640px; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2vw, 26px); line-height: 1.25; }
.lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 460px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none; transition: opacity .15s, transform .15s; }
.btn--primary { background: var(--saffron); color: var(--on-saffron); }
.btn--primary:hover { color: var(--on-saffron); opacity: .88; }
.store-badge { display: inline-flex; flex-direction: column; justify-content: center; height: 58px; padding: 0 22px; border-radius: 13px; background: #000; border: 1px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; line-height: 1.1; transition: transform .15s; }
.store-badge:hover { color: #fff; transform: translateY(-1px); }
.store-badge__small { font-size: 11px; font-weight: 500; }
.store-badge__big { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-weight: 500; text-decoration: none; }
.link-arrow:hover { color: var(--saffron-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241, 244, 243, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter); min-height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand img { border-radius: 8px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.3px; }
.brand:hover { color: var(--ink); }
.site-nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.site-nav a { color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--petrol); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); padding-right: 4px; }
.lang svg { margin-right: 4px; }
.lang__item { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.lang__item.is-current { color: var(--petrol); background: var(--petrol-tint); }
a.lang__item:hover { color: var(--petrol); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--outline); background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }

@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 16px; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 0; font-size: 18px; border-top: 1px solid var(--hairline); }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 4px 20px; }
  .brand { margin-right: auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-header__inner { gap: 8px; }
  .btn--download span { display: none; }
  .btn--download { padding: 0 12px; }
  .lang svg { display: none; }
  .brand span { font-size: 19px; }
}

/* Hero */
.hero { position: relative; background: var(--petrol); color: #fff; overflow: hidden; }
.hero__ribbon { position: absolute; background: var(--saffron); will-change: transform; }
.hero__ribbon--v { top: -10%; bottom: -10%; right: 21%; width: 34px; }
.hero__ribbon--h { left: 0; right: 0; bottom: 120px; height: 34px; }
.hero__inner { position: relative; padding-top: 96px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; }
.hero__copy { flex: 1 1 480px; min-width: 0; padding-bottom: 200px; }
.hero__subtitle { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--on-petrol-2); max-width: 520px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero__note { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero__visual { flex: 0 1 380px; display: flex; justify-content: center; margin-bottom: -60px; will-change: transform; }
.hero__phone { width: 336px; filter: drop-shadow(0 40px 60px rgba(4, 30, 29, .45)); }
@media (max-width: 900px) {
  .hero__inner { padding-top: 64px; gap: 40px; }
  .hero__copy { padding-bottom: 0; }
  .hero__visual { flex-basis: 100%; margin-bottom: -40px; }
  .hero__phone { width: min(300px, 78vw); }
  .hero__ribbon--v { right: 50%; transform: translateX(50%); top: auto; height: 640px; bottom: -10%; }
  .hero__ribbon--h { bottom: 160px; }
}

/* Sections */
.section { padding: 120px 0; }
.steps { padding-top: 160px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split__aside { flex: 1 1 320px; min-width: 0; position: sticky; top: calc(var(--header-h) + 48px); }
.split__main { flex: 999 1 560px; min-width: 0; }
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .steps { padding-top: 120px; }
  .split { gap: 40px; }
  .split__aside { position: static; }
}

/* Schritte: Karten schieben sich beim Scrollen übereinander */
.steps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.step { position: sticky; top: calc(var(--header-h) + 40px + var(--i) * 20px); background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: 36px 40px; display: flex; gap: 28px; align-items: flex-start; overflow: hidden; }
.step p { margin-top: 10px; color: var(--text); }
.step__num { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--petrol); min-width: 64px; font-variant-numeric: tabular-nums; }
.step--accent { background: var(--petrol); color: #fff; border-color: var(--petrol); padding-right: 92px; }
.step--accent p { color: var(--on-petrol-2); }
.step--accent .step__num { color: var(--saffron-soft); }
.step__ribbon { position: absolute; top: 0; bottom: 0; right: 36px; width: 18px; background: var(--saffron); }
@media (max-width: 600px) {
  .step { position: relative; top: auto; padding: 28px 24px; gap: 16px; flex-direction: column; border-radius: 24px; }
  .step--accent { padding-right: 64px; }
  .step__ribbon { right: 24px; width: 14px; }
  .step__num { font-size: 36px; }
}

/* Band mit Geschenkpapier-Muster (Parallax per JS, Fallback statisch) */
.band { position: relative; overflow: hidden; background: var(--petrol); padding: 140px 0; }
.band__pattern { position: absolute; inset: -40% 0; will-change: transform;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 150px, rgba(255,255,255,.07) 150px 172px, transparent 172px 300px),
    repeating-linear-gradient(0deg, transparent 0 150px, rgba(255,255,255,.07) 150px 172px, transparent 172px 300px); }
.band__card { position: relative; max-width: 760px; margin: 0 auto; background: var(--bg); border-radius: 32px; padding: 64px 120px 64px 56px; overflow: hidden; }
.band__card .lead { color: var(--text); max-width: none; margin-top: 20px; }
.band__ribbon { position: absolute; top: 0; bottom: 0; right: 44px; width: 22px; background: var(--saffron); }
.notif { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 14px 18px; max-width: 100%; }
.notif img { border-radius: 10px; flex: none; }
.notif p { font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; }
.notif strong { font-weight: 600; }
.notif span { color: var(--ink-2); }
@media (max-width: 600px) {
  .band { padding: 80px 0; }
  .band__card { padding: 40px 56px 40px 28px; border-radius: 24px; }
  .band__ribbon { right: 20px; width: 16px; }
}

/* Funktionen */
.features { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 32px; }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--petrol-tint); color: var(--petrol); display: flex; align-items: center; justify-content: center; }
.feature h3 { margin-top: 22px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.feature p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

/* Screenshots */
.shots { background: var(--petrol-tint); }
.shots__track { max-width: 1280px; margin: 56px auto 0; padding: 0 var(--gutter) 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.shot { position: relative; margin: 0; flex: 0 0 232px; scroll-snap-align: start; }
.shot img { width: 232px; border-radius: 26px; }
.shots__hint { margin-top: 16px; font-size: 14px; color: var(--ink-2); display: none; }
@media (max-width: 1240px) { .shots__hint { display: block; } }
@media (max-width: 600px) { .shot { flex-basis: 70vw; } .shot img { width: 100%; } }

/* FAQ */
.faq { background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: 8px 32px; }
.faq__item + .faq__item { border-top: 1px solid var(--hairline); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 20px 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; color: var(--petrol); transition: transform .2s; }
.faq__item[open] summary svg { transform: rotate(180deg); }
.faq__answer p { padding-bottom: 22px; font-size: 16px; line-height: 1.65; color: var(--text); }
@media (max-width: 600px) { .faq { padding: 4px 20px; border-radius: 22px; } .faq__item summary { font-size: 17px; } }

/* CTA */
.cta-wrap { padding: 0 0 120px; }
.cta { position: relative; background: var(--petrol); color: #fff; border-radius: 36px; padding: 80px 140px 80px 64px; overflow: hidden; }
.cta .lead { color: var(--on-petrol-2); margin-bottom: 36px; }
.cta .h2 { max-width: 620px; }
.cta__ribbon { position: absolute; top: -20%; bottom: -20%; right: 64px; width: 28px; background: var(--saffron); will-change: transform; }
@media (max-width: 600px) { .cta { padding: 48px 64px 48px 28px; border-radius: 26px; } .cta__ribbon { right: 22px; width: 18px; } .cta-wrap { padding-bottom: 80px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.site-footer__brand img { border-radius: 7px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer__nav a { font-size: 15px; font-weight: 500; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

/* Rechtstexte */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; margin-bottom: 24px; }
.legal__back svg { transform: rotate(90deg); }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.25; margin-top: 48px; }
.legal h3 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.legal p { margin-top: 12px; color: var(--text); }
.legal-meta { color: var(--ink-2) !important; font-size: 15px; }

/* Einblenden beim Scrollen (nur mit JS und ohne "Bewegung reduzieren") */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
  .reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }
  .reveal-on .step[data-reveal] { transform: translateY(24px); }
  .reveal-on .step[data-reveal].is-visible { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step { position: relative; top: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Offizielles App-Store-Badge von Apple (unverändert, nur skaliert) */
.store-badge--official { height: auto; padding: 0; border: 0; background: none; border-radius: 0; }
.store-badge--official img { height: 54px; width: auto; }

/* Untertitel im Markennamen ("Surprisely: Gift Ideas") */
.brand__sub { font-weight: 500; color: var(--ink-2); }
@media (max-width: 560px) {
  .brand__name { display: flex; flex-direction: column; line-height: 1.05; }
  .brand__colon { display: none; }
  .brand__sub { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .2px; margin-top: 2px; }
}

/* Vorab-Modus (config.json: "comingSoon": true) */
.store-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 13px;
  border: 1.5px solid rgba(255,255,255,.55); color: #fff; font-weight: 600; font-size: 16px; }
.store-soon svg { color: var(--saffron-soft); flex: none; }
.btn--soon { background: var(--petrol-tint); color: var(--petrol); cursor: default; }
@media (max-width: 560px) { .btn--soon { display: none; } }

/* Support-Seite: Kontaktkarte */
.support-card { margin-top: 32px; padding: 24px 28px 28px; border-radius: 20px; background: var(--petrol-tint); }
.support-card h2 { margin-top: 0; }
@media (max-width: 560px) { .support-card { padding: 20px; } }
