/* =============================================================
   Sunshine Pizza — Auth (Anmelden etc.) + Konto-Seite
   ============================================================= */

/* ── Auth-Seiten (anmelden, registrieren …) ───────────────── */
:root {
  --ku-orange: #ff9f1c;
  --ku-orange-dark: #e88a00;
  --ku-text: #2b1f14;
  --ku-muted: #6b5a48;
  --ku-line: rgba(61, 41, 20, 0.12);
  --ku-bg: #fff8f0;
  --ku-surface: #ffffff;
  --ku-radius: 6px;
  --sp-radius-sm: 4px;
  --ku-shadow: 0 20px 50px rgba(26, 18, 8, 0.08);
}

/* ── je-header auf konto.html ──────────────────────────────── */
body.konto-page {
  --je-orange: #ff8000;
  --je-orange-dark: #e67300;
  --je-orange-soft: rgba(255, 128, 0, 0.08);
  --je-surface: #ffffff;
  --je-text: #242424;
  --je-muted: #6e6e6e;
  --je-line: #ebebeb;
  --je-radius: 8px;
  --je-container: 720px;
}

body.konto-page .je-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--je-surface);
  border-bottom: 1px solid var(--je-line);
  box-shadow: 0 1px 0 var(--je-line);
}

body.konto-page .je-container {
  width: min(var(--je-container), calc(100% - 2rem));
  margin-inline: auto;
}

body.konto-page .je-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding-block: 0.6rem;
}

body.konto-page .je-header__back {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--je-text);
  border-radius: var(--sp-radius-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 150ms, background 150ms;
}

body.konto-page .je-header__back:hover {
  color: var(--je-orange);
  background: var(--je-orange-soft);
}

body.konto-page .je-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 1;
  pointer-events: auto;
}

body.konto-page .je-header__logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(175px, 48vw);
  object-fit: contain;
}

body.konto-page .je-header__actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
  grid-column: 3;
}

body.konto-page .je-header__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--sp-radius-sm);
  background: #ff9f1c;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 150ms, color 150ms, transform 150ms;
}

body.konto-page .je-header__order:hover {
  background: #e88a00;
  color: #fff;
}

body.konto-page .je-header__order i {
  color: #fff;
}

body.konto-page .je-header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: var(--sp-radius-sm);
  background: #ff9f1c;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 150ms, color 150ms, transform 150ms;
}

body.konto-page .je-header__call:hover {
  background: #e88a00;
  color: #fff;
}

body.konto-page .je-header__call i {
  color: #fff;
}

body.konto-page .je-header__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: var(--sp-radius-sm);
  background: #ff9f1c;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms, color 150ms, transform 150ms;
}

body.konto-page .je-header__logout:hover {
  background: #e88a00;
  color: #fff;
}

body.konto-page .je-header__logout i {
  color: #fff;
}

@media (min-width: 768px) {
  body.konto-page .je-header__inner {
    min-height: 60px;
    padding-block: 0.65rem;
  }

  body.konto-page .je-header__logo-img {
    height: 44px;
    max-width: min(160px, 40vw);
  }
}

@media (min-width: 901px) {
  body.konto-page .je-header__inner {
    min-height: 84px;
    padding-block: 0.7rem;
  }

  body.konto-page .je-header__logo-img {
    height: 56px;
    max-width: min(200px, 22vw);
  }

  body.konto-page .je-header__back {
    width: 42px;
    height: 42px;
  }

  body.konto-page .je-header__order,
  body.konto-page .je-header__call,
  body.konto-page .je-header__logout {
    width: 44px;
    height: 44px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.ku-page {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ku-bg);
  color: var(--ku-text);
}

.ku-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.ku-wrap--wide {
  max-width: 720px;
}

.ku-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ku-top img {
  height: 38px;
  width: auto;
}

.ku-top a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ku-muted);
  text-decoration: none;
}

.ku-top a:hover {
  color: var(--ku-orange);
}

.ku-card {
  background: var(--ku-surface);
  border: 1px solid var(--ku-line);
  border-radius: var(--ku-radius);
  box-shadow: var(--ku-shadow);
  padding: 1.5rem 1.25rem;
}

.ku-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.ku-sub {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ku-muted);
  line-height: 1.5;
}

