/* ============================================================
   chancen.immergruen.de — Page Styles
   Tokens kommen aus tokens.css (immergrün Design System).
   Mobile-first; Desktop-Breakpoint: 900px.
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ig-bg);
  font-family: var(--ff-body);
  color: var(--ig-fg);
}
::selection { background: #b7e4c7; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #96c31e;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

/* ---------- Layout-Primitives ---------- */
.section { padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px); }
.section--white { background: var(--ig-bg); }
.section--tint  { background: var(--ig-tint-50); }
.section--dark  { background: var(--grad-welcome); padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 48px); }

.container { max-width: 1120px; margin: 0 auto; }
.container--narrow { max-width: 960px; }

.stack-lg { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.stack-md { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }

.intro { max-width: 680px; }
.label-green { color: var(--ig-forest-600); }

.h2-display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--ig-forest-700);
  margin: 0;
}
.h2-display--sm { font-size: clamp(30px, 4vw, 44px); }

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ig-fg-2);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Erfolgs-CTA (ein Look, überall) ---------- */
.btn-fresh {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #aeda3a 0%, #96c31e 55%, #88b214 100%);
  color: #0d2818;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(150, 195, 30, 0.38), 0 2px 8px rgba(13, 40, 24, 0.16);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn-fresh:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 38px rgba(150, 195, 30, 0.5), 0 3px 10px rgba(13, 40, 24, 0.18);
}
.btn-fresh:active { transform: scale(0.97); }
.btn-fresh--lg { font-size: 18px; padding: 18px 38px; margin-top: 8px; }

/* Häkchen-Icon: Erfolg */
.btn-fresh__icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Dezenter Glanz-Sweep alle paar Sekunden */
.btn-fresh::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 4.5s var(--ease-out) infinite;
}
@keyframes btn-shine {
  0%   { left: -80%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-fresh::after { animation: none; }
  .btn-fresh:hover { transform: none; }
}

/* ---------- Foto-Platzhalter (echte Bilder vor Launch einsetzen) ---------- */
.photo-slot {
  position: relative;
  background: var(--ig-tint-100);
  border: 1px dashed var(--ig-forest-300);
  border-radius: 14px;
  overflow: hidden;
}
.photo-slot::after {
  content: 'Foto: ' attr(data-file);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ig-forest-600);
}

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--grad-welcome);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,40,24,0.93) 0%, rgba(27,67,50,0.82) 55%, rgba(45,106,79,0.62) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px) clamp(56px, 9vh, 96px);
  box-sizing: border-box;
}
.hero__logo { height: 44px; width: auto; align-self: flex-start; }
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  gap: 20px;
  padding-top: clamp(40px, 8vh, 80px);
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
/* Kunden-Edit: „immergrün" auf 92px vergrößert — beibehalten (mobil responsiv skaliert) */
.hero__brand {
  color: var(--ig-fresh-green);
  font-size: clamp(48px, 9vw, 92px);
  line-height: 1;
}
.hero__subline {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.hero__microcopy { font-size: 13px; color: rgba(255, 255, 255, 0.66); }
/* Trust-Stat-Band: Glas-Optik, große Serif-Zahlen */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: fit-content;
  margin-top: 28px;
  padding: 20px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-card-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 2px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.trust-stat:first-child { border-left: 0; }
.trust-stat__num {
  font-family: var(--ff-display);
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.02;
  color: var(--ig-fresh-green);
  text-shadow: 0 0 34px rgba(150, 195, 30, 0.45);
  font-variant-numeric: tabular-nums;
}
.trust-stat__label {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  max-width: 200px;
}
@media (max-width: 600px) {
  .hero__trust { flex-direction: column; padding: 8px 0; }
  .trust-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 12px 20px; }
  .trust-stat:first-child { border-top: 0; }
}

/* ============================================================
   2 · KONZEPT & WARUM PARTNER WERDEN
   ============================================================ */
