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%;
	
}}

.rechts {
	float: right !important;
}


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;
}

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"],
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;
}

.zurrechts {
	float:right !important;	
}

.grau {
    background-color: #6a6c6f !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

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





  /* === Schriftgrößen zentral anpassbar === */
  :root{
    --fs-title: 25px;  /* Titel-Eingabe oben */
    --fs-name:  14px;  /* Vorspeisen_name_ */
    --fs-liter: 14px;  /* Vorspeisen_liter_ */
    --fs-sup:   14px;  /* Vorspeisen_sup_ */
    --fs-price: 14px;  /* Vorspeisen_price_ */
    --fs-desc:  14px;  /* Vorspeisen_desc_ (Textarea) */
  }

  /* gezielte Zuordnung über name-Attribute */
  input[name="title"] { font-size: var(--fs-title); }

  input[name^="Vorspeisen_name_"]  { font-size: var(--fs-name); }
  input[name^="Vorspeisen_liter_"] { font-size: var(--fs-liter); }
  input[name^="Vorspeisen_sup_"]   { font-size: var(--fs-sup); }
  input[name^="Vorspeisen_price_"] { font-size: var(--fs-price); }
  textarea[name^="Vorspeisen_desc_"] { font-size: var(--fs-desc); }

