/* ============================ 🟦 STATUSBAR-USERPANEL ============================
   Aufgabe: Stile für das Userpanel (Login/Logout, Navigation, Token-Balance)
   Wird von Frontend_cardexx_analytics_main_header_userpanel und der zentralen JS-Logik genutzt.
=============================================================================== */

/* Design Tokens ========================================================== */
:root {
  --cta-radius: 16px;
  --cta-height: 64px;
  --cta-font-weight: 700;
  --cta-font-size: clamp(18px, 2.2vw, 22px);

  --order-bg: #f6f0ff;
  --order-border: #cdb7ff;
  --order-shadow: 0 8px 24px rgba(141, 105, 255, 0.16);
  --order-btn-bg: #6e3ff3;
  --order-btn-bg-hover: #5d30df;

  --download-bg: var(--order-bg);
  --download-border: var(--order-border);
  --download-shadow: var(--order-shadow);
  --download-btn-bg: #2a6bff;
  --download-btn-bg-hover: #1d57d9;
  --download-note-bg: #f7f1ff;
  --download-note-border: #d8c9ff;
  --download-note-color: #2e1f5e;

  --entitle-bg: #eef9f2;
  --entitle-border: #19a463;
  --entitle-shadow: 0 8px 24px rgba(25, 164, 99, 0.16);
  --entitle-btn-bg: #19a463;
  --entitle-btn-bg-hover: #17a05e;
}

/* Beispiel für einen zentralen Container */
.main-container {
  max-width: 1200px;   /* Passe ggf. an dein Layout an */
  margin: 0 auto;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Wrapper für die Statusbar */
.statusbar-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 2px solid;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  background-color: #f5f7fa; /* Altweiß statt reinweiß */
}

/* Container für linke und rechte Seite der Statusbar */
.bar-left,
.bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Links und Buttons im Userpanel */
.bar-left a,
.bar-right a,
.bar-right button {
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #ffffff;
  color: #001b60;
  border: 2px solid #001b60;
  transition: all 0.25s ease;
  cursor: pointer;
}

/* Hover-Effekt für Links und Buttons */
.bar-left a:hover,
.bar-right a:hover,
.bar-right button:hover {
  background-color: #001b60;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Bildgrößen für Icons in der Statusbar */
.bar-left a img,
.bar-right a img,
.bar-right button img {
  width: 18px;
  height: 18px;
}

/* Login/Logout Buttons (nur Text, ohne Rahmen) */
.btn-login,
.btn-logout {
  color: #001b60;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Navigation-Button für Logout */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  color: #001b60;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
}

.btn-nav:hover {
  background-color: #f0f0f0;
}

/* Gleichmäßige Verteilung der Elemente */
.statusbar-wrapper .bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 32px;
}

/* Token-Info als weiße Schrift, kein Button */
.token-info {
  color: #fff;
  background: none;
  font-weight: 700;
  font-size: 1.2em;
  padding: 0 18px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-radius: 6px;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}

/* Buttons optisch angleichen */
.btn-nav {
  color: #001871;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn-nav:hover {
  background: #001871;
  color: #fff;
}

.btn-logout img,
.btn-login img {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

/* Token-Balance Anzeige im Userpanel */
#user-token-balance {
  display: none;
}

/* ============================ RESPONSIVE STATUSBAR ============================
   Aufgabe: Responsives Verhalten für die Statusbar und das Userpanel
=============================================================================== */
@media (max-width: 900px) {
  .statusbar-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
    font-size: 13px;
  }
  .bar-left,
  .bar-right {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .statusbar-wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 4px;
    font-size: 12px;
  }
  .bar-left,
  .bar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .bar-left a,
  .bar-right a,
  .bar-right button {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    font-size: 13px;
  }
  #user-token-balance {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    text-align: left;
  }
}

