/* ====== Grundlayout ====== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff4e6;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #2d2d2d;
}

/* ====== Typografie ====== */
h1 {
  margin-top: 180px;
  color: #3b2f1d;
  font-size: 42px;
  text-align: center;
  margin-bottom: 70px;
}

label {
  display: block;
  margin: 10px 0 5px;
}

/* ====== Eingabefelder ====== */
input, form input {
  width: 13vw;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #bfa67a;
  border-radius: 12px;
  font-size: 16px;
  background-color: #fff8ed;
  color: #333;
}

form input::placeholder,
.modal-content form input::placeholder {
  color: #a08766;
}

/* ====== Buttons ====== */
button, form button, .open-btn, .modal-content form button {
  padding: 12px;
  margin-top: 10px;
  background-color: #ffd8a8;
  border: 2px solid #bfa67a;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  color: #3b2f1d;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover,
form button:hover,
.open-btn:hover,
.modal-content form button:hover {
  background-color: #ffc078;
}

/* ====== Box & Container ====== */
#box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.login-container {
  background-color: #ffe8cc;
  border-radius: 40px;
  padding: 40px;
  width: 15vw;
  min-width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  margin-bottom: 20px;
  font-weight: bold;
  color: #3b2f1d;
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2vw;
  background: #fff;
  border-bottom: 3px solid #ffd166;
}

.logo-small img {
  height: 82px;
}

/* ====== Tabelle ====== 
table {
  border-collapse: collapse;
  text-align: center;
  justify-self: center;
}

td {
  font-size: large;
  width: 2.6vw;
  height: 4vh;
  text-align: center;
  background-color: #fff;
  border-radius: 0.3vw;
  border-width: 30px;
  border-color: #073b4c;
  margin: 0.8vh 0.8vw;
}

td.nummer {
  cursor: pointer;
  border: 1px solid #ccc;
  user-select: none;
}

td.nummer.selected {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

td.nummer.taken {
  background-color: #f44336;
  color: white;
  cursor: not-allowed;
}

#e {
  background-color: #ce5656;
}

 ====== Modal ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 90vw;
  max-width: 600px;
  box-sizing: border-box; /* Padding zählt zur Breite */
  position: relative;
  background-color: rgba(255, 232, 204, 0.9);
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

/* Für kleinere Bildschirme optimieren */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 95vw;           /* mehr Breite auf kleinen Geräten */
    max-width: none;       /* keine feste Max-Breite */
    padding: 20px;         /* weniger Innenabstand */
    max-height: 90vh;      /* nicht höher als der Bildschirm */
    overflow-y: auto;      /* scrollbar, falls Inhalt länger ist */
    border-radius: 20px;   /* kleinere Rundung für Handy */
  }
}

.modal-content form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert Inputs und Button horizontal */
}

.modal-content form input,
.modal-content form button {
  display: block;
  width: 80%;
  margin: 10px auto;
}




/* ====== Modal Close ====== */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #3b2f1d;
  cursor: pointer;
}

/* ====== Zusatzinfos ====== */
.form-info {
  font-size: 14px;
  color: #5e452d;
  margin-top: -10px;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* ====== Bestätigungspopup ====== */
.confirmation-popup {
  display: none;
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff4e6;
  border: 2px solid #bfa67a;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1001;
  font-size: 18px;
  color: #3b2f1d;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ====== Versandtext-Design ====== */
.versendungh {
  margin-top: 0px;
}

.versendung {
  font-size: 30px;
  width: 50%;
  margin-top: 30vh;
}


#nummernTabelle {
  border-collapse: separate;   
  border-spacing: 0.42vw;         
  table-layout: fixed;       
  width: 80vw;
  margin: 0 auto 20px auto;
}

#nummernTabelle td {
  height: 40px;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.3s ease;
}


#nummernTabelle td.selected {
  background-color: #69db7c;
  color: #fff;
}

#nummernTabelle td.taken {
  background-color: #f44336;
  color: white;
  cursor: not-allowed;
}

#openModalBtn {
margin-bottom: 40px;
}

/* ====== Responsive ====== */
@media screen and (orientation: portrait) {
  .navbar {
    display: none;
  }

  .hero h1 {
    font-size: xx-large;
  }

  body {
    padding-top: 0px;
    margin-top: 0;
  }

  .hero {
    padding: 20px 32px;
  }

h1 {
margin-top:30px;
}
}


@media (max-width: 600px) {
  .login-container {
    width: 80vw;
    padding: 30px;
  }

  form input {
    width: 70vw;
  }

  form button {
    width: 75vw;
  }

  h1 {
    font-size: 24px;
    padding: 0 10px;
    margin-top:30px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .login-container {
    width: 60vw;
    padding: 35px;
  }

  form input {
    width: 50vw;
  }

  form button {
    width: 55vw;
  }
}

@media (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
  .login-container {
    width: 600px;
    max-width: 90vw;
    padding: 40px 60px;
    box-sizing: border-box;
  }

  form input, form select {
    width: 40vw;
    max-width: none;
  }

  form button {
    width: 42.4vw;
    max-width: none;
  }

  #box {
    margin: 60px auto;
  }

  h1 {
    font-size: 32px;
    padding: 0 20px;
  }
}
