/* =====================================================
   Einfach Gesund Essen – Mari Knust
   Design tokens abgeleitet aus der Broschüre:
   dunkles Schiefer + Gold/Beige Akzent, viel Weißraum
   ===================================================== */

:root {
  /* Farben */
  --slate: #24262b;
  --slate-deep: #1b1d21;
  --slate-soft: #2e3138;
  --gold: #b08d57;
  --gold-strong: #9a7842;
  --gold-soft: #cbb182;
  --cream: #f7f4ef;
  --cream-deep: #efe9e0;
  --ink: #2b2c2f;
  --muted: #5d5f64;
  --line: #e3ddd2;
  --white: #ffffff;

  /* Typografie */
  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Abstände (4/8 px Raster) */
  --space-section: clamp(4rem, 9vw, 8rem);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(36, 38, 43, 0.06);
  --shadow-md: 0 12px 32px rgba(36, 38, 43, 0.12);
  --maxw: 1160px;
  --header-h: 76px;
}

/* ===== Reset / Basis ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px Basis */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
a { color: inherit; }

::selection { background: var(--gold-soft); color: var(--slate-deep); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 1100;
  background: var(--slate);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Sichtbarer Fokus für Tastaturnutzung */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Layout-Helfer ===== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-strong);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--gold-soft); }

.script-accent {
  font-family: var(--font-script);
  color: var(--gold-strong);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.4rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--slate-deep);
  margin: 0.2rem 0 1.2rem;
}
.section-title--light { color: var(--white); }

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.6;
}

.section { padding-block: var(--space-section); }

/* ===== Buttons ===== */
.btn {
  --btn-pad-y: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--btn-pad-y) 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-strong); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--slate-deep);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate-deep);
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-menu a:hover { background: var(--cream-deep); }
.nav-menu .nav-cta {
  background: var(--slate);
  color: var(--white);
  padding-inline: 1.3rem;
}
.nav-menu .nav-cta:hover { background: var(--slate-deep); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--slate-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--slate-deep);
  background-image: url("images/hero-food.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  overflow: hidden;
}
/* WebP-Variante für unterstützende Browser */
@supports (background-image: image-set(url("images/hero-food.webp") type("image/webp"))) {
  .hero {
    background-image: image-set(
      url("images/hero-food.webp") type("image/webp"),
      url("images/hero-food.jpg") type("image/jpeg")
    );
  }
}
/* Schiefer-Verlauf (links deckend → rechts transparent): hält den Text
   lesbar, überdeckt gedruckte Reste und blendet nahtlos in den Schiefer
   der Fotografie über. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      var(--slate-deep) 0%,
      rgba(27, 29, 33, 0.95) 32%,
      rgba(27, 29, 33, 0.72) 52%,
      rgba(27, 29, 33, 0.42) 74%,
      rgba(27, 29, 33, 0.24) 100%
    ),
    linear-gradient(0deg, rgba(27, 29, 33, 0.55) 0%, transparent 42%),
    radial-gradient(120% 80% at 86% 14%, rgba(176, 141, 87, 0.16), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: clamp(5rem, 13vw, 9rem);
  max-width: 880px;
}
.hero-title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0.4rem 0 1.4rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ===== Intro ===== */
.section--intro { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ===== Säulen ===== */
.section--pillars {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar-head .script-accent { display: block; }
.pillar-head h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--slate-deep);
  line-height: 1.3;
}
.pillar-body p { color: var(--muted); }
.pillar-body em { font-style: normal; color: var(--gold-strong); font-weight: 600; }

blockquote {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 1.4rem 1.5rem 1.4rem 1.6rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote p { margin: 0; color: var(--ink); }
blockquote strong { color: var(--slate-deep); }
.quote-icon {
  width: 30px;
  height: 30px;
  fill: var(--gold-soft);
  margin-bottom: 0.5rem;
}

/* ===== Über mich ===== */
.section--about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  aspect-ratio: 535 / 700;
}
.about-content .section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.about-content p { color: var(--muted); }

.credentials {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.credentials li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--slate-deep);
}
.credentials svg {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--gold);
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about-signoff {
  margin-top: 1.2rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}

/* ===== CTA / Kontakt ===== */
.section--cta {
  position: relative;
  color: var(--white);
  background-color: var(--slate-deep);
  background-image: url("images/cta-food.jpg");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  overflow: hidden;
}
@supports (background-image: image-set(url("images/cta-food.webp") type("image/webp"))) {
  .section--cta {
    background-image: image-set(
      url("images/cta-food.webp") type("image/webp"),
      url("images/cta-food.jpg") type("image/jpeg")
    );
  }
}
/* Dunkler Scrim: hält den zentrierten Text lesbar, lässt die farbigen
   Schalen aber durchscheinen; warmer Gold-Schimmer für die Markenoptik. */
.cta-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% 16%, rgba(176, 141, 87, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(20, 22, 26, 0.64) 0%, rgba(20, 22, 26, 0.72) 100%);
}
.cta-inner { position: relative; }
.cta-inner .section-title--light { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.cta-text {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 240px;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-soft);
}
.contact-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.4rem;
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
}
.contact-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--slate-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); display: block; }
.footer-brand p { margin: 0.15rem 0 0; font-size: 0.88rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; text-align: right; }
.footer-contact a { text-decoration: none; transition: color 0.18s ease; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.4rem;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }
  .nav-menu.is-open { max-height: 420px; visibility: visible; }
  .nav-menu a { min-height: 50px; border-radius: var(--radius-sm); }
  .nav-menu .nav-cta { margin-top: 0.3rem; justify-content: center; }

  .pillar { grid-template-columns: 1fr; gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; margin-inline: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: left; }
}

@media (max-width: 600px) {
  /* Auf schmalen Schirmen das Schäufelchen leicht nach rechts rücken
     und den Verlauf etwas kräftiger, damit der Text klar lesbar bleibt. */
  .hero { background-position: 64% center; }
  .hero-overlay {
    background:
      linear-gradient(
        118deg,
        var(--slate-deep) 0%,
        rgba(27, 29, 33, 0.92) 42%,
        rgba(27, 29, 33, 0.66) 100%
      ),
      linear-gradient(0deg, rgba(27, 29, 33, 0.62) 0%, transparent 48%);
  }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .contact-card { min-width: 100%; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
