/* ═══════════════════════════════════════════════════
   SMAK NATURA LANDING — style.css
   Industrial B2B, operational. Buyer here is a reseller
   evaluating a supply decision, not a diner evaluating a menu.
   ═══════════════════════════════════════════════════ */

/* Self-hosted Inter (variable). Never load this from the Google CDN,
   see the note in smak-natura.php. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sn-bg:          #f4f3f0;
  --sn-surface:     #ffffff;
  --sn-fg:          #17170f;
  --sn-muted:       rgba(23, 23, 15, 0.65);
  --sn-muted2:      rgba(23, 23, 15, 0.38);
  --sn-border:      rgba(23, 23, 15, 0.1);
  --sn-accent:      #2f6b3f;  /* button fills only, white text on it passes AA */
  --sn-accent-text: #2b5f39;  /* accent-coloured TEXT on light bg, passes AA at small sizes */
  --sn-accent-2:    #234e2c;  /* button hover */
  --sn-dark:        #17170f;
  --sn-dark-fg:     #f4f3f0;
  --sn-radius:      10px;
  --sn-ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --sn-font:        'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body.sn-page {
  font-family: var(--sn-font);
  color: var(--sn-fg);
  margin: 0;
}

/* The active block theme (Twenty Twenty-Five) constrains every paragraph-
   wrapped block, including each shortcode's own <p>, to its 645px
   contentSize. Undo that here so our own .sn-container widths apply
   instead of the theme's. */
body.sn-page .is-layout-constrained > :not(.sn-modal) {
  max-width:    none !important;
  margin-left:  0 !important;
  margin-right: 0 !important;
}

/* ── Layout ──────────────────────────────────────── */

.sn-container {
  max-width: 1440px;
  margin:    0 auto;
  padding:   0 clamp(20px, 5vw, 64px);
}

.sn-section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.sn-section-head {
  max-width:     720px;
  margin-bottom: 56px;
}

/* ── Scroll fade-in ──────────────────────────────── */

.sn-fade {
  opacity:   0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--sn-ease), transform 0.6s var(--sn-ease);
}

.sn-fade.sn-visible {
  opacity:   1;
  transform: translateY(0);
}

/* ── Shared type ─────────────────────────────────── */

.sn-tag {
  display:        inline-block;
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--sn-accent-text);
  margin-bottom:  16px;
}

.sn-h2 {
  font-family:    var(--sn-font);
  font-size:      clamp(28px, 3.6vw, 44px);
  font-weight:    800;
  letter-spacing: -0.02em;
  line-height:    1.12;
  color:          var(--sn-fg);
  margin:         0 0 16px;
}

.sn-body {
  font-size:   16px;
  line-height: 1.65;
  color:       var(--sn-muted);
  margin:      0;
}

/* ── Buttons ─────────────────────────────────────── */

.sn-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  font-family:     var(--sn-font);
  font-weight:     700;
  letter-spacing:  0.02em;
  text-decoration: none;
  color:           #fff;
  background:      var(--sn-accent);
  border:          none;
  border-radius:   8px;
  cursor:          pointer;
  transition:      background 0.18s var(--sn-ease), transform 0.18s var(--sn-ease), box-shadow 0.18s var(--sn-ease);
}

.sn-btn:hover {
  background: var(--sn-accent-2);
  transform:  translateY(-1px);
  box-shadow: 0 8px 24px rgba(47, 107, 63, 0.28);
}

.sn-btn-lg { font-size: 15px; padding: 16px 30px; }
.sn-btn-sm { font-size: 13px; padding: 10px 18px; }

/* ════════════════════════════════════════════════════
   TOP BAR — persistent CTA per landing page best practice.
   No nav links, single action page.
   ════════════════════════════════════════════════════ */

.sn-topbar {
  position:      fixed;
  top:           0; left: 0; right: 0;
  z-index:       9999;
  height:        68px;
  background:    transparent;
  border-bottom: 1px solid transparent;
  transition:    background 0.25s ease, border-color 0.25s ease;
}

.sn-topbar.sn-solid {
  background:       rgba(244, 243, 240, 0.9);
  backdrop-filter:  blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--sn-border);
}

