/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47,62,47,0.22);
}
.btn-primary:hover { background: #273327; }

.btn-secondary {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.26);
}
.btn-secondary:hover { background: rgba(255,255,255,0.24); }

.btn-soft {
  background: rgba(102,135,79,0.14);
  color: var(--primary-color);
  border-color: rgba(102,135,79,0.25);
}
.btn-soft:hover { background: rgba(102,135,79,0.20); }

/* =========================================================
   Forms (systemweit)
   ========================================================= */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }

.booking-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.label {
  display: block;
  font-weight: 750;
  color: var(--primary-color);
  font-size: var(--fs-sm);
  margin: 0;
}

.input, .select, .textarea {
  width: 100%;
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,62,47,0.18);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
  appearance: none;
}
.textarea { resize: vertical; min-height: 110px; }

.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(102,135,79,0.65);
  box-shadow: 0 0 0 4px var(--focus);
}

.form-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Kontaktformular – Footer (Captcha + Datenschutz + Button)
   ========================================================= */
.contact-form-footer{
  display: grid;
  gap: 12px;
}

/* Datenschutztext: kein extra Absatz-Abstand, lesbare Zeilenlänge */
.form-privacy{
  margin: 0;
  max-width: 75ch;
}

/* Button sauber in einer Zeile ausrichten */
.contact-form-actions{
  display: flex;
  justify-content: flex-start;
}

/* Mobile: Button volle Breite */
@media (max-width: 560px){
  .contact-form-actions .btn{ width: 100%; }
}

/* =========================================================
   Buchungsformular (Kalender) – Footer (Preis + Datenschutz + Button)
   ========================================================= */
.booking-form-summary-card{
  box-shadow: none;
  border-color: rgba(47,62,47,0.10);
}

.booking-form-summary-body{
  padding: var(--s-3); /* entspricht 14px */
  display: grid;
  gap: 12px;
}

.booking-form-actions{
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 560px){
  .booking-form-actions .btn{ width: 100%; }
}

/* Radio/Checkbox */
.radio-group { display: grid; gap: 10px; margin-top: 8px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47,62,47,0.12);
  background: rgba(255,255,255,0.7);
  font-weight: 750;
}
.radio-label input[type="radio"]{
  width: auto;
  margin: 0;
  accent-color: var(--accent-color);
}

/* Auth helper */
.auth-card { max-width: 560px; margin-inline: auto; }
.auth-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.auth-actions .btn { flex: 1 1 200px; }


/* =========================================================
   Alerts / Messages (inkl. legacy .message)
   ========================================================= */
.alert, .message{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47,62,47,0.18);
  background: rgba(247,248,245,0.85);

  margin: 0 0 var(--s-3);
}
.alert.success, .message.success{
  border-color: rgba(111,163,106,0.45);
  background: rgba(111,163,106,0.18);
}
.alert.error, .message.error{
  border-color: rgba(201,74,58,0.45);
  background: rgba(201,74,58,0.16);
}
.is-hidden { display: none !important; }

/* Zusätzliche Alert-Variante */
.alert.info{
  border-color: rgba(102,135,79,0.25);
  background: rgba(102,135,79,0.10);
  color: var(--primary-color);
}

/* =========================================================
   Dismissible Messages (wegklickbare Meldungen)
   ========================================================= */

.alert.is-dismissible,
.message.is-dismissible{
  position: relative;
  padding-right: 44px; /* Platz für den X-Button */
  transition: opacity .22s ease, transform .22s ease;
}

.message-close{
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
}

.message-close:hover{
  opacity: 1;
  background: rgba(0,0,0,0.08);
}

/* =========================================================
   Gallery (Übersicht immer Querformat)
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(47,62,47,0.12);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  background: #fff;
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.02); }

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.72);
  z-index: 100;
}
.lightbox.is-open { display: flex; }

#lightbox-img {
  max-width: min(980px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