.ku-field {
  margin-bottom: 0.9rem;
}

.ku-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.ku-field input,
.ku-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: var(--ku-radius);
  font: inherit;
  font-size: 1rem;
  background: #fff;
}

.ku-field input:focus,
.ku-field textarea:focus {
  outline: none;
  border-color: var(--ku-orange);
  box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.15);
}

.ku-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0;
  font-size: 0.84rem;
  color: var(--ku-muted);
  line-height: 1.45;
}

.ku-check input {
  margin-top: 0.15rem;
  accent-color: var(--ku-orange);
}

.ku-check a {
  color: var(--ku-orange-dark);
}

.ku-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--ku-radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.ku-btn--primary {
  background: var(--ku-orange);
  color: #fff;
}

.ku-btn--primary:hover {
  background: var(--ku-orange-dark);
}

.ku-btn--primary:disabled {
  opacity: 0.85;
  cursor: wait;
}

.ku-btn--ghost {
  background: transparent;
  color: var(--ku-muted);
  border: 1px solid var(--ku-line);
}

.ku-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--ku-radius);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ku-alert--err {
  background: #fdecea;
  color: #9b1c1c;
  border: 1px solid #f5c2c0;
}

.ku-alert--ok {
  background: #e8f5ec;
  color: #1f6b3f;
  border: 1px solid #b8dfc4;
}

.ku-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.ku-success {
  margin: 0.5rem 0 0;
  padding: 1.35rem 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1f6b3f;
  background: #e8f5ec;
  border: 1px solid #b8dfc4;
  border-radius: var(--ku-radius);
}

.ku-success::before {
  content: "✓";
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.ku-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
}

.ku-links a {
  color: var(--ku-orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.ku-links a:hover {
  text-decoration: underline;
}

/* ── Auth-Seiten (Anmelden, Registrieren, Passwort vergessen) ─ */
body.ku-page--auth {
  position: relative;
  overflow-x: hidden;
  background: #fff;
}

.ku-wrap--auth {
  position: relative;
  z-index: 1;
  max-width: 440px;
  padding-top: 1.25rem;
}

body.home-page.ku-page--auth .ku-wrap--auth {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.ku-wrap--auth-wide {
  max-width: 480px;
}

.ku-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.ku-auth-header__logo img {
  display: block;
  height: 36px;
  width: auto;
}

.ku-auth-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ku-auth-header__link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ku-muted);
  text-decoration: none;
  padding: 0.45rem 0.55rem;
  border-radius: var(--sp-radius-sm);
  transition: color 150ms ease, background 150ms ease;
}

.ku-auth-header__link:hover {
  color: var(--ku-text);
  background: rgba(255, 255, 255, 0.65);
}

.ku-auth-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1rem;
  border-radius: var(--sp-radius-sm);
  background: var(--ku-orange);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease;
}

.ku-auth-header__cta:hover {
  background: var(--ku-orange-dark);
}

.ku-card--auth {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--sp-radius-sm);
}

.ku-card--auth h1 {
  text-align: center;
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.ku-card--auth .ku-sub {
  text-align: center;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.ku-perks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.85rem;
  list-style: none;
  border: 1px solid var(--ku-line);
  border-radius: var(--sp-radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.ku-perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ku-muted);
}

.ku-perks i {
  width: 1.1rem;
  text-align: center;
  color: var(--ku-orange);
  font-size: 0.78rem;
}

.ku-auth-form {
  margin-top: 0.15rem;
}

.ku-field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.ku-field__row label {
  margin-bottom: 0;
}

.ku-field__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ku-orange-dark);
  text-decoration: none;
}

.ku-field__link:hover {
  text-decoration: underline;
}

.ku-input-wrap {
  position: relative;
}

.ku-input-wrap__icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b8a894;
  font-size: 0.9rem;
  pointer-events: none;
}

.ku-input-wrap input {
  padding-left: 2.35rem;
}

.ku-input-wrap input::placeholder {
  color: #b5a898;
}

.ku-input-wrap--password input {
  padding-right: 2.75rem;
}

.ku-input-wrap__toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--sp-radius-sm);
  background: transparent;
  color: #b8a894;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.ku-input-wrap__toggle:hover {
  color: var(--ku-orange-dark);
  background: rgba(255, 241, 224, 0.55);
}

