/* Nutri Website – reines CSS, Farben aus src/lib/theme.ts (Akzent „Grün“) */
:root {
  --accent: #1F9D55;
  --on-accent: #FFFFFF;
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --grade-a: #15803D;
  --grade-b: #65A30D;
  --grade-c: #CA8A04;
  --grade-d: #EA580C;
  --grade-e: #DC2626;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4ADE80;
    --on-accent: #0B0F0C;
    --bg: #0B0D0F;
    --surface: #16191D;
    --surface-2: #20242A;
    --text: #F3F4F6;
    --muted: #9CA3AF;
    --border: #2A2F36;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-weight: 650; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Abschnitte */
section { padding: 56px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* Handy-Rahmen für Screenshots */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 34px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.phone img { border-radius: 27px; aspect-ratio: 780 / 1688; object-fit: cover; width: 100%; }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones .phone { max-width: 250px; }
.phones .phone:nth-child(2) { transform: translateY(28px); }
@media (max-width: 560px) {
  .phones .phone { max-width: 46%; padding: 5px; border-radius: 24px; }
  .phones .phone img { border-radius: 20px; }
}

/* Karten und Raster */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Feature-Reihen */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature.flip .feature-media { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
}
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin: 8px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4-6.6 6.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tagesnote */
.grades { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.grade { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.g-a { background: var(--grade-a); } .g-b { background: var(--grade-b); } .g-c { background: var(--grade-c); }
.g-d { background: var(--grade-d); } .g-e { background: var(--grade-e); }

/* Widget-Mockup */
.widget-demo { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.widget {
  width: 170px; height: 170px; border-radius: 26px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
}
.widget.wide { width: 356px; max-width: 100%; }
.widget .w-label { font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; }
.widget .w-big { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.widget .w-big small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.widget .w-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.widget .w-bar span { display: block; height: 100%; width: 37%; background: var(--accent); border-radius: 99px; }
.widget .w-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.widget .w-row b { color: var(--text); display: block; font-size: .95rem; }
.widget.other { background: var(--surface-2); align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; }

/* Preise */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price.featured { border: 2px solid var(--accent); }
.price .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--accent); color: var(--on-accent); margin-bottom: 10px; }
.price .amount { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price .checks { flex: 1; }
.price .btn { margin-top: 12px; }

/* Schritte */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 18px 18px 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }

/* Hinweisbox */
.note { background: var(--surface-2); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--accent); }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 650; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Rechtstexte */
.legal { padding: 40px 0 64px; }
.legal h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; padding-top: .4em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5em; }
.legal li { margin: 4px 0; }
.legal address { font-style: normal; }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 1em 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.toc ol { margin: 0; padding-left: 1.3em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); }
.form-line { border-bottom: 1px solid var(--muted); min-height: 2em; margin: 6px 0 14px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Abstands-Helfer (keine Inline-Styles wegen Content-Security-Policy) */
.jc { justify-content: center !important; }
.mt-0 { margin-top: 0 !important; } .mt-10 { margin-top: 10px !important; } .mt-12 { margin-top: 12px !important; } .mt-14 { margin-top: 14px !important; }
.mt-20 { margin-top: 20px !important; } .mt-24 { margin-top: 24px !important; } .mt-28 { margin-top: 28px !important; } .mt-32 { margin-top: 32px !important; } .mt-40 { margin-top: 40px !important; }
