:root {
  --tm24-hero-blue: #002b7f;
  --tm24-hero-blue-dark: #001f5c;
  --tm24-hero-blue-deep: #00154a;
  --tm24-hero-red: #e30613;
  --tm24-hero-red-dark: #bf000a;
  --tm24-hero-text: #07152f;
  --tm24-hero-muted: #4b5563;
  --tm24-hero-border: #dbe3f0;
  --tm24-hero-soft: #f3f7ff;
  --tm24-hero-white: #ffffff;
  --tm24-hero-shadow: 0 18px 45px rgba(0, 31, 92, 0.14);
}

html {
  scroll-behavior: smooth;
}

.tm24-flyer-hero,
.tm24-flyer-hero * {
  box-sizing: border-box;
}

.tm24-flyer-hero {
  width: 100%;
  background:
    radial-gradient(circle at 78% 16%, rgba(0, 43, 127, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--tm24-hero-text);
  padding: 14px 18px 18px;
  overflow: hidden;
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
}

/* Shapes nur im Visual-Bereich, NICHT auf der Section selbst */
.tm24-flyer-hero::before,
.tm24-flyer-hero::after {
  display: none;
}

.tm24-flyer-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

/* Old top bar hidden (shipping badge is now inline) */
.tm24-flyer-hero__top {
  display: none;
}

.tm24-flyer-hero__logo {
  display: inline-flex;
  align-items: center;
  max-width: 340px;
  text-decoration: none;
}

.tm24-flyer-hero__logo img {
  display: block;
  width: 100%;
  max-height: 95px;
  object-fit: contain;
}

/* Old shipping badge styles kept for backwards compat */
.tm24-flyer-hero__shipping {
  display: none;
}

/* NEW: Title + Versand-Badge nebeneinander */
.tm24-flyer-hero__title-row {
  position: relative;
}

.tm24-flyer-hero__shipping-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tm24-hero-white);
  border: 1px solid var(--tm24-hero-border);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 31, 92, 0.10);
  min-width: 180px;
  max-width: 220px;
  position: absolute;
  top: 8px;
  left: 420px;
  z-index: 10;
  flex-shrink: 0;
}

.tm24-flyer-hero__shipping-inline > i {
  font-size: 22px;
  color: var(--tm24-hero-blue);
  flex-shrink: 0;
}

.tm24-flyer-hero__shipping-inline strong {
  display: block;
  color: var(--tm24-hero-blue);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tm24-flyer-hero__shipping-inline span {
  display: block;
  color: var(--tm24-hero-muted);
  font-size: 11px;
  margin-top: 2px;
  line-height: 1.2;
}

.tm24-flyer-hero__main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 32px;
  flex: 1;
  min-height: 380px;
}

.tm24-flyer-hero__content {
  padding-top: 6px;
  position: relative;
  z-index: 4;
}

.tm24-flyer-hero__title {
  margin: 0;
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.tm24-flyer-hero__title span,
.tm24-flyer-hero__title strong {
  display: block;
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 950;
}

.tm24-flyer-hero__title span {
  color: var(--tm24-hero-blue);
}

.tm24-flyer-hero__title strong {
  color: var(--tm24-hero-red);
}

.tm24-flyer-hero__subtitle {
  margin: 14px 0 8px;
  color: var(--tm24-hero-blue);
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.tm24-flyer-hero__description {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--tm24-hero-text);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

.tm24-flyer-hero__benefits {
  display: grid;
  gap: 8px;
  max-width: 470px;
}

.tm24-flyer-hero__benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 43, 127, 0.10);
}

.tm24-flyer-hero__benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--tm24-hero-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 14px rgba(0, 43, 127, 0.18);
}

.tm24-flyer-hero__benefit strong {
  display: block;
  color: var(--tm24-hero-blue);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
}

