body {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: #f8f8f8;
    color: #333;
}

        .button-group {
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .button-group a button {
            padding: 10px 15px;
            font-size: 16px;
            cursor: pointer;
        }

        .karten-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .karten-box {
            flex: 1 1 300px;
            min-width: 260px;
            max-width: 100%;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 15px;
            background: #f9f9f9;
        }

        .karten-box h3 {
            margin-top: 0;
        }

        .karten-box ul {
            padding-left: 20px;
        }

        .karten-box a {
            text-decoration: none;
            color: #0066cc;
            word-break: break-all;
        }

        @media (max-width: 600px) {
            .button-group {
                flex-direction: column;
            }
        }


@media (max-width: 600px) {
.zurueck {
   /* padding: 5px; */
    float: right;
    margin-left: 0.5em;
    /*font-size: 12px;*/
    /*width: 77px;
    height: 24px;*/
	margin: -60px -20px;
}}

.zurueck {
  display: inline-block;
  padding: 8px 16px;
  background-color: #eee;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  float:right;
  margin: 0px 0px;
}

.zurueck:hover {
  background-color: #ddd;
}


@media (max-width: 600px) {
.links {
margin: -74px 30px !important;
}}

@media (max-width: 600px) {
.weite {
	width: 98%;
    height: 95%;
	
}}


form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 1000px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h3 {
    color: #222;
}

.category {
    margin-bottom: 30px;
}

.category h2 {
    background: #e8e8e8;
    padding: 10px;
    margin: 0 -20px 10px -20px;
    border-left: 5px solid #007BFF;
}

input[type="text"] {
    width: 30%;
    padding: 8px;
    margin-bottom: 5px;
    margin-right: 60px;
}

input[type="number"] {
    width: 20%;
    padding: 8px;
    margin-bottom: 5px;
}

#input[type="password"] {
    width: 98%;
    padding: 8px;
    margin-bottom: 5px;
    margin-right: 60px;
	border-radius: 6px;
}


button {
    background: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
	margin: 10px;
}

button:hover {
    background: #0056b3;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 6px;
}

ul li a {
    color: #007BFF;
    text-decoration: none;
}

ul li a:hover {
    text-decoration: underline;
}

#backToTopBtn {
  position: fixed;
  right: -60px;  /* Start: ganz rechts drauÃŸen */
  bottom: 40px;
  z-index: 1000;
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: right 0.4s ease;  /* animiert rein/raus */
}

#backToTopBtn:hover {
  background-color: #0056b3;
}


    .gericht {
      display: flex;
      gap: 10px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }
    .gericht input, .gericht textarea, .gericht select {
      font-size: 14px;
    }
    .gericht input[type="text"] {
      width: 200px;
    }
    .gericht input[type="number"] {
      width: 80px;
    }
    .gericht input[type="color"] {
      width: 50px;
      padding: 0;
    }
    .gericht textarea {
      width: 100%;
      height: 40px;
      resize: vertical;
    }
	
	
	input[type="text"],
input[type="number"],
input[type="color"],
input[type="email"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    min-height: 60px;
}

.gericht {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background-color: #0d74d1;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .gericht {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .gericht input[type="text"],
    .gericht input[type="number"],
    .gericht textarea {
        flex: 1;
        min-width: 150px;
    }

    .gericht textarea {
        flex: 2;
    }
}

.kategorie-block {
    margin-top: 30px;
}

.kategorie-block input[type="text"] {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}
th {
    background-color: #005792 !important;
    color: #ffffff;
}
h2 {
    text-align: center;
}

#time {
	width:50% !important;
	
}

.reserviert {
	color:red;
	text-align:center;
	font-family:Arial;
	font-size:22px
}

.bestaetigt {
	color:green;
	text-align:center;
	font-family:Arial;
	font-size:22px
	
}

.pagination {
  margin-top: 20px;
}
.pagination a {
  margin: 0 5px;
  text-decoration: none;
  padding: 4px 8px;
  background: #eee;
  border-radius: 4px;
  color: #000;
}
.pagination a.active {
  font-weight: bold;
  background-color: #333;
  color: #fff;
}

 .fade-out {
    transition: opacity 1.5s ease;
  }
  
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .lightbox-message {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    max-width: 400px;
    text-align: center;
    font-size: 16px;
  }
  .lightbox-message button {
    margin-top: 15px;
    padding: 8px 20px;
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.reset-button {
  padding: 12px 12px;
  background-color: #ccc;
  color: #000;
  border: 1px solid #999;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.reset-button:hover {
  background-color: #ddd;
  color: #000;
}

.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff; margin: 5% auto; padding: 20px;
  border: 1px solid #888; width: 90%; max-width: 1200px; border-radius:12px;
}
.close {
  color: #aaa; float: right; font-size: 28px; font-weight: bold;
  cursor:pointer;
}
.close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; }
