/* Kundenkonto des Weinshops – eigenständige Seite im Gestaltungsbild des Shops. */

.account-page {
  background: #f8f6f0;
}
.account-main {
  min-height: 100svh;
  padding-top: calc(74px + var(--preview-bar-height));
  display: flex;
  flex-direction: column;
}
.account-boot {
  margin: auto;
  padding: 120px 24px;
  color: #8a9296;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- Anmeldebereich */

.account-auth[hidden],
.account-dashboard[hidden],
.account-return[hidden] {
  display: none;
}
.account-auth {
  flex: 1 1 auto;
  display: flex;
}
.account-panel {
  flex: 1 1 auto;
  padding: clamp(44px, 5vw, 78px) clamp(24px, 5vw, 86px) clamp(56px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f6f0;
}
.account-panel > * {
  width: min(100%, 560px);
  margin-inline: auto;
}
.account-banner {
  height: clamp(112px, 15vw, 168px);
  margin: 0 auto -1px;
  position: relative;
  overflow: hidden;
  border: 1px solid #ded8cd;
  background: var(--navy);
}
.account-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 41, 69, 0.1) 0%,
    rgba(6, 41, 69, 0.4) 100%
  );
}
.account-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 60%;
}
.account-return {
  margin-bottom: 26px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #dcd4c6;
  border-left: 3px solid var(--shop-red);
  background: #fff;
}
.account-return svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--shop-red);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-return span {
  display: grid;
  gap: 4px;
}
.account-return strong {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.account-return small {
  color: #77807f;
  font-size: 10px;
  line-height: 1.5;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #ded8cd;
  background: #efeade;
}
.account-tabs button {
  min-height: 50px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #79837f;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.account-tabs button:hover {
  color: var(--navy);
}
.account-tabs button.is-active {
  background: var(--navy);
  color: #fff;
}

.account-form {
  padding: 34px clamp(22px, 3vw, 38px) 36px;
  border: 1px solid #ded8cd;
  border-top: 0;
  background: #fff;
}
.account-form > header {
  margin-bottom: 26px;
}
.account-form > header p {
  margin: 0 0 9px;
  color: #a18555;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.account-form > header h2 {
  margin: 0;
  color: var(--navy);
  font:
    italic 30px/1.1 Georgia,
    serif;
  font-weight: 400;
}
.account-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.account-grid label {
  display: grid;
  gap: 7px;
  align-content: start;
}
.account-grid label.wide,
.account-grid .wide {
  grid-column: 1 / -1;
}
.account-grid label > span {
  color: #687277;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-grid input,
.account-grid select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d6cec2;
  border-radius: 0;
  outline: 0;
  background: #fdfcf9;
  color: #2f3c43;
  font:
    13px Arial,
    sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-grid input:focus,
.account-grid select:focus {
  border-color: var(--shop-red);
  box-shadow: 0 0 0 1px var(--shop-red);
  background: #fff;
}
.account-grid input:disabled {
  color: #8b9498;
  background: #f2efe8;
}
.account-hint {
  margin: -4px 0 0;
  color: #929a9c;
  font-size: 10px;
  line-height: 1.55;
}

.account-consents {
  margin: 26px 0 0;
  padding: 22px 20px 8px;
  border: 1px solid #e2dcd1;
  background: #faf8f2;
}
.account-consents legend {
  padding: 0 9px;
  margin-left: -9px;
  color: var(--navy);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.account-consent {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.account-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--shop-red);
  cursor: pointer;
}
.account-consent span {
  display: grid;
  gap: 5px;
}
.account-consent strong {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.account-consent small {
  color: #6e787c;
  font-size: 10.5px;
  line-height: 1.65;
}
.account-consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.account-consent.is-optional strong {
  color: #6f7a7e;
}
.account-consent.is-invalid strong {
  color: var(--shop-red);
}
.account-legal-note {
  margin: 20px 0 24px;
  color: #929a9c;
  font-size: 10px;
  line-height: 1.7;
}

.account-submit {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: var(--shop-red);
  color: #fff;
  cursor: pointer;
  transition: 0.25s ease;
}
.account-submit:hover {
  background: #772734;
}
.account-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.account-submit span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.account-submit b {
  font-size: 16px;
}
.account-submit.is-quiet {
  background: var(--navy);
}
.account-submit.is-quiet:hover {
  background: #041d31;
}
.account-submit.is-danger {
  background: #fff;
  color: var(--shop-red);
  border: 1px solid var(--shop-red);
}
.account-submit.is-danger:hover {
  background: var(--shop-red);
  color: #fff;
}

/* Ladezustand: der Pfeil weicht einem Spinner, der Text bleibt lesbar. */
.account-submit.is-busy,
.account-verify-refresh.is-busy {
  cursor: progress;
  opacity: 0.9;
}
.account-submit.is-busy b {
  visibility: hidden;
}
.account-submit.is-busy::after,
.account-verify-refresh.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 15px;
  height: 15px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: account-spin 0.7s linear infinite;
}
.account-verify-refresh {
  position: relative;
}
.account-verify-refresh.is-busy::after {
  border-color: rgba(6, 41, 69, 0.2);
  border-top-color: var(--navy);
}
.account-submit.is-danger.is-busy::after {
  border-color: rgba(140, 49, 64, 0.25);
  border-top-color: var(--shop-red);
}
@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .account-submit.is-busy::after,
  .account-verify-refresh.is-busy::after {
    animation-duration: 2.4s;
  }
}

.account-status {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
.account-status.is-success {
  color: #3c724d;
}
.account-status.is-error {
  color: #a23f3f;
}
.account-status.is-sending {
  color: #7b704f;
}
.account-switch {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ece7dc;
  color: #838c8e;
  font-size: 11px;
}
.account-switch button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid #b9c0bd;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.account-switch button:hover {
  border-bottom-color: var(--navy);
}

/* -------------------------------------------------------- Angemeldete Sicht */

.account-dashboard {
  flex: 1 1 auto;
}
.account-dashboard-head {
  padding: clamp(52px, 6vw, 88px) clamp(24px, 8vw, 130px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  background: var(--navy);
  color: #fff;
}
.account-dashboard-head > div p {
  margin: 0 0 20px;
  color: #d7c297;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.account-dashboard-head h1 {
  margin: 0;
  font:
    300 clamp(38px, 4.2vw, 64px)/0.95 Arial,
    sans-serif;
  letter-spacing: -0.05em;
}
.account-dashboard-head h1 em {
  color: #f3e9d6;
}
.account-dashboard-head > div > span {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.7;
}
.account-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.account-dashboard-actions a,
.account-dashboard-actions button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.account-dashboard-actions a:hover,
.account-dashboard-actions button:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}
.account-dashboard-actions a b {
  font-size: 15px;
}

.account-cards {
  padding: clamp(34px, 4vw, 62px) clamp(20px, 8vw, 130px)
    clamp(60px, 7vw, 110px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}
.account-card {
  border: 1px solid #ded8cd;
  background: #fff;
}
.account-card > header {
  padding: 22px 26px;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #ece7dc;
  background: #fbf9f4;
}
.account-card > header small {
  color: #a18555;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.account-card > header strong {
  color: var(--navy);
  font:
    italic 22px Georgia,
    serif;
  font-weight: 400;
}
.account-form.is-plain {
  padding: 26px;
  border: 0;
  background: transparent;
}
.account-card-note {
  margin: 0;
  padding: 0 26px 24px;
  color: #8d9598;
  font-size: 10px;
  line-height: 1.7;
}
.account-card-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-verify {
  padding: 22px 26px 26px;
}
.account-verify-state {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border: 1px solid #e2dcd1;
  border-left: 3px solid #b7bdba;
  background: #faf8f2;
}
.account-verify-state i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b7bdba;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.account-verify-state span {
  display: grid;
  gap: 5px;
}
.account-verify-state strong {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.account-verify-state small {
  color: #6e787c;
  font-size: 10.5px;
  line-height: 1.65;
}
.account-verify-state small strong {
  font-size: inherit;
}
.account-verify-state.is-done {
  border-left-color: #3c724d;
  background: rgba(60, 114, 77, 0.06);
}
.account-verify-state.is-done i {
  background: #3c724d;
}
.account-verify-state.is-open {
  border-left-color: var(--shop-red);
}
.account-verify-state.is-open i {
  background: var(--shop-red);
}
.account-verify-state.is-declined {
  border-left-color: #a23f3f;
  background: rgba(162, 63, 63, 0.06);
}
.account-verify-state.is-declined i {
  background: #a23f3f;
}
.account-verify-state.is-pending {
  border-left-color: #a18555;
}
.account-verify-state.is-pending i {
  background: #a18555;
}
.account-card-note.is-inline {
  padding: 14px 0 0;
}
.account-verify-actions {
  display: grid;
  gap: 10px;
}
.account-verify-refresh {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8d1c4;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.25s ease;
}
.account-verify-refresh:hover {
  border-color: var(--navy);
}
.account-verify .account-status {
  margin-top: 12px;
}

.account-billing-toggle {
  margin-bottom: 2px;
}
.account-billing-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ece7dc;
}
.account-billing-fields .account-hint {
  margin-top: 13px;
}

.account-orders {
  padding: 6px 26px 24px;
}
.account-orders-loading,
.account-orders-empty {
  margin: 18px 0;
  color: #8d9598;
  font-size: 11px;
  line-height: 1.7;
}
.account-orders-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
}
.account-order {
  padding: 18px 0;
  border-bottom: 1px solid #ece7dc;
}
.account-order:last-child {
  border-bottom: 0;
}
.account-order-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.account-order-head > span { display:grid; gap:3px; }
.account-order-head strong {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.account-order-head small { color:#949b9d; font-size:8.5px; letter-spacing:.04em; }
.account-order-head time {
  color: #939b9d;
  font-size: 10px;
}
.account-order-meta {
  margin: 9px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.account-order-meta span {
  padding: 5px 9px;
  border: 1px solid #e4ded2;
  background: #faf8f2;
  color: #6e787c;
  font-size: 9px;
  letter-spacing: 0.05em;
}
.account-order-meta span.is-total {
  border-color: rgba(140, 49, 64, 0.28);
  background: rgba(140, 49, 64, 0.06);
  color: var(--shop-red);
  font-weight: 700;
}
.account-order-items {
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
  color: #7c8588;
  font-size: 10.5px;
  line-height: 1.75;
}
.account-order-payment {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid #e2dcd1;
  border-left: 3px solid var(--shop-red);
  background: #faf8f2;
}
.account-order-payment > small {
  display: block;
  margin-bottom: 9px;
  color: var(--shop-red);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-order-payment dl {
  margin: 0;
  display: grid;
  gap: 6px;
}
.account-order-payment dl div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.account-order-payment dt {
  color: #7d8588;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-order-payment dd {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-order-payment p {
  margin: 10px 0 0;
  color: #868f92;
  font-size: 10px;
  line-height: 1.6;
}

.account-order-online {
  margin: 12px 0 0;
  padding: 13px 15px;
  border: 1px solid #e2dcd1;
  border-left: 3px solid #8a8f93;
  background: #faf8f2;
}
.account-order-online > small {
  display: block;
  margin-bottom: 7px;
  color: #6c757a;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.account-order-online p {
  margin: 0;
  color: #7c8588;
  font-size: 10.5px;
  line-height: 1.65;
}
.account-order-online.is-paid {
  border-left-color: #507454;
  background: #f2f7f1;
}
.account-order-online.is-paid > small {
  color: #4c7052;
}
.account-order-online.is-processing {
  border-left-color: #9a7d4f;
  background: #fbf7ee;
}
.account-order-online.is-processing > small {
  color: #8a6f42;
}
.account-order-online.is-failed,
.account-order-online.is-open {
  border-left-color: var(--shop-red);
}
.account-order-online.is-failed > small,
.account-order-online.is-open > small {
  color: var(--shop-red);
}
.account-order-online.is-refunded {
  border-left-color: #607982;
}
.account-order-pay {
  margin-top: 12px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.account-order-pay:hover:not(:disabled),
.account-order-pay:focus-visible:not(:disabled) {
  background: #0b3a5e;
  box-shadow: 0 8px 22px rgba(6, 41, 69, 0.18);
  outline: 0;
}
.account-order-pay:disabled {
  cursor: wait;
  opacity: 0.6;
}
.account-order-receipt {
  margin-top: 10px;
  display: inline-block;
  color: #4c7052;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-order-status {
  margin-top: 9px;
  display: inline-block;
  color: #7d8688;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-order-tracking{margin-top:13px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d8cdbb;background:#f4efe6;color:var(--navy);text-decoration:none}.account-order-tracking span{display:grid;gap:3px}.account-order-tracking small{color:#9a7d4f;text-transform:uppercase;letter-spacing:.1em;font-size:9px}.account-order-tracking strong{font-size:13px;letter-spacing:.04em}.account-order-tracking>b{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.account-order-tracking:hover{border-color:#9a7d4f;background:#fffaf1}
.account-order-invoice{margin-top:9px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #c6d0d4;background:#edf2f3;color:var(--navy);text-decoration:none}.account-order-invoice span{display:grid;gap:3px}.account-order-invoice small{color:#607982;text-transform:uppercase;letter-spacing:.1em;font-size:9px}.account-order-invoice strong{font-size:13px;letter-spacing:.04em}.account-order-invoice>b{font-size:10px;text-transform:uppercase;letter-spacing:.08em}.account-order-invoice:hover{border-color:#66818b;background:#f6fbfc}.account-order-pickup-ready{margin-top:13px;padding:14px 15px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;border:1px solid #b9ccb7;background:#edf5ea}.account-order-pickup-ready>i{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#507454;color:#fff;font-size:13px;font-style:normal}.account-order-pickup-ready>span{display:grid;gap:3px}.account-order-pickup-ready small{color:#688069;text-transform:uppercase;letter-spacing:.1em;font-size:8.5px}.account-order-pickup-ready strong{color:#365b3b;font:italic 15px/1.15 Georgia,serif;font-weight:400}.account-order-pickup-ready em{color:#788579;font-size:9px;font-style:normal}

.account-consent-log {
  margin: 0;
  padding: 6px 26px 20px;
  list-style: none;
  display: grid;
  gap: 12px;
}
.account-consent-log li {
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #ece7dc;
  background: #faf8f2;
}
.account-consent-log i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3c724d;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
.account-consent-log i.is-off {
  background: #b7bdba;
}
.account-consent-log span {
  display: grid;
  gap: 4px;
}
.account-consent-log strong {
  color: var(--navy);
  font-size: 11px;
}
.account-consent-log small {
  color: #868f92;
  font-size: 10px;
  line-height: 1.6;
}

.account-danger {
  margin: 0 26px 26px;
  border-top: 1px solid #ece7dc;
}
.account-danger summary {
  padding: 18px 0 4px;
  color: #8b7176;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  list-style: none;
}
.account-danger summary::-webkit-details-marker {
  display: none;
}
.account-danger summary::after {
  content: " ↓";
}
.account-danger[open] summary::after {
  content: " ↑";
}
.account-danger .account-form {
  padding: 6px 0 0;
}
.account-danger p {
  margin: 0 0 16px;
  color: #8d9598;
  font-size: 10.5px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .account-panel {
    padding: 34px 20px 62px;
  }
}

@media (max-width: 720px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-form {
    padding: 26px 20px 30px;
  }
  .account-form.is-plain,
  .account-orders,
  .account-consent-log {
    padding-inline: 20px;
  }
  .account-card > header {
    padding: 20px;
  }
  .account-danger {
    margin-inline: 20px;
  }
  .account-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-dashboard-actions a,
  .account-dashboard-actions button {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .account-cards {
    grid-template-columns: 1fr;
  }
  .account-tabs button {
    letter-spacing: 0.09em;
  }
  .account-order-tracking,
  .account-order-invoice {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

/* Auf der Kontoseite bleiben die schwebenden Schaltflächen ausgeblendet. */
.account-page .floating-actions {
  display: none;
}
