:root {
  --ink: #f8fcff;
  --muted: #c9dbea;
  --cyan: #22d9ff;
  --blue: #0b8fff;
  --deep: #03101d;
  --panel: rgba(3, 15, 28, 0.72);
  --line: rgba(199, 235, 255, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #071524;
  color: var(--ink);
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1693 / 929;
  min-height: 840px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2, 9, 18, 0.9) 0%, rgba(2, 9, 18, 0.72) 25%, rgba(2, 9, 18, 0.34) 46%, rgba(2, 9, 18, 0.04) 74%),
    radial-gradient(circle at 12% 30%, rgba(34, 217, 255, 0.22), transparent 330px);
  pointer-events: none;
}

.stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.info-panel {
  position: absolute;
  z-index: 2;
  left: 64px;
  top: 70px;
  width: 610px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #8bebff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.trust-row article {
  min-height: 112px;
  padding: 17px 13px;
  text-align: center;
  background: rgba(4, 18, 32, 0.68);
  backdrop-filter: blur(16px);
}

.trust-row span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #03101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 950;
  box-shadow: 0 0 28px rgba(34, 217, 255, 0.4);
}

.trust-row strong {
  display: block;
  font-size: 15px;
  line-height: 1.18;
}

.hero-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  min-width: 510px;
  padding: 24px 38px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #ffb21f 0%, #ff8416 42%, #ff4f16 100%);
  font-size: 26px;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(100, 28, 0, 0.32);
  box-shadow:
    0 0 0 7px rgba(255, 138, 22, 0.14),
    0 22px 52px rgba(255, 90, 18, 0.48),
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -7px 15px rgba(150, 31, 0, 0.18);
  animation: button-wiggle 2.2s ease-in-out infinite, button-pulse 2.2s ease-in-out infinite;
}

.hero-button::after {
  content: "";
  position: absolute;
  inset: -55% auto -55% -68%;
  z-index: 1;
  width: 46%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  animation: button-shine 1.65s ease-in-out infinite;
}

.hero-button::before {
  content: "";
  display: inline-grid;
  place-items: center;
  order: 2;
  width: 0;
  height: 0;
  margin: 0;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band article {
  padding: 34px clamp(22px, 4vw, 58px);
  background: rgba(5, 20, 35, 0.96);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.intro-band span {
  color: var(--muted);
  line-height: 1.55;
}

.steps-section,
.tips-section,
.savings-section,
.faq-section,
.video-section {
  padding: 90px clamp(28px, 6vw, 90px);
  background: linear-gradient(135deg, #061625, #081f35);
}

.steps-section,
.savings-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 217, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #061625, #081f35);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading h2,
.video-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow),
.video-copy p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.step-grid,
.tips-grid,
.scenario-grid {
  display: grid;
  gap: 18px;
}

.step-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tips-grid {
  grid-template-columns: repeat(4, 1fr);
}

.scenario-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-grid article,
.tips-grid article,
.scenario-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}

.step-grid article,
.tips-grid article,
.scenario-grid article {
  padding: 24px;
}

.step-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #03101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 950;
}

.step-grid h3,
.tips-grid h3,
.scenario-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.08;
}

.step-grid p,
.tips-grid p,
.scenario-grid p,
.faq-list p {
  color: var(--muted);
  line-height: 1.58;
}

.scenario-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: #86ebff;
  font-weight: 900;
  text-decoration: none;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 56px;
  align-items: center;
  color: #001a38;
  background:
    radial-gradient(circle at 78% 22%, rgba(34, 217, 255, 0.12), transparent 24rem),
    linear-gradient(180deg, #f7fbff, #eef7fc);
}

.video-card {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid rgba(0, 26, 56, 0.12);
  border-radius: 8px;
  background: #001a38;
  box-shadow: 0 24px 70px rgba(0, 26, 56, 0.18);
}

.video-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-copy .eyebrow {
  color: #12aee8;
}

.video-copy h2 {
  color: #001a38;
  font-size: clamp(32px, 4vw, 48px);
}

.video-copy p {
  color: #173554;
  max-width: 520px;
}

.heating-tips {
  margin: 22px 0 0;
  padding-left: 21px;
  color: #001a38;
  font-weight: 650;
  line-height: 1.55;
}

