@import url("./beispiel-website-jawdrop.css");
@import url("./beispiel-website-pagivo-detail.css");
@import url("./beispiel-website-painter-perfect.css");
@import url("./beispiel-website-result-stage.css");
@import url("./beispiel-website-services-craft.css");
@import url("./beispiel-website-about-craft.css");
@import url("./beispiel-website-project-stories.css");
@import url("./beispiel-website-trust-warm.css");
@import url("./beispiel-website-process-timeline.css");
@import url("./beispiel-website-contact-final.css");
@import url("./beispiel-website-footer-final.css");
@import url("./beispiel-website-final-cleanup.css");

body[data-demo-state="before"] .hero-content h1 { max-width: 16ch; }
body[data-demo-state="before"] .hero-card { transform: none; }
body[data-demo-state="before"] .about-grid { grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); max-width: none; }
body[data-demo-state="before"] .about-photo { display: block; min-height: 340px; border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.16)), url("./images/pagivo-demo-untuned/leistungen-renovierung.jpg") center/cover no-repeat; box-shadow: none; }
body[data-demo-state="before"] .about-photo::before, body[data-demo-state="before"] .about-photo::after { display: none; }

@media (max-width:980px) {
  body[data-demo-state="before"] .hero-shell { grid-template-columns: 1fr; gap: 1.35rem; padding-block: clamp(2.4rem,8vw,3.5rem); }
  body[data-demo-state="before"] .about-grid { grid-template-columns: 1fr; max-width: 780px; }
  body[data-demo-state="before"] .about-photo { min-height: clamp(220px,58vw,340px); }
}

html.is-phone-desktop-view body { width: var(--phone-layout-width,390px); max-width: var(--phone-layout-width,390px); margin: 0 auto; overflow-x: hidden; zoom: var(--phone-layout-zoom,1); }
body.is-phone-shell .shell { width: min(100% - 28px,1180px); }
body.is-phone-shell .main-nav { display: none; }
body.is-phone-shell .site-header { position: static; }
body.is-phone-shell .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .75rem; padding: .75rem 0; }
body.is-phone-shell .brand { min-width: 0; }
body.is-phone-shell .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
body.is-phone-shell .brand-copy strong { font-size: .88rem; }
body.is-phone-shell .brand-copy span { font-size: .72rem; }
body.is-phone-shell .header-cta { width: auto; min-height: 40px; padding: .6rem .78rem; font-size: .78rem; }
body.is-phone-shell .facts-grid, body.is-phone-shell .grid-3, body.is-phone-shell .grid-4, body.is-phone-shell .section-head, body.is-phone-shell .about-grid, body.is-phone-shell .contact-grid { grid-template-columns: 1fr; }

/* Tuned demo header logo: replace the old K badge with the delivered Malermeister Krause logo. */
body[data-demo-state="after"] .brand {
  min-width: 0;
  gap: 0;
}

body[data-demo-state="after"] .brand::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: clamp(190px, 22vw, 340px);
  aspect-ratio: 4 / 1;
  background: url("./logo/mmk-icon-tuned.png") left center / contain no-repeat;
}

body[data-demo-state="after"] .brand-mark,
body[data-demo-state="after"] .brand-copy {
  display: none;
}

body[data-demo-state="after"] .brand-mark::after {
  content: none;
  display: none;
}

body.is-phone-shell[data-demo-state="after"] .brand::before {
  width: min(44vw, 178px);
}

/* The tuned hero uses a dark background image/overlay; keep copy readable on top of it. */
body[data-demo-state="after"] .hero h1,
body[data-demo-state="after"] .hero #hero-title {
  color: #f7fbff;
  text-shadow: 0 18px 48px rgba(0,0,0,.55), 0 2px 2px rgba(0,0,0,.28);
}

body[data-demo-state="after"] .hero .hero-lead {
  color: rgba(244,249,252,.86);
  text-shadow: 0 14px 34px rgba(0,0,0,.48);
}

/* Magical tuning transition: generic wand-sparkle reveal, no external assets. */
.pagivo-tuning-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 24px 58px rgba(241,134,25,.34), 0 0 0 1px rgba(255,255,255,.28) inset;
}

