/* ──────────────────────────────────────────────────────────────
   Nährwertberechnung · eigene Gestaltung
   Die Seite zeigt den Weg von der Rezeptur zur fertigen Tabelle.
   Statt einer Vergleichstabelle zeigen Balken, wie gross der
   Unterschied zum Labor ist.
   ────────────────────────────────────────────────────────────── */

/* Einstieg mit Rezeptur und Tabelle */
.n-hero{padding-top:clamp(2.2rem,5vw,4.5rem)}
.n-hero__grid{display:grid;gap:clamp(2.5rem,6vw,5rem);align-items:center}
@media(min-width:960px){.n-hero__grid{grid-template-columns:1fr 1fr}}
.n-hero h1{font-size:clamp(2.3rem,5vw,3.9rem);line-height:1;letter-spacing:-.045em}
.n-hero h1 span{color:var(--green)}
.n-hero__lede{margin-top:1.3rem;font-size:clamp(1.0625rem,1.7vw,1.25rem);line-height:1.55;max-width:30rem}
.n-price{margin-top:1.8rem;padding-top:1.1rem;border-top:2px solid var(--ink);max-width:30rem;color:var(--ink-2)}
.n-price b{font-size:1.6rem;letter-spacing:-.03em;color:var(--ink);margin-right:.35rem}
.n-hero .hero__actions{margin-top:1.6rem}

