/* ============================================================
   FLEISCHVERKAUF.PHP - STYLING
   ============================================================ */

/* Universal Box Sizing Reset */
* {
  box-sizing: border-box;
}

/* ========== MAIN SECTION ========== */

#fleischverkauf {
  padding: 0 10px;
}

/* Angemeldet als Bereich */
.logged-in-status {
  background-color: #f5f5f5;
  color: #333;
  border-left: 4px solid #d59e5b;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 0;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 0 5px 2.5px rgba(0, 0, 0, 0.25) inset;
  align-items: center;
  text-align: center;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logged-in-text {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.logged-in-text strong {
  color: #d59e5b;
  font-weight: 700;
}

.clear-user-btn {
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  color: #333;
  border: none;
  padding: 10px 18px;
  margin: 0 auto;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: auto;
  box-shadow: 0 2px 6px rgba(213, 158, 91, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  width: auto;
}

.btn-icon {
  display: none;
}

.btn-text {
  display: inline;
  border: none;
}

.clear-user-btn:hover {
  background: linear-gradient(135deg, #e6ad6b 0%, #e4a04f 100%);
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(213, 158, 91, 0.3);
}

.clear-user-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(213, 158, 91, 0.2);
}

#main-banner #fleischverkauf .intro-container h1 {
  margin: 0;
  color: #37384d;
  letter-spacing: 1.5px;
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  padding: 1.1rem 0 1.1rem 0;
}

#main-banner [class*="col-"] {
  padding: 0.6rem;
}

/* ========== RESPONSE MESSAGES ========== */

#response {
  margin: 0px auto;
  min-height: auto;
}

#response .success {
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  animation: slideDown 0.4s ease-out;
}

#response .error {
  background-color: #ffebee;
  border: 2px solid #f44336;
  color: #c62828;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
  animation: slideDown 0.4s ease-out;
}

#response .success::before {
  content: "✓ ";
  font-weight: bold;
  margin-right: 6px;
}

#response .error::before {
  content: "✕ ";
  font-weight: bold;
  margin-right: 6px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FORM FIELDSET ========== */

#Fleischverkauf_form {
  background: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  transition: all 0.3s ease;
  animation: slideUp 0.5s ease-out;
  margin: 65px auto 0;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#Fleischverkauf_form:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#Fleischverkauf_form legend {
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  color: #37384d;
  padding: 20px 30px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  margin: -40px -40px 15px 0px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status-Badge unter Produktnamen */
.product-status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  text-align: center;
  margin-left: 0;
}

.product-status.warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: #f57f17;
}

.product-status.critical {
  background-color: rgba(244, 67, 54, 0.2);
  color: #c62828;
}

/* ========== FORM INPUTS ========== */

.normal-input {
  max-width: none !important;
}

.full-line-label {
  text-transform: none !important;
}

#Fleischverkauf_form input[type="text"],
#Fleischverkauf_form input[type="email"],
#Fleischverkauf_form input[type="tel"],
#Fleischverkauf_form input[type="number"],
#Fleischverkauf_form select,
#Fleischverkauf_form textarea {
  width: 100%;
  max-width: 100% !important;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Arial", sans-serif;
  transition: all 0.3s ease;
  background-color: #fafaf8;
  color: #333;
  box-sizing: border-box;
}

#Fleischverkauf_form .buyer-info input[type="text"],
#Fleischverkauf_form .buyer-info input[type="email"],
#Fleischverkauf_form .buyer-info input[type="tel"],
#Fleischverkauf_form .buyer-info input[type="number"],
#Fleischverkauf_form .buyer-info select,
#Fleischverkauf_form .buyer-info textarea {
  margin-bottom: 20px;
}

#Fleischverkauf_form input[type="text"]:focus,
#Fleischverkauf_form input[type="email"]:focus,
#Fleischverkauf_form input[type="tel"]:focus,
#Fleischverkauf_form input[type="number"]:focus,
#Fleischverkauf_form select:focus,
#Fleischverkauf_form textarea:focus {
  outline: none;
  border-color: #d59e5b;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(213, 158, 91, 0.1);
}

#Fleischverkauf_form input::placeholder,
#Fleischverkauf_form textarea::placeholder {
  color: #999;
}

