/* ============================================================
   [sia_dossier_vorteile] — „Ihre Vorteile als Finalist & Gewinner"
   SIA-Bento · 1:1-Port von benefits.css (.v4) aus dem Vite-Entwurf.

   !important auf den typografischen Kernwerten ist bewusst gesetzt:
   Theme und Divi überschreiben sonst Farben und Schriftgrößen von
   h2/h3/p (u.a. in Sektionen mit .bg-sia-green/.section-light-green).
============================================================ */

.sd-v4 {
  --sage: #9aab86;
  --sage-soft: #c2cdb2;
  --forest: #14231a;
  --forest-800: #142619;
  --moss: #3c6122;
  --moss-bright: #4e7a2e;
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(180deg, #fbfcf9 0%, #edf1e7 100%);
  color: var(--forest);
  padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
/* Innenbreite = Site-Regel (Divi-Row .sia-mehrwerte u.a.): 80% / max 1150px — fluchtet mit
   allen anderen Inhalten der Seite. */
.sd-v4 .wrap { width: 80%; max-width: 1150px; margin: 0 auto; position: relative; z-index: 1; }

/* — Farb-Schild — Das Theme färbt div/span/p/h2/h3 in Sektionen wie
   .section-light-green pauschal um (#main-content … :is(p,div,span,h2,h3)
   { color:#3f543c }). Das kappt die Vererbung z.B. am div.metric, und
   die Kennzahl erbt die Theme-Farbe statt der Kartenfarbe. Hier erben
   deshalb alle Zwischenelemente; konkrete Farben setzen die Regeln
   darunter (mit !important und höherer Spezifität). */
.sd-v4 :is(div, span, b, em) { color: inherit !important; }
.sd-v4 .head { margin-bottom: clamp(38px, 5vw, 58px); }
.sd-v4 h2 {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;
  color: var(--forest) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: none !important;
}
/* inline-block hält den hervorgehobenen Teil zusammen: die Headline steht
   einzeilig, und wenn die Breite doch einen Umbruch erzwingt (Mobil), bricht
   sie vor „Finalist" statt mitten in der Gruppe. */
.sd-v4 h2 em { display: inline-block; font-style: normal !important; color: var(--moss) !important; }
.sd-v4 .head p {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 17.5px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: rgba(20, 35, 26, 0.62) !important;
  max-width: 60ch;
  margin: 18px 0 0 !important;
}

.sd-v4 .bgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.sd-v4 .bcard {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: clamp(32px, 3.4vw, 48px);
  background: #ffffff;
  border: 1px solid rgba(20, 35, 26, 0.08);
  box-shadow: 0 1px 2px rgba(20, 35, 26, 0.04), 0 12px 32px -18px rgba(20, 35, 26, 0.16);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.sd-v4 .bcard:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 35, 26, 0.04), 0 18px 36px -26px rgba(20, 35, 26, 0.16); }
.sd-v4 .ba { grid-column: span 7; background: var(--forest-800); color: #edf2e8; border-color: rgba(255, 255, 255, 0.06); }
.sd-v4 .bb { grid-column: span 5; background: #000000; color: #ffffff; border-color: rgba(255, 255, 255, 0.1); }
.sd-v4 .bc { grid-column: span 5; }
.sd-v4 .bd { grid-column: span 7; background: linear-gradient(165deg, #fdfff9, #fbfff4); }
.sd-v4 .be { grid-column: span 6; }
.sd-v4 .bnum {
  position: absolute; top: clamp(24px, 2.4vw, 32px); right: clamp(24px, 2.4vw, 32px);
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  background: transparent; border: 1px solid rgba(20, 35, 26, 0.12); color: rgba(20, 35, 26, 0.4) !important;
  z-index: 1;
}
.sd-v4 .ba .bnum { border-color: rgba(255, 255, 255, 0.16); color: rgba(214, 226, 205, 0.55) !important; }
.sd-v4 .bb .bnum { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.5) !important; }
.sd-v4 .bcard h3 {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 21px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.012em !important;
  color: inherit !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-transform: none !important;
  max-width: 26ch; position: relative; z-index: 1;
}
.sd-v4 .bcard p {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
  font-weight: 400 !important;
  color: inherit !important;
  opacity: 0.7;
  max-width: 42ch;
  margin: 0 !important;
  position: relative; z-index: 1;
}
.sd-v4 .bb p { opacity: 0.78; }
.sd-v4 .metric { margin-top: auto; padding-top: 34px; display: flex; align-items: baseline; gap: 14px; position: relative; z-index: 1; }
.sd-v4 .metric b {
  font-weight: 700 !important;
  font-size: clamp(34px, 3.5vw, 48px) !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  color: inherit !important;
}
.sd-v4 .metric span {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: inherit !important;
  opacity: 0.5;
}
.sd-v4 .metric.stacked { flex-direction: column; align-items: flex-start; gap: 7px; }
.sd-v4 .metric.stacked b { font-size: clamp(29px, 2.9vw, 40px) !important; }
.sd-v4 .art { position: absolute; right: -18px; bottom: -22px; opacity: 0.95; pointer-events: none; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.sd-v4 .ba .art { width: 190px; height: auto; right: -6px; bottom: -14px; }
.sd-v4 .bb .art { width: 215px; height: auto; right: -34px; bottom: -50px; }
/* etwas kleiner als im Entwurf (210px), damit die Grafik die Kennzahl
   „Online-Präsenz" auf schmaleren Karten nicht überlappt */
.sd-v4 .bc .art { width: 155px; height: auto; right: -24px; bottom: -16px; opacity: 0.7; }
.sd-v4 .bd .art { width: 290px; height: auto; right: -22px; bottom: -32px; }
.sd-v4 .bcard:hover .art { transform: translateY(-8px) rotate(-1.5deg); }

/* — sanfte Loop-Animationen in den Grafiken — */
.sd-v4 .art .aa-badge,
.sd-v4 .art .aa-pt { animation: sdAaPulse 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sd-v4 .art .aa-p2 { animation-delay: 0.6s; }
.sd-v4 .art .aa-p3 { animation-delay: 1.2s; }
@keyframes sdAaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.sd-v4 .art .aa-spark { animation: sdAaTwinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sd-v4 .art .aa-s2 { animation-delay: 1.5s; }
@keyframes sdAaTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1.1); } }
.sd-v4 .art .aa-ridge { animation: sdAaSpin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sdAaSpin { to { transform: rotate(360deg); } }
/* nur der Ring der kleinen Münze — sehr dezent, ohne das €-Zeichen */
.sd-v4 .art .aa-coin2 { animation: sdAaRing 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sdAaRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.045); opacity: 0.75; }
}
.sd-v4 .art .aa-line { stroke-dasharray: 250; stroke-dashoffset: 250; animation: sdAaDraw 2.4s ease-out 0.8s forwards; }
@keyframes sdAaDraw { to { stroke-dashoffset: 0; } }
.sd-v4 .art .aa-float { animation: sdAaFloat 8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sd-v4 .art .aa-fl2 { animation-duration: 9.5s; animation-delay: 1.2s; }
@keyframes sdAaFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3px, -6px) rotate(-0.8deg); }
}
.sd-v4 .art .aa-node { animation: sdAaPulse 3.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sd-v4 .art .aa-n2 { animation-delay: 0.9s; }
.sd-v4 .art .aa-n3 { animation-delay: 1.8s; }
.sd-v4 .art .aa-leaf { animation: sdAaSway 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes sdAaSway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(7deg); } }

@media (max-width: 900px) {
  .sd-v4 .ba, .sd-v4 .bb, .sd-v4 .bc, .sd-v4 .bd, .sd-v4 .be { grid-column: span 12; }
  .sd-v4 .head p { font-size: 16.5px !important; }
  .sd-v4 .bcard p { font-size: 16px !important; }
  .sd-v4 .bcard h3 { padding-right: 46px !important; max-width: none; }
  .sd-v4 .art { opacity: 0.35; }
  .sd-v4 .bcard { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-v4 .art * { animation: none !important; }
}

/* ============================================================
   Bewerben-Seite (#vorteile) — Intro und Sektion aus einem Guss
   Die Divi-Section liefert den Verlauf für Intro + Karten; die
   Sektion wird transparent, verzichtet auf den Full-Bleed-Ausbruch
   (die Row begrenzt bereits) und das Divi-Textmodul davor
   („Sustainable Impact Award 2026") erhält die Sektions-Typo.
============================================================ */
#main-content #vorteile.et_pb_section {
  background: linear-gradient(180deg, #fbfcf9 0%, #edf1e7 100%) !important;
  padding-top: clamp(64px, 7vw, 104px) !important;
  padding-bottom: 0 !important; /* Abstand kommt aus der Sektion selbst */
}
#main-content #vorteile .et_pb_text h2 {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.012em !important;
  color: #14231a !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  text-transform: none !important;
}
#main-content #vorteile .et_pb_text p {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 17.5px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: rgba(20, 35, 26, 0.62) !important;
  max-width: 60ch;
  margin: 0 0 12px !important;
}
#main-content #vorteile .et_pb_text p:last-child { margin-bottom: 0 !important; }
#main-content #vorteile .sd-v4 {
  background: none;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-top: clamp(22px, 2.6vw, 34px);
}
#main-content #vorteile .sd-v4 .wrap { width: 100%; max-width: none; }

/* Divi-Row-Regel mobil: unter 980px sind Rows 90 Prozent breit — der
   Standalone-Wrap zieht mit (im integrierten Modus greift die echte Row). */
@media (max-width: 980px) {
  .sd-v4 .wrap { width: 90%; }
}
