* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #c5c5c5c5;
  color: #222;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* =========================
   ALLGEMEIN
========================= */

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #222;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #888;
}

/* =========================
   TOAST / BANNER
========================= */

.banner {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2000;
  background: rgba(40, 40, 40, 0.96);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: min(360px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   GASTSEITE
========================= */

.guest-header {
  position: relative;
  margin: 0;
}

.guest-hero {
  position: relative;
  min-height: 215px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px 24px;
  background-color: #d9d9d9;
  background-image: url("/Logo.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  overflow: hidden;
}

.guest-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.14)
  );
  pointer-events: none;
}

.guest-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.guest-header-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.top-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: rgba(65, 65, 65, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
  padding: 0;
}

.top-icon-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.icon {
  display: block;
  width: 22px;
  height: 22px;
  background-color: #fff;
}

.instagram-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.75 2h8.5A5.75 5.75 0 0 1 22 7.75v8.5A5.75 5.75 0 0 1 16.25 22h-8.5A5.75 5.75 0 0 1 2 16.25v-8.5A5.75 5.75 0 0 1 7.75 2Zm0 1.5A4.25 4.25 0 0 0 3.5 7.75v8.5A4.25 4.25 0 0 0 7.75 20.5h8.5a4.25 4.25 0 0 0 4.25-4.25v-8.5A4.25 4.25 0 0 0 16.25 3.5h-8.5Zm8.88 1.12a1.13 1.13 0 1 1 0 2.26 1.13 1.13 0 0 1 0-2.26ZM12 6.25A5.75 5.75 0 1 1 6.25 12 5.75 5.75 0 0 1 12 6.25Zm0 1.5A4.25 4.25 0 1 0 16.25 12 4.25 4.25 0 0 0 12 7.75Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.75 2h8.5A5.75 5.75 0 0 1 22 7.75v8.5A5.75 5.75 0 0 1 16.25 22h-8.5A5.75 5.75 0 0 1 2 16.25v-8.5A5.75 5.75 0 0 1 7.75 2Zm0 1.5A4.25 4.25 0 0 0 3.5 7.75v8.5A4.25 4.25 0 0 0 7.75 20.5h8.5a4.25 4.25 0 0 0 4.25-4.25v-8.5A4.25 4.25 0 0 0 16.25 3.5h-8.5Zm8.88 1.12a1.13 1.13 0 1 1 0 2.26 1.13 1.13 0 0 1 0-2.26ZM12 6.25A5.75 5.75 0 1 1 6.25 12 5.75 5.75 0 0 1 12 6.25Zm0 1.5A4.25 4.25 0 1 0 16.25 12 4.25 4.25 0 0 0 12 7.75Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.facebook-icon {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.5 21v-7.03h2.36l.35-2.74H13.5V9.48c0-.79.22-1.33 1.35-1.33h1.45V5.7c-.25-.03-1.11-.1-2.1-.1-2.08 0-3.5 1.27-3.5 3.6v2.03H8.34v2.74h2.36V21h2.8Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13.5 21v-7.03h2.36l.35-2.74H13.5V9.48c0-.79.22-1.33 1.35-1.33h1.45V5.7c-.25-.03-1.11-.1-2.1-.1-2.08 0-3.5 1.27-3.5 3.6v2.03H8.34v2.74h2.36V21h2.8Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.info-icon {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

/* Kategorienleiste */

.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  background: #007f2f;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: #fff;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tab.active {
  background: #fff;
  color: #222;
}

/* Menülistenbereich */

#menu {
  max-width: 640px;
  margin: 14px auto 36px;
  padding: 0 14px;
  text-align: left;
}

.dish-card {
  background: #000000;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: none;
  text-align: center;
}

.dish-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}

.dish-card p {
  margin: 0 0 8px;
  color: #d7d7d7;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.price {
  margin-top: 0;
  color: #00b34a;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: left;
}

/* =========================
   INFO MODAL GAST
========================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  backdrop-filter: blur(2px);
  overflow-y: auto;
}

.modal-content,
.edit-modal-content {
  background: #fff;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  overflow-y: auto;
  margin: auto;
}

#siteInfoModal .edit-modal-content {
  display: flex;
  flex-direction: column;
}

#siteInfoForm {
  display: grid;
  gap: 10px;
}

#siteInfoForm label {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

#siteInfoForm input,
#siteInfoForm textarea {
  text-align: center;
}

#siteInfoForm textarea {
  min-height: 110px;
  resize: vertical;
}

#siteInfoModal .modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  margin-top: 10px;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-topbar h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  padding-left: 32px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f1f1;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  color: #222;
}

.modal-close-btn:hover {
  background: #e6e6e6;
}

.info-modal-content {
  max-width: 760px;
  text-align: left;
}

.info-modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 6px;
}

.info-section {
  margin-bottom: 26px;
  text-align: left;
}

.info-section h3,
.info-section p {
  text-align: left;
}

.hours-list {
  display: grid;
  gap: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #ece7de;
  padding-bottom: 6px;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.info-links a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
}

.info-links a:hover {
  text-decoration: underline;
}

/* =========================
   ADMINBEREICH
========================= */

header {
  text-align: center;
  margin-bottom: 20px;
}

.admin-header {
  position: relative;
  padding-top: 10px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.info-edit-btn {
  position: absolute;
  top: 0;
  left: 0;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}

.logout-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}

.card,
.admin-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.admin-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 64px;
}

.admin-item-info {
  width: 100%;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding: 0 8px;
}

.admin-item-info strong,
.admin-item-info small,
.admin-item-info span {
  display: block;
  text-align: center;
}