#Fleischverkauf_form select {
  cursor: pointer;
}

/* ========== TEXTAREA ========== */

#Fleischverkauf_form textarea {
  resize: vertical;
  min-height: 120px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== INTRO TEXT ========== */

.fleischverkauf-intro {
  background: white;
  padding: 35px !important;
  color: #333;
  border-radius: 8px;
  line-height: 1.9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: justify;
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.3px;
}

.fleischverkauf-intro strong {
  color: #d59e5b;
  font-weight: 600;
}

.fleischverkauf-intro strong.next-slaughter-date {
  display: block;
  text-align: center;
  font-size: 1.25rem;
}

/* ========== STATUS MESSAGES ========== */

.fleischverkauf-pausiert {
  background-color: #ffe6e6 !important;
  border: 2px solid #e64444 !important;
  color: #c62828 !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  margin: 15px 0 !important;
  font-size: 1rem !important;
  font-weight: 600;
}

.formular-dsgvo-text {
  background-color: #f5f5f5;
  color: #333;
  padding: 20px;
  border-left: 4px solid #d59e5b;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 60px 0 0 0;
  box-shadow: 0 0 5px 2.5px rgba(0, 0, 0, 0.25) inset;
}

.formular-dsgvo-text a {
  color: #d59e5b;
  font-weight: 600;
  text-decoration: underline;
}

.formular-dsgvo-text a:hover {
  color: #d9923c;
}

/* ========== CHECKBOXES ========== */

#Fleischverkauf_form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #d59e5b;
  margin-right: 10px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

#Fleischverkauf_form input[type="checkbox"]:hover {
  accent-color: #d9923c;
  transform: scale(1.1);
}

#Fleischverkauf_form label[style*="display: block"] {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
  font-weight: 500;
}

#checkbox-wrapper {
  color: #333;
  padding: 20px;
}

#checkbox-wrapper label {
  display: block;
  margin: 15px 0;
  font-weight: 500;
  padding-left: 35px;
  position: relative;
}

#checkbox-wrapper label input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 2px;
}

/* ========== TABLE LEGEND ========== */
.table-explanation {
  margin: 20px 0;
  padding: 20px;
  background-color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  border-left: 4px solid #d59e5b;
  border-radius: 8px;
  box-shadow: 0 0 5px 2.5px rgba(0, 0, 0, 0.25) inset;
}

.table-explanation-content {
  padding-left: 10px;
}

/* ========== TABLE STYLES ========== */

#fleischverkauf table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  color: #333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.27);
  table-layout: auto;
}

#fleischverkauf table thead {
  background: linear-gradient(135deg, #37384d 0%, #4a4b63 100%);
  color: white;
}

#fleischverkauf table th {
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#fleischverkauf table td {
  padding: 16px 14px;
  border: 1px solid #e8e8e8;
  text-align: center;
  font-size: 0.95rem;
  vertical-align: middle;
  height: 60px;
}

#fleischverkauf table tbody tr {
  transition: all 0.2s ease;
  background-color: white;
}

.unit {
  color: #37384d;
  font-size: 1rem;
  width: auto;
  text-align: left;
  margin: 0;
  display: inline;
  padding: 0 8px;
}

.td-flex {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

/* Price Cell Styling */
.price-cell {
  text-align: right;
  padding-right: 12px;
  padding-left: 8px;
  min-width: 90px;
}

/* Input + Unit Group */
.input-unit-group {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.input-unit-group span {
  width: 40px;
  text-align: left;
  white-space: nowrap;
  font-size: 0.95rem;
}

#fleischverkauf table input[type="number"],
#fleischverkauf table input[type="text"] {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  background: white;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  box-sizing: border-box;
}

#fleischverkauf table input[type="number"]:focus,
#fleischverkauf table input[type="text"]:focus {
  outline: none;
  border-color: #d59e5b;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(213, 158, 91, 0.1);
}

#fleischverkauf table input[type="number"] {
  width: 100px;
  max-width: 100px;
  min-width: 60px;
}

#fleischverkauf table input[type="text"] {
  width: auto;
  max-width: 180px;
  min-width: 120px;
}

#fleischverkauf table input:disabled {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ========== WARNING & CRITICAL STATES ========== */

.item-warning {
  background: white;
  opacity: 1;
}