/* ============================ AUTH & NAVIGATION ============================
   Aufgabe: Styles für alternative Login-Buttons (z.B. mobile Navigation)
=============================================================================== */
.nav-login,
#nav-auth-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #001b60;
  cursor: pointer;
  padding: 8px 14px;
  background: transparent;
  border: none;
  text-decoration: none;
}

.nav-login:hover,
#nav-auth-button:hover {
  text-decoration: underline;
}

.nav-login img,
#nav-auth-button img {
  width: 18px;
  height: 18px;
}

/* ============================ TOKEN-BALANCE (zentral) ============================
   Aufgabe: Einheitliche Darstellung der Token-Balance, auch außerhalb des Userpanels
=============================================================================== */
#user-token-balance {
  display: none;
}

/* ============================ USER-GREETING ============================
   Aufgabe: Begrüßungstext für eingeloggte User auf der Startseite
=============================================================================== */
.user-greeting-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.statusbar-mount {
  width: 100%;
}

.statusbar-wrapper {
  display: flex;
  justify-content: center;
  padding: 12px;
  border-bottom: 2px solid #001b60;
  background: #fff;
}

.statusbar-flex {
  display: flex;
  gap: 16px;
  align-items: center;
}

.statusbar-coins {
  font-weight: 600;
  color: #001b60;
}

.statusbar-greeting {
  color: #001b60;
  font-weight: 600;
  margin-right: 18px;
}

body.is-auth .statusbar-greeting {
  color: #ecf4ff;
}

/* ============================ DROPDOWNS & INPUTS ============================
   Aufgabe: Styles für die Fahrzeugauswahl und das Freitextformular
=============================================================================== */
#select_brand,
#select_model,
#select_bodytype,
#select_variant,
.manual-input {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 2px solid #00b0b9;
  color: #001b60;
  background-color: #fff;
  margin-bottom: 16px;
  width: 100%;
  min-width: 320px;
  max-width: 520px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-input::placeholder {
  color: #999;
}

#select_brand:hover,
#select_model:hover,
#select_bodytype:hover,
#select_variant:hover,
.manual-input:hover {
  border-color: #4cc9f0;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.2);
}

#select_brand:focus,
#select_model:focus,
#select_bodytype:focus,
#select_variant:focus,
.manual-input:focus {
  outline: none;
  border-color: #4cc9f0;
}

select option {
  color: #001b60;
}

select option[disabled] {
  color: #999;
}

select.dropdown--disabled {
  cursor: not-allowed;
  background-color: #f2f4ff;
  border-color: #cbd5ff;
  color: #8a95b7;
  box-shadow: none;
  filter: saturate(0.6);
}

select.dropdown--disabled:hover,
select.dropdown--disabled:focus {
  border-color: #cbd5ff;
  box-shadow: none;
}

.selection-greeting {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #041b64;
  margin: 8px 0 18px;
  letter-spacing: 0.01em;
}

.selection-greeting[hidden] {
  display: none !important;
}

/* ============================ BUTTONS ============================
   Aufgabe: Einheitliche Buttons für Aktionen, Reset, Login etc.
=============================================================================== */
button,
.manual-btn,
.button-action,
.button-secondary,
.button-login {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  display: block;
  width: 100%;
  min-width: 240px;
  max-width: 360px;
  margin: 10px auto;
  transition: all 0.25s;
}

button:disabled,
.manual-btn:disabled {
  background-color: #ccc !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

#btn_reset {
  background-color: #00b0b9;
  color: white;
}

#btn_reset:hover {
  background-color: #4cc9f0;
}

#btn_order,
#chart-preorder-button,
.button-login {
  background-color: #8c4cde;
  color: white;
}

#btn_order:disabled {
  background-color: #ccc !important;
  color: #999 !important;
  cursor: not-allowed;
}

#btn_download {
  display: none;
}

#btn_order:hover,
#chart-preorder-button:hover,
.button-login:hover {
  background-color: #5e2ca5;
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  border: 2px solid #4c4cde;
  color: #4c4cde;
}