.tm24-flyer-hero__benefit span {
  display: block;
  margin-top: 2px;
  color: var(--tm24-hero-text);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.tm24-flyer-hero__visual {
  min-height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 3;
  overflow: visible;
  isolation: isolate;
}

.tm24-flyer-hero__shape {
  position: absolute;
  border-radius: 42px;
  transform: rotate(20deg);
  z-index: -1;
}

.tm24-flyer-hero__shape--blue {
  width: 180px;
  height: 600px;
  right: -5%;
  top: -15%;
  transform: rotate(-35deg);
  background: linear-gradient(155deg, var(--tm24-hero-blue) 0%, var(--tm24-hero-blue-deep) 100%);
  box-shadow: none;
  border-radius: 20px;
  opacity: 0.18;
}

.tm24-flyer-hero__shape--red {
  width: 120px;
  height: 500px;
  right: -12%;
  bottom: -20%;
  background: linear-gradient(145deg, var(--tm24-hero-blue) 0%, var(--tm24-hero-blue-dark) 100%);
  box-shadow: none;
  border-radius: 16px;
  z-index: -1;
  opacity: 0.10;
}

.tm24-flyer-hero__devices {
  position: relative;
  z-index: 5;
  display: block;
  width: 720px;
  max-width: none;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 45px rgba(0, 35, 90, 0.18));
  border-radius: 0;
  background: transparent;
  margin-left: -80px;
  margin-top: -40px;
}

/* Desktop-Abstufungen: feste Pixelwerte */
@media (max-width: 1500px) {
  .tm24-flyer-hero__devices {
    width: 650px;
    margin-left: -60px;
  }
  .tm24-flyer-hero__visual {
    min-height: 480px;
  }
}

@media (max-width: 1366px) {
  .tm24-flyer-hero__devices {
    width: 600px;
    margin-left: -40px;
  }
  .tm24-flyer-hero__visual {
    min-height: 460px;
  }
  .tm24-flyer-hero__shipping-inline {
    left: 380px;
  }
}

/* Speech Bubble Badge */
.tm24-flyer-hero__money-badge {
  position: absolute;
  z-index: 5;
  left: 24px;
  bottom: 110px;
  background: var(--tm24-hero-white);
  border: 2px solid var(--tm24-hero-blue);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 31, 92, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  text-align: center;
  padding: 18px 22px;
  min-width: 180px;
}

/* Speech bubble triangle */
.tm24-flyer-hero__money-badge::after {
  content: "";
  position: absolute;
  bottom: -14px;
  right: 32px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--tm24-hero-blue);
}

.tm24-flyer-hero__money-badge i {
  color: var(--tm24-hero-blue);
  font-size: 34px;
  margin-bottom: 8px;
}

.tm24-flyer-hero__money-badge span {
  color: var(--tm24-hero-blue);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tm24-flyer-hero__money-badge strong {
  display: block;
  color: var(--tm24-hero-red);
  font-size: 18px;
  line-height: 1.05;
  font-weight: 950;
  margin-top: 4px;
  text-transform: uppercase;
}

.tm24-flyer-hero__process-wrap {
  position: relative;
  z-index: 8;
  margin-top: -14px;
}

.tm24-flyer-hero__process-wrap h2 {
  margin: 0 0 -2px;
  color: var(--tm24-hero-blue);
  text-align: center;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.tm24-flyer-hero__process {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--tm24-hero-border);
  border-radius: 18px;
  box-shadow: var(--tm24-hero-shadow);
  padding: 22px 24px 18px;
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  align-items: stretch;
  gap: 4px;
}

.tm24-flyer-hero__step {
  position: relative;
  text-align: center;
  padding: 4px 4px 0;
}

.tm24-flyer-hero__step-number {
  position: absolute;
  top: -10px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tm24-hero-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 43, 127, 0.22);
}

.tm24-flyer-hero__step-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--tm24-hero-blue);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.tm24-flyer-hero__step strong {
  display: block;
  color: var(--tm24-hero-blue);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
}