.item-critical {
  background: rgba(244, 67, 54, 0.08);
  opacity: 1;
}

.item-critical input[type="number"],
.item-critical input[type="text"] {
  background-color: #e8e8e8;
  border-color: #bbb;
  color: #999;
  cursor: not-allowed;
}

/* ============================================
   === Notes Section ===
   ============================================ */
.note-section {
  margin-top: 60px;
  margin-bottom: 60px;
}
#note {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 5px 2.5px rgba(0, 0, 0, 0.25) inset;
  box-sizing: border-box;
}

/* ========== BUTTON STYLES ========== */

#Fleischverkauf_form button:not(.clear-user-btn),
#Fleischverkauf_form input[type="submit"] {
  width: 100%;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  border: none;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(213, 158, 91, 0.3);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#Fleischverkauf_form button:not(.clear-user-btn):hover,
#Fleischverkauf_form input[type="submit"]:hover {
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 158, 91, 0.4);
}

#Fleischverkauf_form button:not(.clear-user-btn):active,
#Fleischverkauf_form input[type="submit"]:active {
  transform: translateY(0);
}

/* ========== FLYER SECTION ========== */

/* Gleichmachung der Höhe für fleischverkauf_intro und fleischverkauf-flyer */
#fleischverkauf .row {
  display: flex;
  flex-wrap: wrap;
}

#fleischverkauf .row > div {
  display: flex;
  flex-direction: column;
}

.fleischverkauf-intro,
.fleischverkauf-flyer {
  flex: 1;
}

.fleischverkauf-flyer {
  text-align: center;
  padding: 30px !important;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.fleischverkauf-flyer:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.fleischverkauf-flyer img {
  max-height: 350px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto 30px;
}

.fleischverkauf-flyer img:hover {
  transform: scale(1.03);
}

.fleischverkauf-flyer .download-button {
  display: block;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  border: none;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  text-shadow: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(213, 158, 91, 0.3);
  text-align: center;
}

.fleischverkauf-flyer .download-button:hover {
  color: #000;
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 158, 91, 0.4);
}

/* ========== RESPONSIVE DESIGN ========== */