.ku-input-wrap__toggle i {
  font-size: 0.9rem;
  pointer-events: none;
}

body.ku-page--auth .ku-field input {
  border-radius: var(--sp-radius-sm);
}

body.ku-page--auth .ku-alert,
body.ku-page--auth .ku-success {
  border-radius: var(--sp-radius-sm);
}

body.ku-page--auth .ku-check {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ku-line);
  border-radius: var(--sp-radius-sm);
  background: rgba(255, 255, 255, 0.45);
}

body.ku-page--auth .ku-success {
  margin-bottom: 1rem;
  text-align: left;
}

body.ku-page--auth .ku-success::before {
  display: inline-block;
  margin: 0 0.5rem 0 0;
  font-size: 1rem;
  vertical-align: middle;
}

.ku-card--auth .ku-btn--primary {
  margin-top: 0.35rem;
  border-radius: var(--sp-radius-sm);
  transition: background 150ms ease;
}

.ku-card--auth .ku-btn--primary:hover:not(:disabled) {
  background: var(--ku-orange-dark);
}

.ku-card--auth .ku-btn--primary:disabled {
  opacity: 0.85;
  cursor: wait;
}

body.ku-page--auth .ku-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: wait;
}

body.ku-page--auth .ku-btn__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ku-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.ku-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--ku-line);
  border-radius: var(--sp-radius-sm);
  background: #fff;
  color: var(--ku-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.ku-btn--outline:hover {
  border-color: rgba(255, 159, 28, 0.45);
  background: rgba(255, 241, 224, 0.55);
  color: var(--ku-text);
}

.ku-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 1.15rem;
  color: #b5a898;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ku-auth-divider::before,
.ku-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ku-line);
}

.ku-auth-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.ku-auth-footer__lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ku-muted);
}

.ku-auth-footer__guest {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ku-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.ku-auth-footer__guest:hover {
  color: var(--ku-orange-dark);
}

@media (max-width: 420px) {
  .ku-wrap--auth {
    padding-inline: 0.85rem;
  }

  .ku-card--auth {
    padding: 1.5rem 1.1rem 1.25rem;
  }

  .ku-auth-header__link {
    display: none;
  }
}

.ku-hidden {
  display: none !important;
}

.ku-verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0.5rem 0 1rem;
  text-align: center;
}

.ku-verify__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(255, 159, 28, 0.18);
  border-top-color: var(--ku-orange);
  border-radius: 50%;
  animation: ku-spin 0.75s linear infinite;
}

.ku-verify__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ku-muted);
  line-height: 1.5;
}

.ku-verify--ok .ku-verify__spinner,
.ku-verify--err .ku-verify__spinner {
  display: none;
}

.ku-verify--ok .ku-verify__text {
  color: #1f6b3f;
  font-weight: 600;
}

.ku-verify--err .ku-verify__text {
  color: #9b1c1c;
  font-weight: 600;
}

@keyframes ku-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Konto-Seite (schlicht) ───────────────────────────────── */
body.konto-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f7f7f7;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  --ku-accent: #ff9f1c;
  --ku-accent-hover: #e88a00;
  --ku-accent-soft: rgba(255, 159, 28, 0.15);
}

.ku-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.ku-header__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ku-header__back,
.ku-header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.ku-header__back:hover,
.ku-header__link:hover {
  color: #1a1a1a;
}

.ku-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ku-header__sep {
  color: #ccc;
  font-size: 0.85rem;
}

.ku-header__link--bold {
  font-weight: 600;
  color: var(--ku-accent);
}

.ku-header__link--bold:hover {
  color: var(--ku-accent-hover);
}

.ku-main {
  padding: 0 0 3rem;
}

body.konto-page .ku-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.35rem 1rem 2rem;
}

.ku-page-head {
  margin-bottom: 1.25rem;
  text-align: center;
}

.ku-page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ku-page-head__lead {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

.ku-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0.15rem;
}

.ku-nav::-webkit-scrollbar {
  display: none;
}

.ku-nav__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  margin-inline: auto;
  padding: 0.28rem;
  background: #f4f4f4;
  border: 1px solid #ebebeb;
  border-radius: var(--sp-radius-sm);
}

