/*
Theme Name: NutriNet Ostwürttemberg
Theme URI: https://www.nutrinet-ostalb.de/
Author: NutriNet Ostwürttemberg
Description: Eigenständiges, responsives WordPress-Theme für NutriNet Ostwürttemberg – ohne Divi oder Page-Builder.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nutrinet-light
*/

:root {
  --nn-paper: #fefdf9;
  --nn-white: #fff;
  --nn-ink: #4f554a;
  --nn-brown: #604a3f;
  --nn-sage: #879a83;
  --nn-sage-dark: #657861;
  --nn-sage-pale: #eef1e9;
  --nn-clay: #c68155;
  --nn-clay-dark: #a9653f;
  --nn-line: #e8e1d8;
  --nn-serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --nn-sans: "Open Sans", Arial, sans-serif;
  --nn-shadow: 0 16px 45px rgba(83, 69, 55, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nn-ink);
  background: var(--nn-paper);
  font-family: var(--nn-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.nn-title, .nn-advisor h3, .nn-advisor h4, .nn-advisor li, .nn-benefit h3, .nn-benefit p {
  hyphens: auto;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; margin: 12px; padding: 10px 16px; clip: auto;
  background: #fff; z-index: 9999;
}
.nn-container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.nn-section { padding: 92px 0; }
.nn-eyebrow {
  margin: 0 0 12px; color: var(--nn-clay-dark); font-size: 13px; line-height: 1.2;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.nn-title {
  margin: 0; color: var(--nn-ink); font-family: var(--nn-serif); font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 500; line-height: .98; letter-spacing: -.025em; text-wrap: balance;
}
.nn-subtitle { max-width: 760px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.nn-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 25px;
  border: 1px solid var(--nn-clay); border-radius: 999px; color: #fff; background: var(--nn-clay);
  text-decoration: none; font-size: 15px; font-weight: 700; transition: .2s ease;
}
.nn-button:hover, .nn-button:focus-visible { background: var(--nn-clay-dark); border-color: var(--nn-clay-dark); transform: translateY(-2px); }
.nn-button--outline { color: var(--nn-sage-dark); background: transparent; border-color: var(--nn-sage); }
.nn-button--outline:hover, .nn-button--outline:focus-visible { color: #fff; background: var(--nn-sage-dark); border-color: var(--nn-sage-dark); }

/* Header */
.nn-header { position: relative; z-index: 20; background: rgba(251,249,246,.96); border-bottom: 1px solid rgba(96,74,63,.08); }
.nn-header__inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nn-brand img { width: 168px; max-height: 76px; object-fit: contain; }
.nn-nav { display: flex; align-items: center; gap: 30px; }
.nn-nav a { text-decoration: none; font-size: 14px; font-weight: 600; }
.nn-nav a:hover { color: var(--nn-clay-dark); }
.nn-menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--nn-ink); }
.nn-menu-toggle span { display: block; width: 27px; height: 2px; margin: 5px 0; background: currentColor; }

/* Hero */
.nn-hero { padding: clamp(26px, 4vw, 48px) 0 clamp(70px, 8vw, 100px); overflow: hidden; text-align: center; }
.nn-hero__grid { display: block; width: min(940px, 100%); margin-inline: auto; }
.nn-hero__copy { position: relative; z-index: 1; }
.nn-hero__logo { display: block; width: clamp(118px, 12vw, 158px); margin: 0 auto clamp(42px, 6vw, 72px); }
.nn-hero__logo img { width: 100%; height: auto; }
.nn-hero__copy > .nn-eyebrow { margin-bottom: 24px; }
.nn-hero__copy .nn-title { max-width: none; margin-inline: auto; font-size: clamp(38px, 4.4vw, 59px); white-space: nowrap; }
.nn-hero__copy p { max-width: 720px; margin: 27px auto 0; font-size: clamp(18px, 2vw, 22px); }
.nn-hero__prompt { margin-top: 42px; font-weight: 700; color: var(--nn-brown); }
.nn-location-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.nn-filter { cursor: pointer; min-height: 46px; padding: 10px 20px; border: 1px solid var(--nn-sage); border-radius: 999px; background: transparent; color: var(--nn-sage-dark); font-weight: 700; }
.nn-filter:hover, .nn-filter:focus-visible, .nn-filter.is-active { color: #fff; background: var(--nn-sage-dark); }

/* Advisors */
.nn-advisors { padding: 12px 0 100px; }
.nn-advisors__heading { text-align: center; margin-bottom: 48px; }
.nn-advisors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; align-items: stretch; }
.nn-advisor { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--nn-line); border-radius: 18px; background: rgba(255,255,255,.65); box-shadow: 0 12px 34px rgba(83,69,55,.08); transition: opacity .2s, transform .2s; }
.nn-advisor[hidden] { display: none; }
.nn-advisor__photo { aspect-ratio: 1 / 1.04; background: var(--nn-sage-pale); }
.nn-advisor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nn-advisor__body { display: flex; flex: 1; flex-direction: column; padding: 27px 26px 26px; }
.nn-advisor__location { margin: 0 0 7px; color: var(--nn-clay-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nn-advisor h3 { margin: 0; color: var(--nn-clay-dark); font-family: var(--nn-serif); font-size: 32px; font-style: italic; font-weight: 500; line-height: 1.05; }
.nn-advisor h4 { margin: 23px 0 9px; color: var(--nn-sage-dark); font-family: var(--nn-serif); font-size: 23px; font-style: italic; font-weight: 600; }
.nn-advisor ul { margin: 0 0 26px; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.nn-advisor__actions { display: grid; gap: 10px; margin-top: auto; }
.nn-advisor__actions .nn-button { width: 100%; padding-inline: 16px; text-align: center; }

/* Der Weg */
.nn-path { position: relative; overflow: hidden; background: var(--nn-paper); }
.nn-path__header { text-align: center; }
.nn-path__header .nn-title { max-width: 930px; margin-inline: auto; }
.nn-path__lead { margin-top: 35px; font-size: clamp(18px, 2.1vw, 23px); }
.nn-path__lead strong { display: block; margin-bottom: 3px; font-size: 27px; font-weight: 500; }
.nn-path__grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 62px; }
.nn-step { position: relative; min-height: 430px; padding: 48px 16px 24px; border: 2px solid var(--nn-line); border-radius: 28px; text-align: center; background: rgba(255,255,255,.58); box-shadow: 0 7px 0 rgba(110,88,68,.08); }
.nn-step__number { position: absolute; top: -27px; left: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; padding: 0 0 1px; transform: translateX(-50%); border-radius: 50%; color: #fff; background: var(--nn-clay); font-family: var(--nn-sans); font-size: 34px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.nn-step:nth-child(3) .nn-step__number { background: var(--nn-sage); }
.nn-step h3 { min-height: 70px; margin: 0; color: var(--nn-brown); font-family: var(--nn-serif); font-size: 24px; font-weight: 600; line-height: 1.08; }
.nn-step__icon { display: grid; place-items: center; height: 160px; margin: 8px auto; }
.nn-step__icon img { width: 165px; max-height: 150px; object-fit: contain; }
.nn-step p { margin: 0; font-size: 18px; line-height: 1.35; }
.nn-step__link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-top: 13px; padding: 7px 13px; border: 1px solid var(--nn-clay); border-radius: 999px; color: #fff; background: var(--nn-clay); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.25; transition: .2s ease; }
.nn-step__link:hover, .nn-step__link:focus-visible { border-color: var(--nn-clay-dark); background: var(--nn-clay-dark); transform: translateY(-1px); }
.nn-step__choices { display: grid; gap: 6px; width: min(132px, 100%); margin: 11px auto 0; }
.nn-step__choices a { display: flex; align-items: center; justify-content: center; min-height: 29px; padding: 4px 10px; border: 1px solid var(--nn-sage); border-radius: 999px; color: var(--nn-sage-dark); background: rgba(238,241,233,.75); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.2; transition: .2s ease; }
.nn-step__choices a:hover, .nn-step__choices a:focus-visible { color: #fff; background: var(--nn-sage-dark); transform: translateY(-1px); }
.nn-step__arrow { position: absolute; top: 47%; right: -29px; z-index: 2; width: 38px; height: 22px; }
.nn-step__arrow::before { content: ""; position: absolute; top: 10px; left: 0; right: 7px; height: 3px; background: var(--nn-sage); transform: rotate(-8deg); }
.nn-step__arrow::after { content: ""; position: absolute; top: 4px; right: 5px; width: 14px; height: 14px; border-top: 3px solid var(--nn-sage); border-right: 3px solid var(--nn-sage); transform: rotate(38deg); }
.nn-leaf { position: absolute; width: 190px; opacity: .68; pointer-events: none; }
.nn-leaf--top { top: 48px; right: max(20px, calc((100vw - 1280px) / 2)); transform: rotate(7deg); }
.nn-leaf--bottom { left: max(16px, calc((100vw - 1320px) / 2)); bottom: 18px; transform: rotate(195deg); }

/* Warum */
.nn-why { background: var(--nn-sage-pale); }
.nn-why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(46px, 7vw, 96px); align-items: center; }
.nn-why__photo { position: relative; }
.nn-why__photo img { width: 100%; max-height: 720px; object-fit: contain; border-radius: 250px 250px 24px 24px; box-shadow: var(--nn-shadow); }
.nn-why__copy .nn-title { font-size: clamp(40px, 4.6vw, 62px); }
.nn-why__intro { margin: 24px 0 31px; font-size: 18px; }
.nn-benefits { display: grid; gap: 20px; }
.nn-benefit { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.nn-benefit__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.72); }
.nn-benefit__icon img { width: 36px; height: 36px; object-fit: contain; }
.nn-benefit h3 { margin: 0 0 4px; color: var(--nn-brown); font-family: var(--nn-serif); font-size: 25px; line-height: 1.1; }
.nn-benefit p { margin: 0; font-size: 15px; }
.nn-why__closing { margin: 32px 0 0; font-weight: 600; }

/* Philosophie – responsive HTML-Nachbau des gelieferten Banners */
.nn-philosophy { padding: 72px 0; background: var(--nn-paper); }
.nn-philosophy__panel {
  position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) 250px; gap: 40px;
  align-items: center; min-height: 315px; padding: 46px clamp(34px, 5vw, 72px); overflow: hidden;
  border: 1px solid rgba(130,145,105,.12); border-radius: 26px;
  background: linear-gradient(115deg, #f5f3e8 0%, #faf8f0 48%, #f8f6ed 100%);
  box-shadow: 0 15px 40px rgba(83,69,55,.07);
}
.nn-philosophy__panel::before {
  content: ""; position: absolute; left: -90px; bottom: -145px; width: 360px; height: 285px;
  border-radius: 50% 60% 45% 20%; background: rgba(204,215,181,.58); transform: rotate(12deg);
}
.nn-philosophy__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 138px; height: 138px;
  border-radius: 50%; color: #6f8552; background: rgba(255,255,255,.92); box-shadow: 0 8px 25px rgba(83,69,55,.06);
}
.nn-philosophy__icon svg { width: 88px; height: 88px; }
.nn-philosophy__copy { position: relative; z-index: 1; }
.nn-philosophy__copy h2 {
  margin: 0 0 10px; color: #6f8552; font-family: var(--nn-serif); font-size: clamp(31px, 3vw, 42px);
  font-weight: 500; line-height: 1;
}
.nn-philosophy__copy p { margin: 0; color: #343730; font-family: var(--nn-serif); font-size: clamp(21px, 2.1vw, 29px); line-height: 1.45; }
.nn-philosophy__promise {
  position: relative; z-index: 1; margin: 0; color: #6f8552; font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(27px, 2.8vw, 38px); font-style: italic; line-height: 1.35; transform: rotate(-3deg); text-align: center;
}
.nn-philosophy__promise::after { content: ""; display: block; width: 92%; height: 2px; margin: 10px auto 0; background: rgba(111,133,82,.48); transform: rotate(-4deg); }

/* Generic pages and footer */
.nn-content { min-height: 60vh; padding: 70px 0 100px; }
.nn-content__inner { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.nn-content h1, .nn-content h2, .nn-content h3 { color: var(--nn-brown); font-family: var(--nn-serif); line-height: 1.12; }
.nn-content h1 { font-size: clamp(42px, 6vw, 68px); }
.nn-content a { color: var(--nn-clay-dark); }
.nn-footer { padding: 30px 0; color: rgba(255,255,255,.9); background: var(--nn-ink); font-size: 14px; }
.nn-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nn-footer nav { display: flex; gap: 20px; }
.nn-footer a { text-decoration: none; }
.nn-footer a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .nn-section { padding: 74px 0; }
  .nn-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 22px 24px; background: var(--nn-paper); border-bottom: 1px solid var(--nn-line); box-shadow: var(--nn-shadow); }
  .nn-nav.is-open { display: grid; }
  .nn-menu-toggle { display: block; }
  .nn-advisors__grid { grid-template-columns: repeat(2, 1fr); }
  .nn-advisor:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 13px); justify-self: center; }
  .nn-path__grid { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
  .nn-step__arrow { display: none; }
  .nn-leaf { width: 130px; opacity: .3; }
  .nn-why__grid { grid-template-columns: 1fr 1.15fr; gap: 42px; }
  .nn-philosophy__panel { grid-template-columns: 125px 1fr; gap: 28px; }
  .nn-philosophy__icon { width: 112px; height: 112px; }
  .nn-philosophy__icon svg { width: 72px; height: 72px; }
  .nn-philosophy__promise { grid-column: 1 / -1; margin-top: 4px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; line-height: 1.6; }
  .nn-container, .nn-content__inner { width: min(100% - 32px, 580px); }
  .nn-header__inner { min-height: 78px; }
  .nn-brand img { width: 134px; max-height: 61px; }
  .nn-section { padding: 58px 0; }
  .nn-hero { padding: 20px 0 58px; }
  .nn-hero__logo { width: 116px; margin-bottom: 38px; }
  .nn-hero__copy { text-align: center; }
  .nn-hero__copy > .nn-eyebrow { margin-bottom: 17px; }
  .nn-hero__copy .nn-title { font-size: clamp(33px, 9.7vw, 43px); white-space: normal; }
  .nn-hero__copy p { margin: 19px auto 0; font-size: 16px; line-height: 1.55; }
  .nn-hero__prompt { margin-top: 30px; font-size: 15px; line-height: 1.5; }
  .nn-location-filter { justify-content: center; }
  .nn-filter { flex: 1 1 calc(50% - 8px); min-height: 43px; padding: 8px 13px; font-size: 14px; }
  .nn-filter:last-child { flex-basis: 100%; }
  .nn-advisors { padding-bottom: 64px; }
  .nn-advisors__heading { margin-bottom: 32px; }
  .nn-advisors__grid { grid-template-columns: 1fr; }
  .nn-advisor:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .nn-advisor { width: 100%; max-width: 520px; margin-inline: auto; border-radius: 15px; }
  .nn-advisor__photo { aspect-ratio: 1.16 / 1; }
  .nn-advisor__body { padding: 23px 21px 22px; }
  .nn-advisor h3 { font-size: 29px; }
  .nn-advisor h4 { margin-top: 18px; font-size: 21px; }
  .nn-advisor ul { margin-bottom: 22px; font-size: 13.5px; line-height: 1.62; }
  .nn-advisor__actions { grid-template-columns: 1fr 1fr; }
  .nn-advisor__actions .nn-button { min-height: 46px; padding: 10px 12px; font-size: 13px; }
  .nn-title { font-size: clamp(36px, 11.4vw, 48px); }
  .nn-path__lead strong { font-size: 23px; }
  .nn-path__lead { margin-top: 25px; font-size: 16px; line-height: 1.55; }
  .nn-path__grid { grid-template-columns: 1fr; gap: 48px; margin-top: 51px; }
  .nn-step { min-height: 0; padding: 42px 20px 23px; border-radius: 20px; }
  .nn-step h3 { min-height: 0; font-size: 26px; }
  .nn-step__number { top: -23px; width: 50px; height: 50px; font-size: 30px; }
  .nn-step__icon { height: 118px; margin: 7px auto; }
  .nn-step__icon img { width: 125px; max-height: 112px; }
  .nn-step p { font-size: 16px; }
  .nn-leaf { display: none; }
  .nn-why__grid { display: flex; flex-direction: column; }
  .nn-why__photo { width: min(86%, 390px); }
  .nn-why__photo img { max-height: 480px; border-radius: 190px 190px 18px 18px; }
  .nn-why__copy { width: 100%; }
  .nn-why__copy .nn-title { font-size: clamp(34px, 10.5vw, 44px); hyphens: auto; overflow-wrap: break-word; }
  .nn-why__intro { margin: 19px 0 25px; font-size: 16px; }
  .nn-benefit { grid-template-columns: 48px 1fr; gap: 14px; }
  .nn-benefit__icon { width: 48px; height: 48px; }
  .nn-benefit__icon img { width: 29px; height: 29px; }
  .nn-benefit h3 { font-size: 22px; }
  .nn-benefit p { font-size: 14px; }
  .nn-why__closing { margin-top: 25px; }
  .nn-philosophy { padding: 50px 0; }
  .nn-philosophy__panel { display: flex; flex-direction: column; gap: 20px; padding: 32px 22px 34px; border-radius: 20px; text-align: center; }
  .nn-philosophy__panel::before { left: -105px; bottom: -105px; width: 280px; height: 220px; }
  .nn-philosophy__icon { width: 92px; height: 92px; }
  .nn-philosophy__icon svg { width: 59px; height: 59px; }
  .nn-philosophy__copy h2 { font-size: 30px; }
  .nn-philosophy__copy p { font-size: 19px; line-height: 1.42; }
  .nn-philosophy__promise { margin-top: 4px; font-size: 27px; }
  .nn-footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
