
/* QUAMARO Terrasse v1 – 2026-09-01 */
.q-terrace-v1{
  --qt-green:#173f31;
  --qt-border:rgba(23,63,49,.12);
}

.q-terrace-v1 .questionnaire-intro{
  max-width:1120px;
  padding-top:16px;
  padding-bottom:10px;
}
.q-terrace-v1 .questionnaire-intro h1{
  margin:.25rem 0 .5rem;
  font-size:clamp(1.85rem,2.6vw,2.6rem);
  line-height:1.05;
}
.q-terrace-v1 .questionnaire-intro>p:last-child{
  max-width:760px;
  margin-bottom:0;
}
.q-terrace-v1 .service-switch{
  max-width:1120px;
  margin-top:8px;
  margin-bottom:14px;
}

.q-terrace-v1 .q-terrace-project-hint{
  display:flex;
  justify-content:space-between;
  gap:12px;
  max-width:1120px;
  margin:0 auto 12px;
  padding:10px 12px;
  border:1px solid rgba(38,112,72,.13);
  border-radius:12px;
  background:#f2f8f3;
}
.q-terrace-v1 .q-terrace-project-hint strong{
  color:#267048;
  font-size:.69rem;
}
.q-terrace-v1 .q-terrace-project-hint span{
  color:#65766c;
  font-size:.64rem;
}

.q-terrace-v1 .q-terrace-groundwork{
  margin-top:2px;
  padding:14px;
  border:1px solid rgba(23,63,49,.11);
  border-radius:14px;
  background:#f8fbf9;
}
.q-terrace-v1 .q-terrace-groundwork__head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.q-terrace-v1 .q-terrace-groundwork__head>div{
  display:grid;
  gap:2px;
}
.q-terrace-v1 .q-terrace-groundwork__head span{
  color:#267048;
  font-size:.59rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.q-terrace-v1 .q-terrace-groundwork__head strong{
  color:#173f31;
  font-size:.76rem;
}
.q-terrace-v1 .q-terrace-groundwork__head small{
  color:#748279;
  font-size:.59rem;
}
.q-terrace-v1 .q-terrace-groundwork__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.q-terrace-v1 .q-terrace-groundwork__grid label{
  display:grid;
  gap:5px;
}
.q-terrace-v1 .q-terrace-groundwork__grid label>span{
  color:#384c41;
  font-size:.65rem;
  font-weight:750;
}
.q-terrace-v1 .q-terrace-groundwork__grid select{
  width:100%;
}

.q-terrace-v1 #outdoorResult[data-q-terrace-processing="1"]{
  display:none!important;
}
.q-terrace-v1 #outdoorResult:not([data-q-terrace-finalized="1"]){
  visibility:hidden;
}
.q-terrace-v1 #outdoorResult[data-q-terrace-finalized="1"]{
  visibility:visible;
}
.q-terrace-v1 .outdoor-result{
  max-width:1120px;
  margin-top:12px;
}
.q-terrace-v1 .outdoor-result__intro{
  padding:16px 18px!important;
}
.q-terrace-v1 .outdoor-result__intro h2{
  margin:.15rem 0 .35rem;
  font-size:1.35rem;
}
.q-terrace-v1 .outdoor-variants{
  display:block!important;
  grid-template-columns:1fr!important;
}
.q-terrace-v1 .outdoor-variants>[class*="variant"],
.q-terrace-v1 .outdoor-variants>article{
  width:100%!important;
  max-width:none!important;
}
.q-terrace-v1 .outdoor-variants img{
  max-width:100%;
}
.q-terrace-v1 .outdoor-variants figure>img,
.q-terrace-v1 .outdoor-variants picture>img{
  width:100%;
  max-height:680px;
  object-fit:cover;
  border-radius:14px;
}
.q-terrace-v1 .outdoor-result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:12px;
}
.q-terrace-v1 .q-terrace-auto-status{
  margin:10px 0 0;
  padding:8px 10px;
  border:1px solid rgba(38,112,72,.15);
  border-radius:10px;
  background:#edf7f0;
  color:#267048;
  font-size:.66rem;
  font-weight:850;
}

.q-terrace-v1.q-terrace-result-mode .service-switch{
  margin-bottom:8px;
}

@media(max-width:720px){
  .q-terrace-v1 .q-terrace-groundwork__grid{
    grid-template-columns:1fr;
  }
  .q-terrace-v1 .q-terrace-groundwork__head,
  .q-terrace-v1 .q-terrace-project-hint{
    display:grid;
  }
}


