/* Block 39 · Anfrage- & Kontaktformular — Theme-Design (eckig · Radius 0 · Fraunces/Inter).
   Volle Theme-Containerbreite, flächige helle Felder mit feiner Linie, keine Karten/Schatten,
   Segmented-Control (Anrede/Kontaktweg/Haustiere), Chip-Checkboxen (Zimmer/Arrangements). */

.aml-block-39 .aml-b39{
  color:var(--zl-ink,#142331);
  font-family:var(--zl-font-body,'Inter',system-ui,sans-serif);
}

/* ---- Verbindender Formular-Rahmen: alles liest sich als EIN zusammenhängendes Formular ----
   Ruhiges Panel (warmer Ton, feine Linie) mit Theme-Ember-Akzentkante oben; die Felder werden
   tonal heller (siehe unten) und sitzen dadurch klar sichtbar INNERHALB dieses einen Rahmens. */
.aml-b39__form{
  position:relative;
  background:var(--zl-paper-soft,#ECE7DC);
  border:1px solid var(--zl-line,#D9D1C2);
  padding:clamp(1.5rem,0.9rem + 2vw,2.75rem) clamp(1.3rem,0.8rem + 2vw,2.75rem) clamp(1.75rem,0.9rem + 2vw,2.75rem);
}
.aml-b39__form::before{
  content:"";position:absolute;left:0;right:0;top:0;height:3px;
  background:var(--zl-ember-line,linear-gradient(90deg,#C8642A,#b4472b));
}

/* ---- Kopf / Intro ---- */
.aml-b39__intro{max-width:52rem;margin:0 0 1.6rem;}
.aml-b39__title{margin:.2rem 0 .6rem;}
.aml-b39__introtext{color:var(--zl-muted,#5b6b60);}
.aml-b39__introtext p{margin:0 0 .6rem;}
.aml-b39__hint{margin:0 0 1.4rem;font-size:.92rem;color:var(--zl-muted,#5b6b60);}
.aml-b39__reqhint{margin:0 0 1.8rem;font-size:.82rem;letter-spacing:.02em;color:var(--zl-muted,#5b6b60);}

/* ---- Statusmeldung ---- */
.aml-b39__status{
  margin:0 0 1.2rem;padding:1rem 1.2rem;border-radius:0;font-size:.98rem;line-height:1.55;
  border:1px solid var(--zl-line,#D9D1C2);border-left:3px solid var(--zl-line-strong,#c9c1b2);background:var(--zl-card,#FBFAF6);outline:none;
}
.aml-b39__status.is-success{border-left-color:var(--zl-forest-600,#2c3f31);background:var(--zl-paper-soft,#f2f5ef);color:var(--zl-forest-800,#20301f);}
.aml-b39__status.is-error{border-left-color:var(--zl-ember-3,#b4472b);background:#faf1ec;color:#7e2f1a;}

/* ---- Honeypot ---- */
.aml-b39__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}

/* ---- Sektionen: durch Trennlinien im Panel als zusammenhängende Gruppen erkennbar ---- */
.aml-b39__section{padding:1.7rem 0;border-top:1px solid var(--zl-line,#D9D1C2);}
.aml-b39__section:first-of-type{border-top:0;padding-top:.2rem;}
.aml-b39__section--foot{border-top:1px solid var(--zl-line,#ddd6ca);padding-bottom:0;}
.aml-b39__seclabel{
  margin:0 0 1.3rem;font-family:var(--zl-font-body,'Inter',sans-serif);
  font-size:.74rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--zl-muted,#5b6b60);
}
.aml-b39__seclabel::first-line{color:var(--zl-forest-600,#2c3f31);}

/* ---- Feld-Reihen / Grid ---- */
.aml-b39__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.4rem;}
.aml-b39__row{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem;}
.aml-b39__grid .aml-b39__row{margin-bottom:0;}
.aml-b39__row--half{min-width:0;}
.aml-b39__row label{font-size:.9rem;font-weight:500;color:var(--zl-ink,#142331);}
.aml-b39__help{font-size:.8rem;color:var(--zl-muted,#5b6b60);}
.aml-b39__req{color:var(--zl-ember-3,#b4472b);font-weight:600;}

/* ---- Eingabefelder: flächig, hell, feine Linie, Radius 0 ---- */
.aml-b39 input[type=text],
.aml-b39 input[type=email],
.aml-b39 input[type=tel],
.aml-b39 input[type=url],
.aml-b39 input[type=number],
.aml-b39 input[type=date],
.aml-b39 select,
.aml-b39 textarea{
  width:100%;box-sizing:border-box;font:inherit;font-size:1rem;line-height:1.5;color:var(--zl-ink,#142331);
  background:var(--zl-card,#FBFAF6);border:1px solid var(--zl-line,#ddd6ca);border-radius:0;
  padding:.78rem .9rem;transition:border-color var(--zl-dur-fast,.15s) var(--zl-ease,ease),background var(--zl-dur-fast,.15s) ease;
  -webkit-appearance:none;appearance:none;
}
.aml-b39 textarea{min-height:9.5rem;resize:vertical;}
.aml-b39 input:focus,.aml-b39 select:focus,.aml-b39 textarea:focus{
  outline:none;border-color:var(--zl-forest-600,#2c3f31);background:#fff;
  box-shadow:0 1px 0 0 var(--zl-forest-600,#2c3f31);
}
.aml-b39 input::placeholder,.aml-b39 textarea::placeholder{color:var(--zl-muted,#8a8577);opacity:1;}
.aml-b39 select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center;padding-right:2.4rem;}
.aml-b39 .has-error input,.aml-b39 .has-error select,.aml-b39 .has-error textarea{border-color:var(--zl-ember-3,#b4472b);}
.aml-b39 .has-error > legend{color:var(--zl-ember-3,#b4472b);}

/* ---- Firmenfeld ---- */
.aml-b39__uwrap{margin:.4rem 0 1.1rem;}
.aml-b39__toggle{display:inline-flex;align-items:center;gap:.6rem;cursor:pointer;font-size:.95rem;}
.aml-b39__toggle input{width:1.15rem;height:1.15rem;accent-color:var(--zl-forest-600,#2c3f31);}
.aml-b39__firma[hidden]{display:none;}

/* ---- Segmented Control ---- */
.aml-b39__seg{border:0;padding:0;margin:0 0 1.2rem;min-width:0;}
.aml-b39__seg legend{padding:0;margin:0 0 .55rem;font-size:.9rem;font-weight:500;color:var(--zl-ink,#142331);}
.aml-b39__segbar{display:inline-flex;flex-wrap:wrap;border:1px solid var(--zl-line,#ddd6ca);background:var(--zl-card,#FBFAF6);}
.aml-b39__segbar--narrow{max-width:20rem;}
.aml-b39__segitem{position:relative;margin:0;}
.aml-b39__segitem input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.aml-b39__segitem span{
  display:block;padding:.62rem 1.15rem;font-size:.92rem;color:var(--zl-ink-soft,#3c4a40);cursor:pointer;
  border-right:1px solid var(--zl-line,#ddd6ca);transition:background var(--zl-dur-fast,.15s) ease,color var(--zl-dur-fast,.15s) ease;white-space:nowrap;
}
.aml-b39__segitem:last-child span{border-right:0;}
.aml-b39__segitem input:checked+span{background:var(--zl-forest-600,#2c3f31);color:#fff;}
.aml-b39__segitem input:focus-visible+span{outline:2px solid var(--zl-forest-700,#233327);outline-offset:2px;}
.aml-b39__segitem:hover span{background:rgba(44,63,49,.08);}
.aml-b39__segitem input:checked+span:hover{background:var(--zl-forest-700,#233327);}

/* ---- Aufklappbereich Adresse ---- */
.aml-b39__more{margin-top:.4rem;}
.aml-b39__more summary{
  cursor:pointer;font-size:.9rem;font-weight:500;color:var(--zl-forest-600,#2c3f31);
  padding:.55rem 0;list-style:none;display:inline-flex;align-items:center;gap:.5rem;
}
.aml-b39__more summary::-webkit-details-marker{display:none;}
.aml-b39__more summary::before{content:"+";font-size:1.1em;line-height:1;}
.aml-b39__more[open] summary::before{content:"–";}
.aml-b39__more > .aml-b39__grid{margin-top:.9rem;}

/* ---- Nächte-Anzeige ---- */
.aml-b39__naechte{margin:.9rem 0 .2rem;font-size:.9rem;font-weight:500;color:var(--zl-forest-600,#2c3f31);}
.aml-b39__naechte[hidden]{display:none;}

/* ---- Kinder-Altersfelder ---- */
.aml-b39__childages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.4rem;margin-top:1rem;}
.aml-b39__childages:empty{display:none;}
.aml-b39__childages .aml-b39__row{margin-bottom:0;}

/* ---- Zimmer & Arrangements ---- */
.aml-b39__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem 2.4rem;}
.aml-b39__chips{border:0;padding:0;margin:0;min-width:0;}
.aml-b39__chips legend{padding:0;margin:0 0 .7rem;font-size:.9rem;font-weight:500;color:var(--zl-ink,#142331);}
.aml-b39__chipsearch{margin:0 0 .7rem;}
.aml-b39__chiplist{display:block;}
.aml-b39__chip[hidden]{display:none;}
.aml-b39__chip{display:block;position:relative;margin:0 0 .55rem;}
.aml-b39__chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.aml-b39__chip span{
  display:block;padding:.66rem .95rem;font-size:.94rem;color:var(--zl-ink-soft,#3c4a40);cursor:pointer;
  background:var(--zl-card,#FBFAF6);border:1px solid var(--zl-line,#ddd6ca);
  transition:background var(--zl-dur-fast,.15s) ease,color var(--zl-dur-fast,.15s) ease,border-color var(--zl-dur-fast,.15s) ease;
}
.aml-b39__chip:hover span{border-color:var(--zl-forest-600,#2c3f31);}
.aml-b39__chip input:checked+span{background:var(--zl-forest-600,#2c3f31);border-color:var(--zl-forest-600,#2c3f31);color:#fff;}
.aml-b39__chip input:focus-visible+span{outline:2px solid var(--zl-forest-700,#233327);outline-offset:2px;}

/* ---- Haustiere Detail ---- */
.aml-b39__pets{margin-top:1.1rem;padding-top:1.1rem;border-top:1px dashed var(--zl-line,#ddd6ca);}
.aml-b39__pets[hidden]{display:none;}

/* ---- Datenschutz ---- */
.aml-b39__privacy{margin:0 0 1.6rem;}
.aml-b39__check{display:flex;align-items:flex-start;gap:.75rem;cursor:pointer;font-size:.94rem;line-height:1.55;color:var(--zl-ink-soft,#3c4a40);}
.aml-b39__check input{margin-top:.15rem;width:1.3rem;height:1.3rem;flex:0 0 auto;accent-color:var(--zl-forest-600,#2c3f31);}
.aml-b39__check a{color:var(--zl-forest-600,#2c3f31);text-decoration:underline;text-underline-offset:2px;}

/* ---- Absenden ---- */
.aml-b39__actions{display:flex;flex-direction:column;gap:.9rem;align-items:flex-start;}
.aml-b39__submit{font-size:1.02rem;padding:1rem 2.1rem;}
.aml-b39__submithint{margin:0;font-size:.85rem;color:var(--zl-muted,#5b6b60);}
.aml-b39__form.is-sending .aml-b39__submit{opacity:.7;cursor:progress;}

/* ---- Mobil: eine Spalte, ≥16px Inputs, kein H-Scroll ---- */
@media (max-width:640px){
  .aml-b39__grid,.aml-b39__cols,.aml-b39__childages{grid-template-columns:1fr;}
  .aml-b39__segbar{display:flex;width:100%;}
  .aml-b39__segitem{flex:1 1 auto;}
  .aml-b39__segitem span{text-align:center;padding:.7rem .6rem;}
  .aml-b39 input,.aml-b39 select,.aml-b39 textarea{font-size:16px;}
  .aml-b39__submit{width:100%;justify-content:center;}
  .aml-b39__actions{align-items:stretch;}
}