.button-secondary:hover {
  background-color: #4c4cde;
  color: white;
}

.button-outline {
  background: transparent;
  border: 2px solid #06245e;
  color: #06245e;
}

.button-outline:hover {
  background: #06245e;
  color: #ffffff;
}

/* ============================ FEEDBACK-MESSAGES ============================
   Aufgabe: Styles für Fehler- und Erfolgsmeldungen im UI
=============================================================================== */
.message-box {
  width: 100%;
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  text-align: center;
  color: inherit;
  font-weight: 500;
  font-family: 'IBM Plex Mono', monospace;
  box-shadow: none;
  pointer-events: none;
}

#ui_message_box.is-visible {
  display: block;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.message-box.is-hidden {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  display: none;
}

.message-box.is-visible {
  display: block;
}

#ui_message_box.is-visible.is-info {
  background-color: #eaf4ff;
  border: 1px solid #9ec5ff;
  color: #0b2545;
}

#ui_message_box.is-visible.is-error {
  background-color: #ffeeee;
  border: 1px solid #ffaaaa;
  color: #b20000;
}

#ui_message_box.is-visible.is-success {
  background-color: #e6fffb;
  border: 1px solid #38b2ac;
  color: #285e61;
}

/* ============================ FREITEXT-FORMULAR ============================
   Aufgabe: Styles für das manuelle Anfrageformular
=============================================================================== */
.manual-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 20px auto;
}

/* ============================ MODALS ============================ */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 24, 113, 0.45);
  z-index: 1000;
}

.modal.is-visible {
  display: flex;
}

.modal-dialog {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  width: min(90%, 420px);
}

.modal-dialog h3 {
  margin-top: 0;
  color: #001b60;
}

.modal-dialog label {
  display: block;
  font-size: 14px;
  color: #001b60;
  margin-bottom: 12px;
}

.modal-dialog input,
.modal-dialog textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 6px;
}

.modal-dialog textarea {
  min-height: 90px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

#modal_individual_request .modal-actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

#modal_individual_request .modal-actions .button-action,
#modal_individual_request .modal-actions .button-secondary {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

#modal_individual_request .modal-actions .button-action {
  background: #3346ff;
  color: #fff;
}

#modal_individual_request .modal-actions .button-secondary {
  background: #e5e5e5;
  color: #111;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-feedback {
  text-align: center;
  font-size: 1rem;
  color: #001b60;
  font-weight: 600;
  padding: 12px 0;
}

.no-coins-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: height 0.25s ease, padding 0.25s ease;
}

.no-coins-modal .modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: #001b60;
}

.no-coins-modal .modal-actions--primary,
.no-coins-modal .modal-actions--voucher {
  gap: 12px;
  width: 100%;
}

.no-coins-modal .modal-actions--primary {
  flex-direction: column;
  align-items: stretch;
}

.no-coins-modal .modal-actions--voucher {
  justify-content: flex-end;
}

.no-coins-modal .modal-actions--primary button,
.no-coins-modal .modal-actions--voucher button,
.no-coins-modal .modal-cancel {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.no-coins-modal .modal-cancel {
  margin-top: 8px;
}

.voucher-panel {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voucher-title {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #001b60;
}

.no-coins-modal.is-voucher-open .voucher-panel {
  opacity: 1;
  max-height: 280px;
}

.voucher-input::placeholder {
  color: #9aa3ad;
  font-size: 0.85em;
}

.voucher-hint {
  font-size: 0.875rem;
  color: #4b1f94;
  margin: -4px 0 0;
}

.login-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  gap: 24px;
}

.login-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.login-modal-text {
  margin: 0;
  color: #1a202c;
}

.login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.login-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0;
}

.login-btn-primary {
  background: #3346ff;
  color: #fff;
}

.login-btn-secondary {
  background: #e5e5e5;
  color: #111;
}

.login-btn-outline {
  background: transparent;
  border: 2px solid #3346ff;
  color: #3346ff;
}

