:root {
  --order-ink: #123c35;
  --order-deep: #092b26;
  --order-paper: #fffdf8;
  --order-cream: #f4eee2;
  --order-gold: #e5ad43;
  --order-coral: #c85f43;
  --order-muted: #61766f;
  --order-line: rgba(18, 60, 53, 0.14);
  --order-shadow: 0 24px 70px rgba(8, 40, 35, 0.13);
}

/* Auch ohne JavaScript bleiben irrelevante Felder ausblendbar. */
[hidden] { display: none !important; }

.order-page {
  min-height: 100vh;
  color: var(--order-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(229, 173, 67, 0.16), transparent 28%),
    var(--order-cream);
}

.order-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--order-line);
  background: rgba(255, 253, 248, 0.96);
}

.order-header .brand img { width: 138px; height: 44px; }

.back-link {
  color: var(--order-muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.order-shell {
  display: grid;
  width: min(1160px, calc(100% - 38px));
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) 0;
}

.order-intro {
  position: sticky;
  top: 28px;
  min-height: 690px;
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background:
    linear-gradient(180deg, rgba(7, 42, 36, 0.42), rgba(7, 42, 36, 0.94)),
    url("../bilder/Hintergund%20bild.png") 55% center / cover no-repeat;
  box-shadow: var(--order-shadow);
}

.order-intro::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  content: "";
  pointer-events: none;
}

.order-intro__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 690px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 42px;
}

.order-intro .eyebrow {
  margin-bottom: 15px;
  color: #f1c76f;
}

.order-intro h1 {
  max-width: 480px;
  margin: 0 0 20px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.order-intro__content > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
  line-height: 1.65;
}

.donation-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin: 25px 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 15px 8px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.donation-badge strong {
  border-radius: 999px;
  padding: 7px 11px;
  color: #362506;
  background: #f0c86f;
  font-size: 1rem;
}

.donation-badge span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
}

.order-intro ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-intro li {
  position: relative;
  padding-left: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-intro li::before {
  position: absolute;
  left: 0;
  color: #f0c86f;
  content: "✦";
}

.order-form-card,
.order-success {
  border: 1px solid var(--order-line);
  border-radius: 24px;
  padding: clamp(26px, 3.5vw, 42px);
  background: var(--order-paper);
  box-shadow: var(--order-shadow);
}

.order-form-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--order-line);
}

.order-form-card__heading > div {
  display: grid;
  gap: 4px;
}

.order-form-card__heading > div span {
  color: var(--order-coral);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.order-form-card__heading > div strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.order-form-card__heading > strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 14px;
  color: #5b3d08;
  background: #f8dfaa;
  font-size: 0.78rem;
}

.order-form {
  display: grid;
  gap: 24px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -8px;
}

.form-section-title span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--order-ink);
  font-size: 0.62rem;
  font-weight: 900;
}

.form-section-title strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.form-field--wide { grid-column: 1 / -1; }
.form-field--quantity { width: min(210px, 100%); }

.form-field > span,
.choice-group legend,
.address-fields legend {
  color: var(--order-ink);
  font-size: 0.75rem;
  font-weight: 850;
}

.form-field input {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--order-line);
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--order-ink);
  background: white;
  box-shadow: 0 2px 0 rgba(18, 60, 53, 0.02);
}

.form-field input:hover { border-color: rgba(18, 60, 53, 0.28); }

.form-field input:focus {
  border-color: var(--order-ink);
  box-shadow: 0 0 0 4px rgba(18, 60, 53, 0.09);
  outline: 0;
}

.form-field small,
.choice-card small,
.check-row small {
  color: var(--order-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.choice-group,
.address-fields {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  padding: 0;
}

.payment-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-group legend,
.address-fields legend {
  grid-column: 1 / -1;
  margin: 0 0 7px;
  padding: 0;
}

.choice-card,
.check-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px solid var(--order-line);
  border-radius: 13px;
  padding: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.choice-card:hover { transform: translateY(-1px); border-color: rgba(18, 60, 53, 0.32); }

.choice-card:has(input:checked),
.check-row:has(input:checked) {
  border-color: var(--order-ink);
  background: rgba(157, 191, 158, 0.13);
  box-shadow: 0 0 0 3px rgba(18, 60, 53, 0.05);
}

.choice-card input,
.check-row input,
.status-form input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--order-ink);
}

.choice-card > span,
.check-row > span { display: grid; min-width: 0; gap: 4px; }
.choice-card strong,
.check-row strong { font-size: 0.82rem; line-height: 1.35; }

.delivery-standard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  border: 1px solid rgba(229, 173, 67, 0.38);
  border-radius: 15px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(248, 223, 170, 0.38), rgba(255, 255, 255, 0.72));
}

