/* =============================================================
   nachhaltigkeit.css  –  Bakery&Food Nachhaltigkeits-Unterseite
   Design System: Premium Heritage (style3.css variables)
   ============================================================= */

/* ─────────────────────────────────────────────
   1. HOMEPAGE TEASER  (.sust-teaser)
───────────────────────────────────────────── */
.sust-teaser {
  padding: 6rem 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.sust-teaser::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,153,63,.10) 0%, transparent 70%);
  pointer-events: none;
}

.sust-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Image side */
.sust-teaser__img-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.sust-teaser__img-wrap::before {
  content: '';
  position: absolute;
  inset: 12px 12px -12px -12px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-2xl);
  z-index: 0;
  pointer-events: none;
}

.sust-teaser__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-2xl);
  transition: transform 0.8s var(--ease-out);
}

.sust-teaser__img-wrap:hover .sust-teaser__img {
  transform: scale(1.04);
}

.sust-teaser__badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 2;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.25rem;
  font-family: 'DM Sans', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sust-teaser__badge small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: .85;
  margin-top: 2px;
}

/* Text side */
.sust-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sust-teaser__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: .8;
  max-width: 480px;
}

.sust-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(200,153,63,.3);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sust-chip i {
  color: var(--gold);
  font-size: 0.9rem;
}

.sust-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.sust-chip:hover i {
  color: #fff;
}

/* ─────────────────────────────────────────────
   2. SUBPAGE HERO  (.nh-hero)
───────────────────────────────────────────── */
.nh-hero {
  position: relative;
  height: 65vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nh-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nh-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 18s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.nh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15,38,64,.82) 0%,
    rgba(45,107,69,.60) 100%
  );
}

.nh-hero__inner {
  position: relative;
  z-index: 2;
  color: #fff;
}

.nh-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light, #E2B964);
  margin-bottom: 1rem;
}

.nh-hero__kicker::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--gold, #C8993F);
  border-radius: 2px;
}

.nh-hero h1 {
  font-family: 'DM Sans', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.nh-hero h1 em {
  font-style: italic;
  color: var(--gold-light, #E2B964);
}

.nh-hero__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: .85;
  max-width: 580px;
  margin-bottom: 1.75rem;
  color: white;
}

.nh-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nh-subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.nh-subnav a:hover {
  background: var(--gold, #C8993F);
  border-color: var(--gold, #C8993F);
}

/* ─────────────────────────────────────────────
   3. INTRO QUOTE  (.nh-intro)
───────────────────────────────────────────── */
.nh-intro {
  padding: 4.5rem 0;
  background: var(--warm-white, #FEFCF8);
}

.nh-intro__quote {
  font-family: 'DM Sans', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--primary);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
  padding: 0 2rem;
}

.nh-intro__quote::before,
.nh-intro__quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--gold, #C8993F);
  opacity: .35;
  line-height: 0;
  vertical-align: -0.6em;
}

.nh-intro__quote::after { content: '"'; }

/* ─────────────────────────────────────────────
   4. ALTERNATING ROWS  (.nh-row)
───────────────────────────────────────────── */
.nh-row {
  padding: 5rem 0;
  position: relative;
}

.nh-row:nth-child(even) {
  background: var(--cream, #FFF9F0);
}

.nh-row:nth-child(odd) {
  background: var(--warm-white, #FEFCF8);
}

.nh-row__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nh-row--reverse .nh-row__inner {
  direction: rtl;
}

.nh-row--reverse .nh-row__inner > * {
  direction: ltr;
}

/* Image cell */
.nh-row__img-cell {
  position: relative;
}

.nh-row__img-frame {
  position: relative;
  border-radius: var(--radius-2xl, 1.75rem);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.nh-row__img-frame::before {
  content: '';
  position: absolute;
  inset: 14px 14px -14px -14px;
  border: 2px solid var(--gold, #C8993F);
  border-radius: var(--radius-2xl, 1.75rem);
  z-index: 0;
  pointer-events: none;
}

.nh-row__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-2xl, 1.75rem);
  transition: transform 0.8s var(--ease-out, ease);
}

.nh-row__img-frame:hover .nh-row__img {
  transform: scale(1.04);
}

.nh-row__img-tag {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  z-index: 2;
  background: var(--tag-color, var(--green, #2D6B45));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.nh-row__num-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 2;
  width: 52px; height: 52px;
  background: var(--gold, #C8993F);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* Text cell / card */
.nh-row__card {
  background: #fff;
  border-radius: var(--radius-xl, 1.25rem);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent-color, var(--green, #2D6B45));
  position: relative;
}

.nh-row__icon-circle {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent-color, var(--green, #2D6B45)), rgba(45,107,69,.6));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(45,107,69,.25);
  transition: transform 0.3s;
}

.nh-row__card:hover .nh-row__icon-circle {
  transform: scale(1.1) rotate(-5deg);
}

.nh-row__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color, var(--green, #2D6B45));
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nh-row__kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .3;
  max-width: 48px;
}

.nh-row__card h2 {
  font-family: 'DM Sans', serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.nh-row__card p {
  font-size: 0.97rem;
  line-height: 1.78;
  color: var(--ink);
  opacity: .8;
  margin-bottom: 1.25rem;
}

.nh-row__checklist {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nh-row__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.nh-row__checklist li i {
  color: var(--accent-color, var(--green, #2D6B45));
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Accent color overrides per topic */
.nh-row--rohstoffe    { --accent-color: #2D6B45; --tag-color: #2D6B45; }
.nh-row--klimaschutz  { --accent-color: #1B3A5C; --tag-color: #1B3A5C; }
.nh-row--zutaten      { --accent-color: #C8993F; --tag-color: #C8993F; }
.nh-row--abfall       { --accent-color: #3D8B5D; --tag-color: #3D8B5D; }
.nh-row--ernaehrung   { --accent-color: #8B4A6B; --tag-color: #8B4A6B; }

/* ─────────────────────────────────────────────
   5. CLOSING CTA  (.nh-cta)
───────────────────────────────────────────── */
.nh-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0F2640 0%, #1a4a2e 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.nh-cta::before,
.nh-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.nh-cta::before {
  width: 500px; height: 500px;
  top: -180px; right: -100px;
  background: radial-gradient(circle, rgba(200,153,63,.15) 0%, transparent 70%);
}

.nh-cta::after {
  width: 350px; height: 350px;
  bottom: -120px; left: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}

.nh-cta__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light, #E2B964);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nh-cta__kicker::before,
.nh-cta__kicker::after {
  content: '';
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold, #C8993F);
}

.nh-cta h2 {
  font-family: 'DM Sans', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.nh-cta h2 em {
  font-style: italic;
  color: var(--gold-light, #E2B964);
}

.nh-cta p {
  font-size: 1.05rem;
  opacity: .8;
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   6. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 991px) {
  .sust-teaser__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nh-row__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nh-row--reverse .nh-row__inner {
    direction: ltr;
  }

  .nh-hero {
    height: auto;
    min-height: 60vh;
    padding: 5rem 0 4rem;
    align-items: flex-end;
  }
}

@media (max-width: 575px) {
  .sust-teaser { padding: 4rem 0; }
  .nh-row { padding: 3.5rem 0; }
  .nh-row__card { padding: 1.75rem; }
  .nh-intro { padding: 3rem 0; }
  .nh-cta { padding: 4rem 0; }

  .nh-hero h1 { font-size: 1.75rem; }
  .nh-subnav { gap: 0.4rem; }
  .nh-subnav a { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
}