.pagivo-tuning-button::before {
  content: "";
  position: absolute;
  inset: -55% -35%;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 45%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 30%, rgba(255,236,170,.95) 0 2px, transparent 3px),
    linear-gradient(105deg, transparent 24%, rgba(255,255,255,.65) 42%, rgba(255,229,155,.86) 50%, transparent 66%);
  opacity: .34;
  transform: translateX(-52%) rotate(4deg);
  pointer-events: none;
}

.pagivo-tuning-button::after {
  content: "";
  position: absolute;
  inset: 8px 16px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 10% 32%, rgba(255,255,255,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255,248,205,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 24%, rgba(255,255,255,.82) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 66%, rgba(255,232,147,.86) 0 1px, transparent 2px);
  opacity: .65;
  mix-blend-mode: screen;
  pointer-events: none;
}

.pagivo-tuning-wave {
  width: 92px;
  height: 92px;
  overflow: visible;
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 6%, rgba(255,232,157,.98) 7% 14%, rgba(245,180,61,.74) 15% 25%, transparent 26%),
    conic-gradient(from 22deg, transparent 0 8%, rgba(255,255,255,.88) 10% 12%, transparent 14% 22%, rgba(255,214,104,.82) 25% 27%, transparent 29% 43%, rgba(255,255,255,.76) 46% 48%, transparent 50% 66%, rgba(255,151,94,.70) 69% 72%, transparent 75% 100%),
    radial-gradient(circle, rgba(255,199,84,.32), rgba(35,177,178,.18) 44%, transparent 70%);
  box-shadow: 0 0 34px rgba(255,218,130,.78), 0 0 96px rgba(246,160,56,.38);
  filter: saturate(1.28) brightness(1.04);
  mix-blend-mode: screen;
}

.pagivo-tuning-wave::before,
.pagivo-tuning-wave::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pagivo-tuning-wave::before {
  inset: -230%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 7%, rgba(255,255,255,.98) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 69% 15%, rgba(255,231,150,.96) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 91% 39%, rgba(255,255,255,.92) 0 1.7px, transparent 2.7px),
    radial-gradient(circle at 79% 78%, rgba(255,198,92,.92) 0 1.8px, transparent 2.9px),
    radial-gradient(circle at 33% 90%, rgba(255,255,255,.88) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 10% 59%, rgba(255,220,142,.9) 0 1.7px, transparent 2.8px),
    radial-gradient(circle at 24% 21%, rgba(255,255,255,.82) 0 1.4px, transparent 2.4px);
  opacity: 0;
  transform: scale(.66) rotate(0deg);
}

.pagivo-tuning-wave::after {
  left: 50%;
  top: 50%;
  width: 310%;
  height: 34%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.96) 30%, rgba(255,219,124,.94) 48%, rgba(255,146,86,.70) 62%, transparent 100%);
  box-shadow: 0 0 24px rgba(255,236,170,.68);
  filter: blur(.2px);
  opacity: 0;
  transform: translate(-8%, -50%) rotate(-28deg) scaleX(0);
  transform-origin: left center;
}

body.is-transforming .pagivo-tuning-button::before {
  animation: pagivoButtonCast 780ms ease-out both;
}

body.is-transforming .pagivo-tuning-wave {
  animation: pagivoMagicReveal 1180ms cubic-bezier(.18,.88,.18,1) both;
}

body.is-transforming .pagivo-tuning-wave::before {
  animation: pagivoSparkBurst 1180ms ease-out both;
}

body.is-transforming .pagivo-tuning-wave::after {
  animation: pagivoWandTrail 680ms ease-out both;
}

body.is-transforming main > section:not(.tuning-demo-trigger) {
  animation: pagivoMagicLift 900ms ease both;
}

@keyframes pagivoButtonCast {
  0% { opacity: .18; transform: translateX(-64%) rotate(4deg); }
  42% { opacity: .9; }
  100% { opacity: .15; transform: translateX(62%) rotate(4deg); }
}

@keyframes pagivoMagicReveal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.12) rotate(-18deg); }
  10% { opacity: 1; }
  34% { opacity: 1; transform: translate(-50%, -50%) scale(5.2) rotate(28deg); }
  64% { opacity: .82; transform: translate(-50%, -50%) scale(20) rotate(72deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(46) rotate(108deg); }
}

