/* ONEART · Website-Update v5: neuer Einstieg (Hero) – eine Botschaft, eine Aktion, echte Projekte im Schaufenster. */

.hx {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: clamp(3.2rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0e0d;
  color: #f3eee7;
}

.hx-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 74% 46%, rgba(197, 16, 36, 0.28), transparent 70%),
    radial-gradient(30% 40% at 92% 10%, rgba(255, 170, 110, 0.12), transparent 70%),
    radial-gradient(35% 45% at 4% 100%, rgba(197, 16, 36, 0.1), transparent 70%);
}

.hx-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%);
}

.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
}

/* Text */
.hx-copy {
  max-width: 640px;
}

.hx .eyebrow {
  margin-bottom: 1.4rem;
}

.hx h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hx h1 em {
  display: block;
  margin-top: 0.12em;
  color: #e3cdb6;
  font-family: var(--font-accent);
  font-size: 0.86em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.hx-lead {
  max-width: 50ch;
  margin: 1.7rem 0 0;
  color: #c8bfb4;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

/* Entwurf-Starter */
.hx-start {
  margin-top: 2.2rem;
}

.hx-start label {
  display: block;
  margin-bottom: 0.7rem;
  color: #ecdcc9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hx-start label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
  vertical-align: 1px;
  animation: hx-pulse 2.4s ease-in-out infinite;
}

.hx-start__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1a1816;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hx-start__row:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(197, 16, 36, 0.18);
}

.hx-start input,
.hx-start select {
  width: 100%;
  min-height: 3.6rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1rem;
}

.hx-start select {
  appearance: none;
  padding-right: 2.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8dfd5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 15px;
  cursor: pointer;
}

.hx-start select option {
  background: #1a1816;
  color: #fff;
}

.hx-start input::placeholder {
  color: #9b938a;
}

.hx-start button {
  min-height: 3.6rem;
  padding: 0 1.5rem;
  border: 0;
  background: var(--signal, #c51024);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.hx-start button:hover {
  background: #e01a30;
}

.hx-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1rem 0 0;
  color: #9b938a;
  font-size: 0.9rem;
}

.hx-alt a {
  color: #f3eee7;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(243, 238, 231, 0.35);
  text-underline-offset: 4px;
}

.hx-alt a:hover {
  text-decoration-color: #fff;
}

/* Belege */
.hx-proof {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  margin: 2.4rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

.hx-proof li + li {
  padding-left: 1.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-proof li:not(:last-child) {
  padding-right: 1.4rem;
}

.hx-proof a,
.hx-proof span.hx-proof__item {
  display: grid;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.hx-proof b {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hx-proof b i {
  color: #f5b301;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

.hx-proof small {
  color: #a39b91;
  font-size: 0.78rem;
}

.hx-proof a:hover small {
  color: #fff;
}

.hx-proof__owner {
  display: flex !important;
  align-items: center;
  gap: 0.65rem !important;
}

.hx-proof__owner img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.hx-proof__owner b {
  font-size: 0.95rem;
}

/* Schaufenster: echte Websites im Browser, Entwurf im Handy */
.hx-stage {
  position: relative;
  padding: 1.5rem 0 3.5rem;
  perspective: 1600px;
}

.hx-browser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #1b1917;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: rotateY(-9deg) rotateX(3deg);
  transform-origin: 60% 50%;
  transition: transform 0.9s var(--ease-out, ease);
}

.hx-stage:hover .hx-browser {
  transform: rotateY(-4deg) rotateX(1.5deg);
}

.hx-browser__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #22201d;
}

.hx-browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3632;
}

.hx-browser__bar i:nth-child(1) { background: #ff5f57; }
.hx-browser__bar i:nth-child(2) { background: #febc2e; }
.hx-browser__bar i:nth-child(3) { background: #28c840; }

.hx-browser__bar span {
  flex: 1;
  overflow: hidden;
  margin-left: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: #171513;
  color: #b9b0a5;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-slides {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #11100f;
}

.hx-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hx-slide.is-on {
  z-index: 1;
  opacity: 1;
}

.hx-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.06);
  transition: transform 6s linear;
}

.hx-slide.is-on img {
  transform: scale(1);
}

.hx-phone {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: -6%;
  width: clamp(130px, 26%, 190px);
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(145deg, #2f2c29, #0a0908);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 70px -24px rgba(0, 0, 0, 0.95);
  transform: rotate(-4deg);
}

.hx-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #f6f2ec;
}

.hx-phone__screen img {
  display: block;
  width: 100%;
  height: auto;
  animation: hx-scroll 14s 1.5s ease-in-out infinite alternate;
}

.hx-phone__tag {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(17, 16, 15, 0.86);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.hx-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(24, 22, 20, 0.88);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
  color: #f3eee7;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hx-float 6s ease-in-out infinite;
}

.hx-chip small {
  display: block;
  color: #a39b91;
  font-size: 0.7rem;
  line-height: 1.3;
}

.hx-chip strong {
  font-size: 0.86rem;
}

.hx-chip--rating {
  top: 0;
  right: -2%;
}

.hx-chip--rating i {
  color: #f5b301;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

.hx-chip--speed {
  right: 6%;
  bottom: 1.2rem;
  animation-delay: -3s;
}

.hx-chip--speed b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #2fbf71;
  border-radius: 50%;
  color: #2fbf71;
  font-size: 0.95rem;
}

.hx-caption {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 26%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  margin: 0;
  color: #a39b91;
  font-size: 0.82rem;
}

.hx-caption strong {
  color: #f3eee7;
}

.hx-dots {
  display: flex;
  gap: 0.35rem;
}

.hx-dots button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hx-dots button::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  transition: background 0.3s ease;
}

.hx-dots button[aria-current="true"]::before {
  background: #fff;
}

/* Einblenden beim Laden */
.hx-copy > * {
  animation: hx-rise 0.9s var(--ease-out, ease) both;
}

.hx-copy > :nth-child(2) { animation-delay: 0.08s; }
.hx-copy > :nth-child(3) { animation-delay: 0.16s; }
.hx-copy > :nth-child(4) { animation-delay: 0.24s; }
.hx-copy > :nth-child(5) { animation-delay: 0.3s; }
.hx-copy > :nth-child(n + 6) { animation-delay: 0.36s; }

.hx-stage {
  animation: hx-rise 1.1s 0.15s var(--ease-out, ease) both;
}

@keyframes hx-rise {
  from { opacity: 0; transform: translateY(22px); }
}

@keyframes hx-float {
  50% { transform: translateY(-8px); }
}

@keyframes hx-pulse {
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

@keyframes hx-scroll {
  0%, 15% { transform: translateY(0); }
  100% { transform: translateY(-38%); }
}

/* Tablet */
@media (max-width: 1100px) {
  .hx-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-copy {
    max-width: 720px;
  }

  .hx-stage {
    max-width: 760px;
    margin-inline: auto;
    padding-left: 6%;
  }

  .hx-browser {
    transform: none;
  }

  .hx-stage:hover .hx-browser {
    transform: none;
  }
}

/* Handy */
@media (max-width: 640px) {
  .hx {
    padding-top: 2.4rem;
  }

  .hx h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.4rem);
  }

  .hx-start__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hx-start select {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .hx-start button {
    min-height: 3.4rem;
  }

  .hx-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 0;
  }

  .hx-proof li,
  .hx-proof li + li {
    padding: 0 0.8rem 0 0;
    border: 0;
  }

  .hx-proof li:nth-child(even) {
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hx-stage {
    padding: 0.5rem 0 4.2rem 9%;
  }

  .hx-phone {
    left: -3%;
    width: 31%;
  }

  .hx-chip--rating {
    top: -0.6rem;
    right: -0.4rem;
  }

  .hx-chip--speed {
    display: none;
  }

  .hx-caption {
    left: 32%;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx *,
  .hx-stage {
    animation: none !important;
    transition: none !important;
  }

  .hx-slide img {
    transform: none;
  }
}

/* Hinweis „Echte Kundenprojekte“ am Schaufenster */
.hx-chip--live {
  top: 0;
  right: -2%;
}

.hx-live {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #ff3b4e;
  box-shadow: 0 0 0 4px rgba(255, 59, 78, 0.2);
  animation: hx-pulse-red 2s ease-in-out infinite;
}

@keyframes hx-pulse-red {
  50% { box-shadow: 0 0 0 8px rgba(255, 59, 78, 0); }
}

@media (max-width: 640px) {
  .hx-chip--live {
    top: -0.8rem;
    right: -0.4rem;
    padding: 0.5rem 0.7rem;
  }
}

/* Feinschliff: Überschrift in drei Zeilen, Belegleiste über die ganze Breite */
.hx {
  padding-block: clamp(2.6rem, 5.5vw, 5rem) 0;
}

.hx h1 {
  font-size: clamp(2.7rem, 4.7vw, 4.75rem);
}

.hx-proof {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  padding: 1.5rem 0 1.7rem;
}

.hx-proof li,
.hx-proof li + li,
.hx-proof li:not(:last-child) {
  padding: 0 1.5rem;
}

.hx-proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hx-proof li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-proof b {
  font-size: 1.55rem;
}

.hx-proof small {
  font-size: 0.82rem;
}

.hx-proof__owner span {
  display: grid;
  gap: 0.1rem;
}

.hx-proof__owner b {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .hx-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 0;
  }

  .hx-proof li,
  .hx-proof li + li,
  .hx-proof li:not(:last-child) {
    padding: 0 0.9rem 0 0;
    border-left: 0;
  }

  .hx-proof li:nth-child(even) {
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hx-proof b {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .hx-alt a[href="#arbeiten"] {
    display: none;
  }

  .hx-chip--live {
    top: -0.9rem;
    right: 0;
  }

  .hx-chip--live strong {
    font-size: 0.76rem;
  }

  .hx-caption {
    left: 36%;
    font-size: 0.74rem;
  }

  .hx-caption > span:first-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Text sofort sichtbar (schnellerer „Largest Contentful Paint“) – nur das Schaufenster blendet ein */
.hx-copy > * {
  animation: none;
}

/* Schaufenster: nur Bewegung, keine Ausblendung (Bild zählt sofort für die Ladezeit) */
.hx-stage {
  animation: hx-lift 1.1s 0.1s var(--ease-out, ease) both;
}

@keyframes hx-lift {
  from { transform: translateY(26px); }
}