.pull-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  color: var(--ig-forest-500);
  margin: 6px 0 0;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.product-card {
  margin: 0;
  background: var(--ig-bg);
  border: 1px solid var(--ig-line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.product-card .photo-slot { width: 100%; height: 190px; border-radius: 8px; }
.photo-slot--contain { background: var(--ig-tint-50); }
/* Produktbilder: aspect-ratio nah am Quellformat, damit das Produkt vollständig sichtbar bleibt */
.product-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
.product-card figcaption {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: var(--ig-fg);
}
.why-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  align-items: stretch;
  background: var(--ig-bg-warm);
  border-radius: var(--r-card-lg);
  padding: clamp(20px, 3vw, 32px);
}
.why-panel__left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.why-panel__photo {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-content: center;
}
.benefit-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--r-card-lg);
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
/* Fresh-Green-Akzentkante oben */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ig-fresh-green), var(--ig-forest-400));
}
.benefit-card:hover {
  box-shadow: 0 14px 34px rgba(8, 75, 50, 0.14);
  border-color: var(--ig-forest-400);
}
/* Große Editorial-Ziffer */
.benefit-card__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--ff-display);
  font-size: 46px;
  line-height: 1;
  color: var(--ig-forest-200);
  opacity: 0.55;
}
/* Icon-Chip: je Karte eigene Tönung, sanftes Schweben */
.benefit-card__chip {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  animation: chip-float 3.6s ease-in-out infinite;
}
.benefit-grid .benefit-card:nth-child(1) .benefit-card__chip { background: var(--ig-tint-100); }
.benefit-grid .benefit-card:nth-child(2) .benefit-card__chip { background: #edf5d2; animation-delay: 0.9s; }
.benefit-grid .benefit-card:nth-child(3) .benefit-card__chip { background: #d9efdf; animation-delay: 1.8s; }
.benefit-grid .benefit-card:nth-child(4) .benefit-card__chip { background: #f3f9d9; animation-delay: 2.7s; }
.benefit-card:hover .benefit-card__chip { transform: scale(1.08) rotate(-4deg); transition: transform var(--dur-fast) var(--ease-out); }
@keyframes chip-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
.benefit-card h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.15;
  color: var(--ig-forest-700);
  margin: 0;
  padding-right: 44px;
}
.benefit-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ig-fg-2);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .benefit-card__chip { animation: none; }
  .benefit-card:hover .benefit-card__chip { transform: none; }
}

.konzept-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.konzept-cta__microcopy { font-size: 13px; color: var(--ig-fg-3); }

/* ============================================================
   3 · STANDORTE
   ============================================================ */
.standorte-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  align-items: center;
}
.standorte-head__photo {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
}
.stat-band > div { margin: 0; }
.stat-band dt {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--ig-green);
}
.stat-band dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ig-green);
}

.city-search {
  background: var(--ig-bg);
  border: 1px solid var(--ig-line);
  border-radius: var(--r-card-lg);
  box-shadow: var(--sh-card);
  padding: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.city-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--ff-body);
  font-size: 17px;
  color: var(--ig-fg);
  padding: 16px 22px;
  border: 1px solid var(--ig-line);
  border-radius: var(--r-pill);
  background: var(--ig-tint-50);
}
.city-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  padding: 2px;
}
.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ig-bg);
  border: 1px solid var(--ig-line);
  border-radius: 12px;
  padding: 12px 16px;
}
.city-card__meta { min-width: 0; }
.city-card__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ig-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-card__land { font-size: 12px; color: var(--ig-fg-3); }
.city-card__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: #edf5d2;
  color: #43570e;
}
.city-card__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ig-fresh-green);
}
.city-msg { margin: 0; font-size: 14px; color: var(--ig-fg-3); }
.city-msg--hint { font-size: 13px; }

.bridge { align-items: flex-start; }
.bridge__text { max-width: 560px; }

/* ============================================================
   4 · ERFOLGSCHECK-BAND
   ============================================================ */
