/*
 * Limex Mein Konto – mein-konto.css
 * Custom My-Account-Seite Styles
 * @package Limex-Child
 */

/* ─── LOKALE VARIABLEN ────────────────────────────────────── */
.lx-mka-wrap {
  --mka-navy:      #1F375A;
  --mka-teal:      #45ADAE;
  --mka-teal-dark: #3a9899;
  --mka-text:      #1a202c;
  --mka-muted:     #6b7280;
  --mka-border:    #e0e0e0;
  --mka-header-h:  100px;
}
.admin-bar .lx-mka-wrap {
  --mka-header-h: 132px;
}

/* ═══════════════════════════════════════════════════════════
   SPLIT-SCREEN (AUSGELOGGT)
════════════════════════════════════════════════════════════ */

.lx-mka-split {
  display: flex;
  min-height: calc(100vh - var(--mka-header-h));
}

/* ── LINKE SEITE: Navy-Panel ── */
.lx-mka-split__left {
  flex: 1;
  background: var(--mka-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.lx-mka-split__left-inner {
  max-width: 440px;
  text-align: center;
}

.lx-mka-split__heading {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.2rem;
  line-height: 1.2;
}

.lx-mka-split__sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  margin: 0 0 2.5rem;
}

.lx-mka-split__cta {
  display: inline-block;
  padding: 13px 40px;
  background: #ffffff;
  border: 2px solid #ffffff;
  color: var(--mka-navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.lx-mka-split__cta:hover,
.lx-mka-split__cta:focus {
  background: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── RECHTE SEITE: Formular ── */
.lx-mka-split__right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.lx-mka-split__right-inner {
  width: 100%;
  max-width: 400px;
}

/* ── Formular-Titel & Sub ── */
.lx-mka-form-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--mka-navy);
  text-align: center;
  margin: 0 0 1.8rem;
}

.lx-mka-form-sub {
  font-size: 14px;
  color: var(--mka-muted);
  text-align: center;
  line-height: 1.6;
  margin: -0.8rem 0 1.6rem;
}

/* ── WooCommerce Notices im Split-Screen ── */
.lx-mka-split__right-inner .woocommerce-error,
.lx-mka-split__right-inner .woocommerce-message,
.lx-mka-split__right-inner .woocommerce-info {
  margin-bottom: 1.2rem;
  font-size: 14px;
}

/* ── Felder ── */
.lx-mka-field {
  margin-bottom: 1rem;
}

.lx-mka-field input[type="text"],
.lx-mka-field input[type="password"],
.lx-mka-field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mka-border) !important;
  border-radius: 4px;
  font-size: 15px;
  color: var(--mka-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.lx-mka-field input[type="text"]:focus,
.lx-mka-field input[type="password"]:focus,
.lx-mka-field input[type="email"]:focus {
  border-color: var(--mka-teal) !important;
  outline: none;
}

.lx-mka-field--remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.lx-mka-field--remember-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mka-muted);
  cursor: pointer;
}
.lx-mka-field--remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--mka-teal);
  cursor: pointer;
  flex-shrink: 0;
}

/* Passwort vergessen – inline neben Checkbox */
.lx-mka-forgot-inline {
  color: var(--mka-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.lx-mka-forgot-inline:hover {
  color: var(--mka-teal);
  text-decoration: underline;
}

.lx-mka-field--actions {
  margin-top: 1.6rem;
}

/* ── Buttons ── */
.lx-mka-wrap .lx-mka-btn--primary,
.lx-mka-wrap button.lx-mka-btn--primary {
  width: 100%;
  padding: 14px !important;
  background: var(--mka-teal) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.01em;
  box-shadow: none !important;
}
.lx-mka-wrap .lx-mka-btn--primary:hover,
.lx-mka-wrap button.lx-mka-btn--primary:hover {
  background: var(--mka-teal-dark) !important;
}

/* ── Log-in Button zentriert ── */
.lx-mka-field--actions {
  margin-top: 1.6rem;
  text-align: center;
}
.lx-mka-field--actions .lx-mka-btn--primary,
.lx-mka-wrap .lx-mka-field--actions button.lx-mka-btn--primary {
  width: auto;
  min-width: 160px;
}

/* ── Zurück-Link (Lost PW) ── */
.lx-mka-form-back {
  margin-top: 1.2rem;
  text-align: center;
}
.lx-mka-form-back a {
  color: var(--mka-teal);
  font-size: 14px;
  text-decoration: none;
}
.lx-mka-form-back a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD (EINGELOGGT)
════════════════════════════════════════════════════════════ */

.lx-mka-dashboard {
  padding: 48px 0 80px;
}

.lx-mka-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.lx-mka-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Sidebar-Navigation ── */
.lx-mka-sidebar .woocommerce-MyAccount-navigation {
  /* reset WooCommerce defaults (float: left; width: 30%) */
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.lx-mka-sidebar .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lx-mka-sidebar .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 14px 20px;
  background: var(--mka-teal);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.15s;
}

.lx-mka-sidebar .woocommerce-MyAccount-navigation ul li a:hover,
.lx-mka-sidebar .woocommerce-MyAccount-navigation ul li.is-active a,
.lx-mka-sidebar .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  background: var(--mka-teal-dark);
}

/* ── Content-Bereich ── */
.lx-mka-content .woocommerce {
  padding: 0;
  margin: 0;
}

.lx-mka-content .woocommerce-MyAccount-content p:first-child {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .lx-mka-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lx-mka-split {
    flex-direction: column;
  }

  .lx-mka-split__left,
  .lx-mka-split__right {
    padding: 56px 24px;
    align-items: center;
    text-align: center;
  }

  .lx-mka-split__right {
    /* Formular oben auf Mobile sieht natürlicher aus */
    order: -1;
  }
}