.delivery-standard__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #4c3307;
  background: #f0c86f;
  font-size: 1rem;
}

.delivery-standard__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--order-coral);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.delivery-standard h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.2;
}

.delivery-standard p {
  margin: 0;
  color: var(--order-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.delivery-exception {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 4px 0;
  color: var(--order-muted);
  cursor: pointer;
}

.delivery-exception input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--order-ink);
}

.delivery-exception > span { display: grid; gap: 2px; }
.delivery-exception strong { color: var(--order-ink); font-size: 0.74rem; }
.delivery-exception small { font-size: 0.67rem; line-height: 1.45; }

.address-fields {
  display: grid;
  border-top: 1px solid var(--order-line);
  border-bottom: 1px solid var(--order-line);
  padding: 22px 0;
}

.order-form:has([data-email-delivery]:checked):not(:has([data-receipt-checkbox]:checked)) .address-fields { display: none; }

.address-fields[hidden] { display: none !important; }

.field-note {
  grid-column: 1 / -1;
  margin: -4px 0 6px;
  color: var(--order-muted);
  font-size: 0.72rem;
}

.check-row--privacy {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--order-muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.check-row--privacy:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.check-row--privacy a { color: var(--order-ink); font-weight: 800; }

.order-form .button--primary {
  min-height: 55px;
  margin-top: 2px;
  background: var(--order-ink);
  box-shadow: 0 13px 28px rgba(18, 60, 53, 0.2);
}

.order-form .button--primary:hover { background: var(--order-deep); }

.submit-note {
  margin: -12px auto 0;
  max-width: 480px;
  color: var(--order-muted);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.order-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 20px 38px;
  color: var(--order-muted);
  font-size: 0.72rem;
}

.order-footer a { text-underline-offset: 3px; }

.form-message--error ul { margin: 7px 0 0; padding-left: 18px; }

.order-success {
  grid-column: 1 / -1;
  width: min(700px, 100%);
  margin: 0 auto;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: white;
  background: var(--order-ink);
  font-size: 1.75rem;
}

.order-success h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.order-success > p:not(.eyebrow) { color: var(--order-muted); line-height: 1.65; }

.order-number {
  display: inline-block;
  margin: 8px 0 26px;
  border: 1px solid rgba(229, 173, 67, 0.45);
  border-radius: 11px;
  padding: 12px 18px;
  background: rgba(229, 173, 67, 0.13);
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  letter-spacing: 0.08em;
}

.payment-box {
  margin: 0 auto 22px;
  border: 1px solid var(--order-line);
  border-radius: 15px;
  padding: 22px;
  background: white;
  text-align: left;
}

.payment-box__title { margin: 0 0 15px; font-weight: 850; }
.payment-box > p { line-height: 1.6; }
.payment-box .button { width: 100%; margin-top: 8px; }
.payment-box dl { display: grid; gap: 9px; margin: 0; }
.payment-box dl div { display: grid; grid-template-columns: 145px 1fr; gap: 14px; }
.payment-box dt { color: var(--order-muted); font-size: 0.75rem; }
.payment-box dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.process-note { max-width: 580px; margin: 20px auto !important; }
.order-success__back { width: min(100%, 350px); }

/* Adminbereich: bewusst sachlicher, aber visuell konsistent. */
.admin-page { min-height: 100vh; color: var(--order-ink); background: var(--order-cream); }

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(460px, 100%);
  border: 1px solid var(--order-line);
  border-radius: 22px;
  padding: clamp(25px, 4vw, 40px);
  background: var(--order-paper);
  box-shadow: var(--order-shadow);
}

.admin-login-card > img { width: 145px; margin-bottom: 28px; }

.admin-login-card h1,
.admin-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.admin-login-card h1 { font-size: 3rem; }
.admin-login-card > p:not(.eyebrow) { margin-bottom: 26px; color: var(--order-muted); line-height: 1.6; }

.admin-login-card .login-form input[type="password"] {
  width: 100%;
  height: 58px;
  border: 1.5px solid var(--order-line);
  border-radius: 11px;
  padding: 0 16px;
  color: var(--order-ink);
  background: white;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--order-line);
  background: rgba(255, 253, 248, 0.96);
}

.admin-header h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.admin-header .eyebrow { margin-bottom: 7px; }
.admin-header p:last-child { margin: 8px 0 0; color: var(--order-muted); font-size: 0.76rem; }
.admin-actions { display: flex; gap: 10px; }

.admin-content {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 88px;
}

.admin-empty {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--order-line);
  border-radius: 16px;
  padding: 52px;
  color: var(--order-muted);
  text-align: center;
}

.orders-table-wrap {
  overflow: hidden;
  border: 1px solid var(--order-line);
  border-radius: 16px;
  background: var(--order-paper);
  box-shadow: 0 18px 50px rgba(8, 40, 35, 0.09);
}

