/* =========================================
   Globaler Reset und Basisstile
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  display: flex; 
  flex-direction: column; 
}
html, body {
  height: 100%;
  margin: 0;
}
.content {
  padding-bottom: 60px;  /* = 40px Footer + 20px frei drüber */
}
.main-wrapper {
  flex: 1;
}
/* =========================================
   Header
   ========================================= */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-left .logo { height: 50px; }
.header-center {
  display: flex;
  align-items: center;
}
.header-center .categories {
  list-style: none;
  display: flex;
}
.header-center .categories li {
  margin-right: 15px;
}
.header-center .categories li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.header-center .categories li a:hover {
  color: #e20014;
}
.search-form {
  margin-left: 15px;
}
.search-form input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.header-right {
  display: flex;
  align-items: center;
}
.user-greeting {
  margin-right: 15px;
  font-weight: bold;
}

/* =========================================
   Dropdowns (Account & Cart)
   ========================================= */
.account-dropdown img,
.cart-dropdown img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.account-dropdown,
.cart-dropdown {
  position: relative;
  margin-left: 15px;
}
.account-dropdown .dropdown-menu,
.cart-dropdown .dropdown-cart-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  transition-delay: 0.2s;
  z-index: 1000;
}
.account-dropdown:hover .dropdown-menu,
.account-dropdown .dropdown-menu:hover,
.cart-dropdown:hover .dropdown-cart-menu,
.cart-dropdown .dropdown-cart-menu:hover {
  opacity: 1;
  visibility: visible;
  transition-delay: 0;
}
.dropdown-menu,
.dropdown-cart-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: #e20014;
  color: #fff;
}
.dropdown-cart-menu {
  padding: 10px;
  min-width: 250px;
}
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.cart-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.cart-item-info {
  margin-left: 5px;
  font-size: 0.85em;
}
.cart-item-info .cart-item-name {
  font-weight: bold;
}
.cart-actions {
  text-align: center;
  margin-top: 10px;
}
.cart-actions a {
  display: inline-block;
  text-decoration: none;
  background: #e20014;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.9em;
}
.cart-actions a:hover {
  background: #c10012;
}

/* =========================================
   Einheitliche Container
   ========================================= */
.cart-container,
.orders-container,
.order-detail-container,
.product-detail-container,
.login-container,
.register-container,
.no-orders {
  background: #fff;
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

/* =========================================
   Produktgrid (Shop-Übersicht)
   ========================================= */
.product-grid {
  display: flex;
  grid-template-columns: repeat(4, 1fr);
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.product-item {
  background: #fff;
  border-radius: 8px;
  width: 240px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.product-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.product-item h3 {
  margin: 10px 0;
  font-size: 1.1em;
}
.product-item p.price {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
}
.product-item button {
  background: #e20014;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.product-item button:hover {
  background: #c10012;
}

/* =========================================
   Zwei-Spalten-Layout Produktdetail
   ========================================= */
.product-detail-container {
  text-align: left;
}
.product-detail {
  display: flex;
  gap: 20px;
}
/* Linke Spalte: Bild + FBT */
.left-column {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
}
/* Rechte Spalte: Details & Bestellen */
.description {
  flex: 1;
}

/* -----------------------------------------
   Hauptbild größer & zentriert
   ----------------------------------------- */
.left-column .image-container {
  display: flex;
  justify-content: center;
}
.left-column .image-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.left-column .image-container:hover img {
  transform: scale(1.02);
}

/* -----------------------------------------
   Modal für Bild-Großansicht
   ----------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-backdrop.active {
  display: flex;
}
.modal-content {
  position: relative;
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
}
.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e20014;
  color: #fff;
  border: none;
  font-size: 1.2em;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================================
   Häufig zusammen gekauft (FBT)
   ========================================= */
.fbt-container {
  width: 100%;
  margin: 20px 0;  
  padding: 15px;
  border-radius: 8px;
}
.fbt-container h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
}
.fbt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 50%;
}
.fbt-item {
  width: calc((100% - 30px)/2);
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.fbt-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
}
.fbt-item input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}
.fbt-add-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: 1em;
  background: #e20014;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.fbt-add-button:hover {
  background: #c10012;
}
/* --------------------------------------------------
   Beschreibung: Menge-Input & Button wieder stylen
   -------------------------------------------------- */
.description form input[type="number"] {
  width: 70px;
  padding: 6px;
  margin-right: 10px;
  border-radius: 4px;
}

.description form button {
  background: #e20014;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.description form button:hover {
  background: #c10012;
}

/* --------------------------------------------------
   „Häufig zusammen gekauft“: noch mehr Abstand
   -------------------------------------------------- */
