:root{
  --radius: 14px;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,.12);

  /* ======= Größe des Datepickers zentral hier steuern ======= */

  --dp-font-size: 18px;
  --dp-cell-height: 64px;
  --dp-cell-width: 64px;
  --dp-day-font: 18px;      /* Zahl im Tag */
  --dp-price-font: 11px;    /* Preiszeile */
  --dp-gap: 14px;           /* Abstand zwischen den beiden Monaten */
  --dp-col-gap: 0px;
    /* daraus abgeleitet */
  --dp-month-width: calc(
    7 * var(--dp-cell-width) + 6 * var(--dp-col-gap)
  );
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--text);
  background: #f7f7fb;
}

.page{ max-width: 1100px; margin: 0 auto; padding: 18px; }
.layout{ display: grid; gap: 14px; }

@media (min-width: 900px){
  .layout{ grid-template-columns: 1fr 320px; align-items: start; }
  .summary{ position: sticky; top: 14px; }
}
@media (max-width: 899.98px){
  .summary{ position: sticky; top: 0; z-index: 5; border-radius: 0; }
}
@media (max-width: 899.98px){
  .summary .value{
    font-size: 14px;
    white-space: nowrap;
  }
  .summary .muted{
    display: none; /* große Erklärtexte ausblenden */
  }
}


.card{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  padding: 14px;
}

