/* === General === */
.flf-wrap{font-family:inherit;max-width:1200px;margin:0 auto}

/* === Step Indicator === */
.flf-steps{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin:0 0 40px 0;
  position:relative;
  width:100%;
}
.flf-steps::before{
  content:'';
  position:absolute;
  top:20px;
  left:0;
  right:0;
  height:3px;
  background:#E8E4DB;
  z-index:0;
}
.flf-step{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1;
}
.flf-step-circle{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#fff;
  border:3px solid #E8E4DB;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  transition:all 0.3s ease;
}
.flf-step-label{
  font-size:16px;
  color:#666;
  text-align:center;
  line-height:1.3;
  max-width:100px;
}
.flf-step--completed .flf-step-circle{
  background:#E8E4DB;
  border-color:#E8E4DB;
}
.flf-step--completed .flf-step-circle::before{
  content:'✓';
  font-size:20px;
  color:#181818;
  font-weight:bold;
}
.flf-step--active .flf-step-circle{
  background:#E8E4DB;
  border-color:#E8E4DB;
}
.flf-step--active .flf-step-label{
  color:#181818;
  font-weight:600;
}
@media (max-width: 768px){
  .flf-step-circle{width:32px;height:32px}
  .flf-step-circle::before{font-size:16px}
  .flf-step-label{font-size:11px;max-width:70px}
  .flf-steps::before{top:16px}
}

