/* Marketing product pages /hours, /pv-forecast, /schaltsignale, /live-strompreise, /beste-stunden, /preise */

html:has(.product-story-main) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:has(.product-story-main) {
    scroll-behavior: auto;
  }
}

main.container.product-story-main {
  max-width: 1040px;
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

.product-story-hero {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.35rem;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 82, 120, 0.18);
}

.product-story-hero--hours {
  background:
    radial-gradient(ellipse 80% 110% at 100% 0%, rgba(253, 186, 116, 0.28) 0%, transparent 52%),
    linear-gradient(132deg, #083344 0%, #005278 48%, #0a7ea4 100%);
}

.product-story-hero--pv {
  background:
    radial-gradient(ellipse 80% 110% at 0% 0%, rgba(253, 230, 138, 0.28) 0%, transparent 52%),
    linear-gradient(132deg, #064e3b 0%, #047857 46%, #0a7ea4 100%);
}

.product-story-hero--live {
  background:
    radial-gradient(ellipse 80% 110% at 100% 0%, rgba(125, 211, 252, 0.28) 0%, transparent 52%),
    linear-gradient(132deg, #082f44 0%, #005278 50%, #0a7ea4 100%);
}

.product-story-hero--windows {
  background:
    radial-gradient(ellipse 80% 110% at 0% 0%, rgba(253, 186, 116, 0.28) 0%, transparent 52%),
    linear-gradient(132deg, #083344 0%, #0a7ea4 55%, #047857 100%);
}

.product-story-hero--decision {
  background:
    radial-gradient(ellipse 80% 110% at 100% 0%, rgba(52, 211, 153, 0.3) 0%, transparent 52%),
    linear-gradient(132deg, #042f2e 0%, #0f766e 48%, #0a7ea4 100%);
}

.product-story-hero--pricing {
  background:
    radial-gradient(ellipse 80% 110% at 0% 0%, rgba(253, 230, 138, 0.32) 0%, transparent 52%),
    linear-gradient(132deg, #7c2d12 0%, #c2410c 48%, #d97706 100%);
}

@media (min-width: 768px) {
  .product-story-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 1.6rem 2rem;
    padding: 1.7rem 1.75rem 1.75rem;
  }
}

.product-story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.product-story-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #fdba74;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.35);
}

.product-story-hero--pv .product-story-dot {
  background: #fde68a;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.35);
}

.product-story-hero--decision .product-story-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.35);
}

.product-story-hero--pricing .product-story-dot {
  background: #fde68a;
  box-shadow: 0 0 0 3px rgba(253, 230, 138, 0.4);
}

.product-story-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.18;
  color: #fff;
}

.product-story-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.product-story-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.product-story-hero .btn-primary {
  background: #fff;
  color: #083344;
  border-color: #fff;
}

.product-story-hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.product-story-hero .btn-primary:focus-visible,
.product-story-hero .btn-secondary:focus-visible,
.product-story-cta .btn-primary:focus-visible,
.product-story-cta .btn-secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.product-story-hero-visual {
  margin: 0;
  min-width: 0;
}

.product-story-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.product-story-hero-caption {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.product-story-section {
  padding: 1.15rem 0 0.35rem;
  scroll-margin-top: 5.5rem;
}

.product-story-section h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  color: var(--color-text);
}

.product-story-section > p {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.product-story-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ps-step;
}

@media (min-width: 768px) {
  .product-story-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.product-story-steps li {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.96) 100%);
  border: 1px solid rgba(0, 82, 120, 0.12);
  counter-increment: ps-step;
}

.product-story-steps li::before {
  content: counter(ps-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: #005278;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.product-story-hero--pv ~ .product-story-section .product-story-steps li::before,
.product-story-main--pv .product-story-steps li::before {
  background: #047857;
}

.product-story-main--decision .product-story-steps li::before {
  background: #0f766e;
}

.product-story-main--pricing .product-story-steps li::before {
  background: #c2410c;
}

.product-story-widget {
  margin: 0 0 0.35rem;
  padding: 0.95rem 0.85rem 1.05rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 82, 120, 0.12);
  box-shadow: 0 8px 24px rgba(0, 82, 120, 0.06);
  overflow-x: auto;
}

.product-story-widget .landing-live-intro-list {
  margin: 0 0 1rem;
}

main.container.product-story-main--pricing {
  max-width: 1120px;
}

.product-story-main--pricing .landing-pricing {
  margin-top: 0.15rem;
}

.product-story-main--windows .product-story-cta {
  background: linear-gradient(125deg, #083344 0%, #0a7ea4 100%);
}

.product-story-main--pricing .product-story-cta {
  background: linear-gradient(125deg, #9a3412 0%, #d97706 100%);
}

.product-story-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.product-story-steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.product-story-example {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e8f2f7 0%, #f4f7fa 100%);
  border: 1px solid rgba(0, 82, 120, 0.1);
}

@media (min-width: 768px) {
  .product-story-example {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 1.4rem;
    padding: 1.3rem 1.35rem;
  }
}

.product-story-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.product-story-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  border: 1px solid rgba(0, 82, 120, 0.1);
}

.product-story-fact dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
}

.product-story-fact dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #005278;
  font-variant-numeric: tabular-nums;
}

