/* ============================================================
   HAFNER EC – Lead Landing Page  lp-style.css  v3
   ============================================================ */
:root {
  --navy:      #1A3F7A;
  --navy-d:    #0D254A;
  --gold:      #F5C000;
  --gold-h:    #D4A600;
  --white:     #FFFFFF;
  --light:     #F5F6F8;
  --mid:       #DDE0E8;
  --text:      #111827;
  --muted:     #6B7280;
  --fh:        'Barlow Condensed', sans-serif;
  --fb:        'Manrope', sans-serif;
  --r:         4px;
  --shadow-form: 0 2px 8px rgba(0,0,0,0.06);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--fb); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

/* ============================================================
   HERO – LINKS
   ============================================================ */
.lp-hero { position: relative; overflow: hidden; display: flex; }

.lp-hero__bg {
  position: absolute; inset: 0;
  /* Desktop/Querformat: Villa E Terlan Panorama */
  background-image: url('https://customer-assets.emergentagent.com/job_projekt-starten/artifacts/qh4wquwd_Villa%20E%20Terlan%20Gch%2017%2C%202026%20-%204_22PM%202100.jpg');
  background-size: cover;
  background-position: center 35%;
}

/* Portrait-Bild – wird per JS gesetzt sobald Hero-Bereich ≤ 1:1 Seitenverhältnis */
.lp-hero__bg--portrait {
  background-image: url('https://customer-assets.emergentagent.com/job_projekt-starten/artifacts/c3cxjrgu_Villa%20E%20Terlan%202026%20-%204_33PM%201575.jpg') !important;
  background-position: center top !important;
}

.lp-hero__overlay {
  position: absolute; inset: 0;
  /* Leichter, warmer Gradient – Bild kommt stark durch */
  background: linear-gradient(
    160deg,
    rgba(10,30,60,0.72) 0%,
    rgba(10,30,60,0.48) 45%,
    rgba(10,30,60,0.22) 100%
  );
}

.lp-hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 2rem clamp(2rem, 4vw, 3rem) 1.75rem;
}

/* Logo – in Originalfarbe auf weißem Hintergrund */
.lp-logo {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  padding: 0.5rem 0.9rem;
  border-radius: var(--r);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  width: fit-content;
  transition: opacity 0.2s;
}
.lp-logo:hover { opacity: 0.92; }
.lp-logo__img { height: 40px; width: auto; display: block; }
.lp-logo__text {
  font-family: var(--fh);
  font-size: 1.25rem; font-weight: 700;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero content */
.lp-hero__content {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 0;
}
.lp-hero__eyebrow {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.lp-hero__eyebrow::before {
  content: ''; display: block;
  width: 22px; height: 2px;
  background: var(--gold); flex-shrink: 0;
}
.lp-hero__title {
  font-family: var(--fh);
  font-size: clamp(4rem, 5.8vw, 6.5rem);
  font-weight: 700; color: var(--white);
  text-transform: uppercase;
  line-height: 0.94; letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.lp-hero__title em { color: var(--gold); font-style: normal; }

.lp-hero__sub {
  font-size: 1rem; color: rgba(255,255,255,0.88);
  line-height: 1.55; margin-bottom: 1.75rem; max-width: 380px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.lp-hero__bullets {
  list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
  margin-bottom: 2rem;
}
.lp-hero__bullets li {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.lp-check {
  width: 18px; height: 18px; min-width: 18px;
  background: var(--gold); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-check::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 2px solid var(--navy-d);
  border-bottom: 2px solid var(--navy-d);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.lp-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.lp-phone:hover { color: var(--white); }

/* Ref badge */
.lp-hero__ref {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.07em; color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.lp-hero__ref-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ============================================================
   FORMULAR PANEL – RECHTS
   ============================================================ */
.lp-form-panel {
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -16px 0 56px rgba(0,0,0,0.10);
  border-left: 1px solid rgba(0,0,0,0.05);
}
.lp-form-panel__inner {
  flex: 1;
  padding: 2.25rem 2rem 1.5rem;
  overflow-y: auto;
}

/* Form Header */
.lp-form-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(26,63,122,0.07);
  color: var(--navy);
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 2px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(26,63,122,0.12);
}
.lp-form-badge svg { color: var(--gold-h); }

.lp-form-title {
  font-family: var(--fh);
  font-size: 1.8rem; font-weight: 700;
  text-transform: uppercase;
  color: var(--navy); line-height: 1.05;
  margin-bottom: 0.35rem;
}
.lp-form-hint {
  font-size: 0.78rem; color: var(--muted); line-height: 1.5;
}
.lp-form-header { margin-bottom: 1.5rem; }

/* Divider with label */
.lp-divider {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--muted); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.lp-divider::before, .lp-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--mid);
}

/* Form fields */
.lp-form { display: flex; flex-direction: column; gap: 0.7rem; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.lp-field { display: flex; flex-direction: column; gap: 0.22rem; }

.lp-field label {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: #374151;
}
.lp-field label svg { opacity: 0.5; flex-shrink: 0; }
.req { color: var(--gold-h); }

.lp-field input,
.lp-field select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--mid);
  background: var(--light);
  color: var(--text);
  font-size: 0.875rem;
  border-radius: var(--r);
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: var(--fb);
}
.lp-field input::placeholder { color: #9CA3AF; }
.lp-field input:focus, .lp-field select:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,63,122,0.08);
}
.lp-field input.err, .lp-field select.err {
  border-color: #EF4444; background: #FEF2F2;
}
.lp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A3F7A' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-color: var(--light);
  padding-right: 2.2rem; cursor: pointer;
}
.lp-field select:focus { background-color: var(--white); }

/* Conditional field – animated appearance */
.lp-conditional {
  overflow: hidden;
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Highlight conditional as special */
.lp-conditional select {
  border-color: rgba(26,63,122,0.35);
  background: rgba(26,63,122,0.03);
}

.lp-err {
  font-size: 0.67rem; color: #EF4444;
  font-weight: 600; min-height: 1em;
}

/* Checkbox */
.lp-checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer; font-size: 0.75rem;
  color: var(--muted); line-height: 1.5;
}
.lp-checkbox input[type="checkbox"] {
  width: 15px; height: 15px; min-width: 15px;
  margin-top: 1px; accent-color: var(--navy); cursor: pointer;
}
.lp-checkbox a { color: var(--navy); text-decoration: underline; font-weight: 600; }

/* Submit */
.lp-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.9rem 1.5rem;
  background: var(--gold); color: var(--navy-d);
  font-family: var(--fh); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: none; border-radius: var(--r);
  cursor: pointer; margin-top: 0.25rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.lp-submit:hover { background: var(--gold-h); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,192,0,0.4); }
