* {
  box-sizing: border-box;
}

.us-wrap {
  background: #111110;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding: 0 15px;
}

/* Hero */
.us-hero {
  width: 100%;
  max-width: 1400px;
  max-height: 70vh;
  overflow: hidden;
  margin-top: var(--header-height);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.us-hero img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.shop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Info */
.us-info,
.us-grid,
.us-links,
.bestell-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.us-info {
  padding: 28px 0;
}

.us-kategorie {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.us-titel {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.2;
}

.us-beschreibung {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.us-beschreibung p {
  margin: 0 0 1em;
}

.us-beschreibung p:last-child {
  margin-bottom: 0;
}

/* Bildgrid */
.us-grid-wrap {
  padding: 0 15px;
}

.us-grid {
  position: relative;
  width: 100%;
}

.us-grid-sizer {
  width: calc(50% - 10px);
}

.us-item {
  width: calc(50% - 10px);
  margin: 5px;
  height: 0;
  padding-bottom: calc(50% - 10px);
  overflow: hidden;
  position: relative;
}

.us-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.us-item--breit {
  width: calc(100% - 10px);
  padding-bottom: calc(50% - 10px);
}

.us-item--hoch {
  padding-bottom: calc(100% - 10px);
}

.us-item--gross {
  width: calc(100% - 10px);
  padding-bottom: calc(100% - 10px);
}

/* Links – Mobile: floating pill */
.us-links {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 99;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.us-links .btn {
  box-shadow:
    3px 3px 6px #0d0d0d,
    -2px -2px 5px #272725;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 11px;
}

.us-links .btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

/* Bestellformular */
.bestell-wrap {
  padding: 28px 15px 120px;
  scroll-margin-top: var(--header-height);
}

.produkt-preis {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.produkt-preis-einheit {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.produkt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 5px;
  display: block;
}

.field-input {
  width: 100%;
  background: #1a1a19;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 9px 12px;
  color: #fff;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
}

.field-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.field-input {
  resize: vertical;
  min-height: 60px;
}

select.field-input {
  cursor: pointer;
}

.remove-btn {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.add-row-btn {
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin: 8px 0 20px;
  transition: all 0.2s ease;
}

.add-row-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.produkt-section {
  margin-bottom: 8px;
}

.produkt-section-titel {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.bestell-divider {
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row-full {
  margin-bottom: 12px;
}

.submit-btn {
  width: 100%;
  background: var(--color-accent);
  border: none;
  color: #fff;
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #c94a1a;
}

.bestell-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

.form-error {
  color: #e24b4a;
  font-size: 12px;
  margin-bottom: 10px;
}

.form-loading {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-bottom: 10px;
}

.form-success {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: var(--color-accent);
  line-height: 1.6;
}

/* Zurück-Button im Header auf Mobile verstecken (er ist in der us-links Pill) */
header .btn--primary {
  display: none;
}

/* Desktop */
@media only screen and (min-width: 600px) {
  header .btn--primary {
    display: inline-block;
  }

  .us-back-btn {
    display: none;
  }

  .us-hero {
    max-width: min(calc(2 * (100vh - var(--header-height))), 1400px);
  }

  .us-titel {
    font-size: 40px;
  }

  .us-grid-sizer,
  .us-item {
    width: calc(50% - 10px);
    padding-bottom: calc(50% - 10px);
  }

  .us-item--breit {
    width: calc(100% - 10px);
    padding-bottom: calc(50% - 10px);
  }

  .us-item--hoch {
    width: calc(50% - 10px);
    padding-bottom: calc(100% - 10px);
  }

  .us-item--gross {
    width: calc(100% - 10px);
    padding-bottom: calc(100% - 10px);
  }

  .us-links {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 28px 0;
    gap: 12px;
  }

  .us-links .btn {
    border-radius: var(--radius-pill);
    padding: 9px 18px;
    font-size: 11px;
    box-shadow:
      3px 3px 6px #0d0d0d,
      -2px -2px 5px #272725;
    border: none;
    background: var(--color-surface);
    color: var(--color-text-muted);
  }

  .us-links .btn:hover {
    color: var(--color-text);
  }

  .us-links .btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: none;
  }

  .produkt-row {
    grid-template-columns: 2fr 1fr 1fr auto;
  }

  .bestell-wrap {
    padding-bottom: 60px;
  }
}
