/* ===== Ergänzungen zur Vorschau (Animationen, Header) ===== */

/* ---------- Haken-Listen: Kreis + Einflug ---------- */
.u-custom-list li.sd-ck {
  margin-left: 2.3em;
}
.u-custom-list li.sd-ck .u-list-icon {
  left: -2.3em;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(174, 11, 4, .35);
  color: #ae0b04;
  overflow: visible;
}
.u-custom-list li.sd-ck .u-list-icon > :first-child {
  margin: 0 !important;
  position: static;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-size: .8em !important;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Endzustand: 20 % größer als bisher */
  transform: translateX(0) scale(1.2);
  opacity: 1;
  transition: transform .65s cubic-bezier(.2, .9, .3, 1.25), opacity .5s ease-out;
}
.u-custom-list li.sd-ck .sd-ck-text {
  display: block;
  opacity: 1;
  transform: translateX(0);
  transition: transform .65s cubic-bezier(.2, .8, .25, 1), opacity .55s ease-out;
}

/* Ausgangszustand vor dem Einblenden */
.sd-anim .u-custom-list li.sd-ck:not(.sd-in) .u-list-icon > :first-child {
  opacity: 0;
  transform: translateX(-2.6em) scale(1.2);
}
.sd-anim .u-custom-list li.sd-ck:not(.sd-in) .sd-ck-text {
  opacity: 0;
  transform: translateX(48px);
}
.u-custom-list li.sd-ck.sd-in .sd-ck-text {
  transition-delay: .12s;
}