.row{ display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.title{ font-weight: 800; }
.muted{ color: var(--muted); font-size: 13px; }
.value{ font-weight: 800; }

.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.btn.secondary{ background: #fff; color: #111827; }
.btn:focus{ outline: 3px solid rgba(59,130,246,.35); outline-offset: 2px; }

dialog{
  width: min(590px, 96vw);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  background: var(--bg);
}
#dateDialog{
  width: min(920px, 96vw);
}
dialog::backdrop{ background: rgba(0,0,0,.45); }

.modalHead{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
}
.modalTitle{ font-size: 18px; font-weight: 900; margin: 0; }

.iconBtn{
  appearance:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}
.iconBtn:focus{ outline: 3px solid rgba(59,130,246,.35); outline-offset: 2px; }

.modalBody{ padding-top: 14px; }

/* ======= 2 Monate ohne riesige Leerräume ======= */
.dpGrid{
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: var(--dp-gap);
}

/* ======= Picker global größer machen ======= */
.air-datepicker{
  font-size: var(--dp-font-size);
}

/* Zellen höher machen (wichtig gegen Überlappung) */
.air-datepicker-body--cells.-days-{
  grid-auto-rows: var(--dp-cell-height);
}
.air-datepicker-cell{
  height: auto;              /* übernimmt grid row height */
}

/* Tag/Preis Layout in der Zelle */
.cellWrap{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  line-height: 1.05;
  padding-top: 6px;
}
.cellDay{
  font-size: var(--dp-day-font);
  font-weight: 800;
}
.cellPrice{
  font-size: var(--dp-price-font);
  color: var(--muted);
  padding-bottom: 6px;
  white-space: nowrap;
}


/* Tage-Grid: 7 gleich breite Spalten */
.air-datepicker-body--cells.-days-{
  grid-template-columns: repeat(7, var(--dp-cell-width));
  grid-template-rows: repeat(6, var(--dp-cell-height));
  grid-auto-rows: unset; /* wichtig: überschreibt vorherige auto-rows */
}


/* =========================
   FIX: 2 INSTANZEN sauber nebeneinander
   ========================= */

.dpGrid{
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: var(--dp-gap);
}

/* ✅ NICHT den gesamten Datepicker auf 2-Monatsbreite zwingen!
   Jede Instanz bekommt genau ihre Monatsbreite */
.air-datepicker,
.air-datepicker--content,
.air-datepicker-body{
  width: var(--dp-month-width);
  max-width: var(--dp-month-width);
  box-sizing: border-box;
}

/* Tage-Grid bleibt fest */
.air-datepicker-body--cells.-days-{
  width: var(--dp-month-width);
}

/* Mobile: 1 Spalte */
@media (max-width: 960px){
  .dpGrid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  /* im Mobile darf der Datepicker flexibel werden */
  .air-datepicker,
  .air-datepicker--content,
  .air-datepicker-body{
    width: 100%;
    max-width: 100%;
  }

  .air-datepicker-body--cells.-days-{
    width: 100%;
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ===== Gäste-Auswahl (kompakt, klickbar) ===== */

.guestBox{
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.guestTop{
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.guestTop:focus{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}

.guestLabel{ font-weight: 800; font-size: 14px; }
.guestSummary{ color: var(--muted); font-size: 13px; }

.guestChevron{
  font-weight: 900;
  opacity: .7;
  transition: transform .15s ease;
}
.guestTop[aria-expanded="true"] .guestChevron{
  transform: rotate(180deg);
}

/* Controls: standard untereinander */
.guestControls{
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.guestRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  max-width: 250px;
}

.guestTitle{ font-weight: 800; font-size: 14px; }
.guestHint{ font-size: 12px; color: var(--muted); }

/* Stepper */
.stepper{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Erwachsene noch kompakter */
.stepper--compact{
  gap: 6px;
}

.stepBtn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}
.stepper--compact .stepBtn{
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 17px;
}

.stepBtn:focus{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}
.stepBtn:disabled{ opacity: .45; cursor: not-allowed; }

.stepVal{
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
}

.guestFooter{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
#step3Result{
  display: none;
}

/* =====>= 960px: Erwachsene + Kinder nebeneinander, Kleinkinder darunter ===== */
@media (min-width: 960px){
  .guestControls{
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
  .guestAdult{ grid-column: 1; }
  .guestChild{ grid-column: 2; }
  .guestInfant{ grid-column: 3; } /* darunter über volle Breite */
  .guestDog{ grid-column: 4; } /* darunter über volle Breite */
}

/* hidden-Attribut immer respektieren */
.guestControls[hidden]{
  display: none !important;
}
.guestControls{
  display: grid;
}

.reservation{
  display: grid;
  gap: 14px;
}

.resTitle{
  font-size: 20px;
  font-weight: 900;
}

.resDates{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.resBox{
  background: #f5f6f8;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.resLabel{
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.resDayName{
  font-size: 11px;
  letter-spacing: .04em;
  color: #6b7280;
}

.resDayNum{
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.resMonth{
  font-size: 12px;
  color: #6b7280;
}

.resMeta{
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.resMetaRow{
  display: flex;
  justify-content: space-between;
}

.resMetaLabel{
  font-size: 13px;
  color: #6b7280;
}

.resMetaValue{
  font-weight: 800;
}

.resNights{
  text-align: center;
  font-weight: 800;
  color: #2563eb;
}

.resEdit{
  background: #34d399;
  border: none;
}

.resTotal{
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.resNext{
  background: #1b7be7;
}

.resNext:disabled{
  opacity: .5;
  cursor: not-allowed;
}

.parcelHint{
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.resHint{
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.steps{
  display: flex;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f5f9;
}

.step{
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  color: #64748b;
  background: transparent;
}

.step.active{
  background: #2563eb;
  color: white;
}

/* ===== Mobile Step-Anzeige ===== */
@media (max-width: 900px){
  .steps{
    display: flex;
    gap: 8px;
    padding: 6px;
  }

  .step{
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 800;
    background: #e5e7eb;
    color: #374151;
  }

  /* Text standardmäßig ausblenden */
  .step .stepText{
    display: none;
  }

  /* Aktiver Step: Nummer + Text */
  .step.active{
    background: #2563eb;
    color: white;
  }

  .step.active .stepText{
    display: inline;
    margin-left: 6px;
  }

  /* Gesperrte Steps visuell klar */
  .step[aria-disabled="true"]{
    opacity: .45;
  }
}

.categoryGrid{
  display: grid;
  gap: 20px;
}

.categoryCard{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.catImage{
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.catBadge{
  position: absolute;
  bottom: 140px;
    left: 116px;
  background: rgba(0,0,0,1);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 900;
}

.catBody{
  padding: 14px;
}

.catDesc{
  font-size: 14px;
  color: #374151;
  margin-bottom: 14px;
}

.catFooter{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.catPrice strong{
  font-size: 18px;
}

.catPrice span{
  display: block;
  font-size: 12px;
  color: #6b7280;
}
.catCenterText{
  position: absolute;
  bottom: 40px;
  left: 20px;

  color: white;
  font-size: 22px;
  font-weight: 700;
  text-align: center;

  padding: 10px 16px;
  border-radius: 10px;
  backdrop-filter: blur(4px);

  pointer-events: none; /* wichtig → blockiert keine Klicks */
}
.categoryCard.unavailable .catCenterText {
  background:#1b7be7; 
  z-index: 10;
}
.categoryCard:not(.unavailable) .catCenterText{
  display: none;
}
.btn.green{ background:#22c55e; }
.btn.gelb{ background:#fbbf24; color: #111827; }
.btn.blue{ background:#3b82f6; }

.categoryCard.unavailable .catImage::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6); /* oder schwarz */
}

/* ===== Steps: Panels ein-/ausblenden ===== */
.stepPanel{
  display: none;
}
.stepPanel.active{
  display: block;
}
.steps .step{
  opacity: .5;
}
.steps .step.unlocked{
  opacity: 1;
}
.steps .step[aria-disabled="true"]{
  pointer-events: none;
}

.formGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.formGrid label{
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 13px;
}

.formGrid input{
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.paymentBox{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.payOption{
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payOption.disabled{
  opacity: .45;
}

.payHint{
  font-size: 12px;
  color: #6b7280;
}

.stepActions{
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.guestSection{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  background: #fafafa;
}

.guestSectionHead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.checkboxRow{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.strong{
  font-weight: 800;
}

/* ===== Einheitliches Input-Design (input + select) ===== */
.formGrid input,
.formGrid select{
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #fff;
  color: #111827;
}

/* Select-spezifisch: natives Styling entfernen */
.formGrid select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 8 10 12 14 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Fokus-Zustand identisch */
.formGrid input:focus,
.formGrid select:focus{
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.formGrid .error input,
.formGrid .error select{
  border-color: #dc2626;
  background: #fef2f2;
}

.formError{
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.reqHint{
  float: right;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.confirm{
  display: grid;
  gap: 18px;
}

.confirmCard{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.confirmCard h3{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}

.confirmText{
  line-height: 1.6;
}

.confirmGrid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 14px;
}

.confirmGrid .label{
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.priceCard{
  background: linear-gradient(135deg,#f8fafc,#eef2ff);
  border-color: #c7d2fe;
}

.priceMain{
  text-align: center;
  margin-bottom: 10px;
}

.priceLabel{
  font-size: 13px;
  color: var(--muted);
}

.priceValue{
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: #2563eb;
  margin-top: 4px;
}

.priceHint{
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.has-full-night {
    position: relative;
}

.has-full-night::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -2px;
    width: 2px;
    height: 80%;
    background: red;
}
.air-datepicker-cell.is-blocked {
  background: repeating-linear-gradient(
    45deg,
    #f1f5f9,
    #f9f1f1 6px,
    #e5e7eb 6px,
    #ff8d8d 12px
  );


  color: #000000;
  cursor: not-allowed;
}

.air-datepicker-cell.-in-range-.is-blocked:hover,.air-datepicker-cell.-focus-.is-blocked:hover, .air-datepicker-cell.-in-range-.-focus-.is-blocked {
    background: #ff8d8d;
  color: #000000;
}
.air-datepicker-cell.-disabled-.-in-range-.is-blocked {
    color: #000000;
    opacity:0.9;
}
.cellBlocked{
  font-size: 10px;
  color: #000000;
  padding-bottom: 6px;
  white-space: nowrap;
  opacity:0.9;

  font-weight: bolder;
}

/* ===== Übernehmen-Buttons (einheitlich grün) ===== */

.btn-confirm{
  background: #22c55e;        /* identisch zu euren grünen Buttons */
  border: none;
  color: white;
}

.btn-confirm:hover{
  background: #16a34a;
}

.btn-confirm:focus{
  outline: 3px solid rgba(34,197,94,.35);
  outline-offset: 2px;
}

/* obere Version: kleiner & dezenter */
.btn-confirm--small{
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.modalActions{
  display: flex;
  align-items: center;
  gap: 8px;
}
.guestFooter{
  margin-top: 20px;
  padding: 16px 20px 20px;   /* ⬅ unten bewusst mehr */
  display: flex;
  justify-content: flex-end;
}
/* Tage aus anderen Monaten komplett unsichtbar */
.air-datepicker-cell.is-hidden{
  visibility: hidden;
  pointer-events: none;
}

.step.disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.disabled-click {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}
/* Support Mail Button */
.btnSupportMail {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;

  font-size: 0.95rem;
  font-weight: 500;

  color: #b42323;
  background: #fff5f5;
  border: 1px solid #f1bcbc;
  border-radius: 6px;

  cursor: pointer;
  transition: all .15s ease;
}

.btnSupportMail:hover {
  background: #ffeaea;
  border-color: #e28b8b;
  color: #8f1b1b;
}

.btnSupportMail:active {
  transform: translateY(1px);
}

/* Container (optional, falls du renderSupportMail nutzt) */
.support-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #ddd;
  font-size: 0.95rem;
  color: #555;
}
 #smallDates {
  display: none;
 }

  #editDate2{
    display: none;
  }
/* ============================
   MOBILE RESERVATION FOOTER
   ============================ */
@media (max-width: 900px) {

  .reservation{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;

    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);

    padding: 8px 10px;
    gap: 8px;

    /* grid: left = dates, middle = price+category, right = action */
    display: grid;
    grid-template-columns: 1fr auto auto;
    column-gap: 10px;
    align-items: center;

    max-height: 70px;
    min-height: 56px;
    overflow: hidden;
    background: #fff;
  }

  /* genug Platz für Seiteninhalt unter der Leiste */
  body{
    padding-bottom: 86px; /* etwas mehr, damit button nicht überlappt */
  }

  /* Blende detailreiche Bereiche aus (die große Datumsbox etc.) */
  .reservation .resDates,
  .reservation .resMeta,
  .reservation .resHint,
  .reservation hr,
  .reservation #editDate,
  .reservation .resTitle {
    display: none;
  }
  #editDate2{
    display: block;
  }

  /* Zeige das kompakte Datum-Snippet */
  #smallDates {
    display: block;
    font-size: 13px;
    line-height: 1;
    color: #111827;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 6px;
  }

  /* Preis / Total — zentriert in der Mitte-Spalte, Kategorie darunter */
  .reservation .resTotal{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    min-width: 110px;
    padding-left: 6px;
    gap: 2px;
  }
  .reservation .resTotal span {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
  }
  .reservation .resTotal strong {
    font-size: 15px;
    letter-spacing: -0.5px;
  }

  /* Kategorie (wird unter dem Preis angezeigt) */
  /* Dein HTML verwendet: <strong id="resCategory">Waldstellplatz</strong> */
  .reservation #resCategory {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    text-align: right;
    margin-top: -2px;
  }

  /* Call to action: Button rechts, volle Höhe, kompakt */
  .reservation .resNext{
    height: 44px;
    padding: 0 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
    min-width: 120px;
  }

  /* Falls du primäre Farbe hast, setze sie hier */
  /* .reservation .resNext { background: var(--accent-color); color: #fff; } */

  /* Kleine Displays: etwas mehr Kompression */
  @media (max-width: 420px) {
    .reservation {
      grid-template-columns: 1fr auto auto;
      max-height: 64px;
      padding: 6px 8px;
    }

    #smallDates { font-size: 12px; }
    .reservation .resTotal { min-width: 90px; }
    .reservation .resNext { height: 40px; padding: 0 10px; font-size: 13px; min-width: 100px; }
    .reservation #resCategory { font-size: 10px; }
  }

  /* Sehr enge Displays: wenn nötig, Preis ausblenden damit Button Platz hat */
  @media (max-width: 340px) {
    .reservation .resTotal { display: none; }
    .reservation { grid-template-columns: 1fr auto; column-gap: 8px; }
    body { padding-bottom: 76px; }
  }
}
/* Footer klickbar */
@media (max-width: 900px){

  .reservation{
    cursor: pointer;
  }

  /* rechter Bereich = CTA */
  .reservation .resNext{
    cursor: pointer;
    z-index: 2;
  }

  /* linker Bereich = bearbeiten */
  .reservation::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  /* CTA darf NICHT den Dialog öffnen */
  .reservation .resNext{
    position: relative;
  }
}
.resBox{
  cursor:pointer;
  transition:.1s;
}
.resBox:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.dialog-error {
  background: #ffe7e7;
  color: #a40000;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #ffb3b3;
  font-size: 0.9rem;
  animation: shake .25s ease;
}

@keyframes shake {
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
.field{
  display:flex;
  flex-direction:column;
  font-weight:700;
  font-size:13px;
}

.field input{
  padding: 8px 4px 8px 4px;
  border-radius:8px;
  border:1px solid var(--border);
}
.loadingOverlay{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loadingBox{
  text-align: center;
  font-size: 18px;
  color:#333;
}

.spinner{
  width:40px;
  height:40px;
  border:4px solid #ddd;
  border-top:4px solid #2f8f2f;
  border-radius:50%;
  animation: spin 0.9s linear infinite;
  margin:0 auto 10px auto;
}

@keyframes spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.catImage {
  background-size: cover;
  background-position: left center;
}
.istest{
  background: #f1bcbc;
}
span.required::after{
content:"*";
margin-left:2px;
}
.langSelect{
margin-left:auto;
position:relative;
}

#langBtn{
border:1px solid var(--border);
background:#fff;
border-radius:10px;
padding:6px 10px;
font-weight:700;
cursor:pointer;
display:flex;
align-items:center;
gap:6px;
}

.langDropdown{
position:absolute;
right:0;
top:110%;
background:#fff;
border:1px solid var(--border);
border-radius:10px;
box-shadow:var(--shadow);
display:none;
flex-direction:column;
min-width:140px;
z-index:10;
}

.langDropdown button{
padding:8px 10px;
border:none;
background:none;
text-align:left;
cursor:pointer;
}

.langDropdown button:hover{
background:#f3f4f6;
}

.langDropdown.open{
display:flex;

}
/* Container als Bezugspunkt */
.page{
  position:relative;
}

/* Sprachschalter oben rechts */
.langSelect{
  position:absolute;
  top:24px;
  right:18px;
  z-index:100;
}
@media (min-width:700px){

  .langSelect{
        top: 25px;
        right: 21px;
  }

}
@media (max-width:700px){

  .langSelect{
    top:10px;
    right:10px;
  }

}
.langSelect{
  backdrop-filter:blur(6px);
}
/* ===== Mobile Language Fix ===== */
@media (max-width:700px){

  #langBtn{
    padding:6px 8px;
  }

  #langText{
    display:none !important;
  }

  .langDropdown .text{
    display:none !important;
  }

  .langDropdown{
    min-width:60px;
  }

  .langDropdown button{
    justify-content:center;
    padding:10px;
  }

}