.heating-tips li::marker {
  color: #008dff;
  font-weight: 950;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.calculator-section {
  display: grid;
  gap: 38px;
  padding: 90px clamp(28px, 6vw, 90px);
  background:
    radial-gradient(circle at 82% 12%, rgba(34, 217, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #061625, #081f35);
}

.calculator-section .section-copy {
  max-width: 980px;
}

.section-copy h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

.check24-box {
  width: 100%;
  max-width: 1180px;
  justify-self: center;
  min-height: 620px;
  border: 1px solid rgba(158, 232, 255, 0.38);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.check24-widget,
.check24-widget iframe,
.check24-box iframe,
.energy-result-form-box .energy-result-form-box-left,
.energy-result-form-box .energy-result-form-box-right {
  width: 100% !important;
  max-width: 100% !important;
}

.check24-widget {
  display: block;
  min-height: 620px;
}

.check24-box iframe {
  display: block;
  min-height: 620px;
  border: 0;
}

.check24-placeholder {
  min-height: 620px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  color: #09233b;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(34, 217, 255, 0.12), rgba(11, 143, 255, 0.12)),
    #fff;
}

.check24-placeholder strong {
  font-size: 28px;
}

.check24-placeholder span {
  color: #496579;
  font-size: 18px;
}

.more-savings-section {
  display: grid;
  place-items: center;
  padding: 46px 24px 38px;
  background:
    radial-gradient(circle at center, rgba(100, 255, 74, 0.18), transparent 18rem),
    linear-gradient(135deg, #061625, #081f35);
}

.more-savings-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: min(420px, 100%);
  padding: 18px 44px;
  color: #03101d;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #7cff4c, #45e932);
  border-radius: 999px;
  box-shadow:
    0 18px 42px rgba(74, 255, 54, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.more-savings-button:hover,
.more-savings-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 24px 54px rgba(74, 255, 54, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.more-savings-button strong {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.05;
}

.more-savings-button span {
  margin-top: 7px;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 30px;
  color: var(--muted);
  background: #03101d;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: #8bebff;
  font-weight: 800;
  text-decoration: none;
}

.privacy-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8bebff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.datenschutz-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483647;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  width: min(780px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid rgba(139, 235, 255, 0.34);
  border-radius: 22px;
  background: rgba(3, 16, 29, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.datenschutz-panel:target {
  display: grid;
}

.datenschutz-panel.is-hidden,
.datenschutz-panel[hidden] {
  display: none;
}

.datenschutz-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.datenschutz-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.datenschutz-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.datenschutz-actions button {
  border: 1px solid rgba(139, 235, 255, 0.34);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.datenschutz-accept {
  background: linear-gradient(135deg, #18c9ff, #0877ff);
}

.datenschutz-essential {
  background: rgba(255, 255, 255, 0.07);
}

.datenschutz-actions a {
  color: #8bebff;
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(34, 217, 255, 0.16), transparent 28rem),
    linear-gradient(135deg, #061625, #081f35);
}

.legal-header,
.legal-content {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
}

.legal-header {
  padding: 58px 0 24px;
}

.legal-header h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 82px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: #8bebff;
  font-weight: 900;
  text-decoration: none;
}

.legal-content {
  padding: 0 0 70px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.legal-content h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 28px;
}

.legal-content p {
  margin: 0 0 18px;
}

@keyframes button-wiggle {
  0%, 78%, 100% {
    transform: translateX(0) rotate(0);
  }
  82% {
    transform: translateX(-4px) rotate(-1.8deg) scale(1.02);
  }
  88% {
    transform: translateX(5px) rotate(1.8deg) scale(1.035);
  }
  94% {
    transform: translateX(-2px) rotate(-0.8deg) scale(1.01);
  }
}

@keyframes button-shine {
  0%, 26% {
    left: -68%;
  }
  68%, 100% {
    left: 126%;
  }
}

@keyframes button-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 7px rgba(255, 138, 22, 0.14),
      0 22px 52px rgba(255, 90, 18, 0.48),
      inset 0 2px 0 rgba(255, 255, 255, 0.42),
      inset 0 -7px 15px rgba(150, 31, 0, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(255, 138, 22, 0.2),
      0 28px 68px rgba(255, 90, 18, 0.68),
      inset 0 2px 0 rgba(255, 255, 255, 0.54),
      inset 0 -7px 15px rgba(150, 31, 0, 0.14);
  }
}

@media (max-width: 980px) {
  .stage {
    width: 100%;
    min-height: 980px;
    aspect-ratio: auto;
  }

  .stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 64% center;
    transform: none;
  }

  .info-panel {
    left: 14px;
    right: 14px;
    top: 28px;
    width: auto;
  }

  h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 0.98;
  }

  .lead {
    margin-top: 18px;
    font-size: 19px;
    line-height: 1.42;
  }

  .trust-row {
    width: min(310px, 68vw);
    margin-top: 18px;
    border-radius: 16px;
  }

  .trust-row article {
    min-height: 54px;
    padding: 8px 10px;
  }

  .trust-row span {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    font-size: 13px;
  }

  .trust-row strong {
    font-size: 13px;
    line-height: 1.12;
  }

  .trust-row,
  .calculator-section,
  .intro-band,
  .step-grid,
  .tips-grid,
  .scenario-grid,
  .video-section {
    grid-template-columns: 1fr;
  }

  .hero-button {
    min-width: 0;
    width: 100%;
    margin-top: 28px;
    padding: 23px 20px;
    font-size: 22px;
  }

  .more-savings-section {
    padding: 34px 16px 30px;
  }

  .more-savings-button {
    width: 100%;
    max-width: 420px;
    min-width: 0;
    padding: 17px 22px;
  }

  .calculator-section {
    padding: 58px 22px;
  }

  .check24-box,
  .check24-widget,
  .check24-widget iframe,
  .check24-box iframe {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .datenschutz-panel {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 10px;
    width: auto;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 13px;
    border-radius: 16px;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
  }

  .datenschutz-panel strong {
    margin-bottom: 3px;
    font-size: 17px;
    line-height: 1.15;
  }

  .datenschutz-panel p {
    font-size: 14px;
    line-height: 1.35;
  }

  .datenschutz-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    gap: 8px;
  }

  .datenschutz-actions button,
  .datenschutz-actions a {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    text-align: center;
  }

  .datenschutz-accept {
    grid-column: 1 / -1;
  }

  .datenschutz-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
}
