@charset "utf-8";
/* ==========================================================
   order.css - Styling for the Brennholz order form
   Load AFTER css/style.css, only on brennholz-preise.html
   ========================================================== */

:root {
  --green-900: #1e4d26;
  --green-700: #2e7d32;
  --green-100: #e8f3e9;
  --green-050: #f4faf4;
  --brown-700: #8b5a2b;
  --cream: #fbf8f2;
  --line: #d9e2d6;
  --text: #222;
  --muted: #5d6b5f;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(30, 77, 38, 0.08);
}

/* ---------- Form layout ---------- */
/* Change --form-max to make the form wider (it was 1100px) */
:root { --form-max: 1400px; }

/* Selector is deliberately more specific than ".contentholder-resp form" in
   style.css, which sets max-width:1000px and display:flex */
.contentholder-resp form.order-form {
  display: grid;
  max-width: var(--form-max);
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--cream);
  padding: 1rem;
  border-radius: 20px;
}

@media (min-width: 1000px) {
  .contentholder-resp form.order-form {
    grid-template-columns: 540px 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .order-form .form-footer {
    grid-column: 1 / -1;
  }
}

/* ---------- Cards ---------- */
.order-form .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.order-form .card > h2,
.order-form .product-group > h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--green-100);
}

.order-form .card > h2::before,
.order-form .product-group > h2::before {
  content: "";
  width: 6px;
  height: 1.3em;
  background: var(--green-700);
  border-radius: 3px;
}

/* ---------- Info box ---------- */
.info-box {
  background: var(--green-050);
  border-left: 5px solid var(--green-700);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
}
.info-box p { margin: 0; line-height: 1.6; }
.info-box p + p { margin-top: .2rem; }
.info-box strong { color: var(--green-900); }

/* ---------- Form fields ---------- */
.order-form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--green-900);
  margin-bottom: .3rem;
}

.order-form .field { margin-bottom: 1rem; }

.order-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.order-form .field-row.street-row { grid-template-columns: 2fr 1fr; }
.order-form .field-row.city-row   { grid-template-columns: 1fr 2fr; }

.order-form .field input[type="text"],
.order-form .field input[type="email"],
.order-form .field input[type="tel"] {
  width: 100%;
  height: auto;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #c5d0c3;
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}

.order-form input:focus-visible {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .2);
}

.order-form .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: .8rem;
}

/* ---------- Product groups ---------- */
.products { display: flex; flex-direction: column; gap: 1.5rem; }

.order-form .product-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* override the old flex layout from style.css */
.order-form .inputholder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .9rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.group-image {
  margin: 0 0 1rem;
}
.group-image img {
  border-radius: 10px;
  width: 200px;
  max-width: 100%;
}

/* ---------- Product item cards ---------- */
.order-form .item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .9rem;
  background: var(--green-050);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.order-form .item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.order-form .item.has-qty {
  background: var(--green-100);
  border-color: var(--green-700);
}

.order-form .item-name {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.order-form .item-name .size  { font-size: 1.05rem; }
.order-form .item-name .price-tag {
  font-size: 1.25rem;
  color: var(--green-700);
}
.order-form .item-name .price-tag small {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
}

.order-form .hideitem { display: none; }

/* quantity stepper */
.qty-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stepper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #c5d0c3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 2.6rem;
  border: 0;
  background: #fff;
  color: var(--green-700);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.stepper button:hover,
.stepper button:focus-visible {
  background: var(--green-100);
  outline: none;
}
.order-form .stepper input.quantity {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: auto;
  padding: .55rem 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input.quantity::-webkit-outer-spin-button,
.stepper input.quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Total + submit ---------- */
.order-form .form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.total-bar #total {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
}
.total-bar .button {
  background: #fff;
  color: var(--green-900);
  border: 0;
  padding: .85rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.total-bar .button:hover,
.total-bar .button:focus-visible {
  background: var(--green-100);
  color: var(--green-900);
  border: 0;
  transform: translateY(-1px);
}

.legal-note {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}

.thanks-box {
  background: #fff;
  border: 1px dashed var(--brown-700);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.thanks-box p { margin: 0 0 .3rem; }

/* Honeypot: off-screen instead of display:none (bots detect display:none) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Small screens ---------- */
@media (max-width: 500px) {
  .order-form { padding: .6rem; }
  .order-form .card,
  .order-form .product-group { padding: 1rem; }
  .order-form .inputholder { grid-template-columns: repeat(2, 1fr); }
  .total-bar { justify-content: center; text-align: center; }
  .total-bar .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .order-form * { transition: none !important; }
}