.fbt-list {
  gap: 50px;  /* vorher 30px, jetzt großzügiger */
}

.fbt-item {
  width: calc((100% - 50px) / 2);
}
/* -----------------------------------
   FBT-Items: Checkbox über dem Bild,
   Name in einer Zeile, dann Preis
   ----------------------------------- */
.fbt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;             /* großzügiger Abstand */
  width: 50%;            /* bleibt unter Bildbreite */
}

.fbt-item {
  flex: 0 0 calc((100% - 50px)/2);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Checkbox oben */
/* Checkbox in den FBT-Items noch etwas höher ziehen */
.fbt-item > input[type="checkbox"] {
  transform: scale(1.2);
  position: relative;
  top: -18px;    /* nach oben verschieben */
  margin-bottom: 200px;  /* Abstand zum Bild etwas vergrößern */
}

/* Bild mittig */
.fbt-item label img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 8px;
}

/* Name in einer Zeile */
.fbt-name {
  order: 2;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-bottom: 4px;
}

/* Preis darunter */
.fbt-price {
  order: 3;
  color: #555;
}

/* Den Label-Container komplett vertikal stapeln */
.fbt-item label {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* =========================================
   Warenkorb-Seite (cart.php)
   ========================================= */

/* Container */
.cart-container {
  background: #fff;
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.cart-container h2 {
  margin-bottom: 20px;
}

/* Erfolgsmeldung */
.success-msg {
  color: #2a7d2a;
  margin-bottom: 20px;
}

/* Gutscheincode-Formular */
.coupon-form {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.coupon-form input[type="text"] {
  width: 80%;
  padding: 14px 20px;
  font-size: 1.2em;
  border: 2px solid #e20014;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.coupon-form input[type="text"]:focus {
  border-color: #c10012;
}
.coupon-form button {
  background: #e20014;
  color: #fff;
  border: 2px solid #e20014;
  border-left: none;
  padding: 14px 24px;
  font-size: 1em;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.coupon-form button:hover {
  background: #c10012;
  border-color: #c10012;
}
.coupon-error {
  color: #e20014;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: center;
}

/* Warenkorb-Tabelle */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.cart-table th,
.cart-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
}
.cart-table th {
  background: #fafafa;
}
.cart-table tfoot tr td {
  background: #fafafa;
}

/* Entfernen-Button */
.remove-col {
  width: 40px;
}
.remove-button {
  background: transparent;
  border: none;
  color: #c10012;
  font-size: 1.2em;
  cursor: pointer;
}
.remove-button:hover {
  color: #e20014;
}

/* Produkt-Bild in Tabelle */
.cart-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.cart-thumb-placeholder {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* Name und Menge */
.cart-name {
  text-align: left;
  padding-left: 10px;
}
.quantity-input {
  width: 60px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Preise */
.unit-price,
.row-total,
.discount {
  font-weight: bold;
}
.right-align {
  text-align: right;
}

/* Aktionen unter der Tabelle */
.cart-page-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cart-continue-button,
.cart-order-button {
  flex: 1;
  text-decoration: none;
  background: #e20014;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
    /* Schrift vereinheitlichen */
  font-family: inherit;            /* erbt die gleiche Schrift wie der umgebende Text */
  font-size: 1rem;                 /* entspricht normalerweise 16px, kannst du anpassen */
  line-height: 1.5;                /* sorgt für einen guten Zeilenabstand */
}
.cart-continue-button:hover,
.cart-order-button:hover {
  background: #c10012;
}

/* =========================================
   Login-Seite zentrieren und Logo skalieren
   ========================================= */

/* Body als Flex-Container, um die Box mittig zu setzen */

/* Wrapper */
.login-wrapper1 {
  background: #fff;
  width: 100%;
  max-width: 360px;   /* etwas schmaler */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
   position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Logo */
.login-logo1 img {
  max-width: 120px;   /* kleineres Logo */
  margin: 0 auto 15px;
  display: block;
}

/* Überschrift */
.login-wrapper1 h1 {
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #333;
}

/* Formularfelder */
.login-wrapper1 form {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.login-wrapper1 label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.login-wrapper1 input[type="email"],
.login-wrapper1 input[type="password"] {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* Einloggen-Button */
.login-wrapper1 button {
  padding: 12px;
  background: #e20014; /* kräftiges Rot */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}
.login-wrapper1 button:hover {
  background: #c10012;
}

/* Fehlermeldungen */
.error-messages1 {
  background: #ffe6e6;
  border: 1px solid #f5c2c2;
  color: #a94442;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: left;
}
.error-messages1 ul {
  list-style: none;
  padding-left: 0;
}
.error-messages1 li {
  margin-bottom: 5px;
}

/* Registrieren-Link */
.login-wrapper1 p {
  margin-top: 15px;
  font-size: 0.9em;
}
.login-wrapper1 a {
  color: #e20014;
  text-decoration: none;
}
.login-wrapper1 a:hover {
  text-decoration: underline;
}

/* =========================================
   Register-Seite (gleiche Styles wie Login)
   ========================================= */


/* Wrapper */
.login-wrapper1 {
  background: #fff;
  width: 100%;
  max-width: 360px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

/* Logo */
.login-logo1 img {
  max-width: 120px;
  margin: 0 auto 15px;
  display: block;
}

/* Überschrift */
.login-wrapper1 h1 {
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #333;
}

/* Formularfelder */
.login-wrapper1 form {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.login-wrapper1 label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.login-wrapper1 input[type="text"],
.login-wrapper1 input[type="email"],
.login-wrapper1 input[type="password"] {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* Primärer Button (Rot) */
.login-wrapper1 button {
  padding: 12px;
  background: #e20014;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}
.login-wrapper1 button:hover {
  background: #c10012;
}

/* Fehler-Box */
.error-messages1 {
  background: #ffe6e6;
  border: 1px solid #f5c2c2;
  color: #a94442;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: left;
}
.error-messages1 ul {
  list-style: none;
  padding-left: 0;
}
.error-messages1 li {
  margin-bottom: 5px;
}

/* Link zum Login */
.login-wrapper1 p {
  margin-top: 15px;
  font-size: 0.9em;
}
.login-wrapper1 a {
  color: #e20014;
  text-decoration: none;
}
.login-wrapper1 a:hover {
  text-decoration: underline;
}

/* Account-Formular */
.account-container {
    background: #fff;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.account-container h1 {
    margin-bottom: 20px;
    font-size: 1.8em;
}
.account-container form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}
.account-container label {
    margin-top: 10px;
    font-weight: bold;
}
.account-container input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
.account-container button {
    padding: 12px;
    background: #e20014;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
}
.account-container button:hover {
    background: #c10012;
}
/* Bemerkung (Checkout-Form) */
.remark-form {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 650px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.remark-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.remark-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  margin-bottom: 15px;
}
.remark-form button {
  display: inline-block;
  background: #e20014;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
.remark-form button:hover {
  background: #c10012;
}
/* --- Gutschein- und Bemerkungsfeld --- */
.coupon-form {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}
.coupon-form .coupon-input {
  width: 80%;
  padding: 14px 20px;
  font-size: 1.2em;
  border: 2px solid #e20014;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.coupon-form .coupon-input:focus {
  border-color: #c10012;
}
.coupon-form .coupon-input::placeholder {
  color: #888;
}
.coupon-form .coupon-button {
  background: #e20014;
  color: #fff;
  border: 2px solid #e20014;
  border-left: none;
  padding: 14px 24px;
  font-size: 1em;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.coupon-form .coupon-button:hover {
  background: #c10012;
  border-color: #c10012;
}

.view-button {
  background: #e20014;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.view-button:hover {
  background: #c10012;
}

.cancel-button {
    display: inline-block;      /* damit <a> und <button> gleich aussehen */
    background: #e20014;        /* euer CI-Rot */
    color: #fff !important;     /* weiße Schrift */
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;      /* Link-Unterstreichung entfernen */
    text-align: center;         
}
.cancel-button:hover {
    background: #c10012;        /* dunkleres Rot beim Hover */
}
/* --- Bestelldetailseite --- */
.order-detail-container {
  text-align: center;
}
.order-detail-container h2 {
  margin-bottom: 20px;
}
.order-detail-container p {
  margin-bottom: 10px;
  font-size: 1em;
  color: #333;
}
.order-detail-container .cart-table {
  margin-top: 20px;
}
.order-detail-container .coupon-form {
  margin-top: 20px;
}
/* Footer-Grundgerüst */
.tnd-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Höhe des Footers exakt festlegen (hier als Beispiel 40px) */
  height: 40px;
  background: #e20014;
  color: #fff;
  padding: 10px 20px;  /* oben+unten 10px, links+rechts 20px */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  z-index: 100;
}

/* Link-Container rechts */
.tnd-footer .footer-links {
  display: flex;
  gap: 20px;
}

.tnd-footer .footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}

.tnd-footer .footer-links a:hover {
  text-decoration: underline;
}

/* Copyright links */
.tnd-footer .footer-copy {
  font-size: 0.9em;
}

/* Logo absolut in die Mitte */
.tnd-footer .footer-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.tnd-footer .footer-logo img {
  max-height: 30px;
  width: auto;
  display: block;
}

/* ====== Mobile (bis 767px) ====== */
@media (max-width: 767px) {
  /* Produkte untereinander */
  .product-grid {
    display: block;
    margin: 0;
  }
  .product-item {
    width: auto;
    margin: 0 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* Header: Suchfeld voller Breite */
  .header-center,
  .search-form {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .search-form input {
    width: 80%;
  }

  /* Warenkorb-Container und Tabellen scrollbar */
  .cart-container,
  .orders-container,
  .order-detail-container {
    padding: 15px;
    margin: 20px 10px;
  }
  .cart-table,
  .orders-table,
  .order-detail-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Gutschein- und Bemerkungsfeld volle Breite */
  .coupon-form {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  .coupon-form .coupon-input,
  .coupon-form .coupon-button {
    width: 100%;
    border-radius: 4px;
  }
  .coupon-form .coupon-button {
    border-left: 2px solid #e20014;
  }

  /* Buttons im Cart untereinander */
  .cart-page-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .cart-continue-button,
  .cart-order-button {
  font-size: 16px;      /* oder 1rem, je nach eurer Basis-Schriftgröße */
  line-height: 1.4;     /* sorgt für gleichmäßigen Zeilenabstand */
  padding: 0.75em 1.5em; /* gleicht auch die Innenabstände an */
  display: inline-block; /* stellt sicher, dass es bei <a> und <button> gleich ist */
}

  /* Footer mobil: Logo etwas kleiner, Links zentriert */
  .tnd-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }
  .tnd-footer .footer-logo img {
    max-height: 24px;
  }
  .tnd-footer .footer-links {
    justify-content: center;
  }
}
.cart-note {
  text-align: left;
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}

.cart-page-idea {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

.cart-page-idea h1 {
  font-size: 1.5rem;
  color: #e20014;
  margin-bottom: .5rem;
}

.cart-page-idea p {
  margin-bottom: 1rem;
}

.idea-input {
  width: 100%;
  padding: .75rem;
  border: 2px solid #e20014;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.success-msg {
  background: #e0ffe0;
  border: 1px solid #0a0;
  padding: .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.idea-cart {
  text-align: center;
  margin: 2rem 0;
}

.idea-cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border: 2px solid #e20014;
  border-radius: 4px;
  color: #e20014;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: background .2s, color .2s;
}

.idea-cart-button .idea-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.idea-cart-button:hover {
  background: #e20014;
  color: #fff;
}

/* 3) Spezifisches Styling fürs Ideen-Kästchen */
.product-item.idea-item {
  cursor: pointer;
}
.product-item.idea-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}
.product-item.idea-item .idea-icon {
  font-size: 2.5rem;
  color: #e20014;
  margin-bottom: 0.5rem;
}
.product-item.idea-item h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.product-item.idea-item .idea-text {
  font-size: 0.95rem;
  margin: 0 0 1rem; /* Abstand nach unten */
  line-height: 1.4;
}
.product-item.idea-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.download-button {
  display: inline-block;
  padding: .5rem 1rem;
  background: #e20014;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
.download-button:hover {
  background: #c10012;
}
/* Ansicht „Meine Bestellungen“ */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.orders-table th,
.orders-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
}

.orders-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

/* Einheitliche Button-Klassen */
.btn {
  display: inline-block;
  background: #e20014;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.5;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #c10012;
}

/* Formular-Button inline neben Link */
.inline-form {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
}

/* Sonderfarbe für Storno-Button */
.cancel-btn {
  background: #555;
}

.cancel-btn:hover {
  background: #333;
}
/* =========================================
   Ansicht „Meine Bestellungen“ (view_orders.php)
   ========================================= */
.content h1 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.orders-table th,
.orders-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.orders-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.orders-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* Aktion-Spalte: Buttons und Links */
.orders-table .btn,
.orders-table .cancel-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.orders-table .btn {
  background: #e20014;
  color: #fff;
  margin-right: 0.5rem;
}

.orders-table .btn:hover {
  background: #c10012;
}

.orders-table .cancel-btn {
  background: #555;
  color: #fff;
}

.orders-table .cancel-btn:hover {
  background: #333;
}

/* Inline-Form für Storno-Button */
.inline-form {
  display: inline-block;
  margin: 0;
}

/* Admin Dashboard */
.admin-container {
  background: #fff;
  margin: 30px auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 1000px;
}

.admin-container h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #333;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}

.admin-menu a {
  background: #e20014;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.admin-menu a:hover {
  background: #c10012;
}

.admin-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: left;
}

.admin-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.admin-table td.right {
  text-align: right;
}

.btn.small {
  background: #e20014;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
}

.btn.small:hover {
  background: #c10012;
}