.ku-nav__indicator {
  position: absolute;
  top: 0.28rem;
  bottom: 0.28rem;
  left: 0;
  border-radius: calc(var(--sp-radius-sm) - 1px);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 18, 8, 0.08);
  pointer-events: none;
  z-index: 0;
  will-change: transform, width;
}

.ku-nav__indicator.is-ready {
  transition:
    transform 320ms cubic-bezier(0.34, 1.24, 0.64, 1),
    width 320ms cubic-bezier(0.34, 1.24, 0.64, 1);
}

.ku-nav__btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  border-radius: calc(var(--sp-radius-sm) - 1px);
  transition: color 180ms ease;
}

.ku-nav__btn:hover {
  color: #333;
}

.ku-nav__btn.is-active {
  color: var(--ku-accent);
  font-weight: 600;
}

.ku-app {
  min-height: 160px;
  overflow: hidden;
}

.ku-app--leave-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ku-app--leave-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ku-app--enter-left {
  opacity: 0;
  transform: translateX(-32px);
}

.ku-app--enter-right {
  opacity: 0;
  transform: translateX(32px);
}

.ku-app--enter-active {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .ku-nav__indicator.is-ready {
    transition: none;
  }

  .ku-app--leave-left,
  .ku-app--leave-right,
  .ku-app--enter-left,
  .ku-app--enter-right,
  .ku-app--enter-active {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.ku-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.2rem 1.1rem;
}

.ku-panel + .ku-panel {
  margin-top: 0.75rem;
}

.ku-panel__title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.ku-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

body.konto-page .ku-sub {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ── Overview redesign ─────────────────────────────────────── */

.ku-ov-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1.25rem 1.1rem;
  background: #ffffff;
  border: 1px solid #f0e8dc;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.ku-ov-avatar {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--ku-accent, #ff9f1c);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ku-ov-hero__text {
  min-width: 0;
}

.ku-ov-hello {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ku-ov-sub {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: #888;
}

.ku-ov-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.ku-ov-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center;
}

.ku-ov-stat__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ku-accent, #ff9f1c);
  margin-bottom: 0.1rem;
}

.ku-ov-stat__value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  color: #222;
}

.ku-ov-stat__total {
  font-size: 0.75rem;
  font-weight: 500;
  color: #aaa;
}

.ku-ov-stat__label {
  font-size: 0.69rem;
  color: #999;
  letter-spacing: 0.01em;
}

.ku-ov-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.ku-ov-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  color: #333;
  transition: border-color 0.15s, background 0.15s;
}

.ku-ov-action:hover {
  border-color: #ddd;
  background: #fafafa;
}

.ku-ov-action__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  color: var(--ku-accent, #ff9f1c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ku-ov-action__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
}

.ku-ov-stamp {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1rem;
}

.ku-ov-stamp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ku-ov-stamp__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #444;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ku-ov-stamp__title .fa-stamp {
  color: var(--ku-accent, #ff9f1c);
}

.ku-ov-stamp__progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
}