/* =========================================================
   Terrasse v2 – zwei klare Wege + Mehrschritt-Neuplanung
   ========================================================= */

.q-terrace-v1 .service-switch{
  display:none!important;
}

.q-terrace-v1 .q-terrace-paths{
  max-width:1120px;
  margin:8px auto 16px;
}
.q-terrace-v1 .q-terrace-paths__heading{
  margin-bottom:9px;
}
.q-terrace-v1 .q-terrace-paths__heading .eyebrow{
  margin-bottom:2px;
}
.q-terrace-v1 .q-terrace-paths__heading h2{
  margin:0;
  color:#173f31;
  font-size:1.05rem;
}
.q-terrace-v1 .q-terrace-paths__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.q-terrace-v1 .q-terrace-path{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  min-height:86px;
  padding:13px 14px;
  border:1px solid rgba(23,63,49,.12);
  border-radius:14px;
  background:#fff;
  color:#173f31;
  text-decoration:none!important;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.q-terrace-v1 .q-terrace-path:hover{
  transform:translateY(-1px);
  border-color:rgba(38,112,72,.28);
}
.q-terrace-v1 .q-terrace-path.active{
  border-color:rgba(38,112,72,.34);
  background:#eef7f0;
  box-shadow:inset 0 0 0 1px rgba(38,112,72,.05);
}
.q-terrace-v1 .q-terrace-path__number{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#f1f6f2;
  color:#267048;
  font-size:.72rem;
  font-weight:900;
}
.q-terrace-v1 .q-terrace-path.active .q-terrace-path__number{
  background:#267048;
  color:#fff;
}
.q-terrace-v1 .q-terrace-path__copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.q-terrace-v1 .q-terrace-path__copy strong{
  font-size:.74rem;
  line-height:1.3;
}
.q-terrace-v1 .q-terrace-path__copy small{
  color:#6e7d74;
  font-size:.61rem;
  line-height:1.4;
}
.q-terrace-v1 .q-terrace-path__arrow{
  color:#267048;
  font-size:1rem;
  font-weight:900;
}

.q-terrace-v1 .q-terrace-plan-form-head{
  margin-bottom:13px;
}
.q-terrace-v1 .q-terrace-plan-form-head h2{
  margin:.15rem 0 .35rem;
}
.q-terrace-v1 .q-terrace-plan-form-head p:last-child{
  margin-bottom:0;
}

.q-terrace-v1 .q-terrace-wizard{
  display:grid;
  gap:12px;
}

.q-terrace-v1 .q-terrace-wizard-progress{
  --q-terrace-progress:20%;
  padding:12px 14px 10px;
  border:1px solid rgba(23,63,49,.11);
  border-radius:14px;
  background:#f8fbf9;
}
.q-terrace-v1 .q-terrace-wizard-progress__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.q-terrace-v1 .q-terrace-wizard-progress__top strong{
  color:#173f31;
  font-size:.68rem;
}
.q-terrace-v1 .q-terrace-wizard-progress__top span{
  color:#718078;
  font-size:.61rem;
}
.q-terrace-v1 .q-terrace-wizard-progress__bar{
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:#e4ece6;
}
.q-terrace-v1 .q-terrace-wizard-progress__bar span{
  display:block;
  width:var(--q-terrace-progress);
  height:100%;
  border-radius:inherit;
  background:#267048;
  transition:width .2s ease;
}
.q-terrace-v1 .q-terrace-wizard-dots{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px;
  margin-top:9px;
}
.q-terrace-v1 .q-terrace-wizard-dots button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:0;
  padding:5px 4px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#718078;
  cursor:pointer;
  font:inherit;
}
.q-terrace-v1 .q-terrace-wizard-dots button i{
  display:grid;
  place-items:center;
  flex:0 0 22px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:#e9efea;
  color:#64736a;
  font-size:.58rem;
  font-style:normal;
  font-weight:900;
}
.q-terrace-v1 .q-terrace-wizard-dots button span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.58rem;
  font-weight:700;
}
.q-terrace-v1 .q-terrace-wizard-dots button.active{
  color:#173f31;
  background:#edf6ef;
}
.q-terrace-v1 .q-terrace-wizard-dots button.active i,
.q-terrace-v1 .q-terrace-wizard-dots button.done i{
  background:#267048;
  color:#fff;
}
.q-terrace-v1 .q-terrace-wizard-dots button.done{
  color:#4e6958;
}