/* ---------- Logo-Animation beim ersten Öffnen ---------- */
.u-header .u-logo { position: relative; }
.sd-logo-part {
  position: absolute;
  inset: 0;
  background: url("images/Logo_Sturmdach_Holewa.jpg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.sd-logo-roof {
  clip-path: inset(0 0 52.4% 0);
  animation: sdRoof .9s cubic-bezier(.25, 1.4, .45, 1) .1s both;
}
/* „STURMDACH“ weich von links nach rechts einblenden */
.sd-logo-name {
  clip-path: inset(47.6% 0 28.6% 0);
  -webkit-mask-image: linear-gradient(90deg, #000 0 45.45%, transparent 54.55% 100%);
          mask-image: linear-gradient(90deg, #000 0 45.45%, transparent 54.55% 100%);
  -webkit-mask-size: 220% 100%;
          mask-size: 220% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  animation: sdName 1.3s cubic-bezier(.4, 0, .25, 1) .75s both;
}
.sd-logo-sub {
  clip-path: inset(71.4% 0 0 0);
  animation: sdSub .7s ease-out 1.75s both;
}
@keyframes sdRoof {
  from { opacity: 0; transform: translateY(-38%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sdName {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
@keyframes sdSub {
  from { opacity: 0; transform: translateY(12%); }
  to   { opacity: 1; transform: translateY(0); }
}
.sd-logo-intro .u-header .u-logo img { visibility: hidden; }

/* ---------- Telefonnummer dezent + animierter Hörer ---------- */
body .u-header a.u-btn.u-btn-1,
body .u-header a.u-btn.u-btn-1.u-text-body-alt-color {
  background: none !important;
  box-shadow: none !important;
  color: #4a4a4a !important;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .5px;
  text-transform: none;
  padding: 8px 0 8px 4px;
  transition: color .3s;
}
body .u-header a.u-btn.u-btn-1.u-text-body-alt-color:hover { color: #ae0b04 !important; }
.u-header .u-btn-1 .u-icon-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  margin: 0 .35em 0 0;
  border-radius: 50%;
  background: rgba(174, 11, 4, .08);
  color: #ae0b04;
  vertical-align: middle;
}
.u-header .u-btn-1 .u-icon-1 svg {
  fill: currentColor;
  width: 1.05em !important;
  height: 1.05em !important;
  transform-origin: 50% 50%;
  animation: sdRing 4s ease-in-out 1.5s infinite;
}
.u-header .u-btn-1 .u-icon-1 img { display: none; }
.u-header .u-btn-1:hover .u-icon-1 svg { animation-duration: 1.2s; }
@keyframes sdRing {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(-16deg); }
  70% { transform: rotate(14deg); }
  74% { transform: rotate(-12deg); }
  78% { transform: rotate(10deg); }
  82% { transform: rotate(-6deg); }
  86% { transform: rotate(0); }
}

/* ---------- Facebook-Logo im Original ---------- */
.u-header .u-group-1,
.u-footer .u-group-1 {
  background: none !important;
  width: 34px !important;
  min-height: 34px !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
.u-header .u-group-1 { margin: -46px 250px 62px auto; }
.u-header .u-group-1::before,
.u-footer .u-group-1::before { display: none !important; }
.u-header .u-group-1 .u-container-layout,
.u-footer .u-group-1 .u-container-layout { padding: 0 !important; }
.u-header .u-social-icons-1,
.u-footer .u-social-icons-1 {
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
}
.sd-fb {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s;
}
.sd-fb svg { display: block; width: 100%; height: 100%; }
.sd-fb:hover { transform: scale(1.08); }

@media (max-width: 991px) {
  .u-header .u-group-1 { margin-right: 250px; }
}
@media (max-width: 575px) {
  .u-header .u-group-1 { margin-right: auto; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sd-logo-part, .u-header .u-btn-1 .u-icon-1 svg { animation: none !important; }
  .u-custom-list li.sd-ck .u-list-icon > :first-child,
  .u-custom-list li.sd-ck .sd-ck-text { transition: none !important; }
}

/* ---------- Partner-Laufband (fließend, weich ein-/auslaufend) ---------- */
#carousel_0c2e .u-layout-wrap-1.sd-replaced { display: none; }
.sd-partners {
  --sd-item: 40%;            /* 2 Logos = 80 % voll sichtbar, je 10 % Ein-/Auslaufzone */
  position: relative;
  width: min(1000px, 96%);
  margin: 13px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.sd-partners-track {
  display: flex;
  width: calc(var(--sd-count) * var(--sd-item));
  animation: sdMarquee 16s linear infinite;
  will-change: transform;
}
.sd-partners:hover .sd-partners-track { animation-play-state: paused; }
@keyframes sdMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sd-partner {
  flex: 1 1 0;
  min-width: 0;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  box-sizing: border-box;
}
.sd-partner img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  transition: transform .4s;
}
.sd-partner:hover img { transform: scale(1.05); }
@media (max-width: 575px) {
  .sd-partner { height: 130px; padding: 14px 14px; }
  .sd-partner img { max-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-partners-track { animation: none; }
}

#carousel_0c2e { min-height: 0 !important; }
#carousel_0c2e .sd-partners { margin-bottom: 30px; }

/* ---------- Referenzen (4 Bilder mit Text) ---------- */
.sd-refs {
  background: #fff;
  padding: 40px 0 90px;
}
.sd-refs-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
}
.sd-refs-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.sd-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ae0b04;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(174, 11, 4, .08);
}
.sd-refs-head h2 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 16px 0 14px;
  color: #2b2b2b;
}
.sd-refs-head p {
  margin: 0;
  color: #5d5d5d;
  line-height: 1.7;
}
.sd-refs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.sd-ref {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -12px rgba(0,0,0,.18);
  transition: transform .45s cubic-bezier(.2,.8,.25,1), box-shadow .45s;
}
.sd-ref--wide { grid-column: span 3; }
.sd-ref:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 22px 44px -14px rgba(0,0,0,.25);
}
.sd-ref figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.sd-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.8,.25,1);
}
.sd-ref:hover img { transform: scale(1.06); }
.sd-ref-body {
  position: relative;
  padding: 24px 28px 30px;
  border-top: 4px solid #ae0b04;
}
.sd-ref-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ae0b04;
}
.sd-ref h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0 10px;
  color: #2b2b2b;
}
.sd-ref p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: #5d5d5d;
}
/* Einblenden beim Scrollen */
.sd-anim .sd-reveal:not(.sd-in) { opacity: 0; transform: translateY(36px); }
.sd-reveal { transition: opacity .8s ease-out, transform .8s cubic-bezier(.2,.8,.25,1), box-shadow .45s; }
.sd-ref.sd-reveal.sd-in:hover { transform: translateY(-6px); }

@media (max-width: 991px) {
  .sd-refs-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .sd-ref, .sd-ref--wide { grid-column: span 1; }
  .sd-refs-head h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .sd-refs { padding: 24px 0 64px; }
  .sd-refs-grid { grid-template-columns: 1fr; }
  .sd-ref-body { padding: 20px 22px 24px; }
  .sd-refs-head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-anim .sd-reveal:not(.sd-in) { opacity: 1; transform: none; }
}
@media (min-width: 992px) {
  .sd-ref figure { aspect-ratio: auto; height: 320px; }
}

/* ---------- Untermenü „Über uns“ ---------- */
.u-header .u-nav-1 > li.sd-has-sub { position: relative; }
.u-header .u-nav-1 > li.sd-has-sub > a::after {
  content: "";
  display: inline-block;
  width: .38em; height: .38em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.2em) rotate(45deg);
  opacity: .55;
}
.sd-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 50;
  min-width: 190px;
  margin: 0; padding: 8px;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.06);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.sd-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sd-has-sub:hover .sd-sub,
