/* Manrope (SIL OFL 1.1, siehe /fonts/OFL.txt) – lokal eingebunden, keine Verbindung zu Google */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Farben (hell) ----------
   Grün wie in der App, dazu die Tageszeiten-Farben nur als Stimmung:
   Gold (früh), Koralle (spät), Indigo (Nacht). */
:root {
  color-scheme: light dark;
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --surface-2: #EEF1EC;
  --line: #E1E5E0;
  --text: #12181B;
  --text-2: #56615C;
  --green: #1FA366;
  --green-deep: #127A4A;
  --accent-text: #127A4A;
  --gold: #E8B54A;
  --coral: #E8735F;
  --indigo: #3B3F8F;
  --hero: #127A4A;
  --hero-text: #FFFFFF;
  --night-1: #3B3F8F;
  --night-2: #1D2150;
  --night-3: #0E1130;
  --info-bg: #FBF1DC;
  --info-line: #EBD8AC;
  --info-text: #5C450E;
  --tag-and-bg: #E3F1E9;
  --tag-and-text: #11663E;
  --shadow: 0 30px 60px -28px rgba(12, 30, 20, 0.45);
  --max-w: 1160px;
}

/* ---------- Farben (dunkel) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1412;
    --surface: #161E1B;
    --surface-2: #1B2521;
    --line: #27322E;
    --text: #E8EEEA;
    --text-2: #A5B2AC;
    --accent-text: #4CC98E;
    --hero: #0E5434;
    --info-bg: #2B2414;
    --info-line: #4A3D1E;
    --info-text: #F1D99E;
    --tag-and-bg: #15352A;
    --tag-and-text: #7FDCAE;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Kopfzeile ---------- */

header { padding: 22px 0; position: relative; z-index: 2; }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }

nav { display: flex; align-items: center; gap: 26px; }

nav a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--text); }

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 11px;
}

@media (max-width: 700px) { nav a:not(.nav-cta) { display: none; } }

/* Startseite: Kopfzeile liegt durchsichtig auf der grünen Fläche */
.home header { position: absolute; top: 0; left: 0; right: 0; color: var(--hero-text); }
.home nav a { color: rgba(255, 255, 255, 0.86); }
.home nav a:hover { color: #fff; }
.home .nav-cta { background: #fff; color: #12181B !important; }

/* ---------- Store-Knöpfe ---------- */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Offizielles Google-Play-Abzeichen – unverändert, nur skaliert */
.store-badge { display: inline-block; border-radius: 10px; line-height: 0; }
.store-badge img { height: 54px; width: auto; }

/* „Bald für iPhone“ – bewusst ohne Apple-Logo und ohne Link.
   Wird in /site.js gegen das App-Store-Abzeichen getauscht (eine Stelle). */
.ios-soon {
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid currentColor;
  font-weight: 700;
  font-size: 0.97rem;
  white-space: nowrap;
}

.ios-soon svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Handy-Rahmen ---------- */

.phone {
  --w: 260px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  aspect-ratio: 1320 / 2868;
  padding: 8px;
  border-radius: 42px;
  background: #0C1012;
  box-shadow: inset 0 0 0 1.5px #2C3438, var(--shadow);
  flex-shrink: 0;
}

.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #F5F6F4; }

/* iPhone: Dynamic Island */
.phone.ios::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 30%;
  height: 20px;
  transform: translateX(-50%);
  background: #0C1012;
  border-radius: 20px;
}

/* Android-Screenshots sind 9:16 */
.phone.android { aspect-ratio: 1080 / 1920; border-radius: 34px; }
.phone.android img { border-radius: 26px; }

.shot-note { font-size: 0.8rem; color: var(--text-2); text-align: center; margin-top: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: var(--hero-text);
  border-radius: 0 0 40px 40px;
}

/* Farbige Kalender-Kästchen im Hintergrund – nur Stimmung */
.cells {
  position: absolute;
  right: -60px;
  top: -70px;
  display: grid;
  grid-template-columns: repeat(7, 64px);
  gap: 10px;
  transform: rotate(-8deg);
  opacity: 0.42;
  pointer-events: none;
}

.cells i { height: 64px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); }
.cells .f { background: var(--gold); }
.cells .s { background: var(--coral); }
.cells .n { background: var(--indigo); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 13ch;
}

.hero-sub { margin: 22px 0 30px; font-size: 1.15rem; max-width: 44ch; color: rgba(255, 255, 255, 0.92); }

.hero-note { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 18px; min-height: 560px; }
.hero-art .phone { --w: 250px; }
.hero-art .phone.second { --w: 220px; margin-top: 72px; }
.hero-art .shot-note { position: absolute; bottom: -34px; left: 0; right: 0; color: rgba(255, 255, 255, 0.78); }

