/*
============================================================
Stitch Witch – Site Structure Layer
Vorgefertigte Designklassen für Hero, Leistungsbereiche,
Ablauf, Shop-Teaser und CTA-Bänder.
============================================================
*/

:root{
  --sw-shell-pad: clamp(1.2rem, 2.4vw, 2rem);
  --sw-shell-pad-lg: clamp(1.6rem, 3vw, 3rem);
}

.sw-hero-shell{
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(255,255,255,.45);
  background: var(--sw-gradient-mist);
  box-shadow: 0 24px 70px rgba(26,26,26,.12);
}

.sw-hero-shell::before,
.sw-hero-shell::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.sw-hero-shell::before{
  inset: -5rem auto auto -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(247,198,206,.75) 0%, rgba(247,198,206,0) 70%);
}

.sw-hero-shell::after{
  inset: auto -4rem -5rem auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(196,167,231,.72) 0%, rgba(196,167,231,0) 70%);
}

.sw-hero-grid,
.sw-showcase-grid,
.sw-trust-grid,
.sw-service-grid,
.sw-audience-grid,
.sw-shop-grid{
  display: grid;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.sw-hero-grid{
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
}

.sw-badge-row,
.sw-kpi-row{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.sw-badge-row{
  margin-bottom: 1rem;
}

.sw-kpi-row{
  margin-top: 1.35rem;
}

.sw-badge,
.sw-kpi,
.sw-mini-card{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(26,26,26,.08);
  box-shadow: 0 12px 24px rgba(26,26,26,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sw-kpi{
  min-width: 9.5rem;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 20px;
}

.sw-kpi strong{
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.sw-hero-copy > *:last-child,
.sw-cta-band > *:last-child,
.sw-service-card > *:last-child,
.sw-process-step > *:last-child,
.sw-category-card > *:last-child,
.sw-trust-card > *:last-child{
  margin-bottom: 0;
}

.sw-media-frame{
  position: relative;
  min-height: clamp(320px, 40vw, 560px);
  padding: var(--sw-shell-pad-lg);
  border-radius: clamp(26px, 3vw, 38px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(26,26,26,.92) 0%, rgba(74,78,105,.92) 100%);
  box-shadow: 0 28px 70px rgba(26,26,26,.22);
}

.sw-media-frame::before,
.sw-media-frame::after{
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.sw-media-frame::before{
  top: 10%;
  right: 8%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,217,139,.45) 0%, rgba(252,217,139,0) 72%);
}

.sw-media-frame::after{
  bottom: 8%;
  left: 8%;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,198,206,.34) 0%, rgba(247,198,206,0) 72%);
}

.sw-media-panel,
.sw-product-panel{
  position: relative;
  display: grid;
  gap: 1rem;
  height: 100%;
  z-index: 1;
}

.sw-media-card,
.sw-trust-card,
.sw-service-card,
.sw-category-card,
.sw-process-step{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(26,26,26,.08);
  border-radius: clamp(22px, 2.4vw, 30px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 45px rgba(26,26,26,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sw-media-card{
  padding: 1.2rem 1.25rem;
}

.sw-service-grid,
.sw-audience-grid,
.sw-shop-grid,
.sw-trust-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sw-audience-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sw-service-card,
.sw-category-card,
.sw-trust-card{
  padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.sw-service-card:hover,
.sw-category-card:hover,
.sw-trust-card:hover,
.sw-process-step:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(26,26,26,.12);
  border-color: rgba(74,78,105,.18);
}

.sw-icon-dot{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-charcoal);
  background: linear-gradient(135deg, rgba(247,198,206,.95), rgba(196,167,231,.95));
  box-shadow: 0 10px 24px rgba(26,26,26,.08);
}

.sw-process{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap:1rem;
  align-items:stretch;
  counter-reset:sw-process;
}

.sw-process-step{
  min-height:100%;
  padding:4.4rem 1.2rem 1.35rem;
}

.sw-process-step::before{
  counter-increment:sw-process;
  content:counter(sw-process, decimal-leading-zero);
  position:absolute;
  top:1rem;
  left:1rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2.7rem;
  height:2.7rem;
  border-radius:999px;
  background:var(--sw-gradient-brand);
  color:var(--sw-charcoal);
  font-weight:800;
  line-height:1;
  box-shadow:0 10px 24px rgba(26,26,26,.08);
}

.sw-process-step h3{
  margin:0 0 .8rem;
  font-size:clamp(1.6rem, 2vw, 2.4rem);
  line-height:1.02;
  letter-spacing:-0.02em;
  overflow-wrap:anywhere;
  hyphens:auto;
}

.sw-process-step p{
  margin:0;
  font-size:clamp(1rem, 1vw, 1.08rem);
  line-height:1.55;
}

.sw-showcase-grid{
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.sw-product-panel{
  align-content: space-between;
}

.sw-price-note{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(26,26,26,.88);
  color: var(--sw-offwhite);
  font-weight: 700;
}

.sw-cta-band{
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: clamp(28px, 3vw, 40px);
  background: linear-gradient(135deg, rgba(247,198,206,.96) 0%, rgba(196,167,231,.93) 58%, rgba(252,217,139,.96) 100%);
  color: var(--sw-charcoal);
  box-shadow: 0 24px 65px rgba(26,26,26,.12);
}

.sw-cta-band::before,
.sw-cta-band::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sw-cta-band::before{
  top: -4rem;
  right: -3rem;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 72%);
}

.sw-cta-band::after{
  left: -2rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 72%);
}

.sw-cta-band .wp-block-buttons{
  margin-top: 1rem;
}

.sw-quote-panel{
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: clamp(22px, 2.5vw, 30px);
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%);
  border: 1px solid rgba(240,240,240,.12);
  color: var(--sw-offwhite);
}

.sw-stack-inline{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.sw-note-soft{
  font-size: .96rem;
  opacity: .84;
}

@media (max-width: 1200px){
  .sw-audience-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sw-process{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px){
  .sw-hero-grid,
  .sw-showcase-grid{
    grid-template-columns: 1fr;
  }

  .sw-service-grid,
  .sw-shop-grid,
  .sw-trust-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px){
  .sw-hero-shell,
  .sw-cta-band,
  .sw-media-frame,
  .sw-service-card,
  .sw-category-card,
  .sw-trust-card,
  .sw-process-step,
  .sw-media-card{
    border-radius: 24px;
  }

  .sw-service-grid,
  .sw-audience-grid,
  .sw-shop-grid,
  .sw-trust-grid,
  .sw-process{
    grid-template-columns: 1fr;
  }

  .sw-kpi{
    min-width: 100%;
  }
}