/*
  === RESPONSIVE DESIGN ===
*/
@media (max-width: 770px) {
  #fleischverkauf {
    padding: 0;
  }

  #Fleischverkauf_form {
    max-width: 100% !important;
    margin: 65px auto 0 !important;
    padding: 20px !important;
    border-radius: 0;
    box-sizing: border-box;
  }

  #fleischverkauf form legend {
    margin: -20px -20px 15px -20px;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Standardisierte Input-Abstände - ONLY für buyer-info (außerhalb Tabelle) */
  #Fleischverkauf_form .buyer-info input[type="text"],
  #Fleischverkauf_form .buyer-info input[type="email"],
  #Fleischverkauf_form .buyer-info input[type="tel"],
  #Fleischverkauf_form .buyer-info input[type="number"],
  #Fleischverkauf_form .buyer-info select,
  #Fleischverkauf_form .buyer-info textarea {
    margin-bottom: 20px !important;
  }

  /* ===== RESPONSIVE TABLE ===== */
  #fleischverkauf table {
    font-size: 0.85rem;
    display: block;
    overflow-x: visible;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  #fleischverkauf table thead {
    display: none;
  }

  #fleischverkauf table tbody {
    display: block;
  }

  #fleischverkauf table tbody tr {
    display: block;
    border: 1px solid #d0d0d0;
    margin-bottom: 28px;
    border-radius: 6px;
    padding: 0;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  }

  #fleischverkauf table tbody tr:nth-child(even) {
    background: #f9f9f9;
  }

  #fleischverkauf table tbody tr:nth-child(odd) {
    background: white;
  }

  #fleischverkauf table tbody tr:hover {
    background: #f5f5f5;
    border-color: #bbb;
  }

  /* Base td styling */
  #fleischverkauf table td {
    display: block;
    text-align: left;
    padding: 0 10px;
    border: none !important;
    margin-bottom: 16px;
    height: auto;
  }

  /* Nicht-first-child td - zusätzlich 10px padding-right + margin-left für Einrückung */
  #fleischverkauf table td:not(:first-child) {
    padding-right: 20px;
    margin-left: 20px;
  }

  #fleischverkauf table td:last-child {
    margin-bottom: 25px;
  }

  /* ALL Labels - BLOCK before */
  #fleischverkauf table td:before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #37384d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
  }

  /* First td (Product Name) - NO LABEL */
  #fleischverkauf table td:first-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 18px;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  #fleischverkauf table td:first-child:before {
    display: none !important;
  }

  #fleischverkauf table td:first-child strong {
    font-size: 1.05rem;
    display: block;
    font-weight: 600;
    padding: 0;
    margin: 0;
  }

  #fleischverkauf table td:first-child .product-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    margin: 6px 0 0 10px;
  }

  /* Price cell - FLEX inline */
  .price-cell {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 0;
    margin-left: 10px;
    line-height: 1.2;
    padding: 0 10px;
  }

  .price-cell:before {
    content: attr(data-label);
    font-weight: 600;
    color: #37384d;
    font-size: 0.75rem;
    display: inline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
    padding: 0;
  }

  .price-cell strong {
    font-weight: 400;
    font-size: 0.85rem;
    white-space: nowrap;
    line-height: 1.2;
  }

  /* Input unit group - flex inline */
  .input-unit-group {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    display: flex;
    padding: 0;
    margin: 0 0 12px 10px;
  }

  .input-unit-group input {
    font-size: 0.85rem;
    width: 80px !important;
    max-width: 50% !important;
    height: auto;
    padding: 6px 8px !important;
    flex-shrink: 0;
  }

  .input-unit-group span {
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Bemerkung field input */
  #fleischverkauf table td[data-label="Bemerkung"] input[type="text"] {
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    margin: 0 0 0 10px !important;
  }

  #fleischverkauf table input[type="text"] {
    font-size: 0.85rem;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1024px) {
  #fleischverkauf form {
    padding: 0 30px 30px 30px;
  }

  #fleischverkauf form legend {
    margin: -30px -30px 15px -30px;
    padding: 16px 24px;
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  #fleischverkauf {
    padding: 0;
  }

  #fleischverkauf.container {
    width: 100% !important;
    margin: 0 !important;
  }

  #fleischverkauf .row {
    margin: 0 !important;
    padding: 0 !important;
  }

  #main-banner #fleischverkauf .col-6,
  #main-banner #fleischverkauf .col-4,
  #main-banner #fleischverkauf .col-2 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #fleischverkauf form {
    padding: 0 30px 30px 30px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #fleischverkauf form legend {
    margin: -30px -30px 15px -30px;
    padding: 16px 24px;
    font-size: 20px;
  }
}

@media (max-width: 660px) {
  #fleischverkauf {
    padding: 0;
  }

  #main-banner [class*="col-"] {
    padding: 0 !important;
  }

  #fleischverkauf.container {
    width: 100% !important;
    margin: 0 !important;
  }

  #fleischverkauf .row {
    margin: 0 !important;
    padding: 0 !important;
  }

  #main-banner #fleischverkauf .col-6,
  #main-banner #fleischverkauf .col-4,
  #main-banner #fleischverkauf .col-2 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #fleischverkauf form {
    padding: 0 18px 18px 18px;
    max-width: 100%;
    margin: 10px auto 0;
    box-sizing: border-box;
  }

  #Fleischverkauf_form {
    box-sizing: border-box;
  }

  #fleischverkauf form legend {
    margin: -18px -18px 15px -18px;
    padding: 12px 14px;
    font-size: 15px;
  }
}