.orders-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }

.orders-table th {
  padding: 14px 16px;
  color: var(--order-muted);
  background: rgba(18, 60, 53, 0.05);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.orders-table td {
  min-width: 140px;
  padding: 17px 16px;
  border-top: 1px solid var(--order-line);
  vertical-align: top;
}

.orders-table tr.is-complete td { background: rgba(157, 191, 158, 0.09); }
.orders-table td > strong,
.orders-table td > span,
.orders-table td > a { display: block; margin-bottom: 5px; }
.orders-table td > span { color: var(--order-muted); line-height: 1.45; }
.orders-table td > a { overflow-wrap: anywhere; color: var(--order-ink); }
.table-order-number { letter-spacing: 0.04em; }

.tag {
  display: inline-block !important;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: #604109 !important;
  background: #f8dfaa;
  font-size: 0.64rem;
  font-weight: 850;
}

.status-form { display: grid; gap: 8px; }
.status-form label { display: flex; align-items: center; gap: 7px; font-weight: 750; }
.status-form input { width: 16px; height: 16px; margin: 0; }
.status-form button {
  width: fit-content;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  background: var(--order-ink);
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .order-shell { grid-template-columns: minmax(285px, 0.75fr) minmax(480px, 1.25fr); gap: 24px; }
  .order-intro,
  .order-intro__content { min-height: 650px; }
  .order-intro__content { padding: 38px 32px; }
  .order-intro h1 { font-size: clamp(2.45rem, 4.8vw, 3.8rem); }
}

@media (max-width: 860px) {
  .order-shell { grid-template-columns: 1fr; }
  .order-intro { position: relative; top: 0; min-height: 430px; }
  .order-intro__content { min-height: 430px; padding: 38px; }
  .order-intro h1 { max-width: 650px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .orders-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .orders-table,
  .orders-table tbody,
  .orders-table tr,
  .orders-table td { display: block; width: 100%; }
  .orders-table thead { display: none; }
  .orders-table tbody { display: grid; gap: 16px; }
  .orders-table tr { overflow: hidden; border: 1px solid var(--order-line); border-radius: 14px; background: var(--order-paper); }
  .orders-table td { display: grid; min-width: 0; grid-template-columns: 105px 1fr; border-top: 1px solid var(--order-line); }
  .orders-table td:first-child { border-top: 0; }
  .orders-table td::before { color: var(--order-muted); content: attr(data-label); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
}

@media (max-width: 640px) {
  .order-header { min-height: 64px; padding: 10px 15px; }
  .order-header .brand img { width: 112px; height: 38px; }
  .order-header .brand span { display: none; }
  .back-link { font-size: 0.7rem; }
  .order-shell { width: min(100% - 22px, 620px); padding: 20px 0 42px; }
  .order-intro { min-height: 390px; border-radius: 18px; }
  .order-intro__content { min-height: 390px; padding: 30px 26px; }
  .order-intro h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .order-form-card,
  .order-success { border-radius: 18px; padding: 23px 17px; }
  .order-form-card__heading { align-items: flex-start; flex-direction: column; }
  .form-grid,
  .payment-choices { grid-template-columns: 1fr; }
  .form-field--wide,
  .choice-group legend { grid-column: 1; }
  .form-field--quantity { width: 100%; }
  .order-footer { flex-wrap: wrap; }
  .payment-box dl div { grid-template-columns: 1fr; gap: 2px; }
  .admin-content { width: min(100% - 24px, 700px); }
  .admin-actions { width: 100%; }
  .admin-actions form { flex: 1; }
  .admin-actions .text-button { width: 100%; }
  .orders-table td { grid-template-columns: 82px 1fr; gap: 10px; padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-card { transition: none; }
}

/* Text steht unter dem Foto und verdeckt keine Gesichter. */
.order-intro { min-height: 0; background: var(--order-deep); }
.order-intro::after { display: none; }
.order-intro__photo { width: 100%; height: auto; object-fit: contain; }
.order-intro__content { min-height: 0; padding: 30px; }
.order-intro h1 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.tax-note { color: var(--order-muted); font-size: .78rem; line-height: 1.6; }
.sepa-fields .check-row { margin-top: 18px; }
.choice-card:has(input:disabled) { opacity: .6; cursor: default; }
.archive-form { margin-top: 16px; }
.mandate-details { max-width: 360px; font-size: .75rem; overflow-wrap: anywhere; }
.mandate-details p { line-height: 1.5; }
.admin-actions { flex-wrap: wrap; }
@media (max-width: 820px) { .order-intro, .order-intro__content { min-height: 0; } .order-intro__content { padding: 24px; } }