.login-btn-outline:hover,
.login-btn-outline:focus {
  background: #3346ff;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 24, 113, 0.12);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 24, 113, 0.12);
}

@media (max-width: 768px) {
  .login-modal {
    padding: 28px 20px;
  }
}

.user-greeting-section {
  margin-bottom: 16px;
}

.fahrzeugauswahl-section {
  margin: 8px auto 0;
  width: min(100%, 720px);
  padding: 0 16px;
  box-sizing: border-box;
}

#vehicle-selection-title {
  text-align: center;
  color: #001871;
  font-weight: 700;
  margin: 2px 0 4px;
  font-size: clamp(20px, 2.5vw, 28px);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
  width: 100%;
  align-items: stretch;
}

.cta-panel {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--cta-radius);
  padding: 24px;
  margin: 20px 0;
  background: var(--order-bg);
  border: 2px solid var(--order-border);
  box-shadow: var(--order-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-panel .cta-btn,
.cta-panel .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--cta-height);
  border-radius: var(--cta-radius);
  font-weight: var(--cta-font-weight);
  font-size: var(--cta-font-size);
  letter-spacing: 0.02em;
  border: none;
  color: #fff;
  background: var(--order-btn-bg);
  cursor: pointer;
  transition: background-color 0.15s ease, filter 0.15s ease, transform 0.04s ease;
}

.cta-panel .cta-btn:disabled,
.cta-panel .cta-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cta-panel .cta-btn:hover:not(:disabled),
.cta-panel .cta-button:hover:not(:disabled) {
  background: var(--order-btn-bg-hover);
  filter: brightness(1.05);
}

.cta-panel .cta-btn:active:not(:disabled),
.cta-panel .cta-button:active:not(:disabled) {
  transform: translateY(1px);
}

.cta-panel .cta-note {
  margin: 0;
  text-align: center;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.5;
  padding: 18px 16px;
  border-radius: calc(var(--cta-radius) - 4px);
  border: 2px solid transparent;
  font-weight: 500;
}

.cta-panel--order {
  background: var(--order-bg);
  border: 2px solid var(--order-border);
  box-shadow: var(--order-shadow);
}

.cta-panel--download {
  background: var(--download-bg);
  border: 2px solid var(--download-border);
  box-shadow: var(--download-shadow);
}

.cta-panel--download .cta-btn,
.cta-panel--download .cta-button {
  background: var(--download-btn-bg);
}

.cta-panel--download .cta-btn:hover:not(:disabled),
.cta-panel--download .cta-button:hover:not(:disabled) {
  background: var(--download-btn-bg-hover);
}

.cta-panel--download .cta-note {
  background: var(--download-note-bg);
  border-color: var(--download-note-border);
  color: var(--download-note-color);
}

.cta-panel--order .cta-note {
  background: #f7f1ff;
  border-color: #d8c9ff;
  color: #2e1f5e;
}

.cta-panel--entitlement {
  background: var(--entitle-bg);
  border: 2px solid var(--entitle-border);
  box-shadow: var(--entitle-shadow);
}

.cta-panel--entitlement .cta-btn,
.cta-panel--entitlement .cta-button {
  background: var(--entitle-btn-bg);
}

.cta-panel--entitlement .cta-btn:hover:not(:disabled),
.cta-panel--entitlement .cta-button:hover:not(:disabled) {
  background: var(--entitle-btn-bg-hover);
}

.cta-panel--entitlement .cta-note {
  background: #e8f6ee;
  border-color: #b6e3c8;
  color: #0e6d47;
}

.cta-panel--order::before,
.cta-panel--entitlement::before {
  content: none !important;
}

.cta-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.cta-secondary-actions > button {
  flex: 1 1 220px;
}

.button-ghost,
#btn_request {
  background: #fff;
  border: 2px dashed #0b2545;
  color: #0b2545;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
}

.button-ghost:hover,
#btn_request:hover {
  background-color: #eaf2ff;
}