@keyframes pagivoSparkBurst {
  0% { opacity: 0; transform: scale(.45) rotate(0deg); }
  16% { opacity: 1; }
  70% { opacity: .88; transform: scale(1.12) rotate(130deg); }
  100% { opacity: 0; transform: scale(1.58) rotate(210deg); }
}

@keyframes pagivoWandTrail {
  0% { opacity: 0; transform: translate(-8%, -50%) rotate(-34deg) scaleX(0); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(16%, -50%) rotate(-10deg) scaleX(1.16); }
}

@keyframes pagivoMagicLift {
  0% { transform: translateY(0); filter: saturate(1) brightness(1); }
  46% { transform: translateY(-5px); filter: saturate(1.32) brightness(1.08); }
  100% { transform: translateY(0); filter: saturate(1) brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .pagivo-tuning-button::before,
  .pagivo-tuning-button::after,
  body.is-transforming .pagivo-tuning-wave,
  body.is-transforming .pagivo-tuning-wave::before,
  body.is-transforming .pagivo-tuning-wave::after,
  body.is-transforming main > section:not(.tuning-demo-trigger) {
    animation: none !important;
  }
}

/* Malerbetrieb art icons: use delivered badge artwork directly and remove the old pseudo-icon/number badges. */
body[data-demo-state="after"] #bewertungen .review.has-demo-art-icon::before,
body[data-demo-state="after"] #ablauf .process.has-demo-art-icon::before {
  content: none !important;
  display: none !important;
}

body[data-demo-state="after"] #bewertungen .review.has-demo-art-icon .stars,
body[data-demo-state="after"] #ablauf .process.has-demo-art-icon .demo-art-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(78px, 21vw, 104px);
  height: clamp(78px, 21vw, 104px);
  margin: 0 0 .95rem;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: transparent;
  line-height: 0;
  letter-spacing: normal;
  text-transform: none;
}

body[data-demo-state="after"] .demo-art-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  transform: scale(1.24);
  transform-origin: center;
}

body[data-demo-state="after"] #bewertungen .review.has-demo-art-icon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body[data-demo-state="after"] #ablauf .process.has-demo-art-icon {
  min-height: 100%;
}

body[data-demo-state="after"] #bewertungen .review.has-demo-art-icon .stars .demo-art-icon {
  display: flex;
  width: 100%;
  height: 100%;
}

@media (min-width: 981px) {
  body[data-demo-state="after"] #bewertungen .review.has-demo-art-icon .stars,
  body[data-demo-state="after"] #ablauf .process.has-demo-art-icon .demo-art-icon {
    width: 96px;
    height: 96px;
  }
}

/* Pagivo framing above the fictional demo website. */
.pagivo-demo-intro {
  padding: clamp(2.2rem, 5vw, 4.3rem) 0;
  color: #f8fbff;
  background:
    radial-gradient(circle at 86% 8%, rgba(238, 155, 36, .28), transparent 34%),
    radial-gradient(circle at 12% 100%, rgba(70, 145, 190, .26), transparent 34%),
    linear-gradient(145deg, #101820, #0a2232 56%, #08131d);
}

.pagivo-demo-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.4rem 2rem;
  align-items: end;
}

.pagivo-demo-eyebrow {
  margin: 0 0 .65rem;
  color: #f2b25a;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pagivo-demo-intro h1 {
  max-width: 820px;
  margin-bottom: .85rem;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 4rem);
}

.pagivo-demo-intro p:not(.pagivo-demo-eyebrow) {
  max-width: 780px;
  margin-bottom: .85rem;
  color: rgba(248, 251, 255, .78);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.pagivo-demo-note {
  display: inline-flex;
  margin: .25rem 0 0;
  padding: .55rem .78rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-weight: 800;
}

.pagivo-demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .82rem 1rem;
  border-radius: 6px;
  color: #201509;
  background: var(--orange);
  box-shadow: 0 18px 38px rgba(238, 155, 36, .28);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .pagivo-demo-intro-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pagivo-demo-cta {
    width: 100%;
  }
}