.sn-topbar-inner {
  max-width:       1440px;
  margin:          0 auto;
  padding:         0 clamp(20px, 5vw, 64px);
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.sn-logo {
  display:     flex;
  align-items: center;
  height:      100%;
}

.sn-logo img {
  display: block;
  height:  56px;
  width:   auto;
}

/* ════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════ */

.sn-hero {
  padding: clamp(140px, 18vw, 200px) 0 clamp(64px, 8vw, 100px);
  background: var(--sn-bg);
}

/* Text column left, visual column right on wide screens so the
   hero uses the full width instead of leaving it empty. */
@media (min-width: 900px) {
  .sn-hero-inner {
    display:               grid;
    grid-template-columns: minmax(0, 640px) 1fr;
    align-items:           center;
    column-gap:            clamp(32px, 5vw, 72px); /* rows keep their own margins */
  }

  .sn-hero-inner > .sn-tag,
  .sn-hero-title,
  .sn-hero-sub,
  .sn-hero-actions {
    grid-column: 1;
  }

  /* span 4 = tag, title, sub, actions. "1 / -1" only reaches the
     explicit grid, which has no rows, so it collapsed into row 1. */
  .sn-hero-visual {
    grid-column: 2;
    grid-row:    1 / span 4;
  }
}

.sn-hero-title,
.sn-hero-sub,
.sn-hero-actions {
  max-width: 860px;
}

.sn-hero-title {
  font-family:    var(--sn-font);
  font-size:      clamp(36px, 5.4vw, 64px);
  font-weight:    800;
  letter-spacing: -0.03em;
  line-height:    1.06;
  color:          var(--sn-fg);
  margin:         0 0 20px;
}

.sn-hero-sub {
  font-size:   18px;
  line-height: 1.6;
  color:       var(--sn-muted);
  max-width:   560px;
  margin:      0 0 32px;
}

.sn-hero-actions { margin-bottom: 48px; }

.sn-hero-img {
  display:       block;
  width:         100%;
  height:        auto;
  border-radius: var(--sn-radius);
  box-shadow:    0 18px 48px rgba(23, 23, 15, 0.18);
}

.sn-hero-visual-placeholder {
  width:           100%;
  aspect-ratio:    16 / 7;
  border-radius:   var(--sn-radius);
  background:      repeating-linear-gradient(135deg, rgba(23,23,15,0.05), rgba(23,23,15,0.05) 12px, rgba(23,23,15,0.02) 12px, rgba(23,23,15,0.02) 24px);
  border:          1px dashed var(--sn-border);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--sn-muted2);
  font-size:       13px;
  text-align:      center;
  padding:         20px;
}

/* ════════════════════════════════════════════════════
   STAT GRID (legitimacy)
   ════════════════════════════════════════════════════ */

.sn-stat-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--sn-border);
  border:                1px solid var(--sn-border);
  border-radius:         var(--sn-radius);
  overflow:              hidden;
}

.sn-stat-card {
  background: var(--sn-surface);
  padding:    32px 24px;
  text-align: center;
}

.sn-stat-value {
  font-size:      clamp(30px, 4vw, 44px);
  font-weight:    800;
  letter-spacing: -0.02em;
  color:          var(--sn-accent-text);
  margin-bottom:  6px;
}

.sn-stat-label {
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--sn-muted);
}

.sn-stat-card--pending .sn-stat-value { color: var(--sn-muted2); }

