:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17231e;
  background: #15231d;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.booking-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 25, 18, .66), rgba(11, 25, 18, .20)),
    url('/cafe-ilostan-interior.jpg') center center / cover fixed no-repeat;
}

.photo-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(180deg, rgba(8,18,13,.08), rgba(8,18,13,.38));
}

.booking-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(470px, .82fr);
  align-items: center;
  gap: clamp(32px, 7vw, 90px);
}

.brand-panel {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.32);
}

.brand-badge, .mini-label, .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-badge {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: rgba(18, 38, 28, .28);
  backdrop-filter: blur(9px);
}

.brand-panel h1 {
  margin: 24px 0 16px;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 500;
}

.brand-panel > p {
  max-width: 520px;
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.opening-card {
  width: fit-content;
  min-width: 280px;
  margin-top: 32px;
  padding: 18px 21px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 20px;
  background: rgba(17,36,27,.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0,0,0,.13);
}

.opening-label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

.opening-card strong { font-size: 18px; }
.opening-card span:not(.opening-label) { color: rgba(255,255,255,.88); }
.opening-card .closed-note { margin-top: 6px; color: #ffd8b2 !important; font-weight: 750; }

.reservation-card {
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 30px;
  background: rgba(250, 248, 241, .91);
  backdrop-filter: blur(22px) saturate(118%);
  box-shadow: 0 32px 90px rgba(8,18,13,.34);
}

.reservation-heading { margin-bottom: 25px; }
.mini-label, .eyebrow { color: #47715b; }
.reservation-heading h2 {
  margin: 8px 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 500;
}
.reservation-heading p { margin: 0; color: #66716a; line-height: 1.55; }

.booking-form { display: grid; gap: 17px; }
.grid { display: grid; gap: 15px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; font-size: 13px; font-weight: 760; color: #33443b; }
.muted { color: #879188; font-weight: 550; }

input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8ded8;
  border-radius: 13px;
  padding: 12px 13px;
  outline: none;
  color: #18231e;
  background: rgba(255,255,255,.86);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  border-color: #69927a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(82,132,101,.12);
}
input[aria-invalid="true"] { border-color: #bd655b; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: #7e8981;
}
.field-hint.hint-error { color: #a64036; font-weight: 700; }

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: #637068;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}
.check-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #355e49; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 13px; padding: 12px 14px; font-size: 13px; font-weight: 680; line-height: 1.45; }
.notice.success { background: #e3f2e6; color: #245a31; border: 1px solid #bfdfc5; }
.notice.error { background: #f8e8e5; color: #8c342b; border: 1px solid #ecc9c4; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.primary-button {
  width: 100%;
  border: 0;
  padding: 14px 18px;
  color: white;
  background: #315d46;
  box-shadow: 0 12px 28px rgba(49,93,70,.23);
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.primary-button:hover:not(:disabled) { background: #274e3a; transform: translateY(-1px); }
.primary-button:disabled { opacity: .52; cursor: not-allowed; }

.footer-row {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(71, 91, 79, .13);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #7c8780;
}
.footer-row a { color: #315d46; font-weight: 800; text-decoration: none; }

/* Adminbereich */
.admin-shell {
  min-height: 100vh;
  padding: 48px max(20px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(rgba(244,242,235,.92), rgba(244,242,235,.96)),
    url('/cafe-ilostan-interior.jpg') center / cover fixed no-repeat;
}
.admin-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.admin-header h1 { margin: 6px 0; font-family: Georgia, "Times New Roman", serif; font-size: 44px; font-weight: 500; }
.lead { color: #68736c; line-height: 1.55; }
.lead.small { margin: 0; }
.secondary-button { border: 1px solid #cfd8d1; background: rgba(255,255,255,.76); padding: 11px 14px; }
.warning-box { margin-bottom: 18px; border: 1px solid #ead3a5; background: #fff5dc; color: #6d531b; border-radius: 15px; padding: 13px 15px; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: rgba(255,255,255,.85); border: 1px solid #e4e0d6; border-radius: 18px; padding: 18px; backdrop-filter: blur(8px); }
.stat span { display: block; color: #727770; font-size: 13px; margin-bottom: 6px; }
.stat strong { font-size: 30px; }
.table-card, .empty-state { background: rgba(255,255,255,.90); border: 1px solid #e3dfd5; border-radius: 20px; padding: 18px; box-shadow: 0 18px 55px rgba(59,55,45,.08); backdrop-filter: blur(10px); }
.empty-state { text-align: center; padding: 60px 20px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 950px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #eeece6; text-align: left; vertical-align: top; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #797d76; }
td small { display: block; margin-top: 5px; color: #777c76; max-width: 220px; }
td a { color: #3b6046; }
.status { display: inline-block; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 800; }
.status.pending { background: #fff0c2; color: #765b08; }
.status.confirmed { background: #ddf0df; color: #21562d; }
.status.cancelled { background: #f2e5e3; color: #7a3029; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { border: 1px solid #dbdcd7; border-radius: 9px; background: white; padding: 7px 9px; cursor: pointer; font-size: 12px; }
.actions button:hover { background: #f4f5f2; }
.actions button.danger { color: #8b3028; }

@media (max-width: 930px) {
  .booking-page { background-attachment: scroll; }
  .booking-layout { grid-template-columns: 1fr; align-items: start; padding: 36px 0; gap: 28px; }
  .brand-panel { padding-top: 22px; }
  .brand-panel h1 { font-size: clamp(50px, 12vw, 74px); }
  .brand-panel > p { max-width: 620px; }
  .opening-card { margin-top: 23px; }
}

@media (max-width: 650px) {
  .booking-layout { width: min(100% - 22px, 620px); padding: 22px 0; }
  .brand-panel h1 { margin-top: 18px; }
  .reservation-card { border-radius: 22px; padding: 22px 18px; }
  .grid.two, .stats-grid { grid-template-columns: 1fr; }
  .footer-row, .admin-header { align-items: stretch; flex-direction: column; }
  .admin-shell { padding: 28px 14px; }
}

/* V5: Admin-Suche, Tagesübersicht und Bearbeitungsdialog */
.stats-grid-four { grid-template-columns: repeat(4, 1fr); }
.stat small { display: block; margin-top: 2px; color: #858a84; font-size: 11px; }
.filter-card {
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid #e3dfd5;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 55px rgba(59,55,45,.06);
  backdrop-filter: blur(10px);
}
.filter-grid { display: grid; grid-template-columns: 1.4fr 1fr .9fr auto; gap: 12px; align-items: end; }
.filter-card input, .filter-card select { margin-top: 6px; padding: 10px 11px; }
.filter-actions { display: flex; gap: 7px; padding-bottom: 1px; }
.filter-actions button, .icon-button {
  border: 1px solid #d7dbd5;
  border-radius: 10px;
  background: #fff;
  color: #31423a;
  padding: 10px 11px;
  cursor: pointer;
  font-weight: 750;
}
.filter-actions button:hover, .icon-button:hover { background: #f2f4f0; }
.result-count { margin-top: 10px; color: #7b817b; font-size: 12px; }
.actions .edit-action { border-color: #bcd0c2; color: #315d46; font-weight: 750; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  background: rgba(13, 25, 19, .57);
  backdrop-filter: blur(7px);
}
.edit-modal {
  width: min(660px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 26px;
  padding: 25px;
  background: #f8f6ef;
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
}
.modal-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.modal-header h2 { margin: 5px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.icon-button { width: 39px; height: 39px; padding: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.edit-form { display: grid; gap: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-actions .secondary-button { cursor: pointer; }
.modal-save { width: auto; min-width: 190px; }

@media (max-width: 1050px) {
  .stats-grid-four { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .stats-grid-four, .filter-grid { grid-template-columns: 1fr; }
  .filter-actions { flex-wrap: wrap; }
  .edit-modal { padding: 20px 16px; border-radius: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .secondary-button, .modal-save { width: 100%; }
}

/* Finaler Admin-Login */
.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(13, 29, 21, .55), rgba(13, 29, 21, .72)),
    url('/cafe-ilostan-interior.jpg') center / cover fixed no-repeat;
}
.admin-login-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 28px;
  background: rgba(250, 248, 241, .94);
  box-shadow: 0 30px 90px rgba(0,0,0,.30);
  backdrop-filter: blur(18px);
}
.admin-login-card h1 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.admin-login-card > p { margin: 0 0 22px; color: #68746d; }
.login-form { display: grid; gap: 16px; }
.login-back { display: inline-block; margin-top: 20px; color: #315d46; font-size: 13px; font-weight: 800; text-decoration: none; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.header-actions .secondary-button { width: auto; border: 1px solid rgba(49,93,70,.22); background: rgba(255,255,255,.76); padding: 11px 14px; color: #315d46; }

/* Online-Version */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
.hidden { display: none !important; }
.privacy-details {
  border: 1px solid #dfe4df;
  border-radius: 13px;
  padding: 11px 13px;
  background: rgba(255,255,255,.6);
  color: #68736c;
  font-size: 12px;
  line-height: 1.55;
}
.privacy-details summary { cursor: pointer; font-weight: 800; color: #466653; }
.privacy-details p { margin: 10px 0 0; }
.privacy-details a { color: #315d46; font-weight: 750; }
.online-note { margin-top: 8px; font-size: 11px; color: #8a928c; }
.admin-loading { min-height: 100vh; display:grid; place-items:center; background:#f4f2eb; }
.table-card button, .filter-card button, .header-actions button { font: inherit; }