@media (max-width: 650px) {
  #fleischverkauf {
    padding: 0;
  }

  #main-banner [class*="col-"] {
    padding: 0 !important;
  }

  #fleischverkauf.container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #fleischverkauf .row {
    margin: 0 !important;
    padding: 0 !important;
  }

  #main-banner #fleischverkauf .col-6,
  #main-banner #fleischverkauf .col-4,
  #main-banner #fleischverkauf .col-2 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #fleischverkauf form {
    padding: 0 5px 5px 5px;
    max-width: 100%;
    margin: 20px auto 0;
    box-sizing: border-box;
  }

  #Fleischverkauf_form {
    padding: 0 5px 10px 5px;
    max-width: 100% !important;
    margin: 65px auto 0 !important;
    border-radius: 0;
  }

  #fleischverkauf form legend {
    margin: 0 -5px 15px -5px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .normal-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  #fleischverkauf table th {
    padding: 5px 1px;
    font-size: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal;
    min-width: 0;
    width: auto;
    max-width: 65px;
  }

  #Fleischverkauf_form legend {
    margin-bottom: 15px;
  }

  .logged-in-status {
    flex-direction: column;
    padding: 12px 14px;
    margin-bottom: 40px;
  }

  .logged-in-text {
    font-size: 0.85rem;
  }

  .clear-user-btn {
    font-size: 0.7rem;
  }

  #main-banner #fleischverkauf .intro-container h1 {
    font-size: 1.8rem;
  }

  .fleischverkauf-intro {
    padding: 12px;
    font-size: 0.8rem;
    text-align: left;
  }

  .fleischverkauf-flyer {
    margin-top: 20px;
    padding: 15px;
  }

  .fleischverkauf-flyer img {
    max-height: 250px;
  }

  #checkbox-wrapper label {
    font-size: 0.85rem;
    margin: 12px 0;
    line-height: 1.4;
  }

  .formular-dsgvo-text {
    padding: 10px 12px;
    font-size: 0.75rem;
    border-left: 3px solid #d59e5b;
  }

  #Fleischverkauf_form button,
  #Fleischverkauf_form input[type="submit"] {
    padding: 11px 16px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .note-section {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  #note {
    min-height: 100px;
  }
}

@media (max-width: 550px) {
  .normal-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  #Fleischverkauf_form input[type="text"],
  #Fleischverkauf_form input[type="email"],
  #Fleischverkauf_form input[type="tel"],
  #Fleischverkauf_form input[type="number"],
  #Fleischverkauf_form select,
  #Fleischverkauf_form textarea {
    width: 100% !important;
    max-width: 100% !important;
  }

  #fleischverkauf form input[type="text"],
  #fleischverkauf form input[type="email"],
  #fleischverkauf form input[type="tel"],
  #fleischverkauf form input[type="number"],
  #fleischverkauf form select {
    width: 100% !important;
    max-width: 100% !important;
  }

  #fleischverkauf table {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    table-layout: fixed;
    font-size: 0.7rem;
  }

  .price-cell {
    font-size: 0.75rem;
    padding-right: 10px;
    padding-left: 10px;
    margin-left: 10px;
  }

  .input-unit-group {
    gap: 2px;
    margin-left: 10px;
  }

  /* Alle non-first-child td einrücken wie inputs */
  #fleischverkauf table td:not(:first-child) {
    margin-left: 10px;
  }

  .input-unit-group span {
    font-size: 0.75rem;
  }

  #fleischverkauf table th,
  #fleischverkauf table td {
    padding: 6px 10px 6px 10px !important;
  }

  #fleischverkauf table input[type="number"] {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 50% !important;
  }

  #fleischverkauf table input[type="text"] {
    width: auto !important;
    max-width: 80% !important;
  }
}

@media (max-width: 480px) {
  #main-banner #fleischverkauf .intro-container h1 {
    font-size: 1.5rem;
  }

  #fleischverkauf form {
    padding: 14px;
    margin: 65px auto 0;
  }

  #Fleischverkauf_form {
    padding: 0 14px 14px 14px;
    max-width: 100% !important;
    margin: 0px auto 0 !important;
  }

  #fleischverkauf form legend {
    margin: -14px -14px 15px -14px;
    padding: 10px 12px;
    font-size: 13px;
  }

  #fleischverkauf form input[type="text"],
  #fleischverkauf form input[type="email"],
  #fleischverkauf form input[type="tel"],
  #fleischverkauf form select {
    font-size: 16px;
    width: 100%;
    max-width: 100%;
  }

  .fleischverkauf-intro {
    padding: 10px;
    font-size: 0.75rem;
  }

  .fleischverkauf-flyer img {
    max-height: 200px;
  }

  .download-button {
    padding: 10px 16px;
    font-size: 13px;
  }

  #fleischverkauf table {
    font-size: 0.7rem;
    margin: 10px 0;
  }

  #fleischverkauf table th {
    padding: 6px 3px;
    font-size: 0.65rem;
  }

  #fleischverkauf table td {
    padding: 6px 10px 6px 10px;
    font-size: 0.75rem;
    height: 40px;
  }

  #fleischverkauf table td:not(:first-child) {
    margin-left: 10px;
  }

  .price-cell {
    margin-left: 10px;
  }

  .input-unit-group {
    margin-left: 10px;
  }

  #fleischverkauf table input[type="number"] {
    width: 100px !important;
    min-width: 100px !important;
    padding: 4px 3px;
  }

  #fleischverkauf table input[type="text"] {
    max-width: 80px;
    width: auto;
    padding: 4px 3px;
  }

  .unit {
    font-size: 0.65rem;
  }
}