@media (max-width: 720px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================ STATUSBAR (OVERRIDES) ============================ */
.statusbar-wrapper {
  padding: 14px 32px;
  border-bottom: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 20px;
}

body.is-auth .statusbar-wrapper {
  background: #041b64;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

body.is-guest .statusbar-wrapper {
  background: #ffffff;
  color: #06245e;
  border-bottom-color: #dfe4f5;
}

#statusbar-userpanel .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

#statusbar-userpanel .nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

#statusbar-userpanel .nav-left.is-hidden {
  display: none;
}

#statusbar-userpanel .btn-nav.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 58px;
  padding: 0 24px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

body.is-auth #statusbar-userpanel .btn-nav.btn-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

body.is-guest #statusbar-userpanel .btn-nav.btn-pill {
  background: #f4f7ff;
  border: 2px solid #c5d4f6;
  color: #06245e;
}

#statusbar-userpanel .btn-nav.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  background: linear-gradient(125deg, rgba(6, 36, 94, 0.92), rgba(6, 36, 94, 0.7));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

#user_tokens_label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 44px;
  padding: 0 16px;
  background: #ecf4ff;
  color: #001871;
  border-radius: 12px;
  font-weight: 600;
}

body.is-guest #user_tokens_label {
  display: none !important;
}

#auth-slot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-promo {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #06245e;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.auth-promo .u-underline {
  text-decoration: underline;
}

.auth-promo--big {
  font-size: 1.25rem;
}

.statusbar-guest-cta {
  margin-right: auto;
  text-align: left;
  line-height: 1.3;
  white-space: normal;
  max-width: 480px;
}

.statusbar-guest-cta .u-underline {
  margin-right: 6px;
}

@media (min-width: 1200px) {
  .auth-promo--big {
    font-size: 1.45rem;
  }
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 44px;
  padding: 0 18px 0 44px;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: 0.015em;
  position: relative;
  border: 2px solid rgba(6, 36, 94, 0.35);
  background: #ffffff;
  color: #06245e;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-auth::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-auth:hover,
.btn-auth:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-auth--logout {
  border-color: #aeb8d6;
}

.btn-auth--login {
  border-color: rgba(6, 36, 94, 0.35);
}

body.is-auth #btn_logout::before {
  background-image: url('https://cdn.prod.website-files.com/6311d2714bca1a81439ed3bc/6817478addd3923b4401114a_logout_button_clean.svg');
}

body.is-guest #btn_login::before {
  background-image: url('https://cdn.prod.website-files.com/6311d2714bca1a81439ed3bc/681745b18e783498a06b23e2_login_button_clean.png');
}

.btn-auth:hover::before,
.btn-auth:focus::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

#auth-slot.is-guest {
  margin-left: auto;
}

.button-reset {
  background-color: #00b0b9;
  color: #fff;
}

.button-reset:hover {
  background-color: #4cc9f0;
}

.manual-form-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: #4c4cde;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.manual-form-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  padding: 20px;
  color: #1a1a1a;
  margin-top: 30px;
  text-align: center;
}

.manual-warning-box {
  background-color: #f9f7ff;
  border: 2px solid #cdb4f5;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #4b1f94;
  margin-bottom: 16px;
  text-align: center;
}

.info-warning-box {
  background: #fffbe6;
  color: #b8860b;
  border: 1.5px solid #ffe58f;
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.07);
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
}

/* ============================ PREORDER BOX ============================
   Aufgabe: Box für Preorder-Informationen im UI
=============================================================================== */
#preorder_notice_box {
  max-width: 100%;
  margin: 0 0 12px;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  display: block;
  background: transparent;
  border: none;
  transition: background 0.3s;
}

#preorder_notice_box.visible {
  background: #f9f7ff;
  border: 2px solid #cdb4f5;
  padding: 24px;
}