.ku-ov-stamp__ready-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c07a00;
  background: rgba(255, 159, 28, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.ku-ov-progressbar {
  height: 7px;
  background: #f0f0f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.ku-ov-progressbar__fill {
  height: 100%;
  background: var(--ku-accent, #ff9f1c);
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.ku-ov-progressbar__fill.is-full {
  background: linear-gradient(90deg, #ff9f1c, #ff6b1c);
}

.ku-ov-stamp__hint {
  margin: 0 0 0.7rem;
  font-size: 0.83rem;
  color: #888;
  line-height: 1.4;
}

.ku-ov-stamp__hint.is-ready {
  color: #b36a00;
  font-weight: 600;
}

.ku-ov-stamp__link {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ku-accent, #ff9f1c);
  cursor: pointer;
  text-decoration: none;
}

.ku-ov-stamp__link:hover {
  color: var(--ku-accent-hover, #e88a00);
}

/* Legacy helpers still used in other tabs */
.ku-hello {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.ku-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0 1.15rem;
}

.ku-stat {
  padding: 0.85rem;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.ku-stat__label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.15rem;
}

.ku-stat__value {
  font-size: 1.05rem;
  font-weight: 600;
}

.ku-inline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ku-mini-stamps {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 0.25rem;
}

.ku-mini-stamp {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ku-mini-stamp.is-filled {
  background: var(--ku-accent);
  border-color: var(--ku-accent);
}

/* ── Stempelkarte-Seite ─────────────────────────────────────── */

.ku-stamp-card {
  text-align: center;
  padding: 1.75rem 1.5rem 1.5rem;
}

.ku-stamp-card__rule {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: #888;
  letter-spacing: 0.01em;
}

.ku-stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin: 0 auto 1.5rem;
  max-width: 280px;
}

.ku-stamp {
  aspect-ratio: 1;
  border: 1.5px solid #e5e5e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.ku-stamp.is-filled {
  border-color: var(--ku-accent);
  background: var(--ku-accent);
}

.ku-stamp__icon {
  font-size: 1rem;
  line-height: 1;
  color: #d0c8c0;
}

.ku-stamp__icon--mini {
  font-size: 0.62rem;
}

.ku-stamp.is-filled .ku-stamp__icon,
.ku-mini-stamp.is-filled .ku-stamp__icon {
  color: #fff;
}

.ku-stamp-progress {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.ku-stamp-progress--ready,
.ku-sub--ready {
  font-weight: 600;
  color: var(--ku-accent, #ff9f1c);
}

.ku-stamp-paused {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  margin: 0 auto 0.85rem;
  max-width: 100%;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  text-align: center;
}

.ku-stamp-paused strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

.ku-stamp-paused p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 400;
  color: #444;
  max-width: 26rem;
}

.ku-stamp-card .ku-stamp-paused {
  margin-bottom: 1.15rem;
}

.ku-ov-stamp .ku-stamp-paused {
  margin-bottom: 0.9rem;
}

.ku-stamp-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
}

/* ── Code-Historie ───────────────────────────────────────────── */

.ku-stamp-history {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #ebebeb;
  text-align: left;
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
}

.ku-stamp-history__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  background: #fafafa;
}

.ku-stamp-history__stat-label {
  font-size: 0.86rem;
  color: #555;
}

.ku-stamp-history__stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ku-accent, #ff9f1c);
  line-height: 1;
}

.ku-stamp-history__title {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  letter-spacing: -0.01em;
}

.ku-stamp-history__group-label {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
}

.ku-stamp-history__group-label:first-of-type {
  margin-top: 0;
}

.ku-stamp-history__empty {
  text-align: center;
  margin: 0;
  color: #aaa;
  font-size: 0.88rem;
  padding: 0.5rem 0 0.25rem;
}

.ku-stamp-code-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ku-stamp-code {
  padding: 0.9rem 1rem;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  background: #fff;
}

.ku-stamp-code.is-open {
  border-color: rgba(255, 159, 28, 0.3);
  background: rgba(255, 159, 28, 0.03);
}

.ku-stamp-code.is-redeemed {
  opacity: 0.75;
  background: #fafafa;
}

.ku-stamp-code.is-expired {
  opacity: 0.55;
}

.ku-stamp-code__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ku-stamp-code__value {
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #222;
}

.ku-stamp-code__badge {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #f0f0f0;
  color: #555;
}

.ku-stamp-code.is-open .ku-stamp-code__badge {
  background: rgba(255, 159, 28, 0.15);
  color: #b36a00;
}

.ku-stamp-code.is-redeemed .ku-stamp-code__badge {
  background: #eee;
  color: #666;
}

.ku-stamp-code__meta {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: #aaa;
  line-height: 1.4;
}

.ku-stamp-code__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.ku-stamp-code__copy,
.ku-stamp-code__order {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.15s;
}

.ku-stamp-code__copy {
  background: #f2f2f2;
  border: 1px solid #e5e5e5;
  color: #444;
}

.ku-stamp-code__copy:hover {
  background: #eaeaea;
}

.ku-stamp-code__order {
  background: var(--ku-accent, #ff9f1c);
  color: #fff;
}

.ku-stamp-code__order:hover {
  opacity: 0.88;
  color: #fff;
}

.ku-orders {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ku-order {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ku-order__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
}

.ku-order__summary::-webkit-details-marker {
  display: none;
}

.ku-order__summary::after {
  content: "▾";
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.15rem;
}

.ku-order[open] .ku-order__summary::after {
  transform: rotate(180deg);
}

.ku-order__no {
  font-weight: 600;
  font-size: 0.92rem;
}

.ku-order__sub {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #888;
}

.ku-order__total {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.ku-order__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #f0f0f0;
  color: #555;
  vertical-align: middle;
}

.ku-order__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.ku-order__items {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ku-order__item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid #eee;
}

.ku-order__item:last-child {
  border-bottom: none;
}

.ku-order__item-qty {
  color: #888;
}

.ku-order__item-extra,
.ku-order__item-note {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: #999;
}

.ku-order__item-note {
  font-style: italic;
}

.ku-order__totals {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.84rem;
  color: #666;
}

.ku-order__totals div {
  display: flex;
  justify-content: space-between;
  padding: 0.12rem 0;
}

.ku-form-grid {
  display: grid;
  gap: 0.85rem;
}

.ku-form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

body.konto-page .ku-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #444;
}

body.konto-page .ku-field input {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}

body.konto-page .ku-field input:disabled {
  background: #f5f5f5;
  color: #888;
}

body.konto-page .ku-field input:focus {
  outline: none;
  border-color: #999;
}

body.konto-page .ku-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
  font-size: 0.86rem;
  color: #666;
  line-height: 1.45;
}

body.konto-page .ku-check input {
  margin-top: 0.15rem;
  accent-color: var(--ku-accent);
}

.ku-form-actions {
  margin-top: 1rem;
}

.ku-toast {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  font-size: 0.86rem;
}

.ku-toast--ok {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}

.ku-toast--err {
  background: #fafafa;
  color: #666;
  border: 1px solid #e8e8e8;
}

body.konto-page .ku-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.konto-page .ku-btn--primary {
  background: var(--ku-accent);
  color: #fff;
}

body.konto-page .ku-btn--primary:hover {
  background: var(--ku-accent-hover);
}

body.konto-page .ku-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.konto-page .ku-btn--ghost {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

body.konto-page .ku-btn--inline {
  width: auto;
  min-width: 10rem;
}

.ku-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ku-btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ku-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ku-spin {
  to {
    transform: rotate(360deg);
  }
}

.ku-panel--settings {
  margin-top: 0.75rem;
}

.ku-settings {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  box-shadow: none;
}

.ku-settings__head {
  margin-bottom: 0.85rem;
}

.ku-settings__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 159, 28, 0.12);
  color: var(--ku-accent, #ff9f1c);
  font-size: 1rem;
}

.ku-settings__title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ku-settings__lead {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.ku-settings__form {
  margin-top: 1.25rem;
  text-align: left;
}

.ku-settings__actions {
  margin-top: 0.5rem;
}

.ku-settings__actions .ku-btn {
  width: 100%;
}

.ku-settings .ku-toast {
  margin-top: 1rem;
  text-align: left;
}

.ku-orders-panel {
  padding-bottom: 1rem;
}

.ku-orders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ku-orders-head .ku-panel__title {
  margin: 0;
}

.ku-orders-head__meta {
  margin: 0;
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
}

.ku-orders-more {
  margin-top: 1rem;
  padding-top: 0.25rem;
  text-align: center;
}

.ku-orders-more .ku-btn {
  max-width: 20rem;
  margin: 0 auto;
}

.ku-form-grid--narrow {
  max-width: 24rem;
}

.ku-form-hint {
  margin: -0.15rem 0 0;
}

.ku-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 8rem;
  text-align: center;
}

.ku-loading__spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid #eee;
  border-top-color: var(--ku-accent, #ff9f1c);
  border-radius: 50%;
  animation: ku-spin 0.7s linear infinite;
}

.ku-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
  font-size: 0.92rem;
}

@media (min-width: 520px) {
  .ku-stamps {
    grid-template-columns: repeat(10, 1fr);
    max-width: none;
  }
}

@media (max-width: 480px) {
  .ku-form-grid--2,
  .ku-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .ku-ov-stats,
  .ku-ov-actions {
    grid-template-columns: 1fr 1fr;
  }

  .ku-ov-stats .ku-ov-stat:last-child,
  .ku-ov-actions .ku-ov-action:last-child {
    grid-column: span 2;
  }
}
