*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #030B1A;
  --mid:     #0044A0;
  --blue:    #0077B6;
  --electric:#007BFF;
  --sky:     #60C0FF;
}

html, body { height: 100%; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--navy);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── Background layers ─── */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 68% 48%, rgba(0,119,182,.22) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 85% 75%, rgba(0,123,255,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(0,68,160,.12) 0%, transparent 60%),
    linear-gradient(160deg, #030B1A 0%, #050F20 45%, #030B1A 100%);
}

.bg-dots {
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
}

/* ─── Shared container ─── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* ─── Header ─── */
header {
  position: relative;
  z-index: 10;
  padding: 26px 0;
  opacity: 0;
  animation: fadeDown .7s ease .1s forwards;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

/* ─── Main ─── */
main {
  position: relative; z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  gap: 60px;
  min-height: calc(100vh - 180px);
}

/* ─── Left content ─── */
.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border: 1px solid rgba(0,123,255,.4);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  width: fit-content;
  opacity: 0;
  animation: fadeUp .7s ease .25s forwards;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--electric);
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,123,255,.5); }
  50%      { opacity: .35; box-shadow: 0 0 0 4px rgba(0,123,255,0); }
}

.wordmark {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.2;
  letter-spacing: -.02em;
  background: linear-gradient(125deg, #0077B6 0%, #69A6E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeUp .7s ease .35s forwards;
}

.tagline {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255,255,255,.75);
  letter-spacing: -.01em;
  opacity: 0;
  animation: fadeUp .7s ease .45s forwards;
}

.tagline strong { color: #fff; font-weight: 500; }

.description {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
  max-width: 380px;
  opacity: 0;
  animation: fadeUp .7s ease .55s forwards;
}

/* ─── Email form ─── */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .7s ease .65s forwards;
}

.email-input {
  flex: 1;
  max-width: 260px;
  padding: 13px 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
}

.email-input::placeholder { color: rgba(255,255,255,.4); }

.email-input:focus {
  border-color: rgba(0,123,255,.5);
  background: rgba(255,255,255,.08);
}

.cta-btn {
  padding: 13px 22px;
  background: linear-gradient(135deg, #0088ff, #0052cc);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}

.cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }

/* ─── Consent Checkbox ─── */
.consent-label {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,.38);
  line-height: 1.65;
  cursor: pointer;
  padding-top: 4px;
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

.consent-label .cb-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}

.consent-label .cb-box::after {
  content: '';
  display: block;
  width: 10px; height: 6px;
  border-left: 1.8px solid #fff;
  border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
  transition: opacity .15s;
}

.consent-label input[type="checkbox"]:checked ~ .cb-box {
  background: var(--electric);
  border-color: var(--electric);
}

.consent-label input[type="checkbox"]:checked ~ .cb-box::after {
  opacity: 1;
}

.consent-label:hover .cb-box {
  border-color: rgba(0,123,255,.5);
}

.consent-label a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-label a:hover { color: rgba(255,255,255,.85); }

/* ─── Honeypot ─── */
.hp-wrap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* ─── Erfolgsmeldung ─── */
.success-msg {
  display: none;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(0,123,255,.28);
  border-radius: 16px;
  padding: 24px 28px;
  max-width: 420px;
  box-shadow: 0 0 48px rgba(0,100,255,.07);
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}

.success-msg.visible { display: flex; }

.success-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #007BFF, #0044AA);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.success-msg h3 {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
}

.success-msg p {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}

.form-error {
  font-size: 12.5px;
  color: #ff6b6b;
  margin-top: -4px;
  display: none;
}

/* ─── Phone ─── */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeIn 1s ease .6s forwards;
}

.phone-glow {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,123,255,.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.phone-svg {
  width: 250px;
  height: auto;
  transform: rotate(-9deg);
  animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 32px 56px rgba(0,40,130,.45));
  position: relative; z-index: 1;
}

@keyframes float {
  0%,100% { transform: rotate(-9deg) translateY(0px); }
  50%      { transform: rotate(-9deg) translateY(-16px); }
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Footer ─── */
footer {
  position: relative; z-index: 1;
  padding: 40px 0;
  margin-top: 60px;
  background: #030B1A;
  border-top: 1px solid rgba(255,255,255,.055);
  opacity: 0;
  animation: fadeIn .8s ease 1s forwards;
}

footer .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

footer .container + .container {
  margin-bottom: 15px;
}

footer a, footer span {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover { color: rgba(255,255,255,.9); }

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(3,11,26,.92);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 24px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }

.modal-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 48px;
  max-width: 580px;
  width: 100%;
  margin-top: 60px;
  position: relative;
}

.modal-box h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}

.modal-box p, .modal-box address {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,.5);
  font-style: normal;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}

.modal-close:hover { background: rgba(255,255,255,.1); }

/* ─── Tablet: Form-Stack ─── */
@media (max-width: 1050px) {
  .form-row { flex-direction: column; }
  .email-input { max-width: 100%; }
  .cta-btn { width: 100%; }
}

/* ─── Mobile ─── */
@media (max-width: 780px) {
  .container { padding: 0 28px; }

  main {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 32px;
    gap: 48px;
    text-align: center;
  }

  main { min-height: 0; }
  .consent-label { text-align: left; }
  .content { align-items: center; order: 1; }
  .phone-wrap { order: 2; max-width: 160px; width: 100%; margin: 0 auto 48px; }
  .phone-glow { width: 140px; height: 140px; }
  .phone-svg {
    width: 100%; height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,40,130,.35));
  }
  .description { max-width: 100%; }
  .form-row { flex-direction: column; width: 100%; }
  .email-input { max-width: 100%; }
  .cta-btn { width: 100%; }

  header { padding: 22px 0; }
  footer { padding: 20px 0; }
  footer .container { gap: 20px; }
}
