/* GSB Kundenkonto 1.1.2 – Anmelden & Registrieren
   Eigenes Markup, eigene Raster. Es werden keine WooCommerce-Spalten
   nachtraeglich umgebogen, darum kann hier nichts verrutschen. */

.gsb-account-gate,
.gsb-register-page {
  --gsb-kk-line: #e6e0d4;
  --gsb-kk-ink: #16181c;
  --gsb-kk-muted: #6e6f6b;
  --gsb-kk-gold: #b3852f;
  --gsb-kk-gold-soft: #fbf6ea;
  box-sizing: border-box;
}
.gsb-account-gate *,
.gsb-account-gate *::before,
.gsb-account-gate *::after,
.gsb-register-page *,
.gsb-register-page *::before,
.gsb-register-page *::after { box-sizing: border-box; }

/* ---------- Mein Konto: Anmelden + Werbebox ---------- */

.gsb-account-gate {
  display: grid;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
  gap: 22px;
}

.gsb-account-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--gsb-kk-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(31, 26, 18, .06);
}

.gsb-account-card__head { margin-bottom: 22px; }

.gsb-account-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--gsb-kk-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.gsb-account-kicker--gold { color: var(--gsb-kk-gold); }

.gsb-account-card h1,
.gsb-account-card h2 {
  margin: 0 0 8px;
  color: var(--gsb-kk-ink);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.gsb-account-card p {
  margin: 0;
  color: var(--gsb-kk-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Felder ---------- */

.gsb-form .form-row,
.gsb-form .gsb-form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
}

.gsb-form label,
.gsb-country-field > label {
  display: block;
  margin: 0 0 6px !important;
  color: #242a33;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.gsb-form .input-text,
.gsb-form input[type="text"],
.gsb-form input[type="email"],
.gsb-form input[type="tel"],
.gsb-form input[type="password"],
.gsb-country-static {
  display: block;
  width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #d9d2c5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #151515 !important;
  font-size: 15px;
  line-height: 1.4;
}
.gsb-form .input-text:focus,
.gsb-form input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: var(--gsb-kk-gold) !important;
  box-shadow: 0 0 0 3px rgba(179, 133, 47, .14) !important;
  outline: none !important;
}
.gsb-country-static {
  display: flex;
  align-items: center;
  background: #faf8f3 !important;
  color: #5b5b58 !important;
}
.gsb-form .required { color: var(--gsb-kk-gold) !important; border: 0; }

/* ---------- Anmelden ---------- */

.gsb-login-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 18px;
}
.gsb-remember {
  display: inline-flex !important;
  min-height: 0 !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
.gsb-remember span {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 600 !important;
}
.gsb-remember input,
.gsb-form input[type="checkbox"] {
  width: 17px !important;
  min-width: 0 !important;
  height: 17px !important;
  min-height: 0 !important;
  flex: 0 0 17px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--gsb-kk-gold);
}
.gsb-lost-password {
  color: #7f601f !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
}
.gsb-lost-password:hover { text-decoration: underline !important; }

/* ---------- Buttons ---------- */

.gsb-button {
  display: inline-flex !important;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.gsb-button--primary {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}
.gsb-button--primary:hover {
  background: #2c2c2c !important;
  border-color: #2c2c2c !important;
}
.gsb-button--gold {
  border-color: #d9b467 !important;
  background: linear-gradient(135deg, #efd58e, #bd8c34) !important;
  color: #191306 !important;
}
.gsb-button--gold:hover { transform: translateY(-1px); }

/* ---------- Werbebox ---------- */

.gsb-account-card--promo {
  border-color: #e7d6ac;
  background: linear-gradient(180deg, #fffdf8 0%, var(--gsb-kk-gold-soft) 100%);
}
.gsb-promo-lead { margin-bottom: 18px !important; }
.gsb-promo-list {
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none !important;
}
.gsb-promo-list li {
  position: relative;
  margin: 0 0 10px !important;
  padding-left: 27px;
  color: #3d3f3c;
  font-size: 14px;
  line-height: 1.5;
  list-style: none !important;
}
.gsb-promo-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gsb-kk-gold);
  color: #fff;
  content: "\2713";
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.gsb-promo-note {
  margin-top: 12px !important;
  font-size: 12.5px !important;
  text-align: center;
}

/* ---------- Registrierungsseite ---------- */

.gsb-register-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.gsb-register-page__head { margin-bottom: 20px; }
.gsb-register-page__head h1 {
  margin: 0 0 8px;
  color: var(--gsb-kk-ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.gsb-register-page__head p {
  margin: 0;
  color: var(--gsb-kk-muted);
  font-size: 15px;
  line-height: 1.55;
}

.gsb-fieldset { margin: 0 0 24px; }
.gsb-fieldset + .gsb-fieldset {
  padding-top: 22px;
  border-top: 1px solid #efe9dc;
}
.gsb-fieldset__title {
  margin: 0 0 4px;
  color: var(--gsb-kk-ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.gsb-fieldset__hint {
  margin: 0 0 16px !important;
  color: var(--gsb-kk-muted);
  font-size: 13.5px;
}
.gsb-fieldset__title + .gsb-register-grid { margin-top: 16px; }

/* Sechs Spalten als Basis: haelt Halb-, Drittel- und Zweidrittelfelder sauber. */
.gsb-register-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 16px;
}
.gsb-register-grid > .form-row,
.gsb-register-grid > p { grid-column: 1 / -1; }
.gsb-col-full     { grid-column: span 6 !important; }
.gsb-col-half     { grid-column: span 3 !important; }
.gsb-col-third    { grid-column: span 2 !important; }
.gsb-col-twothird { grid-column: span 4 !important; }

.gsb-verification-note {
  display: grid;
  margin: 4px 0 22px;
  padding: 15px 16px;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid #e3cb94;
  border-radius: 14px;
  background: #fcf8ee;
}
.gsb-verification-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gsb-kk-ink);
  font-size: 14px;
}
.gsb-verification-note span {
  color: #64655f;
  font-size: 13px;
  line-height: 1.45;
}
.gsb-verification-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gsb-kk-gold);
  box-shadow: 0 0 0 5px rgba(179, 133, 47, .13);
}

.gsb-register-back {
  margin: 18px 0 0 !important;
  color: var(--gsb-kk-muted);
  font-size: 13.5px;
  text-align: center;
}
.gsb-register-back a {
  color: #7f601f !important;
  font-weight: 700;
  text-decoration: none !important;
}
.gsb-register-back a:hover { text-decoration: underline !important; }

.gsb-register-page--done {
  padding: 22px 24px;
  border: 1px solid var(--gsb-kk-line);
  border-radius: 18px;
  background: #fff;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .gsb-account-gate {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gsb-account-card { padding: 24px; }
}

/* ---------- Handy ---------- */

@media (max-width: 640px) {
  .gsb-account-card,
  .gsb-register-page--done {
    padding: 20px;
    border-radius: 18px;
  }
  .gsb-account-card h1,
  .gsb-account-card h2 { font-size: 22px; }
  .gsb-account-card p { font-size: 13.5px; }

  /* Auf dem Handy ein Feld pro Zeile: kurze Felder nebeneinander werden
     sonst zu schmal fuer Strasse, Ort oder E-Mail. */
  .gsb-register-grid { grid-template-columns: 1fr; column-gap: 0; }
  .gsb-col-full,
  .gsb-col-half,
  .gsb-col-third,
  .gsb-col-twothird { grid-column: 1 / -1 !important; }

  /* Ausnahme: PLZ und Ort passen nebeneinander und sparen eine Zeile. */
  .gsb-register-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 12px; }
  #billing_postcode_field.gsb-col-third { grid-column: span 2 !important; }
  #billing_city_field.gsb-col-twothird { grid-column: span 4 !important; }

  .gsb-form .input-text,
  .gsb-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .gsb-country-static {
    min-height: 46px;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    /* 16px verhindert das Hineinzoomen von iOS beim Antippen. */
    font-size: 16px;
  }
  .gsb-form label { font-size: 13px; }
  /* Beides in eine Zeile, sonst entstehen zwei Zeilen mit viel Leerraum. */
  .gsb-login-meta { flex-wrap: wrap; gap: 7px 12px; margin-bottom: 16px; }
  .gsb-remember { font-size: 13px !important; }
  .gsb-lost-password { font-size: 13px; }
  .gsb-register-page__head h1 { font-size: 26px; }
  .gsb-fieldset__title { font-size: 16px; }
}

@media (max-width: 380px) {
  .gsb-account-card { padding: 17px; }
  .gsb-register-grid { column-gap: 9px; }
}

/* =========================================================
   1.1.1 – Nur noch EIN Rahmen
   =========================================================
   Das Theme legt auf der Anmeldeseite zwei weitere Rahmen um den Inhalt:
   einmal um den WooCommerce-Wrapper und einmal um das Formular selbst.
   Zusammen mit der Karte des Plugins waren das drei Rahmen ineinander,
   die vor allem auf dem Handy sehr viel Platz gekostet haben.
   Hier bleibt nur die Karte. Dieses Stylesheet wird ausschliesslich auf der
   Anmelde- und der Registrierungsseite geladen, sonst aendert sich nichts. */

/* Der weisse Kasten des Themes um den gesamten Seiteninhalt. */
body.gsb-kk-page .site-main,
body.gsb-kk-page .site-main > article,
body.gsb-kk-page .entry-content {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Gleicher Abstand oben wie unten. Er sitzt bewusst auf dem Hauptbereich,
   damit ihn die Abstandsregeln des Themes nicht wieder aufheben. */
body.gsb-kk-page .site-main {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

/* Der zweite Kasten des Themes um den WooCommerce-Bereich. */
body.gsb-kk-page .site-main .woocommerce,
body.woocommerce-account:not(.logged-in) .site-main .woocommerce,
body.woocommerce-account:not(.logged-in) .woocommerce {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Das Formular ist nur noch Inhalt, kein eigener Kasten mehr. */
.gsb-form,
body.woocommerce-account:not(.logged-in) .woocommerce-form-login,
body.woocommerce-account:not(.logged-in) .woocommerce-form-register {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* Die Karte traegt den Rahmen. */
.gsb-account-card {
  border: 1px solid var(--gsb-kk-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
}
.gsb-account-card--promo {
  border-color: #e7d6ac !important;
  background: linear-gradient(180deg, #fffdf8 0%, var(--gsb-kk-gold-soft) 100%) !important;
}

@media (max-width: 640px) {
  body.gsb-kk-page .site-main .woocommerce,
  body.woocommerce-account:not(.logged-in) .site-main .woocommerce,
  body.woocommerce-account:not(.logged-in) .woocommerce {
    margin: 0 auto !important;
  }
  .gsb-account-card { border-radius: 18px !important; }
  body.gsb-kk-page .site-main {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
}