#preorder_notice_box p {
  color: #4b1f94;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ============================ TOGGLE BUTTON MANUELLE ANFRAGE ============================
   Aufgabe: Button zum Öffnen/Schließen des Freitextformulars
=============================================================================== */
.manual-btn-toggle {
  background: white;
  color: #4c4cde;
  border: 2px solid #4c4cde;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  max-width: 360px;
  width: 100%;
  margin: 10px auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  transition: all 0.3s;
  cursor: pointer;
  display: block;
}

.manual-btn-toggle:hover {
  background-color: #4c4cde;
  color: white;
  transform: translateY(-1px);
}

.manual-btn.secondary:disabled {
  background-color: white !important;
  color: #4c4cde !important;
  border: 2px solid #4c4cde !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.manual-btn.secondary.active {
  background-color: #4c4cde;
  color: white;
  border: 2px solid #4c4cde;
  cursor: pointer;
  opacity: 1;
  transform: translateY(-1px);
}

/* Hinweisbox für Preorder-Info unter dem Bestell-Button */
.cardexx-preorder-hint {
  margin: 0 0 12px 20px;
  background: #fffbe6;
  color: #b8860b;
  border: 1.5px solid #ffe58f;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-family: 'IBM Plex Mono', monospace;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-shadow: 0 2px 12px rgba(76, 76, 222, 0.07);
  line-height: 1.6;
  text-align: left;
}

.order-button-slot {
  display: flex;
  flex: 1;
}

.order-button-slot > button {
  width: 100%;
}

.preorder-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ============================ MODAL STYLES ============================
   Aufgabe: Styles für die Login-Modal und deren Elemente
=============================================================================== */
/* Modal-Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.13);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal-Box */
.manual-login-modal {
  background: white;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.09);
  max-width: 380px;
  margin: auto;
  text-align: center;
}

/* Modal-Titel */
.manual-login-modal-title {
  color: #001b60; /* oder #222 für fast schwarz */
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
}

/* Button-Container */
.manual-login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Haupt-Button */
.button-action {
  background: #4c4cde;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  width: 100%;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}
.button-action:hover,
.button-action:focus {
  background: #001b60;
  transform: translateY(-1px);
}

/* Sekundär-Button */
.button-secondary {
  background: #e0e0e0;
  color: #222;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: #d1d1d1;
  color: #111;
  transform: translateY(-1px);
}


/* Cancel-Button */
.button-cancel {
  background: none;
  color: #222;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.18s, transform 0.18s;
}
.button-cancel:hover,
.button-cancel:focus {
  color: #4c4cde;
  transform: translateY(-1px);
}
/* Responsive Finetuning */
@media (max-width: 1100px) {
  .btn-nav.btn-pill {
    min-width: 180px;
    height: 54px;
    padding: 0 18px;
  }
  #user_tokens_label {
    min-width: 200px;
    height: 40px;
  }
  .btn-auth {
    min-width: 120px;
    height: 40px;
    padding: 0 16px 0 40px;
  }
  #auth-slot {
    gap: 12px;
  }
}

@media (max-width: 860px) {
  #statusbar-userpanel .actions {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  #statusbar-userpanel .nav-left {
    order: 1;
    width: 100%;
    justify-content: flex-start;
  }
  #user_tokens_label {
    order: 2;
    min-width: 100%;
  }
  #auth-slot {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .statusbar-guest-cta {
    order: 1;
    width: 100%;
    justify-content: flex-start;
    font-size: 1.1rem;
    text-align: left;
  }
  #auth-slot .btn-auth {
    order: 2;
  }
}

@media (max-width: 600px) {
  .btn-nav.btn-pill {
    min-width: 0;
    flex: 1 1 auto;
    text-align: center;
  }
  .btn-auth {
    width: 100%;
    justify-content: center;
  }
}

/* Optional: Hover & Focus */
#statusbar-userpanel .btn-pill:focus,
.btn-auth:focus {
  outline: 2px solid #7fb3ff;
  outline-offset: 2px;
}
