/* Basis (deine bisherigen Styles, unverändert) */
html,body{
  margin:0;
  padding:0;
  background:#d8c6aa;
  color:#3a2f28;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
}
.container{
  max-width:900px;
  margin:0 auto;
  padding:20px;
}
h1,h2,h3{
  font-weight:700;
  color:#3a2f28;
}
h1{
  font-size:28px;
  margin-bottom:6px;
  text-align:center;
}
h2{
  font-size:22px;
  margin:0 0 10px 0;
}
p{
  margin:4px 0 12px 0;
}
a{
  color:#4c2a91;
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
  /* Admin logo banner kleiner setzen */
.admin-logo, #admin-logo, .admin-header img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Reserve Button Styling sicherstellen */
button[type="submit"], .reserve-btn {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
}

}
nav{
  margin-bottom:10px;
  text-align:center;
}
nav a{
  margin:0 6px;
  padding:3px 6px;
  border-radius:4px;
}
nav a.active{
  background:#b3822f;
  color:#fff;
}
.card{
  background:#fff8f0;
  border:1px solid #e0d7c5;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
  padding:20px;
}
.row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:10px;
}
.row>div{
  flex:1 1 200px;
  min-width:180px;
}
label{
  display:block;
  font-size:14px;
  font-weight:700;
  margin-bottom:3px;
}
input,select{
  width:100%;
  box-sizing:border-box;
  padding:8px 10px;
  border-radius:6px;
  border:1px solid #c8b99e;
  font-family:inherit;
  font-size:15px;
  background:#fff;
}
input:focus,select:focus{
  outline:none;
  border-color:#b3822f;
}
.btn{
  background:#b3822f;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:10px 18px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s;
}
.btn:hover{
  background:#8a6626;
}
.badge{
  font-size:14px;
  color:#b3822f;
  font-weight:600;
}
.muted{
  opacity:.8;
  font-size:14px;
}
.spacer{
  flex:1;
}
small{
  font-size:13px;
}
@keyframes fadein{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* ---- Booking-specific small helpers ---- */
.booking-card { max-width:760px; margin: 18px auto; }

/* form grid two column */
.form-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width:720px){ .form-grid-2 { grid-template-columns: 1fr; } }

/* full width field */
.field-wide { grid-column: 1 / -1; }

/* date/time row */
.row.date-time { display:flex; gap:10px; align-items:flex-start; }
.row.date-time > div { min-width:0; }

