/* Basis */
* { box-sizing: border-box; }
:root { --brand:#5E7244; --bg:#ffffff; --panel:#e8ede1; }
body {
  font-family: "Didact Gothic", sans-serif;
  margin: 20px;
  background-color: var(--bg);
  color: var(--brand);
}
h1 { margin-bottom: 16px; }
.muted { color:#686b65; font-size: 0.95rem; }

/* === Grid-Layout: 1 / 2 Spalten oben === */
#container {
  display: grid;
  grid-template-columns: 1fr;         /* mobil: 1 Spalte */
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  #container { grid-template-columns: 1fr 1fr; } /* 2 Spalten */
}

.column {
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
}

/* Grids für Form */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Viewer (oben) */
#stlViewer {
  width: 100%;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
}

/* Form & Controls */
label { font-weight: bold; margin-top: 10px; display: block; }
select, input, button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
}
button {
  background-color: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
button:hover { filter: brightness(0.95); }
.actions { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.price { font-size: 20px; font-weight: bold; text-align: center; margin-top: 15px; color: #333; }

.panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

/* Cart Table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.cart-table th, .cart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
  color:#333;
}
.cart-table th { background: #f7f7f7; }
.cart-table tr:last-child td { border-bottom: none; }

.total { margin-top:8px; font-weight:700; color:#333; }

/* Full-width Checkout-Bereich (anfangs versteckt) */
#checkoutContainer { margin-top: 20px; display:none; }
#checkoutColumn { background: var(--panel); border-radius: 8px; padding: 20px; }
#checkoutContainer.is-open { display:block; }
