body {
  font-family: system-ui, Arial, sans-serif;
  margin: 20px;
  background: #f7f7f7;
  color: #222;
}

h1,
h2 {
  margin-top: 0;
}
h1 {
  text-align: center;
}



.topmenu {
    display: grid;
    grid-template-columns: repeat(5, 1fr) 380px;
    gap: 14px;
    margin-bottom: 20px;
    margin-left:50px;
    align-items: center;
    font-size: 1.5em;
}
.topmenu span {
    text-align: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.topmenu span:hover {
    background: #222;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.topmenu span.active {
    background: #222;
    color: white;
}

.Starttext{
background-color: rgb(14, 229, 36);
  color: #666;
  font-size: 2em;
}


.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
  /*background-color: blue;   */
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

img {
  max-width: 120px;
  max-height: 150px;
  border-radius: 8px;
  display: block;
}

button {
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #f3f3f3;
}

button:hover {
  background: #e9e9e9;
}

.muted {
  color: #666;
  font-size: 0.9em;
  margin-top: 10px;
}

.qty {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.qty-box {
  min-width: 24px;
  text-align: center;
}

.totals {
  font-weight: 700;
}

.danger {
  color: #b00020;
}

/* Artikelbereich */
.articles-list {
  background: #f3f3f3;
  padding: 10px;
  border-radius: 10px;
}

.article-card {
  margin-bottom: 12px;
}

.article-frame {
  display: flex;
  align-items: stretch;
  gap: 12px;
  /*  min-height: 210px;   */
}

.article-image-box {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.article-text-box {
  display: flex;
  flex-direction: column;
  gap: 12px;  /*12px*/
  /* flex: 1;  */
  flex: 0 0 300px;
  /*min-width: 220px;  */

}

.article-cart-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center; 
  justify-content: flex-start;
  min-width: 150px;
}

.article-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.article-meta {
  margin-top: 0;
}

.article-price {
  margin-top: 6px;
  font-weight: 700;
  font-size: 1rem;
}

.article-cart-info {
  text-align: center;
  margin-top: 0;
}

.cart-add-btn {
  padding: 8px 12px;
  min-width: 140px;
}

/* Warenkorb */
.cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cart-row-left {
  min-width: 0;
}

.cart-row-title {
  font-weight: 700;
}

.cart-row-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}




/*  ANMELDE MASKE     */
/* =====================================
   CHECKOUT MODAL
===================================== */
.hidden {
  display: none;
}

#dsvgo {
font-weight: thin;
font-size: 0.8rem;
}

#checkoutModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}

.modalBox {
  background: white;
  width: 420px;
  max-width: 90%;
  margin: 60px auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.modalBox h2 {
  margin-top: 0;
  text-align: center;
}

.modalBox label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

.modalBox input {
  width: 100%;
  padding: 9px;
  margin-top: 4px;
  box-sizing: border-box;
}

.modalButtons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modalButtons button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
}
/*  ENDE  ANMELDE MASKE     */

/* ========== CSS FÜR OVERLAY GROSSES BILD ====================== */
.article-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.article-detail-overlay.hidden {
  display: none;
}

.article-detail-modal {
  position: relative;
  background: rgb(235, 164, 164);  /*urspr 255,255,255  */
  width: min(1000px, 90vw);  
  /*max-height: 85vh;*/
  height: 700px;
  display: flex;
  gap: 24px;
  padding: 28px;
  border-radius: 12px;
  overflow: auto;
}

.article-detail-left {
  flex: 2;
  background: rgb(235, 164, 164);
  display: flex;
  justify-content: center;
  align-items: center;
}

.article-detail-left img {
  max-width: 100%;
  max-height: 100%;
  /*max-height: 70vh;  */
  object-fit: contain;
}

.article-detail-right {
  flex: 1;
}

.article-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.article-image-box img {
  cursor: pointer;
}

#articleDetailDescription{
  font-size: 24px;
  white-space: pre-wrap;
}

/* ========== ENDE OVERLAY GROSSES BILD ====================== */
