/* ==========================================================================
   ACCUEIL, section « Verantwortung » (#nachhaltigkeit) : version plus vivante.
   CSS seul, le gabarit front-page.php n'est pas modifié (2026-11-23).
   ========================================================================== */
#nachhaltigkeit{overflow:hidden;isolation:isolate}
/* Filigrane : cercles concentriques en haut à droite */
#nachhaltigkeit::after{content:"";position:absolute;z-index:-1;right:-220px;top:-220px;width:680px;height:680px;border-radius:50%;
  background:repeating-radial-gradient(circle,transparent 0 46px,rgba(0,0,0,.07) 46px 48px);
  -webkit-mask:radial-gradient(circle,#000 30%,transparent 70%);mask:radial-gradient(circle,#000 30%,transparent 70%)}

/* Badge ISO : tampon légèrement penché, point « en cours » qui pulse, feuille en filigrane */
#nachhaltigkeit .ie-iso{position:relative;overflow:hidden;transform:rotate(-2deg);padding:22px 64px 22px 26px;
  box-shadow:0 18px 40px -18px rgba(0,0,0,.55);transition:transform .4s var(--ie-ease)}
#nachhaltigkeit .ie-iso:hover{transform:rotate(0) scale(1.02)}
#nachhaltigkeit .ie-iso::after{content:"";position:absolute;right:-18px;bottom:-22px;width:96px;height:96px;background:var(--ie-green-2);opacity:.22;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22%23000%22 d=%22M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z%22/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(-25deg)}
#nachhaltigkeit .ie-iso small:first-child{display:inline-flex;align-items:center;gap:8px;color:#fff}
#nachhaltigkeit .ie-iso small:first-child::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ie-green-2);
  box-shadow:0 0 0 0 rgba(165,220,55,.7);animation:ie-rse-pulse 2s infinite}
@keyframes ie-rse-pulse{70%{box-shadow:0 0 0 9px rgba(165,220,55,0)}100%{box-shadow:0 0 0 0 rgba(165,220,55,0)}}

/* Cartes : icône, numéro en contour, mosaïque décalée, survol en noir */
#nachhaltigkeit .ie-rse{counter-reset:rse;gap:16px;padding-bottom:28px}
#nachhaltigkeit .ie-rse>div{counter-increment:rse;position:relative;overflow:hidden;padding:22px 22px 22px;border-radius:20px;border:0;
  background:rgba(255,255,255,.94);box-shadow:0 14px 34px -18px rgba(27,42,8,.45);
  transition:transform .45s var(--ie-ease),background .35s ease,box-shadow .45s var(--ie-ease)}
#nachhaltigkeit .ie-rse>div:nth-child(even){top:28px}
#nachhaltigkeit .ie-rse>div::after{content:"0" counter(rse);position:absolute;top:12px;right:16px;font-family:var(--ie-font-title);font-weight:900;
  font-size:38px;line-height:1;color:transparent;-webkit-text-stroke:1.5px rgba(0,0,0,.14);transition:-webkit-text-stroke-color .35s ease}
#nachhaltigkeit .ie-rse h3{display:flex;flex-direction:column;gap:14px;font-size:15px;letter-spacing:.01em;margin-bottom:8px}
#nachhaltigkeit .ie-rse h3::before{content:"";width:46px;height:46px;border-radius:14px;background:#000;transition:background .35s ease,transform .45s var(--ie-ease)}
#nachhaltigkeit .ie-rse h3::after{content:"";position:absolute;top:33px;left:33px;width:24px;height:24px;background:var(--ie-green-2);
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat;transition:background .35s ease}
#nachhaltigkeit .ie-rse p{color:#2a3a14}
#nachhaltigkeit .ie-rse>div:hover{background:#000;transform:translateY(-6px) rotate(-.6deg);box-shadow:0 26px 50px -20px rgba(0,0,0,.6)}
#nachhaltigkeit .ie-rse>div:hover::after{-webkit-text-stroke-color:rgba(165,220,55,.45)}
#nachhaltigkeit .ie-rse>div:hover h3{color:var(--ie-green-2)}
#nachhaltigkeit .ie-rse>div:hover h3::before{background:var(--ie-green-2);transform:rotate(-8deg)}
#nachhaltigkeit .ie-rse>div:hover h3::after{background:#000}
#nachhaltigkeit .ie-rse>div:hover p{color:rgba(255,255,255,.82)}
#nachhaltigkeit .ie-rse>div:nth-child(1){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0%22/%3E%3Ccircle cx=%2212%22 cy=%2210%22 r=%223%22/%3E%3C/svg%3E");--i:0}
#nachhaltigkeit .ie-rse>div:nth-child(2){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z%22/%3E%3Cpath d=%22M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12%22/%3E%3C/svg%3E");--i:1}
#nachhaltigkeit .ie-rse>div:nth-child(3){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m12 14 4-4%22/%3E%3Cpath d=%22M3.34 19a10 10 0 1 1 17.32 0%22/%3E%3C/svg%3E");--i:2}
#nachhaltigkeit .ie-rse>div:nth-child(4){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5%22/%3E%3Cpath d=%22M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12%22/%3E%3Cpath d=%22m14 16-3 3 3 3%22/%3E%3Cpath d=%22M8.293 13.596 7.196 9.5 3.1 10.598%22/%3E%3Cpath d=%22m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843%22/%3E%3Cpath d=%22m13.378 9.633 4.096 1.098 1.097-4.096%22/%3E%3C/svg%3E");--i:3}
#nachhaltigkeit .ie-rse>div:nth-child(5){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M22 21v-2a4 4 0 0 0-3-3.87%22/%3E%3Cpath d=%22M16 3.13a4 4 0 0 1 0 7.75%22/%3E%3C/svg%3E");--i:4}
#nachhaltigkeit .ie-rse>div:nth-child(6){--ico:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E");--i:5}