/* --- NEUE STYLES: grössere Book-Button für Sichtbarkeit --- */
.btn-primary-book {
  background:#b3822f;
  color:#fff;
  border:0;
  border-radius:10px;
  padding:12px 20px;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.btn-primary-book:hover { background:#8a6626; transform:translateY(-1px); }

/* -------- mobile fixes: einheitliche feldgroessen (wie zuvor) -------- */
@media (max-width: 520px) {
  .booking-card input,
  .booking-card select,
  .booking-card textarea,
  .card input,
  .card select,
  .card textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  .booking-card input[type="text"],
  .booking-card input[type="email"],
  .booking-card input[type="tel"],
  .booking-card input[type="number"],
  .booking-card input[type="date"],
  .booking-card select,
  .card input[type="text"],
  .card input[type="email"],
  .card input[type="tel"],
  .card input[type="number"],
  .card input[type="date"],
  .card select {
    min-height: 46px;
    box-sizing: border-box;
    display: block;
  }
  .booking-card .btn,
  .card .btn {
    display: block;
    width: calc(100% - 8px);
    margin: 8px auto 4px;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 10px;
  }
  .booking-card label,
  .card label {
    margin-bottom: 6px;
    font-size: 14px;
  }
  input[type="date"]::-webkit-calendar-picker-indicator {
    padding: 8px;
    cursor: pointer;
  }
  .form-grid-2,
  .form-grid-3,
  .row.date-time {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .container { padding-left: 12px; padding-right: 12px; }
  .booking-card { padding: 12px; margin: 12px 8px; }
}
/* -----------------------
   Mobile: kompakter Zeit/Gäste-Block
   (Einfügen ans Ende von style.css)
   ----------------------- */

@media (max-width: 520px) {

  /* Date/Guests/Time Zeile: Datum full-width, Guests+Time klein */
  .row.date-time {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  /* Datum oben als volle Zeile */
  .row.date-time > div:first-child {
    flex: 1 1 100%;
    min-width: 100%;
  }

  /* Guests und Time kompakt nebeneinander */
  .row.date-time > div:nth-child(2),
  .row.date-time > div:nth-child(3) {
    flex: 0 0 auto;
    min-width: 92px;
    max-width: 150px;
  }

  /* Einheitliche, kleinere Inputs für mobile */
  #rTime, #rGuests, .row.date-time select, .row.date-time input {
    -webkit-appearance: none;
    appearance: none;
    font-size: 15px;
    padding: 8px 10px;
    height: 44px;
    border-radius: 10px;
    box-sizing: border-box;
    line-height: 1.1;
    background-position: right 12px center;
    background-repeat: no-repeat;
  }

  /* Wenn du native spinner/arrow entfernen willst (iOS/Android) */
  select::-ms-expand { display: none; }
  select { background-image: none; }

  /* Datum etwas größer */
  #rDate {
    padding: 12px 14px;
    height: 48px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Buttons und Abstände */
  .booking-card .btn, .booking-card .btn-primary-book {
    display: block;
    width: calc(100% - 8px);
    margin: 8px auto 4px;
  }

  /* kleinere Grund-Container-Abstände auf Handy */
  .container { padding-left: 12px; padding-right: 12px; }
  .booking-card { padding: 12px; margin: 12px 8px; }

  /* Visuelle Hervorhebung für "11+" Option */
  select#rGuests option[value="11plus"] {
    font-weight: 700;
  }
}
/* ------------------------------------------------------------------
   Modal / Large-party / Loyalty: mobile-friendly tweaks
   (Nur anhängen — verändert sonst nichts)
   ------------------------------------------------------------------ */

#__modal,
#loyalty-modal,
#confirm-modal {
  /* z-index hoch genug, volle viewport-Überdeckung */
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  padding: 18px;
  box-sizing: border-box;
}

/* modal inner box: responsive, nicht zu breit */
#__modal > div,
#loyalty-modal > div,
#confirm-modal > div {
  width: 100%;
  max-width: 520px;          /* max breite auf desktop, kleiner auf mobile */
  background: #fff8f0;
  border: 1px solid #e0d7c5;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
}

/* Modal Titel/Content */
#__modal h3,
#loyalty-modal h3,
#confirm-modal h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.15;
}
#__modal div, #loyalty-modal div, #confirm-modal div {
  color: #3a2f28;
  font-family: Georgia, "Times New Roman", serif;
}

/* Buttongruppe: vermeide Überlappung; auf Handy gestapelt */
#__modal .modal-btns,
#loyalty-modal .modal-btns,
#confirm-modal .modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Buttons: gleiche Optik wie Site, aber responsiv */
#__modal .modal-btn,
#loyalty-modal .modal-btn,
#confirm-modal .modal-btn {
  background: #b3822f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  min-width: 120px;
}

/* speziell: link buttons (Call / Email) — visuell als Pill */
#__modal .modal-call,
#__modal .modal-email {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

/* kleinere devices: Buttons untereinander, Box enger */
@media (max-width: 520px) {
  #__modal > div,
  #loyalty-modal > div,
  #confirm-modal > div {
    padding: 14px;
    max-width: 420px;
  }

  /* Buttons full width stacked */
  #__modal .modal-btns,
  #loyalty-modal .modal-btns,
  #confirm-modal .modal-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #__modal .modal-btn,
  #loyalty-modal .modal-btn,
  #confirm-modal .modal-btn {
    width: 100%;
    min-width: 0;
  }

  /* Vermeide Button-Textschnitt: wrap erlauben */
  #__modal .modal-btn,
  #loyalty-modal .modal-btn,
  #confirm-modal .modal-btn {
    white-space: normal;
    line-height: 1.2;
  }

  /* Inhalt: besserer Zeilenumbruch und kleinere Schrift */
  #__modal > div p,
  #loyalty-modal > div p,
  #confirm-modal > div p {
    font-size: 15px;
    margin: 8px 0;
  }

  /* Wenn Links (Call/email) als Buttons erscheinen, etwas Abstand */
  #__modal .modal-call, #__modal .modal-email { display: inline-block; width: 100%; box-sizing: border-box; text-align:center; }
}

/* Zusatz: sicherstellen, dass keine Overflow-Hickups durch lange Telefonnummern/Text */
#__modal > div * {
  word-break: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