.check-band {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
/* Kunden-Edit: Label auf 30px vergrößert — beibehalten */
.check-band__label { color: var(--ig-fresh-green); font-size: 30px; }
.check-band h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.12;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}
.check-band p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  text-wrap: pretty;
}
.check-band__microcopy { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* ============================================================
   5 · TIMELINE
   ============================================================ */
.weg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.weg-grafik { display: none; }
@media (min-width: 900px) {
  .weg-grafik {
    display: block;
    width: clamp(240px, 28vw, 330px);
    height: auto;
    flex-shrink: 0;
  }
}


.tl-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: clamp(14px, 2.5vw, 24px);
}
.tl-spine {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--ig-forest-200);
  top: 0;
  bottom: 0;
}
.tl-row:first-child .tl-line { top: 22px; }
.tl-row:last-child .tl-line { bottom: calc(100% - 22px); }
.tl-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #aeda3a, #96c31e);
  color: #0d2818;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 0 8px 26px rgba(150, 195, 30, 0.4);
}
/* Sanfter Puls-Ring um die Nummern, zeitversetzt */
.tl-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--r-full);
  border: 2px solid rgba(150, 195, 30, 0.55);
  animation: dot-pulse 2.8s ease-out infinite;
}
.tl-row:nth-child(3n+2) .tl-dot::after { animation-delay: 0.9s; }
.tl-row:nth-child(3n) .tl-dot::after { animation-delay: 1.8s; }
@keyframes dot-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.tl-card {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  margin-bottom: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--r-card-lg);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(8, 75, 50, 0.12);
  border-color: var(--ig-forest-400);
}
.tl-card h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.15;
  color: var(--ig-forest-700);
  margin: 0;
}
.tl-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ig-fg-2);
  text-wrap: pretty;
}
.tl-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-top: 4px;
  background: #ecf1ed;
  color: #4a5a52;
}
.tl-pill--defined { background: #edf5d2; color: #43570e; }

@media (min-width: 900px) {
  .tl-row { grid-template-columns: 1fr 56px 1fr; }
  .tl-spine { grid-column: 2; }
  .tl-row:nth-child(odd) .tl-card { grid-column: 1; }
  .tl-row:nth-child(even) .tl-card { grid-column: 3; }
  .tl-dot { width: 52px; height: 52px; font-size: 19px; }
}

.timeline-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 8px;
}
.timeline-outro p {
  margin: 0;
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--ig-forest-700);
}

/* ============================================================
   6 · FOOTER
   ============================================================ */
.footer {
  background: var(--ig-forest-900);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px) 40px;
}
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__logo { height: 36px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-decoration: none;
}
.footer__nav a:hover { color: #fff; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__legal p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Sticky-CTA (mobil)
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--ig-bg);
  border-top: 1px solid var(--ig-line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(13, 40, 24, 0.08);
}
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
}
/* Desktop: schwebender Button unten rechts statt Leiste */
@media (min-width: 900px) {
  .sticky-cta {
    left: auto;
    right: 28px;
    bottom: 28px;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    padding: 0;
  }
  .sticky-cta__btn { width: auto; }
}

/* ---------- Scroll-Reveal (JS setzt .is-revealed; ohne JS sichtbar) ---------- */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.js-reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Timeline-Schritte: seitliches Einfliegen + aufpoppende Nummern */
.js-reveal-ready .tl-row[data-reveal] {
  transform: translateY(28px);
  transition-duration: 0.55s;
}
@media (min-width: 900px) {
  .js-reveal-ready .tl-row[data-reveal]:nth-child(odd)  { transform: translateX(-48px); }
  .js-reveal-ready .tl-row[data-reveal]:nth-child(even) { transform: translateX(48px); }
}
.js-reveal-ready .tl-row[data-reveal].is-revealed { transform: none; }
.js-reveal-ready .tl-row[data-reveal] .tl-dot { transform: scale(0); }
.js-reveal-ready .tl-row[data-reveal].is-revealed .tl-dot {
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready [data-reveal],
  .js-reveal-ready .tl-row[data-reveal],
  .js-reveal-ready .tl-row[data-reveal] .tl-dot {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tl-dot::after { animation: none; }
}