.product-story-fact--result {
  background: #005278;
  border-color: #005278;
}

.product-story-fact--result dt,
.product-story-fact--result dd {
  color: #fff;
}

.product-story-main--pv .product-story-fact dd {
  color: #047857;
}

.product-story-main--pv .product-story-fact--result {
  background: #047857;
  border-color: #047857;
}

.product-story-note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.product-story-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}

.product-story-slot {
  min-width: 3.4rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  background: #fdba74;
  color: #083344;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.product-story-signals {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .product-story-signals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-story-signals li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.45rem 0.2rem 0.4rem;
  border-radius: 0.45rem;
}

.product-story-signals li span {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.product-story-signals li em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.product-story-signals li.is-charge {
  background: #34d399;
  color: #064e3b;
}

.product-story-signals li.is-hold {
  background: #7dd3fc;
  color: #083344;
}

.product-story-signals li.is-discharge {
  background: #fdba74;
  color: #7c2d12;
}

.product-story-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 0.7rem 0.55rem;
  min-height: 11rem;
  list-style: none;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  border: 1px solid rgba(0, 82, 120, 0.1);
}

.product-story-week li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.product-story-week-bar {
  display: block;
  width: 100%;
  height: var(--h, 4rem);
  min-height: 1.6rem;
  border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, #fde68a 0%, #047857 100%);
  transform-origin: bottom;
  animation: product-story-rise 0.9s ease-out both;
}

.product-story-week li:nth-child(2) .product-story-week-bar { animation-delay: 0.06s; }
.product-story-week li:nth-child(3) .product-story-week-bar { animation-delay: 0.12s; }
.product-story-week li:nth-child(4) .product-story-week-bar { animation-delay: 0.18s; }
.product-story-week li:nth-child(5) .product-story-week-bar { animation-delay: 0.24s; }
.product-story-week li:nth-child(6) .product-story-week-bar { animation-delay: 0.3s; }
.product-story-week li:nth-child(7) .product-story-week-bar { animation-delay: 0.36s; }

.product-story-week-kwh {
  font-size: 0.72rem;
  font-weight: 700;
  color: #064e3b;
  font-variant-numeric: tabular-nums;
}

.product-story-week-day {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-muted);
}

.product-story-week--prices .product-story-week-bar {
  background: linear-gradient(180deg, #7dd3fc 0%, #005278 100%);
}

.product-story-week--prices li.is-cheap .product-story-week-bar {
  background: linear-gradient(180deg, #6ee7b7 0%, #047857 100%);
}

.product-story-week--prices li.is-peak .product-story-week-bar {
  background: linear-gradient(180deg, #fdba74 0%, #c2410c 100%);
}

.product-story-week--prices .product-story-week-kwh {
  color: #083344;
}

.product-story-main--decision .product-story-fact--result {
  background: rgba(15, 118, 110, 0.1);
}

@keyframes product-story-rise {
  from { transform: scaleY(0.15); opacity: 0.45; }
}

.product-story-gets {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .product-story-gets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-story-gets article {
  padding: 0.95rem 1rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(0, 82, 120, 0.12);
}

.product-story-gets h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.product-story-gets p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.product-story-gets code {
  font-size: 0.82em;
}

.product-story-faq {
  display: grid;
  gap: 0.45rem;
}

.product-story-faq details {
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  border: 1px solid rgba(0, 82, 120, 0.12);
}

.product-story-faq summary {
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-weight: 650;
}

.product-story-faq details p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.product-story-cta {
  margin-top: 1.35rem;
  padding: 1.25rem 1.15rem 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #005278 0%, #047857 100%);
  color: #fff;
}

.product-story-cta h2 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.product-story-cta p {
  margin: 0 0 0.95rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-story-cta .actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-story-cta .btn-primary {
  background: #fff;
  color: #083344;
  border-color: #fff;
}

.product-story-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.product-story-related {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.product-story-related a {
  color: #7dd3fc;
}

@media (prefers-reduced-motion: reduce) {
  .product-story-week-bar {
    animation: none;
  }
}