.q-terrace-v1 .q-terrace-wizard-step{
  padding:16px;
  border:1px solid rgba(23,63,49,.11);
  border-radius:14px;
  background:#fff;
}
.q-terrace-v1 .q-terrace-wizard-step[hidden]{
  display:none!important;
}
.q-terrace-v1 .q-terrace-wizard-step__head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
  padding-bottom:11px;
  border-bottom:1px solid rgba(23,63,49,.08);
}
.q-terrace-v1 .q-terrace-wizard-step__head>div{
  display:grid;
  gap:2px;
}
.q-terrace-v1 .q-terrace-wizard-step__head span{
  color:#267048;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.q-terrace-v1 .q-terrace-wizard-step__head h3{
  margin:0;
  color:#173f31;
  font-size:1rem;
}
.q-terrace-v1 .q-terrace-wizard-step__head p{
  margin:1px 0 0;
  color:#69786f;
  font-size:.64rem;
  line-height:1.45;
}
.q-terrace-v1 .q-terrace-wizard-step__head small{
  flex:0 0 auto;
  color:#748279;
  font-size:.59rem;
}
.q-terrace-v1 .q-terrace-wizard-step__fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
.q-terrace-v1 .q-terrace-wizard-step__fields>.full,
.q-terrace-v1 .q-terrace-wizard-step__fields>.q-terrace-groundwork{
  grid-column:1/-1;
}
.q-terrace-v1 .q-terrace-wizard-step__fields .q-terrace-groundwork{
  margin:0;
}
.q-terrace-v1 .q-terrace-wizard-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(23,63,49,.08);
}
.q-terrace-v1 .q-terrace-wizard-nav:has([data-q-terrace-next]:only-child){
  justify-content:flex-end;
}
.q-terrace-v1 .q-terrace-wizard-ready{
  margin-left:auto;
  max-width:400px;
  color:#6e7d74;
  font-size:.61rem;
  line-height:1.4;
  text-align:right;
}
.q-terrace-v1 .q-wizard-invalid{
  border-color:#b94c42!important;
  box-shadow:0 0 0 2px rgba(185,76,66,.08)!important;
}

/* Photo improvement stays intentionally one compact workflow. */
.q-terrace-v1:has(input[name="modus"][value="foto"]) .questionnaire-card{
  max-width:1120px;
}
.q-terrace-v1:has(input[name="modus"][value="foto"]) .form-grid{
  gap:11px;
}

@media(max-width:760px){
  .q-terrace-v1 .q-terrace-paths__grid{
    grid-template-columns:1fr;
  }
  .q-terrace-v1 .q-terrace-wizard-step__fields{
    grid-template-columns:1fr;
  }
  .q-terrace-v1 .q-terrace-wizard-step__fields>*{
    grid-column:1!important;
  }
  .q-terrace-v1 .q-terrace-wizard-dots button span{
    display:none;
  }
  .q-terrace-v1 .q-terrace-wizard-progress__top,
  .q-terrace-v1 .q-terrace-wizard-step__head{
    display:grid;
  }
}
@media(max-width:520px){
  .q-terrace-v1 .q-terrace-wizard-nav{
    display:grid;
    grid-template-columns:1fr;
  }
  .q-terrace-v1 .q-terrace-wizard-nav .button{
    width:100%;
    text-align:center;
  }
  .q-terrace-v1 .q-terrace-wizard-ready{
    margin:0;
    max-width:none;
    text-align:left;
  }
}


/* =========================================================
   Terrasse v3 – Native Produktbasis kompatibel halten
   Die originale .form-grid bleibt im DOM und IST der Wizard.
   ========================================================= */
.q-terrace-v1 .form-grid.q-terrace-wizard{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  width:100%!important;
}

/* Native Regeln für direkte .form-grid-Kinder dürfen die Wizard-UI
   nicht wieder auf zwei Spalten ziehen. */
.q-terrace-v1 .form-grid.q-terrace-wizard >
.q-terrace-wizard-progress,
.q-terrace-v1 .form-grid.q-terrace-wizard >
.q-terrace-wizard-step{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0!important;
}

/* Die eigentlichen Felder bleiben innerhalb des aktiven Schritts
   sauber zweispaltig. */
.q-terrace-v1 .form-grid.q-terrace-wizard
.q-terrace-wizard-step__fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;
}