.flow{position:relative;display:grid;gap:1rem}
.flow__step{margin:0}
.flow__cap{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:600;color:var(--muted)}
.flow__step--out .flow__cap{color:var(--green)}
.recipe{background:#fbfaf6;border:1px solid #e3e0d6;padding:1.1rem 1.25rem 1.2rem;max-width:300px;
  background-image:repeating-linear-gradient(transparent 0 31px,#ece8dc 31px 32px);background-position:0 54px}
.recipe__name{font-weight:700;color:var(--ink);padding-bottom:.5rem;margin-bottom:.2rem}
.recipe table{border-collapse:collapse;font-size:.9375rem;font-variant-numeric:tabular-nums}
.recipe td{height:32px;padding:0;color:var(--ink-2)}
.recipe td:first-child{width:4.2rem;padding-right:1rem;text-align:right;color:var(--ink);font-weight:600}
.recipe__note{margin-top:.2rem;height:32px;line-height:32px;font-size:.875rem;color:var(--muted)}
.flow .nutri{box-shadow:0 22px 44px -26px rgba(20,25,30,.35)}
/* Die Tabelle liegt rechts unten auf dem Rezept, die Mengen links bleiben sichtbar.
   Erst ab voller Breite überlappen sie stark, sonst wird die Tabelle zu schmal. */
@media(min-width:600px){
  .flow{display:flex;flex-direction:column;gap:0}
  .flow__step--in{align-self:flex-start;transform:rotate(-1.2deg)}
  .flow__step--out{align-self:flex-end;width:min(100%,370px);margin-top:-2.5rem;position:relative;z-index:1}
  .flow__step--out .flow__cap{text-align:right}
  .flow .nutri{max-width:none}
}
@media(min-width:1240px){.flow__step--out{width:310px;margin-top:-10.5rem}}

/* Was ich brauche */
.need{display:grid;gap:1.8rem}
.need h2{font-size:clamp(1.8rem,3.4vw,2.6rem);line-height:1.08;letter-spacing:-.035em}
.need__list{list-style:none;margin:0;padding:0;display:grid;gap:1.4rem}
.need__list li{border-top:3px solid var(--ink);padding-top:.9rem}
.need__list b{display:block;font-size:1.1875rem;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.need__list p{margin-top:.35rem;font-size:.9688rem;line-height:1.5;color:var(--ink-2)}
.need__note{color:var(--ink);font-weight:500}
.need__note a{color:var(--green);font-weight:600;text-underline-offset:.25em}
@media(min-width:800px){.need__list{grid-template-columns:repeat(3,1fr);gap:2.4rem}}

/* Berechnung oder Labor als Balken */
.bars{display:grid;gap:2.4rem;max-width:62rem}
@media(min-width:900px){.bars{grid-template-columns:1fr 1fr;gap:4rem}}
.bars h3{font-size:1rem;font-weight:600;letter-spacing:0;color:var(--muted);margin-bottom:.9rem}
.bar{display:grid;grid-template-columns:7rem 1fr;align-items:center;gap:.3rem 1rem;padding:.55rem 0}
.bar__label{font-weight:600;color:var(--ink)}
.bar__track{position:relative;height:30px;background:var(--paper-2)}
.bar__track i{position:absolute;left:0;top:0;bottom:0;width:var(--w);
  background:linear-gradient(90deg,var(--c) 0 var(--min),var(--c2) var(--min) 100%)}
.bar__val{grid-column:2;font-size:.9688rem;font-weight:600;color:var(--ink)}
.bar--calc{--c:var(--green);--c2:#8fc7a1}
.bar--calc .bar__val{color:var(--green)}
.bar--lab{--c:#5b636b;--c2:#c3c8cc}
.bars__note{margin-top:2.2rem;padding-top:1.2rem;border-top:1px solid var(--line);max-width:52rem;color:var(--ink-2)}

/* Preise */
.prices{display:grid;border:2px solid var(--ink)}
.prices__main{padding:clamp(1.5rem,3.5vw,2.4rem);border-bottom:1px solid var(--line)}
.prices__main h2{font-size:1.125rem;letter-spacing:-.01em;color:var(--muted);font-weight:600}
.prices__big{margin-top:.6rem;font-size:clamp(3rem,6vw,4.5rem);font-weight:700;line-height:1;letter-spacing:-.05em;color:var(--ink)}
.prices__per{margin-top:.6rem;color:var(--ink-2);max-width:20rem}
.prices__main .btn{margin-top:1.6rem}
.prices__add{margin:0;padding:clamp(1rem,2.5vw,1.6rem) clamp(1.5rem,3.5vw,2.4rem)}
.prices__add div{display:flex;justify-content:space-between;gap:1rem;padding:.95rem 0;border-bottom:1px solid var(--line)}
.prices__add div:last-child{border-bottom:0}
.prices__add dt{color:var(--ink-2)}
.prices__add dd{margin:0;font-weight:600;color:var(--ink);text-align:right}
@media(min-width:860px){
  .prices{grid-template-columns:1fr 1.3fr}
  .prices__main{border-bottom:0;border-right:1px solid var(--line)}
  .prices__add{align-self:center}
}

/* Branchen als Kacheln */
.trades{display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
.trades a{display:block;background:#fff;padding:1.4rem 1.5rem 1.5rem;text-decoration:none;transition:background-color .15s}
.trades a:hover{background:#f0f7f2}
.trades b{display:block;font-size:1.125rem;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.trades a:hover b{color:var(--green)}
.trades span{display:block;margin-top:.35rem;font-size:.9375rem;line-height:1.5;color:var(--ink-2)}
@media(min-width:640px){.trades{grid-template-columns:1fr 1fr}}
@media(min-width:1000px){.trades{grid-template-columns:repeat(3,1fr)}}


/* Handy */
@media(max-width:600px){
  .n-hero{padding-top:1.6rem}
  .n-hero h1{font-size:2.2rem}
  .n-price b{font-size:1.4rem}
  .recipe{max-width:none}
  .need h2,.prices__main h2{font-size:1.75rem}
  .prices__main h2{font-size:1.0625rem}
  .need__list{gap:1.1rem}
  .bar{grid-template-columns:1fr;gap:.35rem}
  .bar__val{grid-column:1}
  .bar__track{height:22px}
  .prices__add div{flex-direction:column;gap:.1rem}
  .prices__add dd{text-align:left}
  .prices__main .btn{display:block;text-align:center}
  .trades a{padding:1.1rem 1.1rem 1.2rem}
}