@media (max-width: 900px) {
  .hero { border-radius: 0 0 28px 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 92px; padding-bottom: 72px; }
  .hero-art { min-height: 0; gap: 12px; }
  .hero-art .phone { --w: 47%; }
  .hero-art .phone.second { --w: 43%; margin-top: 48px; }
  .cells { top: auto; bottom: -50px; right: -30px; grid-template-columns: repeat(7, 46px); gap: 8px; opacity: 0.32; }
  .cells i { height: 46px; border-radius: 12px; }
}

.hero-sub .short { display: none; }

/* Handy: kürzerer Text, Handys kleiner und überlappend – sie sind ohne
   Scrollen zu sehen */
@media (max-width: 600px) {
  .eyebrow { display: none; }
  h1 { font-size: 2.15rem; }
  .hero-grid { padding-top: 84px; gap: 22px; padding-bottom: 64px; }
  .hero-sub { margin: 14px 0 20px; font-size: 1.05rem; }
  .hero-sub .long { display: none; }
  .hero-sub .short { display: inline; }
  .store-badge img { height: 48px; }
  .ios-soon { height: 48px; padding: 0 14px; font-size: 0.92rem; }
  .hero-note { margin-top: 12px; font-size: 0.85rem; }
  .hero-art { display: block; height: auto; }
  .hero-art .phone { --w: 54%; margin-left: 6%; position: relative; z-index: 1; }
  .hero-art .phone.second { --w: 44%; position: absolute; top: 44px; right: 4%; margin: 0; z-index: 0; }
  .hero-art .shot-note { bottom: -30px; }
}

/* ---------- Vertrauens-Leiste ---------- */

.strip { padding: 34px 0 10px; }

.strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-2);
}

.strip-row span { display: flex; align-items: center; gap: 8px; }
.strip-row svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--green); }

/* ---------- Abschnitte ---------- */

section { scroll-margin-top: 16px; }

.section-head { max-width: 46ch; margin-bottom: 56px; }

.kicker { color: var(--accent-text); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-head p { margin-top: 14px; color: var(--text-2); font-size: 1.07rem; }

.features { padding: 96px 0 40px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}

.feature-row.reverse .feature-text { order: 2; }

.feature-text h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 12px; }
.feature-text p { color: var(--text-2); font-size: 1.05rem; max-width: 44ch; }
.feature-text p + p { margin-top: 12px; }

/* Fläche hinter dem Handy, mit sanfter Farbe der Tageszeit */
.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 44px 24px;
  border-radius: 28px;
  background: var(--surface-2);
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  top: -120px;
  right: -110px;
  background: var(--glow, var(--gold));
  opacity: 0.22;
  filter: blur(10px);
}

.feature-visual .phone { --w: 250px; }
.glow-gold { --glow: var(--gold); }
.glow-coral { --glow: var(--coral); }
.glow-indigo { --glow: var(--indigo); }
.glow-green { --glow: var(--green); }

.feature-visual .shot-note { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; }

@media (max-width: 820px) {
  .features { padding: 64px 0 20px; }
  .section-head { margin-bottom: 32px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 26px; padding: 28px 0; }
  .feature-row .feature-text, .feature-row.reverse .feature-text { order: 2; }
  .feature-visual { padding: 32px 16px 40px; }
  .feature-visual .phone { --w: 220px; }
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
}

.tag-pro { background: var(--gold); color: #3A2A05; }
.tag-free { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag-android { background: var(--tag-and-bg); color: var(--tag-and-text); }

/* Pflicht-Hinweis bei Geldbeträgen */
.disclaimer {
  margin-top: 18px;
  max-width: 46ch;
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--info-text) !important;
}

.disclaimer strong { font-weight: 800; }

/* Kleine Extras als Karten */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 40px 0 96px; }

.extra {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.extra .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--c, var(--green)) 18%, transparent);
  color: var(--c, var(--green));
}

.extra .ico svg { width: 21px; height: 21px; }
.extra h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.extra p { font-size: 0.94rem; color: var(--text-2); }

@media (max-width: 820px) { .extras { grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 0 64px; } }
@media (max-width: 520px) {
  .extra { padding: 16px 14px; border-radius: 16px; }
  .extra .ico { width: 34px; height: 34px; margin-bottom: 10px; }
  .extra h3 { font-size: 0.98rem; }
  .extra p { font-size: 0.88rem; }
}
@media (max-width: 340px) { .extras { grid-template-columns: 1fr; } }

/* ---------- Nacht-Bereich ---------- */

.night {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(1100px 620px at 85% 0%, var(--night-1) 0%, var(--night-2) 48%, var(--night-3) 100%);
  border-radius: 40px;
  margin: 0 12px;
  padding: 96px 0 88px;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.7) 50%, transparent),
    radial-gradient(1px 1px at 30% 9%, rgba(255,255,255,.55) 50%, transparent),
    radial-gradient(1.5px 1.5px at 55% 26%, rgba(255,255,255,.45) 50%, transparent),
    radial-gradient(1px 1px at 74% 58%, rgba(255,255,255,.55) 50%, transparent),
    radial-gradient(1.5px 1.5px at 20% 70%, rgba(255,255,255,.4) 50%, transparent),
    radial-gradient(1px 1px at 92% 16%, rgba(255,255,255,.65) 50%, transparent),
    radial-gradient(1px 1px at 46% 84%, rgba(255,255,255,.4) 50%, transparent),
    radial-gradient(1.5px 1.5px at 84% 88%, rgba(255,255,255,.4) 50%, transparent);
}