.sd-has-sub:focus-within .sd-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 4px);
}
.sd-sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: #333;
  font-size: .95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.sd-sub a:hover, .sd-sub a:focus { background: rgba(174,11,4,.07); color: #ae0b04; }
.sd-sub-m { list-style: none; margin: 2px 0 8px; padding: 0; }
.sd-sub-m a { display: block; padding: 4px 0; font-size: .85em; opacity: .75; color: inherit; }

/* ---------- Qualifikation & Presse ---------- */
.sd-quali {
  background: #5b5b5a;
  color: #fff;
  padding: 10px 0 100px;
}
.sd-quali-inner { width: min(1140px, 92%); margin: 0 auto; }
.sd-quali-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.sd-eyebrow--light { background: rgba(255,255,255,.12); color: #fff; }
.sd-quali-head h2 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin: 16px 0 14px; color: #fff; }
.sd-quali-head p { margin: 0; line-height: 1.7; color: rgba(255,255,255,.82); }
.sd-quali-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 30px;
  align-items: stretch;
}
.sd-quali-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #2b2b2b;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.5);
  scroll-margin-top: 30px;
}
.sd-zoom {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 28px;
  margin: 0;
  cursor: zoom-in;
  background: linear-gradient(160deg, #efefef, #dcdcdc);
  overflow: hidden;
}
.sd-zoom img {
  display: block;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.35);
  transition: transform .6s cubic-bezier(.2,.8,.25,1);
}
.sd-zoom--doc img { width: auto; max-width: 100%; height: 340px; object-fit: contain; }
.sd-zoom--press img { width: 100%; height: 340px; object-fit: contain; background: transparent; box-shadow: none; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.sd-zoom:hover img { transform: scale(1.03); }
.sd-zoom-hint {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.sd-zoom-hint::before {
  content: ""; width: 11px; height: 11px;
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 4px 4px 0 -2.5px #fff;
}
.sd-zoom:hover .sd-zoom-hint, .sd-zoom:focus-visible .sd-zoom-hint { opacity: 1; transform: none; }
.sd-quali-body { padding: 24px 28px 30px; border-top: 4px solid #ae0b04; flex: 1; }
.sd-quali-body h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 8px 0 10px; color: #2b2b2b; }
.sd-quali-body p { margin: 0; font-size: .95rem; line-height: 1.7; color: #5d5d5d; }
.sd-facts {
  list-style: none; margin: 22px 0 0; padding: 18px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 1px solid #eee;
}
.sd-facts li { display: flex; flex-direction: column; gap: 2px; }
.sd-facts strong { font-size: 1.35rem; color: #ae0b04; line-height: 1.1; }
.sd-facts span { font-size: .78rem; color: #777; }

/* Lightbox */
.sd-lb {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(20,20,20,.88);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.sd-lb.sd-open { opacity: 1; visibility: visible; }
.sd-lb img {
  max-width: 100%; max-height: 92vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .35s cubic-bezier(.2,.8,.25,1);
  background: #fff;
}
.sd-lb.sd-open img { transform: none; }
.sd-lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 44px;
  cursor: pointer;
}

@media (max-width: 991px) {
  .sd-quali-grid { grid-template-columns: 1fr; }
  .sd-quali-head h2 { font-size: 1.9rem; }
}
@media (max-width: 575px) {
  .sd-zoom { padding: 18px; }
  .sd-zoom--doc img, .sd-zoom--press img { height: 260px; }
  .sd-quali-body { padding: 20px 22px 24px; }
}
@media (max-width: 991px) {
  .sd-zoom--press img { height: auto; }
}

/* ---------- Neues Kopfbild (Christoph Holewa am Schieferdach) ---------- */
section#carousel_7dba.u-section-1 {
  background-image: linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0) 45%), url("images/header-holewa-schieferdach.jpg") !important;
  background-size: cover !important;
  background-position: 50% 74% !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 991px) {
  section#carousel_7dba.u-section-1 { background-position: 42% 55% !important; }
}
@media (max-width: 767px) {
  section#carousel_7dba.u-section-1 {
    background-image: linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0) 45%), url("images/header-holewa-schieferdach-m.jpg") !important;
    background-position: 36% 48% !important;
  }
}
@media (min-width: 1500px) {
  section#carousel_7dba.u-section-1 { min-height: 760px !important; background-position: 50% 68% !important; }
  section#carousel_7dba.u-section-1 .u-icon-1 { margin-top: 580px; }
}

/* ---------- Scroll-Pfeil im Kopfbild: kleiner + animiert ---------- */
section#carousel_7dba.u-section-1 .u-icon-1 {
  width: 46px !important;
  height: 46px !important;
  position: relative;
  top: -10px;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
}
section#carousel_7dba.u-section-1 .u-icon-1 svg {
  animation: sdArrow 2.2s cubic-bezier(.45, 0, .25, 1) infinite;
}
section#carousel_7dba.u-section-1 .u-icon-1:hover svg { animation-duration: 1.1s; }
@keyframes sdArrow {
  0%   { transform: translateY(-6px); opacity: 0; }
  25%  { opacity: 1; }
  60%  { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
@media (max-width: 767px) {
  section#carousel_7dba.u-section-1 .u-icon-1 { width: 34px !important; height: 34px !important; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  section#carousel_7dba.u-section-1 .u-icon-1 svg { animation: none; }
}
