/* ==========================================================================
   NXTPantry – Webpräsenz (nxtpantry.nxtlvt.de)
   Marke: cremeweiß, frisches Grün, Koralle · Baloo 2 + Nunito Sans
   ========================================================================== */

:root {
  --bg:        #FFFCF7;
  --surface:   #FFFFFF;
  --surface-2: #FBF6EC;
  --primary:   #2FA46B;
  --primary-d: #1F7A4D;
  --primary-l: #E5F4EC;
  --accent:    #FF7A59;
  --accent-d:  #E85F3D;
  --ink:       #232220;
  --muted:     #6B7280;
  --border:    #ECE7DC;
  --warn:      #C98A1C;
  --warn-l:    #FBF1DC;
  --danger:    #D64545;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 2px 10px rgba(70, 55, 30, .07);
  --shadow-md: 0 16px 40px rgba(70, 55, 30, .14);
  --maxw:      1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .4em;
  letter-spacing: -.01em;
}

a { color: var(--primary-d); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 1.02rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 89, .32); }
.btn-primary:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary-d); border-color: #cfe3d6; }
.btn-ghost:hover { background: var(--primary-l); }
.btn-lg { font-size: 1.12rem; padding: 15px 32px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, .85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--primary-d); text-decoration: none; }
.brand .logo { font-size: 1.55rem; }
.brand .beta {
  font-family: 'Nunito Sans', sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-d); background: #fff;
  border: 1.5px solid #f6cdbf; border-radius: 999px; padding: 2px 8px; align-self: center;
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header nav a.navlink { display: none; }
@media (min-width: 720px) {
  .site-header nav a.navlink { display: inline; text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
  .site-header nav a.navlink:hover { background: var(--surface-2); }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem;
  color: var(--primary-d); background: var(--primary-l); border: 1px solid #cfe9da;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); color: var(--ink); }
.hero h1 .hl { color: var(--primary-d); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .26em;
  background: rgba(255, 122, 89, .28); border-radius: 4px; z-index: -1;
}
.hero p.lead { font-size: 1.2rem; color: #4a4843; max-width: 33ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-flag { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 18px; color: var(--muted); font-weight: 600; }
.price-flag b { font-family: 'Baloo 2', sans-serif; color: var(--primary-d); font-size: 1.15rem; }

/* dezente „Regal"-Atmosphäre im Hintergrund */
.hero::before {
  content: ""; position: absolute; top: -120px; right: -140px; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(47,164,107,.13), transparent 70%); z-index: 0;
}
.hero .wrap > * { position: relative; z-index: 1; }

/* ---- Phone-Mockup (Signature) ------------------------------------------ */
.device-stage { display: flex; justify-content: center; }
.phone {
  width: 290px; background: #1f2b25; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow-md); position: relative;
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 6px; background: #0d130f; border-radius: 999px;
}
.phone-screen { background: var(--bg); border-radius: 28px; overflow: hidden; }
.app-top { background: var(--primary); color: #fff; padding: 26px 16px 12px; font-family: 'Baloo 2', sans-serif; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.app-body { padding: 14px 13px 16px; }
.app-row {
  display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 11px; margin-bottom: 9px; box-shadow: var(--shadow);
}
.app-row .nm { flex: 1; min-width: 0; }
.app-row .nm b { font-weight: 700; font-size: .92rem; }
.app-row .nm small { color: var(--muted); display: block; font-size: .72rem; }
.tag { font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.tag.bald { background: var(--warn-l); color: var(--warn); }
.tag.ok { background: var(--primary-l); color: var(--primary-d); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; font-size: 1rem; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); }
.stepper i.plus { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper b { font-family: 'Baloo 2', sans-serif; min-width: 30px; text-align: center; color: var(--primary-d); }
.app-recipe { margin-top: 4px; background: linear-gradient(135deg, var(--primary-l), #fff); border: 1px solid #cfe9da; border-radius: 14px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; }
.app-recipe .ico { font-size: 1.4rem; }
.app-recipe b { font-size: .85rem; }
.app-recipe small { display: block; color: var(--muted); font-size: .72rem; }

/* ---- Sections ----------------------------------------------------------- */
section { padding: 68px 0; }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.eyebrow { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: var(--accent-d); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Feature-Grid */
.features { background: var(--surface-2); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .fi {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: var(--primary-l); margin-bottom: 14px;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.05rem; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* gemeinsam-Streifen */
.together { background: var(--primary-d); color: #fff; border-radius: 0; }
.together .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.together h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.together p { color: #d7ece0; margin: 0 0 8px; }
.together .pills { display: flex; flex-wrap: wrap; gap: 10px; }
.together .pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .together .wrap { grid-template-columns: 1fr; gap: 22px; } }

/* CTA-Band */
.cta-band { text-align: center; }
.cta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: 48px 28px; box-shadow: var(--shadow-md); max-width: 720px; margin: 0 auto;
}
.cta-card h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-card p { color: var(--muted); margin: 0 0 24px; font-size: 1.1rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #c9c6c0; padding: 44px 0 28px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-family: 'Baloo 2', sans-serif; color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer a { color: #c9c6c0; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px; padding-top: 18px; font-size: .85rem; color: #8e8b85; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .brand-col { grid-column: 1 / -1; } }

/* ---- Hero responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; text-align: center; padding-top: 44px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-kicker, .price-flag { justify-content: center; }
  .hero-kicker { margin-left: auto; margin-right: auto; }
  .device-stage { order: -1; }
}

/* ---- Rechtsseiten (Impressum/Datenschutz) ------------------------------ */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 2.1rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal p, .legal li { color: #44423d; }
.legal a.back { display: inline-block; margin-bottom: 22px; font-weight: 700; text-decoration: none; }

/* ---- Scroll-Reveal ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
