/* ==========================================================================
   LA MAIN STUDIO – Formulare (Kontakt-Verteiler, Raumcheck, Design-Vorabfrage)
   Nutzt die Variablen aus style.css. Akzentfarbe je Formular über --lmf-accent.
   ========================================================================== */

.lmf-section { padding: clamp(8px, 1.5vw, 16px) 0 clamp(36px, 5vw, 64px); }
section.lmf-hero.tight { padding: clamp(20px, 3vw, 36px) 0 clamp(8px, 1.5vw, 16px); }
.lmf-hero .eyebrow { margin-bottom: 0.4em; }
.lmf-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 0.2em; }
.lmf-hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.lmf-wrap { max-width: 820px; margin: 0 auto; }

.lmf-card {
  position: relative;
  background: var(--color-cream-deep);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--lmf-accent, var(--color-sage));
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 32px) clamp(18px, 4vw, 44px);
}
.lmf-card + .lmf-card { margin-top: 24px; }

.lmf-accent-raumcheck { --lmf-accent: #6c6e51; }
.lmf-accent-design { --lmf-accent: #4b2c35; }
.lmf-accent-umsetzung { --lmf-accent: #333f2c; }

/* ---------- Fortschritt ---------- */
.lmf-progress { margin-bottom: 18px; }
.lmf-bar { height: 3px; background: rgba(28, 27, 25, 0.12); }
.lmf-bar span { display: block; height: 100%; width: 0; background: var(--lmf-accent, var(--color-sage-dark)); transition: width 0.35s var(--ease); }
.lmf-stepname {
  margin: 12px 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
}

/* ---------- Schritte ---------- */
.lmf-step[hidden], [data-panel][hidden], [data-show-if][hidden] { display: none !important; }
.lmf-step-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin: 0 0 8px;
}
.lmf-step-title:focus { outline: none; }
.lmf-step-intro { color: #5f5850; margin: 0 0 18px; max-width: none; }

/* ---------- Felder ---------- */
.lmf-field { margin-bottom: 16px; }
.lmf-field > label, .lmf-fieldset > legend, .lmf-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-sage-dark);
  padding: 0;
}
.lmf-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.lmf-opt { font-weight: 400; color: #5f5850; }
.lmf-hint { font-size: 0.82rem; color: #5f5850; margin: 7px 0 0; line-height: 1.5; }
.lmf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.lmf-grid .lmf-full { grid-column: 1 / -1; }
.lmf-namerow { display: grid; grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr); gap: 10px; }
@media (max-width: 700px) { .lmf-grid { grid-template-columns: 1fr; } }

.lmf textarea { min-height: 96px; }
.lmf textarea.lmf-tall { min-height: 140px; }
.lmf input[type="file"] { padding: 10px; border-style: dashed; background: #fff; }
.lmf-field.has-error input:not([type="radio"]):not([type="checkbox"]),
.lmf-field.has-error textarea,
.lmf-field.has-error select { border-color: #8a2c2c; }
.lmf-err { color: #8a2c2c; font-size: 0.82rem; margin: 7px 0 0; }

/* ---------- Auswahl-Chips und Options-Karten ---------- */
.lmf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lmf-chip { position: relative; display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.lmf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lmf-chip > span {
  display: inline-block;
  padding: 11px 18px;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid rgba(28, 27, 25, 0.18);
  border-radius: var(--radius-md);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lmf-chip:hover > span { border-color: var(--lmf-accent, var(--color-sage-dark)); }
.lmf-chip input:checked + span { background: var(--lmf-accent, var(--color-sage-dark)); border-color: var(--lmf-accent, var(--color-sage-dark)); color: #fff; }
.lmf-chip input:focus-visible + span { outline: 2px solid var(--lmf-accent, var(--color-sage-dark)); outline-offset: 2px; }

.lmf-options { display: grid; gap: 12px; }
.lmf-chip--card { display: flex; }
.lmf-chip--card > span { display: block; width: 100%; padding: 16px 18px; }
.lmf-chip--card b { display: block; font-weight: 600; font-size: 1rem; }
.lmf-chip--card small { display: block; margin-top: 3px; font-size: 0.82rem; font-weight: 400; opacity: 0.85; }

/* ---------- Hinweise ---------- */
.lmf-note {
  background: #fff;
  border-left: 3px solid var(--lmf-accent, var(--color-sage));
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 24px;
}
.lmf-small { font-size: 0.84rem; color: #5f5850; line-height: 1.55; }
.lmf-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; line-height: 1.5; color: var(--color-ink); margin-bottom: 0; }
.lmf-check input { width: auto; margin-top: 3px; flex: 0 0 auto; accent-color: var(--lmf-accent, var(--color-sage-dark)); }
.lmf-check a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation ---------- */
.lmf-nav { display: flex; gap: 14px 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.lmf-nav .lmf-next, .lmf-nav .btn { margin-left: auto; }
.lmf .btn { white-space: normal; text-align: center; justify-content: center; }
.lmf-back {
  background: none;
  border: 0;
  padding: 8px 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.lmf-back:hover { color: var(--color-ink); }
@media (max-width: 480px) {
  .lmf-nav { flex-direction: column-reverse; align-items: stretch; }
  .lmf-nav .lmf-next, .lmf-nav .btn { margin-left: 0; width: 100%; }
  .lmf-back { text-align: center; }
}

/* ---------- Upload ---------- */
.lmf-upload { background: #fff; border: 1.5px dashed var(--color-sage); border-radius: var(--radius-md); padding: 20px; }
.lmf-upload ul { margin: 8px 0 14px 18px; padding: 0; font-size: 0.9rem; }
.lmf-upload li { margin-bottom: 3px; }
.lmf-upload-off { font-size: 0.92rem; }

/* ---------- Erfolg / Fehler ---------- */
.lmf-success { text-align: center; padding: clamp(8px, 3vw, 28px) 0; }
.lmf-success h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; margin: 0 0 14px; }
.lmf-success h2:focus { outline: none; }
.lmf-success p { max-width: 36em; margin: 0 auto 1.1em; }
.lmf-success .btn { margin-top: 8px; }
.lmf-success .lmf-placeholder { font-size: 0.82rem; color: #8a2c2c; margin-top: 12px; }
.lmf-error { color: #8a2c2c; font-size: 0.9rem; margin: 16px 0 0; }
.lmf-error a { text-decoration: underline; }

/* ---------- Kontakt-Verteiler ---------- */
.lmf-select-wrap { margin-bottom: 0; }
.lmf-panel { margin-top: 16px; padding-top: 18px; border-top: 1px solid rgba(28, 27, 25, 0.12); }
.lmf-cta-panel p { max-width: none; }
.lmf-cta-panel .btn-row { margin-top: 18px; gap: 14px 22px; }
.lmf-contact { text-align: center; margin: 32px auto 0; font-size: 0.95rem; line-height: 1.7; }
.lmf-contact a { text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot */
.lmf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Seitentitel der Formularseiten */
.lmf-h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
@media (max-width: 640px) { .lmf-h1 { font-size: clamp(2.2rem, 10vw, 3rem); } }
.hero.lmf-hero { padding-bottom: clamp(8px, 1.5vw, 20px); }
.lmf-field > label.lmf-check { font-weight: 400; font-size: 0.88rem; color: var(--color-ink); margin-bottom: 0; }
.hero.lmf-hero { padding-top: clamp(28px, 4vw, 56px); }

/* ---------- Pop-up nach dem Absenden ---------- */
.lmf-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(28, 27, 25, 0.58);
  overflow-y: auto;
}
.lmf-modal__box {
  position: relative;
  width: 100%; max-width: 540px;
  background: var(--color-cream-deep, #f6f4f0);
  border-top: 4px solid var(--lmf-accent, var(--color-sage));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: clamp(30px, 5vw, 48px) clamp(20px, 4vw, 40px) clamp(26px, 4vw, 36px);
}
.lmf-modal__close {
  position: absolute; top: 8px; right: 10px;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--color-sage-dark);
}
.lmf-modal__close:hover { color: var(--color-ink); }
.lmf-modal .lmf-success { padding: 0; }
.lmf-modal .lmf-success .btn { margin-top: 6px; }
.lmf-back-link { display: inline-block; margin-top: 14px; }
.lmf-success .lmf-back-link { margin-top: 16px; }
.lmf-conf-mail { font-size: 0.9rem; color: #5f5850; }

/* ---------- Pflichtfelder kennzeichnen ---------- */
.lmf-reqnote { font-size: 0.82rem; color: #5f5850; margin: 0 0 18px; line-height: 1.4; }
.lmf-star, .lmf-field:has(> input:required:not(:disabled)) > label::after,
.lmf-field:has(> textarea:required:not(:disabled)) > label::after,
.lmf-field:has(> .lmf-namerow input:required:not(:disabled)) > label::after,
.lmf-fieldset:has(input[type="radio"]:required:not(:disabled)) > legend::after,
.lmf-check:has(input:required) > span::after { color: var(--color-sage-dark); font-weight: 700; }
.lmf-field:has(> input:required:not(:disabled)) > label::after,
.lmf-field:has(> textarea:required:not(:disabled)) > label::after,
.lmf-field:has(> .lmf-namerow input:required:not(:disabled)) > label::after,
.lmf-fieldset:has(input[type="radio"]:required:not(:disabled)) > legend::after,
.lmf-check:has(input:required) > span::after { content: " *"; content: " *" / ""; }
.lmf-step:not(:has(:required:not(:disabled))) .lmf-reqnote,
form:not(:has(:required:not(:disabled))) .lmf-reqnote { display: none; }

/* ---------- Kontakt: Karten Raumcheck / Design anfragen ---------- */
.lmf-cta-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 4px 0 18px; padding: 0; }
.lmf-cta-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; line-height: 1.2; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(28, 27, 25, 0.12); color: var(--color-ink); }
.lmf-cta-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lmf-accent, var(--color-sage-dark)); flex: 0 0 auto; }
.lmf-cta-panel .btn-row { margin-top: 28px; flex-direction: column; align-items: center; gap: 14px; }
.lmf-cta-panel .btn-dark { background: var(--lmf-accent, var(--color-black)); color: #fff; padding: 19px 44px; font-size: 1.02rem; border-radius: 999px; letter-spacing: 0.03em; box-shadow: 0 8px 22px rgba(28, 27, 25, 0.16); }
.lmf-cta-panel .btn-dark { position: relative; overflow: hidden; }
.lmf-cta-panel .btn-dark::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-18deg); transition: left 0.6s var(--ease); pointer-events: none; }
.lmf-cta-panel .btn-dark em { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.7em; letter-spacing: 0; line-height: 1; color: inherit; }
.lmf-cta-panel .btn-dark .nw { white-space: nowrap; }
.lmf-cta-panel .btn-dark .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.lmf-cta-panel .btn-dark:hover, .lmf-cta-panel .btn-dark:focus-visible { background: var(--lmf-accent, var(--color-sage-dark)); filter: brightness(0.9); box-shadow: 0 16px 32px rgba(28, 27, 25, 0.26); transform: translateY(-3px); }
.lmf-cta-panel .btn-dark:hover::after, .lmf-cta-panel .btn-dark:focus-visible::after { left: 130%; }
.lmf-cta-panel .btn-dark:hover .arr, .lmf-cta-panel .btn-dark:focus-visible .arr { transform: translateX(6px); }
@media (prefers-reduced-motion: reduce) { .lmf-cta-panel .btn-dark, .lmf-cta-panel .btn-dark::after, .lmf-cta-panel .btn-dark .arr { transition: none; } }
.lmf-cta-panel .btn-dark:focus-visible { outline: 3px solid var(--lmf-accent); outline-offset: 3px; }
.lmf-cta-panel .text-link { font-size: 0.8rem; font-weight: 500; opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.02em; }
.lmf-cta-panel .text-link:hover { opacity: 1; }
@media (max-width: 640px) {
  .lmf-cta-panel .btn-row { align-items: stretch; }
  .lmf-cta-panel .btn-dark { justify-content: center; white-space: nowrap; text-align: center; padding: 18px 16px; font-size: clamp(0.74rem, 3.8vw, 1.02rem); gap: 6px; }
  .lmf-cta-panel .btn-dark > span { white-space: nowrap; }
  .lmf-cta-panel .text-link { align-self: center; }
}

.lmf-why { margin: 6px 0 0; border-top: 1px solid rgba(28, 27, 25, 0.12); border-bottom: 1px solid rgba(28, 27, 25, 0.12); }
.lmf-why summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; font-size: 0.92rem; font-weight: 600; color: var(--lmf-accent, var(--color-sage-dark)); }
.lmf-why summary::-webkit-details-marker { display: none; }
.lmf-why summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.lmf-why[open] summary::after { content: "\2212"; }
.lmf-why summary:focus-visible { outline: 2px solid var(--lmf-accent, var(--color-sage-dark)); outline-offset: 2px; }
.lmf-why ul { margin: 0; padding: 0 2px 14px 1.1em; font-size: 0.92rem; line-height: 1.55; color: #3f3a35; }
.lmf-why li { margin-bottom: 8px; }

/* Foto-Hinweis im Danke-Pop-up (nur ohne Upload) */
.lmf-photos-after { margin: 4px 0 18px; }
.lmf-photos-after[hidden] { display: none; }
.lmf-photos-after p { margin: 0 auto 12px; }
.lmf-photo-btns { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lmf-photo-btns .btn { border-radius: 999px; width: min(100%, 280px); justify-content: center; padding: 14px 24px; font-size: 0.92rem; background: var(--lmf-accent, var(--color-black)); color: #fff; }
.lmf-photo-btns .btn:hover { filter: brightness(0.9); }
