/* mail4life.de – finale Version */

:root {
  --bg: #050505;
  --text: #f1f1f1;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.14);
  --orange: #ff8a00;
  --orange-soft: rgba(255, 138, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 138, 0, 0.05), transparent 18%),
    linear-gradient(180deg, #070707 0%, #030303 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 42%, rgba(255, 138, 0, 0.07), transparent 16%),
    radial-gradient(circle at 89% 45%, rgba(255, 138, 0, 0.07), transparent 18%);
  z-index: 0;
}

.landing {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 58px 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plane-wrap {
  position: relative;
  width: 260px;
  height: 120px;
  margin-bottom: 2px;
}

.plane {
  position: absolute;
  width: 118px;
  top: 0;
  right: 15px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.18));
}

.trail {
  position: absolute;
  width: 205px;
  left: 0;
  bottom: 2px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 7 8;
  stroke-linecap: round;
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 strong {
  color: var(--orange);
  font-weight: 300;
}

.tagline {
  margin: 24px 0 0;
  color: var(--orange);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 300;
}

.accent-line {
  width: 62px;
  height: 4px;
  margin: 30px auto 0;
  background: var(--orange);
}

.features {
  width: 100%;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature {
  min-height: 178px;
  padding: 14px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16%;
  width: 1px;
  height: 68%;
  background: var(--line);
}

.icon {
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255, 138, 0, 0.12));
}

.feature p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 300;
}

.statement {
  margin-top: 44px;
  text-align: center;
}

.statement p {
  margin: 6px 0;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 300;
  color: #e9e9e9;
}

.heart {
  margin-top: 28px;
  color: var(--orange);
  font-size: 2.8rem;
  line-height: 1;
}

footer {
  margin-top: auto;
  padding-top: 30px;
  color: #8f8f8f;
  font-size: 1rem;
}

/* Footer-Link */
.footer-contact {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-contact:hover,
.footer-contact:focus-visible {
  color: #d6d6d6;
  text-shadow: 0 0 14px rgba(255, 138, 0, 0.18);
  outline: none;
}

/* Kontakt-Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 38px 36px 34px;
  text-align: center;
  border: 1px solid rgba(255, 138, 0, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 138, 0, 0.10), transparent 34%),
    rgba(10, 10, 10, 0.96);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s ease;
}

.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a9a9a9;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--orange);
  background: rgba(255, 138, 0, 0.08);
  outline: none;
}

.modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 138, 0, 0.16));
}

.modal h2 {
  margin: 0 0 14px;
  font-size: 1.75rem;
  font-weight: 500;
}

.modal p {
  margin: 0 auto;
  max-width: 420px;
  color: #c9c9c9;
  font-size: 1rem;
  line-height: 1.7;
}

.mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 138, 0, 0.5);
  border-radius: 999px;
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
  background: rgba(255, 138, 0, 0.055);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mail-button:hover,
.mail-button:focus-visible {
  background: rgba(255, 138, 0, 0.12);
  border-color: var(--orange);
  transform: translateY(-1px);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

/* Dekoratives Netzwerk */
.network {
  position: fixed;
  top: 24%;
  width: 24vw;
  height: 48vh;
  min-width: 250px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.network-left {
  left: -3vw;
  background:
    radial-gradient(circle at 20% 48%, var(--orange) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 35%, var(--orange) 0 3px, transparent 4px),
    radial-gradient(circle at 53% 58%, var(--orange) 0 2px, transparent 3px),
    radial-gradient(circle at 69% 42%, var(--orange) 0 2px, transparent 3px),
    linear-gradient(26deg, transparent 47%, var(--orange-soft) 49%, transparent 50%) 0 0 / 110px 95px,
    linear-gradient(-22deg, transparent 47%, rgba(255,138,0,.28) 49%, transparent 50%) 20px 25px / 130px 100px;
  mask-image: linear-gradient(to right, #000 68%, transparent 100%);
}

.network-right {
  right: -3vw;
  background:
    radial-gradient(circle at 22% 44%, var(--orange) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 60%, var(--orange) 0 3px, transparent 4px),
    radial-gradient(circle at 63% 38%, var(--orange) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 53%, var(--orange) 0 2px, transparent 3px),
    linear-gradient(-26deg, transparent 47%, var(--orange-soft) 49%, transparent 50%) 0 0 / 110px 95px,
    linear-gradient(22deg, transparent 47%, rgba(255,138,0,.28) 49%, transparent 50%) 20px 25px / 130px 100px;
  mask-image: linear-gradient(to left, #000 68%, transparent 100%);
}

@media (max-width: 900px) {
  .landing {
    width: min(720px, calc(100% - 30px));
    padding-top: 36px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }

  .feature:nth-child(2)::after {
    display: none;
  }

  .feature:nth-child(-n+2)::before {
    content: "";
    position: absolute;
    left: 15%;
    bottom: 0;
    width: 70%;
    height: 1px;
    background: var(--line);
  }

  .network {
    opacity: 0.3;
  }
}

@media (max-width: 560px) {
  .landing {
    width: min(100% - 24px, 460px);
  }

  .plane-wrap {
    transform: scale(0.82);
    margin-top: -10px;
    margin-bottom: -8px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .tagline {
    margin-top: 18px;
    font-size: 1.2rem;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 35px;
  }

  .feature {
    min-height: 150px;
  }

  .feature::after {
    display: none !important;
  }

  .feature::before {
    content: "";
    position: absolute;
    left: 20%;
    bottom: 0;
    width: 60%;
    height: 1px;
    background: var(--line);
  }

  .feature:last-child::before {
    display: none;
  }

  .statement {
    margin-top: 34px;
  }

  footer {
    padding-top: 38px;
  }

  .network {
    width: 42vw;
    opacity: 0.2;
  }

  .modal {
    padding: 34px 22px 28px;
    border-radius: 18px;
  }

  .modal h2 {
    font-size: 1.5rem;
  }

  .mail-button {
    width: 100%;
  }
}