.lp-submit:active { transform: translateY(0); }
.lp-submit:disabled { opacity: 0.65; cursor: default; transform: none; }

/* Trust row */
.lp-trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  padding-top: 0.25rem;
}
.lp-trust-row span {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.67rem; color: var(--muted); font-weight: 500;
}
.lp-trust-row svg { color: var(--navy); opacity: 0.6; flex-shrink: 0; }

/* Footer */
.lp-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding: 0.8rem 2rem;
  border-top: 1px solid var(--mid); background: var(--light);
}
.lp-footer > span, .lp-footer a { font-size: 0.65rem; color: rgba(0,0,0,0.3); }
.lp-footer__links { display: flex; gap: 1rem; }
.lp-footer__links a:hover { color: var(--navy); }

/* Kontakt-Buttons oberhalb Formular */
.lp-contact-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.lp-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--fh);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
  white-space: nowrap;
}
.lp-contact-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.lp-contact-btn--phone { background: var(--navy); color: var(--white); }
.lp-contact-btn--wa    { background: #25D366; color: #fff; }

/* Datei-Upload */
.lp-field input[type="file"] {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1.5px dashed var(--mid);
  line-height: 1.5;
}
.lp-field input[type="file"]:hover,
.lp-field input[type="file"]:focus {
  border-color: rgba(26,63,122,0.35);
  background: var(--white);
}
.lp-note-small {
  font-size: 0.63rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.lp-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 2rem 1.75rem 2rem;
  text-align: center;
  gap: 1.25rem;
  background: var(--white);
}
.lp-success__check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  animation: lp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.lp-success__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  max-width: 360px;
}
.lp-success__heading {
  font-family: var(--fh);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}
.lp-success__sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.lp-success__sub strong { color: var(--navy); }
.lp-success__steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}
.lp-success__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: #374151;
  text-align: left;
}
.lp-success__num {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--fh);
  flex-shrink: 0;
}
.lp-success__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.lp-success__tel:hover { background: var(--navy); color: #fff; }
.lp-success__divider {
  width: 100%;
  height: 1px;
  background: var(--mid);
  margin: 0.25rem 0;
}
.lp-success__ref-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
/* Referenz-Karten */
.lp-refs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.lp-ref-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--mid);
  transition: transform 0.18s, box-shadow 0.18s;
}
.lp-ref-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26,63,122,0.14);
}
.lp-ref-img {
  height: 88px;
  background-size: cover;
  background-position: center;
}
.lp-ref-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0.4rem 0.5rem 0.45rem;
  line-height: 1.3;
  text-align: left;
}
/* Website-CTA Button (auffällig) */
.lp-success__website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background 0.15s, transform 0.15s;
}
.lp-success__website-btn:hover { background: #e8b300; transform: translateY(-1px); }
.lp-send-error {
  font-size: 0.8rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 3px;
  padding: 0.6rem 0.875rem;
}
@keyframes lp-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) { .lp-split { grid-template-columns: 1fr 440px; } }

@media (max-width: 700px) {
  .lp-split { grid-template-columns: 1fr; min-height: auto; }

  /* Hochformat-Bild für mobile – Villa E Terlan mit Blumen */
  .lp-hero__bg {
    background-image: url('https://customer-assets.emergentagent.com/job_projekt-starten/artifacts/c3cxjrgu_Villa%20E%20Terlan%202026%20-%204_33PM%201575.jpg');
    background-position: center top;
  }

  .lp-hero { min-height: 60vw; max-height: 340px; }
  .lp-hero__inner { padding: 1.25rem; }
  .lp-hero__content { padding: 0.5rem 0; }
  .lp-hero__title { font-size: clamp(2.75rem, 14vw, 3.5rem); margin-bottom: 0.5rem; }
  .lp-hero__sub, .lp-hero__bullets, .lp-phone { display: none; }
  .lp-form-panel { box-shadow: none; border-left: none; border-top: 4px solid var(--gold); }
  .lp-form-panel__inner { padding: 1.5rem 1.25rem 1rem; }
  .lp-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .lp-footer { padding: 0.75rem 1.25rem; }
  .lp-trust-row { gap: 0.75rem; }
}