@media (max-width: 640px) {
  .sn-stat-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   PREISVORTEIL — the chain
   ════════════════════════════════════════════════════ */

.sn-preisvorteil {
  background: var(--sn-dark);
}

.sn-preisvorteil .sn-tag { color: #7ed9a0; }
.sn-preisvorteil .sn-h2  { color: var(--sn-dark-fg); }
.sn-preisvorteil .sn-body { color: rgba(244, 243, 240, 0.6); }

/* 4 steps and 3 arrows on one row. Equal columns so the longest
   label wraps inside its own cell instead of breaking the chain. */
.sn-chain {
  display:               grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items:           stretch;
  gap:                   10px;
}

.sn-chain-step {
  display:         flex;
  align-items:     center;
  gap:             12px;
  background:      rgba(244, 243, 240, 0.06);
  border:          1px solid rgba(244, 243, 240, 0.12);
  border-radius:   10px;
  padding:         16px 18px;
}

.sn-chain-num {
  width:           26px;
  height:          26px;
  border-radius:   50%;
  background:      var(--sn-accent);
  color:           #fff;
  font-size:       12px;
  font-weight:     700;
  display:         flex;
  align-items:     center;
  justify-content: center;
  flex-shrink:     0;
}

.sn-chain-label {
  font-size:   14px;
  font-weight: 600;
  line-height: 1.35;
  color:       var(--sn-dark-fg);
}

.sn-chain-arrow {
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(244, 243, 240, 0.35);
  font-size:       18px;
}

@media (max-width: 900px) {
  .sn-chain { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 560px) {
  .sn-chain { grid-template-columns: 1fr; }
  .sn-chain-arrow { transform: rotate(90deg); }
}

/* ════════════════════════════════════════════════════
   SORTIMENT
   ════════════════════════════════════════════════════ */

.sn-cat-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   20px;
}

.sn-cat-card {
  display:       block;
  width:         100%;
  padding:       0;
  font:          inherit;
  text-align:    left;
  cursor:        pointer;
  border:        1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  overflow:      hidden;
  background:    var(--sn-surface);
  transition:    border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sn-cat-card:hover {
  border-color: var(--sn-accent);
  transform:    translateY(-2px);
  box-shadow:   0 8px 24px rgba(47, 107, 63, 0.14);
}

.sn-cat-card:focus-visible {
  outline:        2px solid var(--sn-accent);
  outline-offset: 3px;
}

.sn-cat-img {
  display:      block;
  width:        100%;
  height:       auto;
  aspect-ratio: 4 / 3;
  object-fit:   cover;
}

.sn-cat-placeholder {
  aspect-ratio:    4 / 3;
  background:      repeating-linear-gradient(135deg, rgba(23,23,15,0.05), rgba(23,23,15,0.05) 10px, rgba(23,23,15,0.02) 10px, rgba(23,23,15,0.02) 20px);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           var(--sn-muted2);
  font-size:       11px;
  text-align:      center;
  padding:         12px;
}

.sn-cat-name {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: space-between;
  align-items:     center;
  gap:             12px;
  padding:         14px 16px;
  font-size:       14px;
  font-weight:     700;
  color:           var(--sn-fg);
}

.sn-cat-more {
  white-space: nowrap;
  font-size:   13px;
  font-weight: 600;
  color:       var(--sn-accent-text);
}

/* ── Category modal ── */
.sn-modal {
  width:         min(460px, calc(100vw - 32px));
  padding:       36px 32px 28px;
  border:        none;
  border-radius: var(--sn-radius);
  background:    var(--sn-surface);
  color:         var(--sn-fg);
  box-shadow:    0 24px 64px rgba(23, 23, 15, 0.25);
  text-align:    center;
  /* A global margin reset elsewhere kills the UA centring of <dialog>. */
  position:      fixed;
  inset:         0;
  margin:        auto;
  height:        fit-content;
  max-height:    calc(100vh - 32px);
  overflow-y:    auto;
}

.sn-modal::backdrop {
  background: rgba(23, 23, 15, 0.55);
}

.sn-modal[open] {
  animation: sn-modal-in 0.22s ease-out;
}

@keyframes sn-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-modal[open] { animation: none; }
  .sn-cat-card, .sn-cat-card:hover { transition: none; transform: none; }
}

.sn-modal-close {
  position:      absolute;
  top:           10px;
  right:         10px;
  width:         40px;
  height:        40px;
  border:        none;
  border-radius: 50%;
  background:    transparent;
  color:         var(--sn-muted);
  font-size:     26px;
  line-height:   1;
  cursor:        pointer;
}

.sn-modal-close:hover { background: rgba(23, 23, 15, 0.06); color: var(--sn-fg); }

.sn-modal-title {
  font-size:      clamp(22px, 3vw, 26px);
  font-weight:    800;
  letter-spacing: -0.02em;
  line-height:    1.2;
  margin:         10px 0 12px;
}

.sn-modal-cta { margin: 24px 0 8px; }

/* Focus lands on the title when the modal opens, so the close
   button does not show a ring on every open. */
.sn-modal-title:focus { outline: none; }

html.sn-modal-lock { overflow: hidden; }

@media (max-width: 768px) {
  .sn-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════
   BESTELLPROZESS — steps
   ════════════════════════════════════════════════════ */

.sn-steps {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
}

.sn-step-card {
  background:    var(--sn-surface);
  border:        1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  padding:       28px;
}

.sn-step-num {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           30px;
  height:          30px;
  border-radius:   50%;
  background:      var(--sn-dark);
  color:           var(--sn-dark-fg);
  font-size:       13px;
  font-weight:     700;
  margin-bottom:   16px;
}

.sn-step-title {
  font-size:      17px;
  font-weight:    800;
  letter-spacing: -0.01em;
  color:          var(--sn-fg);
  margin:         0 0 8px;
}

.sn-step-desc {
  font-size:   14px;
  line-height: 1.6;
  color:       var(--sn-muted);
  margin:      0;
}

@media (max-width: 768px) {
  .sn-steps { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   LIEFERUNG — fact row
   ════════════════════════════════════════════════════ */

.sn-fact-row {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   20px;
}


.sn-fact {
  border-left: 3px solid var(--sn-accent);
  padding:     4px 0 4px 18px;
}

.sn-fact-label {
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:          var(--sn-muted);
  margin-bottom:  6px;
}

.sn-fact-value {
  font-size:   18px;
  font-weight: 700;
  color:       var(--sn-fg);
}

@media (max-width: 640px) {
  .sn-fact-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   KONTAKT
   ════════════════════════════════════════════════════ */

.sn-kontakt {
  padding-bottom: clamp(100px, 12vw, 160px);
}

.sn-kontakt-card {
  max-width:     560px;
  margin:        0 auto;
  text-align:    center;
  background:    var(--sn-surface);
  border:        1px solid var(--sn-border);
  border-radius: var(--sn-radius);
  padding:       clamp(32px, 5vw, 56px);
}

.sn-wa-btn {
  margin-top: 28px;
}

.sn-kontakt-number {
  margin-top:  16px;
  font-size:   14px;
  font-weight: 600;
  color:       var(--sn-muted);
}

/* ── Trust microcopy under a CTA ──────────────────── */

.sn-trust {
  margin-top:      12px;
  font-size:       13px;
  color:           var(--sn-muted);
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             6px;
}

.sn-hero-actions .sn-trust,
.sn-cta-inline .sn-trust {
  justify-content: flex-start;
}

.sn-preisvorteil .sn-trust { color: rgba(244, 243, 240, 0.6); }

/* ── Inline mid-page CTA ──────────────────────────── */

.sn-cta-inline {
  margin-top: 44px;
}

/* ════════════════════════════════════════════════════
   MOBILE STICKY CTA BAR
   Measured at +15-40% on mobile for high-intent pages.
   Primary CTA only, thumb-reach zone.
   ════════════════════════════════════════════════════ */

.sn-sticky-cta {
  display:  none;
  position: fixed;
  bottom:   0; left: 0; right: 0;
  z-index:  9998;
  padding:  10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 243, 240, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--sn-border);
}

.sn-sticky-cta .sn-btn {
  width:     100%;
  font-size: 16px;
  padding:   16px 24px;
}

@media (max-width: 768px) {
  .sn-sticky-cta { display: block; }
  /* Keep the last section clear of the bar */
  body.sn-page { padding-bottom: 84px; }
  /* One CTA per viewport, the sticky bar owns it on mobile */
  .sn-topbar-cta { display: none; }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */

.sn-footer {
  background:  var(--sn-dark);
  padding:     28px 0;
}

.sn-footer-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
  flex-wrap:       wrap;
}

.sn-footer-legal {
  font-size: 13px;
  color:     rgba(244, 243, 240, 0.55);
}

.sn-footer-nav {
  display: flex;
  gap:     22px;
}

.sn-footer-social {
  display: flex;
  gap:     6px;
}

.sn-footer-social a {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          40px;
  border-radius:   50%;
  color:           rgba(244, 243, 240, 0.75);
  transition:      color 0.15s var(--sn-ease), background 0.15s var(--sn-ease);
}

/* Stacked footer on phones: line the icons up with the text edge. */
@media (max-width: 768px) {
  .sn-footer-social { margin-left: -11px; }
}

.sn-footer-social a:hover {
  color:      var(--sn-dark-fg);
  background: rgba(244, 243, 240, 0.08);
}

.sn-footer-nav a {
  font-size:       13px;
  color:           rgba(244, 243, 240, 0.75);
  text-decoration: none;
  transition:      color 0.15s var(--sn-ease);
}

.sn-footer-nav a:hover { color: var(--sn-dark-fg); }

/* ════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ════════════════════════════════════════════════════ */

.sn-legal { padding-top: clamp(56px, 8vw, 96px); }

.sn-legal-inner {
  max-width: 760px;
}

.sn-legal-inner p {
  font-size:   15px;
  line-height: 1.7;
  color:       var(--sn-muted);
  margin:      0 0 18px;
}

.sn-legal-h3 {
  font-size:      17px;
  font-weight:    800;
  letter-spacing: -0.01em;
  color:          var(--sn-fg);
  margin:         32px 0 10px;
}

.sn-legal-note {
  background:    rgba(47, 107, 63, 0.08);
  border-left:   3px solid var(--sn-accent);
  padding:       14px 18px;
  border-radius: 4px;
  font-size:     14px !important;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 540px) {
  .sn-section { padding: 56px 0; }
  .sn-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