.admin-item-info strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.admin-item-info small {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.admin-category-block {
  margin-bottom: 28px;
}

.admin-category-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e5e5;
  text-align: center;
}

.status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-available {
  background: #dff5e1;
  color: #1f7a35;
}

.status-unavailable {
  background: #f8dddd;
  color: #b42318;
}

.is-unavailable {
  background: #f3f3f3;
  opacity: 0.78;
}

.is-available {
  background: #fff;
}

.edit-icon-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #222;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92l8.06-8.06.92.92L5.92 19.58zM20.71 7.04a1.003 1.003 0 000-1.42l-2.34-2.34a1.003 1.003 0 00-1.42 0l-1.13 1.13 3.75 3.75 1.14-1.12z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 58%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zm2.92 2.33H5v-.92l8.06-8.06.92.92L5.92 19.58zM20.71 7.04a1.003 1.003 0 000-1.42l-2.34-2.34a1.003 1.003 0 00-1.42 0l-1.13 1.13 3.75 3.75 1.14-1.12z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 58%;
}

.edit-icon-btn:hover {
  transform: scale(1.06);
}

/* Formulare Admin / Login */

#dishForm,
#editDishForm {
  display: grid;
  gap: 10px;
  justify-items: center;
}

#dishForm input,
#editDishForm input,
#editDishForm textarea {
  max-width: 100%;
  text-align: center;
}

#editDishForm label {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

#editDishForm textarea {
  min-height: 110px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.toggle-btn,
.save-btn,
#dishForm button,
.login-card button,
#editDishForm button[type="submit"] {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
}

.delete-btn {
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
}

.delete-btn:hover {
  background: #a91f1f;
}

.login-card {
  max-width: 420px;
  margin: 60px auto;
  text-align: center;
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card input {
  text-align: center;
}

.login-card button {
  min-width: 180px;
  margin: 0 auto;
}

.login-error {
  color: #b42318;
  margin-top: 12px;
  font-weight: 700;
}

.delete-modal {
  max-width: 420px;
}

.delete-modal p {
  margin: 16px 0;
  font-size: 16px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .banner {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    font-size: 13px;
    padding: 8px 12px;
  }

  .guest-hero {
    min-height: 170px;
    padding: 18px 14px;
    background-size: cover;
    background-position: center;
  }

  .guest-hero h1 {
    font-size: 1.55rem;
    max-width: 76%;
  }

  .guest-header-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .top-icon-btn {
    width: 38px;
    height: 38px;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .info-icon {
    font-size: 20px;
  }

  .tabs {
    justify-content: flex-start;
    padding: 10px 10px;
  }

  #menu {
    max-width: 100%;
    margin: 10px auto 28px;
    padding: 0 10px;
  }

  .dish-card {
    padding: 12px 14px;
  }

  .dish-card h3 {
    font-size: 1rem;
  }

  .dish-card p {
    font-size: 0.92rem;
  }

  .price {
    font-size: 1.05rem;
  }

  .hours-row {
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .info-modal-content {
    max-width: 100%;
  }

  .container {
    padding: 0;
  }

  .admin-header {
    padding: 50px 14px 0;
  }

  .info-edit-btn {
    top: 4px;
    left: 4px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .logout-btn {
    top: 4px;
    right: 4px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .admin-item {
    padding-top: 68px;
  }

  .edit-icon-btn {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
  }

  .admin-actions {
    flex-direction: column;
    align-items: center;
  }

  .toggle-btn,
  .delete-btn,
  .save-btn,
  #dishForm button,
  .login-card button,
  #editDishForm button[type="submit"] {
    width: 100%;
    max-width: 280px;
  }

@media (max-width: 700px) {
  .modal {
    padding: 10px;
    align-items: flex-start;
  }

  .modal-content,
  .edit-modal-content {
    max-height: calc(100vh - 20px);
    padding: 16px 12px;
    border-radius: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .modal-topbar {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 8px;
  }

  .modal-topbar h2 {
    font-size: 18px;
    padding-left: 8px;
  }

  #siteInfoModal .modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 10px;
    padding-bottom: 4px;
    z-index: 2;
  }

  #siteInfoModal .save-btn,
  #siteInfoModal .delete-btn {
    width: 100%;
    max-width: 260px;
  }
}
}

.category-section-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.collapse-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
}

.category-manager-wrap {
  margin-top: 14px;
}

.category-manager-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fafafa;
}

.category-manager-actions {
  display: flex;
  gap: 8px;
}

.sort-arrow-btn {
  min-width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #222;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.sort-arrow-btn:hover {
  opacity: 0.92;
}

@media (max-width: 700px) {
  .category-manager-item {
    flex-direction: column;
    text-align: center;
  }

  .category-manager-actions {
    justify-content: center;
  }

  .collapse-toggle-btn {
    font-size: 15px;
    padding: 12px 14px;
  }
}

.category-manager-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-manager-info strong,
.category-manager-info small {
  text-align: left;
}

.category-hidden {
  opacity: 0.65;
  background: #f3f3f3;
}

@media (max-width: 700px) {
  .category-manager-info strong,
  .category-manager-info small {
    text-align: center;
  }
}

.multi-price {
  margin-top: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #00b34a;
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.price-row:first-child {
  border-top: none;
}

@media (max-width: 700px) {
  .price-row {
    font-size: 0.95rem;
  }
}


.multi-toggle-row {
  display: flex;
  justify-content: center;
  margin: 4px 0 2px;
}

.multi-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.multi-toggle-label input[type="checkbox"] {
  width: auto;
}