/* Ein native zurückgelassener Aktions-/Hinweisblock im letzten Schritt
   soll immer volle Breite bekommen. */
.q-terrace-v1 .form-grid.q-terrace-wizard
.q-terrace-wizard-step__fields > :not(.form-field):not(.q-terrace-groundwork){
  grid-column:1/-1;
}

@media(max-width:760px){
  .q-terrace-v1 .form-grid.q-terrace-wizard
  .q-terrace-wizard-step__fields{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   Terrasse v4 – FLAT Wizard
   Native DOM bleibt vollständig unverändert:
   .form-grid > .form-field bleibt bestehen.
   ========================================================= */

/* Alte verschachtelte Wizard-Regeln neutralisieren. */
.q-terrace-v1 .form-grid.q-terrace-wizard{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* Hide/Show gilt nur nach erfolgreicher Wizard-Initialisierung.
   Marker setzt initPlanWizard(): body.q-terrace-flat-wizard-enabled
   und form[data-q-terrace-flat-wizard="1"].
   Die Foto-Seite startet den Wizard bewusst nicht. */
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
[data-q-terrace-flat-step],
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid .q-form-cluster >
[data-q-terrace-flat-step]{
  display:none!important;
}

.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
[data-q-terrace-flat-step].q-terrace-flat-active,
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid .q-form-cluster >
[data-q-terrace-flat-step].q-terrace-flat-active{
  display:block!important;
}

.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid > .q-form-cluster:not(:has([data-q-terrace-flat-step].q-terrace-flat-active)){
  display:none!important;
}

/* Native hidden-Logik hat immer Vorrang, z. B. L-Form-Felder. */
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
[data-q-terrace-flat-step][hidden],
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
[data-q-terrace-flat-step].q-terrace-flat-active[hidden],
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid .q-form-cluster >
[data-q-terrace-flat-step][hidden],
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid .q-form-cluster >
[data-q-terrace-flat-step].q-terrace-flat-active[hidden]{
  display:none!important;
}

.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
.q-terrace-groundwork.q-terrace-flat-active{
  display:block!important;
  grid-column:1/-1!important;
}

.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
.form-field.full.q-terrace-flat-active,
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
.full.q-terrace-flat-active{
  grid-column:1/-1!important;
}

/* Honeypot bleibt unsichtbar. */
.q-terrace-v1 [data-q-terrace-flat-ignore="1"]{
  display:none!important;
}

.q-terrace-v1 .q-terrace-flat-wizard-shell{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}

.q-terrace-v1 .q-terrace-flat-wizard-head{
  padding:13px 14px;
  border:1px solid rgba(23,63,49,.10);
  border-radius:13px;
  background:#fff;
}

.q-terrace-v1 .q-terrace-flat-wizard-head>span{
  display:block;
  margin-bottom:2px;
  color:#267048;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.q-terrace-v1 .q-terrace-flat-wizard-head h3{
  margin:0;
  color:#173f31;
  font-size:1rem;
}

.q-terrace-v1 .q-terrace-flat-wizard-head p{
  margin:3px 0 0;
  color:#69786f;
  font-size:.64rem;
  line-height:1.45;
}

.q-terrace-v1 .q-terrace-flat-wizard-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(23,63,49,.08);
}

.q-terrace-v1 .q-terrace-flat-wizard-nav [hidden]{
  display:none!important;
}

/* Original submit field is visible only in final step. Its own button
   remains the actual native submit button. */
.q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
.form-field:has(#outdoorSubmit).q-terrace-flat-active{
  display:block!important;
}

/* On the last step, hide redundant wizard "next"; native submit stays. */
.q-terrace-v1 .q-terrace-wizard-ready{
  margin-left:auto;
  color:#6e7d74;
  font-size:.61rem;
  line-height:1.4;
  text-align:right;
}

@media(max-width:760px){
  .q-terrace-v1 .form-grid{
    grid-template-columns:1fr!important;
  }

  .q-terrace-v1.q-terrace-flat-wizard-enabled .form-grid >
  [data-q-terrace-flat-step]{
    grid-column:1!important;
  }
}

@media(max-width:520px){
  .q-terrace-v1 .q-terrace-flat-wizard-nav{
    display:grid;
    grid-template-columns:1fr;
  }

  .q-terrace-v1 .q-terrace-flat-wizard-nav .button{
    width:100%;
    text-align:center;
  }

  .q-terrace-v1 .q-terrace-wizard-ready{
    margin:0;
    text-align:left;
  }
}
