/* ============================================================
   FREIRAUM DAVID – Voranmeldung Page
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.vm-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.vm-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 100%),
    url('../assets/img/david-portrait-studio.jpg');
  background-size: cover;
  background-position: center 15%;
}
.vm-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--clr-bg) 100%);
}
.vm-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 680px;
}
.vm-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.vm-hero__title em { font-style: italic; color: var(--clr-accent); }
.vm-hero__sub {
  font-size: 1.05rem;
  color: rgba(240,237,232,.88);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 540px;
}
.vm-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.vm-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text);
  backdrop-filter: blur(6px);
}

/* ── Form Section ───────────────────────────────────────────── */
.vm-form-section {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--clr-bg);
}
.vm-form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* ── Info Column ────────────────────────────────────────────── */
.vm-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.vm-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.vm-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.vm-step__num {
  width: 36px; height: 36px;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vm-step strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .2rem;
}
.vm-step p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}
.vm-contact-hint {
  padding: 1.25rem 1.5rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}
.vm-contact-hint p {
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-bottom: .35rem;
}
.vm-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-accent);
  transition: var(--transition);
}
.vm-phone:hover { color: var(--clr-accent-dark); }

/* ── Form Card ──────────────────────────────────────────────── */
.vm-form-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.vm-form__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .3rem;
}
.vm-form__sub {
  font-size: .8rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

/* ── DSGVO Checkbox ─────────────────────────────────────────── */
.form__checkbox-group { margin-top: .5rem; }
.vm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
}
.vm-checkbox input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.vm-checkbox__box {
  width: 20px; height: 20px;
  border: 2px solid var(--clr-border-2);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: .1rem;
  transition: var(--transition);
  position: relative;
  background: rgba(255,255,255,.04);
}
.vm-checkbox input:checked ~ .vm-checkbox__box {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}
.vm-checkbox input:checked ~ .vm-checkbox__box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 8px; height: 12px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.vm-checkbox--error .vm-checkbox__box { border-color: #e55; box-shadow: 0 0 0 3px rgba(229,85,85,.2); }
.vm-checkbox__label {
  font-size: .82rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}
.vm-checkbox__label a { color: var(--clr-accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Submit Button ──────────────────────────────────────────── */
.vm-submit {
  margin-top: 1.25rem;
  font-size: 1rem;
  padding: 1rem 2rem;
}

/* ── Success / Error ────────────────────────────────────────── */
.vm-success-msg {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.vm-success-msg svg {
  width: 52px; height: 52px;
  color: #6fcf8e;
  margin-bottom: .5rem;
}
.vm-success-msg h3 { font-size: 1.2rem; font-weight: 700; }
.vm-success-msg p  { color: var(--clr-text-muted); font-size: .92rem; }

.vm-error-msg {
  background: rgba(229,85,85,.1);
  border: 1px solid rgba(229,85,85,.3);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  color: #e88;
  font-size: .88rem;
}

/* ── Sticky Badge on Main Site ──────────────────────────────── */
.vm-sticky-badge {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 80;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.vm-sticky-badge a {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 1.25rem .65rem;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: -2px 0 16px rgba(196,53,53,.35);
  transition: var(--transition);
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.vm-sticky-badge a:hover {
  background: var(--clr-accent-dark);
  padding-right: .95rem;
}
.vm-sticky-badge__dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: vmPulse 1.8s ease infinite;
  flex-shrink: 0;
}
@keyframes vmPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vm-form-wrap { grid-template-columns: 1fr; }
  .vm-form-card { position: static; }
  .vm-info { order: 2; }
  .vm-form-card { order: 1; }
}
@media (max-width: 480px) {
  .vm-sticky-badge a { font-size: .7rem; padding: 1rem .55rem; }
}
