/* Kundenkonto-Fenster: eigenständig, damit es auf Kalender und Bestellseite gleich aussieht. */
.konto {
  --k-ink: #171310; --k-soft: #6b6259; --k-line: #e3d8c8; --k-wine: #5c1c2a; --k-paper: #f6f0e7;
  width: min(440px, calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
  margin: auto; padding: 0; border: 0; border-radius: 26px; overflow: hidden auto;
  background: var(--k-paper); color: var(--k-ink); color-scheme: light;
  font: 400 16px/1.5 "Manrope", system-ui, -apple-system, sans-serif;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7);
}
.konto::backdrop { background: rgba(5, 11, 9, .78); }
.konto[open] { animation: konto-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes konto-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.konto * { box-sizing: border-box; }
.konto-inner { position: relative; padding: 30px clamp(20px, 6vw, 34px) 28px; }
.konto-close {
  position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--k-ink); cursor: pointer;
}
.konto-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.konto-close:hover { background: rgba(0, 0, 0, .07); }
.konto-eyebrow { margin: 0 0 6px; color: var(--k-wine); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.konto h2 { margin: 0 0 6px; padding-right: 40px; font: 600 30px/1.1 "Cormorant Garamond", Georgia, serif; letter-spacing: -.01em; color: var(--k-ink); }
.konto-lead { margin: 0 0 20px; color: var(--k-soft); font-size: 14.5px; }
.konto-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: #e9dfd0; }
.konto-tabs button {
  min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--k-soft);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s;
}
.konto-tabs button[aria-selected="true"] { background: #fff; color: var(--k-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.konto-form { display: grid; gap: 14px; }
.konto-field { display: grid; gap: 6px; }
.konto-field label { font-size: 13.5px; font-weight: 600; }
.konto-field input {
  width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--k-line); border-radius: 14px;
  background: #fff; color: var(--k-ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.konto-field input:focus { outline: none; border-color: var(--k-wine); box-shadow: 0 0 0 3px rgba(92, 28, 42, .16); }
.konto-field input[aria-invalid="true"] { border-color: #b3261e; }
.konto-error { min-height: 0; color: #b3261e; font-size: 13px; }
.konto-error:empty { display: none; }
.konto-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: #4a4038; cursor: pointer; }
.konto-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--k-wine); }
.konto-check a { color: var(--k-wine); text-decoration: underline; text-underline-offset: 2px; }
.konto-submit {
  min-height: 52px; margin-top: 4px; border: 0; border-radius: 999px; background: var(--k-wine); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .2s;
}
.konto-submit:hover { background: #71233a; }
.konto-submit:active { transform: scale(.98); }
.konto-submit[disabled] { opacity: .6; cursor: progress; }
.konto-link { justify-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--k-soft); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.konto-status { margin: 0; font-size: 14px; color: #b3261e; }
.konto-status.is-ok { color: #3c6a35; }
.konto-status:empty { display: none; }
.konto-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.konto-summary { display: grid; gap: 4px; margin: 0 0 20px; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--k-line); font-size: 14.5px; }
.konto-summary strong { font-size: 16px; }
.konto-summary span { color: var(--k-soft); }
.konto-secondary { min-height: 50px; border: 1px solid var(--k-line); border-radius: 999px; background: transparent; color: var(--k-ink); font: inherit; font-weight: 600; cursor: pointer; }
.konto-secondary:hover { background: rgba(0, 0, 0, .04); }
.konto [hidden] { display: none !important; }

/* Hinweis in der Kasse der Bestellseite */
.konto-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #f6f0e7; color: #171310;
  box-shadow: inset 0 0 0 1px #e3d8c8; font-size: 14px; line-height: 1.45;
}
.konto-box p { margin: 0; flex: 1 1 220px; }
.konto-box strong { display: block; font-size: 15px; }
.konto-box button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #5c1c2a; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.konto-box button.is-quiet { background: transparent; color: #5c1c2a; box-shadow: inset 0 0 0 1px #5c1c2a55; }
@media (prefers-reduced-motion: reduce) { .konto[open] { animation: none; } }