/* Apparition en cascade (seulement si le visiteur accepte les animations) */
@media (prefers-reduced-motion:no-preference){
  .ie-js #nachhaltigkeit .ie-rse>div{opacity:0;translate:0 26px}
  .ie-js #nachhaltigkeit .ie-rse.is-in>div{animation:ie-rse-in .7s var(--ie-ease) forwards;animation-delay:calc(var(--i) * 90ms + 150ms)}
}
@keyframes ie-rse-in{to{opacity:1;translate:0 0}}

@media (max-width:560px){
  #nachhaltigkeit .ie-rse{padding-bottom:0}
  #nachhaltigkeit .ie-rse>div:nth-child(even){top:0}
}
@media (prefers-reduced-motion:reduce){#nachhaltigkeit .ie-iso small:first-child::before{animation:none}}

/* ==========================================================================
   ACCUEIL, section « So arbeiten wir » (#ablauf) : escalier qui monte vers
   la réalisation. CSS seul, front-page.php n'est pas modifié (2026-11-23).
   ========================================================================== */
#ablauf .ie-steps{gap:14px;align-items:end;counter-reset:none}
#ablauf .ie-steps::before,#ablauf .ie-step__dot{display:none}
#ablauf .ie-step{text-align:left;display:flex;flex-direction:column}
/* Marches : chaque étape est plus haute que la précédente */
#ablauf .ie-step:nth-child(1) .ie-step__card{min-height:200px}
#ablauf .ie-step:nth-child(2) .ie-step__card{min-height:250px}
#ablauf .ie-step:nth-child(3) .ie-step__card{min-height:300px}
#ablauf .ie-step:nth-child(4) .ie-step__card{min-height:350px}
#ablauf .ie-step:nth-child(5) .ie-step__card{min-height:400px}
/* Grand numéro en contour, posé sur la marche */
#ablauf .ie-step__n{position:relative;z-index:1;margin:0 0 -26px 18px;font-size:clamp(64px,6.4vw,96px);line-height:.9;letter-spacing:-.02em;
  color:transparent;-webkit-text-stroke:2px var(--ie-green-2);opacity:1;transition:color .35s ease,transform .45s var(--ie-ease)}
/* Marche */
#ablauf .ie-step__card{position:relative;overflow:hidden;text-align:left;
  background:linear-gradient(180deg,#1a1a1a 0%,#0e0e0e 100%);border:1px solid rgba(255,255,255,.09);border-radius:18px 18px 0 0;
  padding:44px 22px 26px;color:#fff;transition:border-color .35s ease,transform .45s var(--ie-ease)}
#ablauf .ie-step__card h3{font-size:15px;letter-spacing:.03em;color:#fff;margin-bottom:10px}
#ablauf .ie-step__card p{color:rgba(255,255,255,.66);font-size:14.5px;line-height:1.6;margin:0}
#ablauf .ie-step:hover .ie-step__n{color:var(--ie-green-2);transform:translateY(-6px)}
#ablauf .ie-step:hover .ie-step__card{border-color:rgba(165,220,55,.5)}
/* Sommet : la réalisation, en vert, avec une flèche */
#ablauf .ie-step:last-child .ie-step__n{color:var(--ie-green-2);-webkit-text-stroke:0}
#ablauf .ie-step:last-child .ie-step__card{background:var(--ie-grad);border-color:transparent;color:#000;box-shadow:0 0 60px -10px rgba(165,220,55,.45)}
#ablauf .ie-step:last-child .ie-step__card h3{color:#000}
#ablauf .ie-step:last-child .ie-step__card p{color:#17240A}
#ablauf .ie-step:last-child .ie-step__card::after{content:"";position:absolute;right:18px;top:18px;width:30px;height:30px;border-radius:50%;
  background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5DC37' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center/16px no-repeat}
/* Sol commun sous l'escalier */
#ablauf .ie-steps{padding-bottom:0;border-bottom:2px solid rgba(165,220,55,.35)}
/* Apparition en cascade */
#ablauf .ie-step:nth-child(2){transition-delay:.08s}
#ablauf .ie-step:nth-child(3){transition-delay:.16s}
#ablauf .ie-step:nth-child(4){transition-delay:.24s}
#ablauf .ie-step:nth-child(5){transition-delay:.32s}
@media (max-width:1024px){
  #ablauf .ie-steps{border-bottom:0;align-items:stretch}
  #ablauf .ie-step:nth-child(n) .ie-step__card{border-radius:18px;min-height:0}
  #ablauf .ie-step__n{font-size:64px}
}