.moon {
  position: absolute;
  right: 9%;
  top: 70px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: -17px 9px 0 0 var(--gold);
  transform: rotate(-20deg);
  pointer-events: none;
}

.night .section-head { position: relative; }
.night .kicker { color: var(--gold); }
.night .section-head p { color: rgba(255, 255, 255, 0.82); }

.night-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.night-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.night-card .phone { --w: 230px; box-shadow: inset 0 0 0 1.5px #3A4062, 0 40px 80px -28px rgba(0, 0, 0, 0.8); }
.night-card h3 { margin-top: 26px; font-size: 1.25rem; font-weight: 800; }
.night-card p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 0.98rem; max-width: 32ch; }
.night-card .tags { justify-content: center; margin: 12px 0 0; }
.night .tag-android { background: rgba(127, 220, 174, 0.16); color: #9BE7C2; }
.night .tag-free { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.18); }

.swipe-hint { display: none; position: relative; margin-top: 18px; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.night-note { position: relative; margin-top: 48px; text-align: center; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }

@media (max-width: 900px) {
  .night { margin: 0 8px; border-radius: 28px; padding: 64px 0 56px; }
  .moon { width: 56px; height: 56px; top: 40px; right: 7%; box-shadow: -11px 6px 0 0 var(--gold); }
  /* Auf dem Handy nebeneinander zum Wischen statt drei Handys untereinander */
  .night-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 300px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 8px;
  }
  .night-grid::-webkit-scrollbar { display: none; }
  .night-card { scroll-snap-align: center; }
  .night-card .phone { --w: 210px; }
  .swipe-hint { display: block; }
}

/* ---------- Preise ---------- */

.pricing { padding: 104px 0 96px; }

@media (max-width: 820px) { .pricing { padding: 64px 0; } }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.plan.highlight { border: 2px solid var(--green); }

@media (max-width: 480px) { .plan { padding: 26px 20px; } }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name { font-weight: 800; font-size: 1.25rem; }
.plan-price { margin-top: 8px; font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan-sub { margin-top: 4px; color: var(--text-2); font-size: 0.96rem; }

.plan-list { margin-top: 22px; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; color: var(--text-2); }
.plan-list li > svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.plan-list .tag { margin-left: 4px; }

.price-note { margin-top: 22px; font-size: 0.88rem; color: var(--text-2); max-width: 70ch; }

/* ---------- Abschluss ---------- */

.closer { padding: 0 0 96px; }

.closer-card {
  position: relative;
  overflow: hidden;
  background: var(--hero);
  color: #fff;
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
}

.closer-card .cells { right: auto; left: -80px; top: -90px; opacity: 0.25; }
.closer-card h2 { position: relative; max-width: 22ch; margin: 0 auto; }
.closer-card p { position: relative; margin: 16px auto 0; max-width: 46ch; color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }
.closer-card .stores { position: relative; justify-content: center; margin-top: 28px; }

@media (max-width: 600px) { .closer { padding-bottom: 64px; } .closer-card { padding: 48px 20px; border-radius: 26px; } }

/* ---------- Bewegung ----------
   Nur wenn das System keine reduzierte Bewegung wünscht. Ohne JavaScript
   ist alles sofort sichtbar (Klasse .js setzt erst das Skript). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Kästchen oben gleiten ganz langsam – kaum merklich */
  .hero .cells { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift {
    from { transform: rotate(-8deg) translate3d(0, 0, 0); }
    to { transform: rotate(-8deg) translate3d(-26px, 18px, 0); }
  }

  /* Handys im Hero steigen beim Laden einmal sanft auf */
  .hero-art .phone { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-art .phone.second { animation-delay: 0.15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
}

/* ---------- Rechtstexte & Hilfe ---------- */

.legal { padding: 24px 0 96px; }

.legal-body { max-width: 70ch; }

.legal-body h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); max-width: none; margin-bottom: 28px; line-height: 1.15; }
.legal-body h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: 0; margin: 36px 0 12px; line-height: 1.3; }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 12px 1.2em; display: flex; flex-direction: column; gap: 10px; }
.legal-body a { color: var(--accent-text); overflow-wrap: anywhere; }
.legal-body .caps { font-size: 0.93rem; }
.legal-body .meta { margin-top: 36px; font-size: 0.92rem; }

/* ---------- Fußzeile ---------- */

footer { border-top: 1px solid var(--line); padding: 36px 0; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-2);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { text-decoration: none; color: var(--text-2); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* Unterseiten: schmaler Farbstreifen der Tageszeiten ganz oben */
body:not(.home)::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--coral) 35%, var(--indigo) 68%, var(--green));
}