@media (max-width: 380px) {
  #fleischverkauf form {
    padding: 0 12px 12px 12px;
  }

  #fleischverkauf form legend {
    margin: -12px -12px 15px -12px;
    font-size: 12px;
  }

  #fleischverkauf table td {
    padding: 5px 10px 5px 10px;
    height: 38px;
  }

  #fleischverkauf table td:not(:first-child) {
    margin-left: 10px;
  }

  .price-cell {
    margin-left: 10px;
  }

  .input-unit-group {
    margin-left: 10px;
  }

  #fleischverkauf table input[type="number"] {
    width: 80px !important;
    min-width: 80px !important;
    padding: 4px 3px;
  }

  #fleischverkauf table input[type="text"] {
    max-width: 75px;
    width: auto;
  }
}

/* ========== FLEISCHVERKAUF SUCCESS PAGE STYLES ========== */

.success-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 40px;
  margin: 0px auto 45px;
  max-width: 90%;
  width: 100%;
  animation: slideUp 0.5s ease-out;
}

.success-container h2 {
  color: #37384d;
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
}

.success-message {
  background-color: #e8f5e9;
  border: 2px solid #4caf50;
  color: #2e7d32;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  margin: 20px 0;
  text-align: center;
}

.order-summary {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  margin: 30px 0;
}

.order-summary h3 {
  color: #37384d;
  margin-top: 0;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0 55px;
}

.order-info-item {
  background: white;
  padding: 15px;
  border-radius: 6px;
  border-left: 3px solid #d59e5b;
}

.order-info-item strong {
  color: #37384d;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-info-item span {
  color: #555;
  font-size: 1.05rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.items-table thead {
  background: linear-gradient(135deg, #37384d 0%, #4a4b63 100%);
  color: white;
}

.items-table th {
  padding: 15px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.items-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.items-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.items-table tbody tr:hover {
  background-color: #f0f0f0;
}

.next-steps {
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
  border: 2px solid #fbc02d;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  color: #f57f17;
}

.next-steps h3 {
  color: #f57f17;
  margin-top: 0;
}

.next-steps ul {
  padding-left: 20px;
  margin: 15px 0;
}

.next-steps li {
  margin: 10px 0;
  line-height: 1.6;
}

.cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}

.cta-button {
  display: inline-block;
  padding: 16px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta-button-primary {
  background: linear-gradient(135deg, #d59e5b 0%, #d9923c 100%);
  color: #37384d;
  box-shadow: 0 4px 12px rgba(213, 158, 91, 0.3);
}

.cta-button-primary:hover {
  background: linear-gradient(135deg, #d9923c 0%, #cc7a28 100%);
  transform: translateY(-2px);
  color: #37384d !important;
  box-shadow: 0 6px 20px rgba(213, 158, 91, 0.4);
}

.cta-button-secondary {
  background: #37384d;
  color: white;
  box-shadow: 0 4px 12px rgba(55, 56, 77, 0.3);
}

.cta-button-secondary:hover {
  background: #4a4b63;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(55, 56, 77, 0.4);
}

.contact-info {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
  color: #666;
}

.contact-info p {
  margin: 10px 0;
}

.contact-section {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border: 2px solid #d59e5b;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}

.contact-section h3 {
  color: #37384d;
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-section p {
  color: #666;
  margin: 15px 0;
  line-height: 1.6;
}

.contact-options {
  display: flex;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.contact-options a {
  flex: 1;
  min-width: 220px;
}

@media (max-width: 600px) {
  .success-container {
    padding: 20px;
    margin: 30px auto 0;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    grid-template-columns: 1fr;
  }

  .items-table th,
  .items-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}
