/* Pakete, Bestellung und Rückkehrseite; Grundstil aus style.css */

.shop-form [hidden],
.buy-row [hidden],
.status-box [hidden] {
  display: none !important;
}

/* Knöpfe (.button, .secondary) kommen aus style.css */

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
}

/* Paketliste */
.pkg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.pkg-row:has(> .pkg-icon) {
  grid-template-columns: 88px 1fr auto;
}

.pkg-icon {
  width: 88px;
}

.pkg-row:last-child {
  border-bottom: 0;
}

.pkg-row h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.pkg-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.pkg-price {
  font-weight: 600;
  color: var(--text) !important;
  margin-top: 6px !important;
}

@media (max-width: 560px) {
  .pkg-row,
  .pkg-row:has(> .pkg-icon) {
    grid-template-columns: 64px 1fr;
  }

  .pkg-icon {
    width: 64px;
  }

  .pkg-row > .button {
    grid-column: 1 / -1;
  }
}

/* Bestellformular */
.shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.shop-form fieldset {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.shop-form legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 0 12px;
}

.field-row input {
  min-width: 0;
  width: 100%;
}

.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.seg label:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.95rem;
}

.consent input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
}

.price-box table {
  width: 100%;
  border-collapse: collapse;
}

.price-box td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-box td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}

.price-box tr.total td {
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 0;
}

.price-box .note {
  margin-top: 12px;
}

.order-button {
  width: 100%;
  margin-top: 8px;
  font-size: 1.05rem;
}

/* Rückkehrseite */
.status-box h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 16px 0 0;
}

.status-box dt {
  color: var(--muted);
}

.status-box dd {
  margin: 0;
}

/* Zahlungsart im Bestellformular */
.payment {
  margin: 18px 0 4px;
}

.payment .muted {
  margin: 10px 0 0;
}

/* Überweisung auf der Rückkehrseite */
.transfer-box {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--sky-2);
  text-align: left;
}

.transfer-box h3 {
  margin: 0 0 4px;
}

.transfer-box dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.transfer-box .mono {
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.transfer-box .strong {
  font-weight: 700;
}

.transfer-box dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 12px 0 10px;
}

.transfer-box dt {
  color: var(--muted);
}

.transfer-box dd {
  margin: 0;
}

.transfer-box .copy-btn {
  padding: 4px 10px;
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.transfer-box .copy-btn:hover {
  border-color: var(--accent);
}

/* Kundenbereich (konto.html) */
.account-login {
  max-width: 620px;
}

.account-form {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.account-form .field {
  width: 100%;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Treuerabatt: Hinweis über den Bestellungen */
.account-loyalty {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #f2a93b);
  border-radius: 12px;
  background: var(--panel);
}

.account-loyalty h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.account-loyalty p {
  margin: 0;
}

.account-loyalty .buy-row {
  margin-top: 12px;
}

.account-obstacles {
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-list {
  display: grid;
  gap: 14px;
  margin: 14px 0 28px;
}

.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.account-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.account-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.account-card .muted {
  margin: 6px 0 0;
}

.account-card .buy-row {
  margin-top: 14px;
}

.account-card .transfer-box {
  margin-top: 14px;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip.ok {
  background: var(--ok-soft);
  color: var(--ok-text);
}

.chip.warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}

.chip.fail {
  background: var(--fail-soft);
  color: var(--fail-text);
}

.chip.info {
  background: var(--sky-2);
  color: var(--muted);
}

/* Platz für Inhalte, die erst das Skript einsetzt: Beim Laden soll nichts springen */
#checkout-title {
  min-height: 2.5em;
}

@media (min-width: 720px) {
  #checkout-title {
    min-height: 0;
  }
}

.price-box table {
  min-height: 6.5rem;
}

#payment-methods {
  min-height: 3rem;
}

#payment-hint {
  min-height: 4.2em;
}