.tm24-flyer-hero__step p {
  margin: 4px auto 0;
  color: var(--tm24-hero-text);
  font-size: 12px;
  line-height: 1.3;
  max-width: 150px;
}

.tm24-flyer-hero__arrow {
  display: grid;
  place-items: center;
  color: #9ba8bd;
  font-size: 28px;
}

/* Steps als eigenständige Section (außerhalb Hero) */
.tm24-steps-section {
  width: min(100% - 48px, 1500px);
  margin: 40px auto 32px;
  padding: 32px 28px 24px;
}

.tm24-flyer-hero__cta-row {
  width: min(100% - 48px, 1500px);
  margin: 22px auto 0;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 35, 90, 0.16);
  background: var(--tm24-hero-blue);
}

.tm24-flyer-hero__cta-row > * {
  flex: 1 1 50%;
  min-width: 0;
}

.tm24-flyer-hero__cta {
  min-height: 74px;
  height: 74px;
  background: linear-gradient(135deg, var(--tm24-hero-red) 0%, var(--tm24-hero-red-dark) 100%);
  color: #fff !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 24px;
  font-size: clamp(24px, 1.8vw, 36px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tm24-flyer-hero__cta span {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 999px;
  background: #fff;
  color: var(--tm24-hero-red);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}

.tm24-flyer-hero__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.tm24-flyer-hero__url {
  min-height: 74px;
  height: 74px;
  background: linear-gradient(135deg, var(--tm24-hero-blue) 0%, var(--tm24-hero-blue-deep) 100%);
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 24px;
  font-size: clamp(24px, 1.8vw, 36px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tm24-flyer-hero__url:hover {
  filter: brightness(1.15);
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.tm24-flyer-hero__url i {
  font-size: 28px;
}

.tm24-flyer-hero__trustbar {
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--tm24-hero-blue-dark) 0%, var(--tm24-hero-blue-deep) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 31, 92, 0.14);
}

.tm24-flyer-hero__trustitem {
  min-height: 64px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.tm24-flyer-hero__trustitem:last-child {
  border-right: 0;
}

.tm24-flyer-hero__trustitem i {
  font-size: 22px;
  color: #fff;
  opacity: 0.95;
}

.tm24-flyer-hero__trustitem strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
}

.tm24-flyer-hero__trustitem span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  line-height: 1.2;
}

/* Bestehenden alten Hero ausblenden */
.ankauf-hero {
  display: none !important;
}

/* Bestehende Pills bewusst nicht anfassen */

/* Responsive */
@media (max-width: 1050px) {
  .tm24-flyer-hero {
    padding-top: 18px;
    min-height: auto;
    display: block;
  }

  .tm24-flyer-hero__main {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .tm24-flyer-hero__content {
    text-align: left;
  }

  .tm24-flyer-hero__description,
  .tm24-flyer-hero__benefits {
    max-width: 100%;
  }

  .tm24-flyer-hero__visual {
    min-height: 320px;
    margin: 0 auto;
    max-width: 480px;
    width: 100%;
    justify-content: center;
  }

  .tm24-flyer-hero__devices {
    width: min(92vw, 430px);
    max-width: 100%;
    max-height: none;
    margin-left: 0;
    margin-top: 0;
    transform: none;
  }

  .tm24-flyer-hero__shipping-inline {
    position: static;
    margin-top: 12px;
  }

  .tm24-flyer-hero__shape--blue {
    width: 220px;
    height: 220px;
    right: 12%;
    border-radius: 40px;
  }

  .tm24-flyer-hero__shape--red {
    width: 140px;
    height: 140px;
    right: 8%;
    border-radius: 28px;
  }

  .tm24-flyer-hero__money-badge {
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) rotate(-3deg);
  }

  .tm24-flyer-hero__process-wrap {
    margin-top: 16px;
  }

  .tm24-flyer-hero__process {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .tm24-flyer-hero__arrow {
    display: none;
  }

  .tm24-flyer-hero__trustbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm24-flyer-hero__trustitem:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .tm24-flyer-hero {
    padding: 18px 12px 24px;
  }

  .tm24-flyer-hero__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .tm24-flyer-hero__logo {
    max-width: 260px;
  }

  .tm24-flyer-hero__shipping {
    min-width: 0;
    width: 100%;
  }

  .tm24-flyer-hero__shipping-icon {
    width: 70px;
    min-height: 66px;
    font-size: 26px;
  }

  .tm24-flyer-hero__shipping strong {
    font-size: 17px;
  }

  .tm24-flyer-hero__shipping span {
    font-size: 13px;
  }

  .tm24-flyer-hero__title span,
  .tm24-flyer-hero__title strong {
    font-size: clamp(54px, 15vw, 76px);
  }

  .tm24-flyer-hero__subtitle {
    font-size: 29px;
    margin-top: 18px;
  }

  .tm24-flyer-hero__description {
    font-size: 17px;
    margin-bottom: 24px;
  }

  .tm24-flyer-hero__benefit {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .tm24-flyer-hero__benefit-icon {
    width: 54px;
    height: 54px;
    font-size: 23px;
  }

  .tm24-flyer-hero__benefit strong {
    font-size: 18px;
  }

  .tm24-flyer-hero__benefit span {
    font-size: 15px;
  }

  .tm24-flyer-hero__visual {
    min-height: 335px;
  }

  .tm24-flyer-hero__devices {
    width: min(92vw, 430px);
    max-width: 100%;
    max-height: none;
    margin-left: 0;
    margin-top: 0;
    transform: none;
  }

  .tm24-flyer-hero__shipping-inline {
    position: static;
    margin-top: 10px;
  }

  .tm24-flyer-hero__money-badge {
    width: 126px;
    height: 126px;
    bottom: 8px;
  }

  .tm24-flyer-hero__money-badge i {
    font-size: 24px;
  }

  .tm24-flyer-hero__money-badge span {
    font-size: 12px;
  }

  .tm24-flyer-hero__money-badge strong {
    font-size: 13px;
  }

  .tm24-flyer-hero__process {
    grid-template-columns: 1fr 1fr;
    padding: 28px 16px 20px;
  }

  .tm24-flyer-hero__step-number {
    top: -10px;
    left: 8px;
  }

  .tm24-flyer-hero__step-icon {
    width: 62px;
    height: 62px;
    font-size: 27px;
  }

  .tm24-flyer-hero__step strong {
    font-size: 16px;
  }

  .tm24-flyer-hero__step p {
    font-size: 13px;
  }

  .tm24-flyer-hero__cta-row {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    border-radius: 16px;
    margin-top: 22px;
  }

  .tm24-flyer-hero__cta,
  .tm24-flyer-hero__url {
    min-height: 68px;
    font-size: 22px;
    white-space: normal;
    text-align: center;
  }

  .tm24-flyer-hero__cta span {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 20px;
  }

  .tm24-flyer-hero__url i {
    font-size: 26px;
  }

  .tm24-flyer-hero__trustbar {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .tm24-flyer-hero__trustitem {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .tm24-flyer-hero__trustitem:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .tm24-flyer-hero__title span,
  .tm24-flyer-hero__title strong {
    font-size: 48px;
  }

  .tm24-flyer-hero__subtitle {
    font-size: 25px;
  }

  .tm24-flyer-hero__process {
    grid-template-columns: 1fr;
  }

  .tm24-flyer-hero__visual {
    min-height: 285px;
  }

  .tm24-flyer-hero__devices {
    width: min(90vw, 380px);
    max-width: 100%;
    max-height: none;
    margin-left: 0;
    margin-top: 0;
    transform: none;
  }

  .tm24-flyer-hero__shipping-inline {
    position: static;
    margin-top: 8px;
    min-width: 0;
    max-width: 100%;
  }

  .tm24-flyer-hero__cta,
  .tm24-flyer-hero__url {
    font-size: 20px;
  }
}