/* === Panels === */
.flf-panel{
  display:none;
  border:1px solid #E8E4DB;
  border-radius:12px;
  padding:20px;
  background:#fff;
}
.flf-panel--active{display:block}
.flf-panel h3{margin:0 0 20px;font-size:24px;font-weight:700;color:#181818}

/* === PLZ Input (Step 0) === */
.flf-plz-input{
  font-size:18px !important;
  letter-spacing:2px;
  text-align:center;
}
.flf-plz-result{
  margin-top:12px;
  font-size:15px;
  min-height:24px;
}
.flf-plz-result .flf-plz-loading{
  color:#666;
}
.flf-plz-result .flf-plz-valid{
  color:#2e7d32;
  font-weight:500;
}
.flf-plz-result .flf-plz-warning{
  color:#ed6c02;
  font-weight:500;
}
.flf-plz-result .flf-plz-invalid{
  color:#d32f2f;
  font-weight:500;
}

/* === Error Messages (wie PLZ-Warnung) === */
.flf-error-message{
  display:none;
  margin:15px 0;
  padding:12px 16px;
  background:#fff3e0;
  border-left:4px solid #ed6c02;
  border-radius:4px;
  color:#ed6c02;
  font-weight:500;
  font-size:15px;
}
.flf-error-message.is-visible{
  display:block;
}
.flf-radius-wrap .flf-label{
  margin-bottom:8px;
}

/* === Inline Error Messages === */
.flf-error-message{
  color:#ed6c02;
  font-weight:500;
  font-size:15px;
  margin-top:12px;
  display:none;
}
.flf-error-message.is-visible{
  display:block;
}
.flf-error-message::before{
  content:'⚠ ';
}

/* === Selection Grid (Indoor/Outdoor & Bereiche) === */
.flf-selection-grid{
  display:grid;
  gap:16px;
  margin:20px 0;
}
.flf-selection-grid--2col{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.flf-selection-grid--4col{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media (max-width: 900px){
  .flf-selection-grid--4col{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 600px){
  .flf-selection-grid--2col,
  .flf-selection-grid--4col{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}

.flf-selection-card{
  border:2px solid #E8E4DB;
  border-radius:12px;
  padding:20px;
  text-align:center;
  cursor:pointer;
  transition:all 0.2s ease;
  background:#fff;
  position:relative;
}
.flf-selection-card:hover{
  border-color:#181818;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(24,24,24,0.1);
}
.flf-selection-card input[type="checkbox"]{
  display:none;
}
.flf-selection-card input[type="checkbox"]:checked + .flf-selection-card-inner{
  border-color:#181818;
}
.flf-selection-card input[type="checkbox"]:checked ~ .flf-selection-card-content{
  color:#181818;
  font-weight:600;
}
.flf-selection-card-icon{
  width:60px;
  height:60px;
  margin:0 auto 12px;
}
.flf-selection-card-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.flf-selection-card-content{
  font-size:16px;
  font-weight:500;
  color:#181818;
}
.flf-selection-card.is-checked{
  border-color: #F4F0E8;
  background: #F4F0E8;
  position: relative;
}
.flf-selection-card.is-checked::after{
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: #181818;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.flf-selection-card.is-checked .flf-selection-card-content{
  color:#181818;
  font-weight:600;
}

.flf-hint{
  font-size:16px;
  color:#666;
  margin:0 0 16px;
}

/* === Prioritäten Step === */
.flf-priority-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:20px 0;
}
@media (max-width: 900px){
  .flf-priority-grid{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}
.flf-priority-item{
  border:1px solid #E8E4DB;
  border-radius:12px;
  padding:14px;
  background:#fff;
}

/* === Area Inputs === */
.flf-area-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin:20px 0;
}
@media (max-width: 768px){
  .flf-area-grid{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}
.flf-area-row{
  border:1px solid #E8E4DB;
  border-radius:12px;
  padding:16px;
}
.flf-area-row-title{
  font-weight:700;
  margin-bottom:12px;
  font-size:16px;
  color:#181818;
}
.flf-area-inputs{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.flf-area-custom{
  padding:12px 16px !important;
}

/* === Form Elements === */
.flf-label{
  display:block;
  margin:0 0 8px;
  font-weight:600;
  font-size:15px;
  color:#181818;
}
.flf-select,
.flf-input{
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #E8E4DB !important;
  border-radius: 8px !important;
  font-size: 15px;
  background: #fff;
  color: #181818;
  font-family: inherit;
}
.flf-select:focus,
.flf-input:focus{
  outline:none;
  border-color:#181818;
}
textarea.flf-input{
  min-height:120px;
  resize:vertical;
  padding:16px;
}

/* === Navigation Buttons === */
.flf-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid #E8E4DB;
}
.flf-btn {
  padding: 14px 32px !important;
  border: none;
  font-size: 16px !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
@media (max-width: 768px){
  .flf-btn {
    padding: 5px 20px !important;
  }
}
.flf-back{
  margin-right:auto;
}
.flf-back:hover{
  background: #ffffff;
  color: #181818 !important;
}
.flf-next,
.flf-submit{
  background:#181818;
  color:#fff;
  margin-left:auto;
}
.flf-next:hover,
.flf-submit:hover{
  background: #ffffff;
  color: #181818 !important;
  transform:translateY(-1px);
}
.flf-btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

/* === Results === */
.flf-results-meta{
  margin:0 0 20px;
  line-height: 1.5em;
  padding:16px;
  background:#efefef;
  border-radius:8px;
  font-size:16px;
  color:#181818;
}

.flf-no-results{
  padding:40px 20px;
  text-align:center;
  font-size:16px;
  color:#666;
  background:#f9f9f9;
  border-radius:12px;
}

.flf-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
@media (max-width: 900px){
  .flf-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 600px){
  .flf-grid{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}

.flf-card{
  border:1px solid #E8E4DB;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  transition:all 0.2s ease;
}
.flf-card:hover{
  box-shadow:0 4px 16px rgba(24,24,24,0.1);
  transform:translateY(-2px);
}
.flf-card-img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  background:#F4F0E8;
}
.flf-card-body{
  padding:16px;
}
.flf-card-title{
  font-weight:800;
  margin:0 0 10px;
  font-size:18px;
  color:#181818;
}

.flf-score-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#F4F0E8;
  color:#181818;
  border-radius:999px;
  padding:6px 12px;
  margin:0 0 12px;
}
.flf-score-label{
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.flf-score-value{
  font-size:16px;
  font-weight:800;
}

/* Store meta information */
.flf-card-meta{
  padding:0 0 10px 0;
  line-height: 1.8em;
  border-bottom:1px solid #E8E4DB;
}
.flf-card-meta-item{
  font-size:16px;
  margin:4px 0;
  color:#181818;
}

/* Distance display */
.flf-card-distance{
  margin-top:8px;
}
.flf-distance{
  display:inline-block;
  background:#E8F5E9;
  color:#2e7d32;
  padding:4px 10px;
  border-radius:20px;
  font-size:14px;
  font-weight:600;
}

/* Services section */
.flf-card-services{
  padding:15px 0;
}
.flf-toggle-services{
  border: none !important;
  background: #fff !important;
  color: #181818 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  padding: 0px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
}
.flf-toggle-services:hover{
  border-color:#181818;
  background:#F4F0E8;
}
.flf-services-content{
  margin-top:12px;
  padding-top:12px;
}
.flf-service-item{
  font-size:16px;
  margin:10px 0;
  color:#181818;
  line-height:1.5;
}
.flf-service-item strong{
  color:#181818;
  display:block;
  margin-bottom:4px;
}

/* Booking section */
.flf-booking{
  padding-top:16px;
  border-top:1px solid #E8E4DB;
}
.flf-booking-title{
  margin-bottom:12px;
  font-size:16px;
  font-weight:600;
  color:#181818;
}

/* Day selector */
.flf-day-selector{
  margin-bottom:12px;
}
.flf-day-selector .flf-label{
  font-size:16px;
  margin-bottom:15px;
  font-weight:500;
}
.flf-day-selector .flf-select{
  font-size:16px;
  padding:10px 12px;
}

/* Time slots - minimalistic, 2 columns */
.flf-time-slots{
  margin-top:20px;
}
.flf-time-slots .flf-label{
  font-size:16px;
  margin-bottom:15px;
  font-weight:500;
}
.flf-slots{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.flf-slot {
  padding: 1px !important;
  border-width: 0px !important;
  font-size: 16px !important;
  text-align: center;
  transition: all 0.15s ease;
  text-decoration: none !important;
  text-transform: none !important; 
}
.flf-slot:hover{
  background:#f4f0e8 !important;
  color:#181818 !important;
}
.flf-slot.is-active{
  border-color:#F4F0E8 !important;
  background:#F4F0E8 !important;
  color:#181818 !important;
  font-weight:600;
}
.flf-no-slots{
  font-size:16px;
  color:#666;
  font-style:italic;
}

/* Selected appointments */
.flf-selected-wrap {
  margin: 30px 0 20px 0;
  padding: 16px;
  border: 2px dashed #E8E4DB;
  border-radius: 12px;
}
.flf-selected-title{
  font-size:16px;
  margin-bottom:12px;
  color:#181818;
}
.flf-selected{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:12px 0;
}
@media (max-width: 600px){
  .flf-selected{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}
.flf-selected-item{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E8E4DB;
  background: #fff;
  color: #181818;
}
.flf-selected-img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}
.flf-selected-info{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flf-selected-info strong{
  font-weight: 600;
  font-size: 15px;
}
.flf-selected-info span{
  font-size: 14px;
  color: #666;
}
.flf-selected-remove {
    border: none !important;
    text-decoration: none !important;
    background: #EEEEEE !important;
    color: #181818 !important;
    font-size: 16px !important;
    padding: 6px 10px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flf-selected-remove:hover{
  background: #181818 !important;
  color: #ffffff !important;
}

/* Customer form */
.flf-customer-form{
  margin:20px 0;
}
.flf-customer-form-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:20px;
  color:#181818;
}
.flf-form-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-bottom:20px;
}
@media (max-width: 768px){
  .flf-form-row{
    grid-template-columns:repeat(1,minmax(0,1fr));
  }
}
.flf-form-field{
  display:flex;
  flex-direction:column;
}
.flf-form-field .flf-label{
  font-weight:600;
  margin-bottom:8px;
  font-size:15px;
  color:#181818;
}
.flf-form-field .flf-input{
  border:1px solid #E8E4DB;
  border-radius:12px;
  padding:10px 16px !important;
  background:#fff;
  transition:all 0.2s ease;
}
.flf-form-field .flf-input:hover{
  border-color:#181818;
  box-shadow:0 2px 8px rgba(24,24,24,0.06);
}
.flf-form-field .flf-input:focus{
  outline:none;
  border-color:#181818;
  box-shadow:0 2px 8px rgba(24,24,24,0.06);
}
.flf-form-field .flf-planned-custom{
  padding:12px 16px !important;
}

.flf-send-request{
  background:#181818;
  color:#fff;
  border:none;
  border-radius:50px;
  padding:12px 28px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}
.flf-send-request:hover{
  background:#ffffff !important;
  color:#181818 !important;
  transform:translateY(-1px);
}
.flf-send-request:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

/* === Success Modal === */
.flf-success-modal{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.flf-success-overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(24,24,24,0.6);
  backdrop-filter:blur(4px);
}
.flf-success-content{
  position:relative;
  background:#fff;
  border-radius:16px;
  padding:40px;
  text-align:center;
  max-width:400px;
  width:100%;
  box-shadow:0 20px 60px rgba(24,24,24,0.3);
  animation:flf-modal-pop 0.4s ease;
}
@keyframes flf-modal-pop{
  0%{opacity:0;transform:scale(0.8)}
  100%{opacity:1;transform:scale(1)}
}
.flf-success-icon{
  width:80px;
  height:80px;
  margin:0 auto 24px;
}
.flf-success-icon svg{
  width:100%;
  height:100%;
}
.flf-success-circle{
  stroke:#181818;
  stroke-width:3;
  stroke-dasharray:150;
  stroke-dashoffset:150;
  animation:flf-circle-draw 0.6s ease forwards;
}
@keyframes flf-circle-draw{
  to{stroke-dashoffset:0}
}
.flf-success-check{
  stroke:#181818;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:50;
  stroke-dashoffset:50;
  animation:flf-check-draw 0.4s ease forwards 0.4s;
}
@keyframes flf-check-draw{
  to{stroke-dashoffset:0}
}
.flf-success-title{
  font-size:28px;
  font-weight:700;
  color:#181818;
  margin:0 0 12px;
}
.flf-success-text{
  font-size:16px;
  color:#666;
  line-height:1.6;
  margin:0 0 28px;
}
.flf-success-close{
  display:inline-block;
  background:#181818;
  color:#fff !important;
  padding:14px 40px !important;
  border-radius:50px;
  font-size:16px;
  font-weight:600;
  text-decoration:none !important;
  transition:all 0.2s ease;
}
.flf-success-close:hover{
  background:#2a2a2a;
  transform:translateY(-2px);
}

/* === Sticky Bar für Termin-Hinweis === */
.flf-sticky-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    translate: 0 100px; /* nur fürs Einblenden */
    background: #181818;
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease, translate 0.3s ease;
}
.flf-sticky-bar.is-visible {
    opacity: 1;
    translate: 0 0;
}
.flf-sticky-bar.is-near-end {
    bottom: 90px; /* Abstand am Seitenende */
}
.flf-sticky-bar:hover{
  background:#333;
  transform:translateX(-50%) translateY(-2px);
}
.flf-sticky-text{
  white-space:nowrap;
}
.flf-sticky-arrow{
  font-size:18px;
  animation:flf-bounce 1.5s infinite;
}
@keyframes flf-bounce{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(4px); }
}

/* === Quality Cards - Budget Step === */
.flf-quality-card {
  padding: 20px !important;
  text-align: center;
}

.flf-quality-card input[type="radio"] {
  display: none;
}

.flf-quality-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #181818;
}

.flf-quality-price {
  font-size: 16px;
  font-weight: 800;
  color: #181818;
  margin-bottom: 8px;
}

.flf-quality-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
}

.flf-quality-card.is-checked {
  border-color: #F4F0E8;
  background: #F4F0E8;
  position: relative;
}

.flf-quality-card.is-checked::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: #181818;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.flf-quality-card.is-checked .flf-quality-title {
  color: #181818;
  font-weight: 600;
}

/* 3-Spalten Grid für Quality Cards */
.flf-selection-grid--3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .flf-selection-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .flf-selection-grid--3col {
    grid-template-columns: 1fr;
  }
}
