/*
  Syntico Kundenbereich – dunkle Tafel (Entwurf B, gewaehlt vom Inhaber am 20.11.2026) fuer
  Anmeldung, Passwort vergessen und Passwort zuruecksetzen (Controller "authentication").
  Tafel wie das Kopfband von www.syntico.de (basis.css .kopfband), Felder, Haken und Knopf wie das
  Kontaktformular (kontakt.css .kf-rahmen, .kf-check, .kf-senden). Laedt nach basis.css.
*/

/* ----------------------------------------------------------------- Tafel */

body.customers {
  position: relative;
  isolation: isolate;
  color: var(--skb-creme);
  --skb-fokus: var(--skb-gold);
}

/* Die Tafel liegt als Hintergrund hinter Navigation, Inhalt und Fusszeile, rundum um --skb-abstand eingerueckt */
body.customers::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--skb-abstand);
  border-radius: var(--skb-radius);
  background:
    url("../bilder/s-motiv.svg") no-repeat left -110px bottom -150px / 520px auto,
    radial-gradient(70% 90% at 92% 120%, rgba(247, 135, 31, 0.8) 0%, rgba(247, 135, 31, 0) 62%),
    radial-gradient(70% 90% at 4% -10%, rgba(211, 32, 47, 0.42) 0%, rgba(211, 32, 47, 0) 60%),
    linear-gradient(168deg, #2a0f0a 0%, #190907 45%, #0c0505 100%);
}

body.customers .navbar.header {
  top: calc(var(--skb-abstand) + 18px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 12, 12, 0.82);
  box-shadow: none;
  color: #fff;
  --skb-fokus: var(--skb-orange);
}
body.customers .navbar.header .navbar-nav > li.customers-nav-item-login > a,
body.customers .navbar.header .navbar-nav > li.customers-nav-item-login > a:hover,
body.customers .navbar.header .navbar-nav > li.customers-nav-item-login > a:active {
  background: #fff !important;
  color: var(--skb-tinte) !important;
}

body.customers #wrapper {
  padding: clamp(118px, 17vh, 160px) clamp(30px, 6vw, 88px) 32px;
}
body.customers #content > .container {
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
body.customers #content > .container > .row { margin: 0; }

/* -------------------------------------------- Aufbau: Ueberschrift und Formular */

/* Einspaltig (Passwort vergessen, Passwort zuruecksetzen) */
body.customers .mtop40 {
  float: none;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}
body.customers .mtop40[class*="col-"],
body.customers .mtop40 > [class*="col-"] {
  float: none;
  width: auto;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
  text-align: left;
}
body.customers .mtop40[class*="col-"] { margin-right: auto; margin-left: auto; }

/* Anmeldung: Ueberschrift links, Formular rechts */
body.customers.customers_login .mtop40 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px clamp(40px, 7vw, 96px);
  max-width: none;
}
body.customers.customers_login .mtop40 > :last-child {
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

body.customers .mtop40 h1 {
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}
body.customers .mtop40 h1.login-heading {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
/* Zusatztexte aus den Sprachdateien des Moduls (syntico_kundenbereich.php, Variablen --skb-zeile/--skb-unterzeile) */
body.customers .login-heading::before {
  content: var(--skb-zeile, "");
  display: block;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}
body.customers .login-heading::after {
  content: var(--skb-unterzeile, "");
  display: block;
  max-width: 26rem;
  margin: 22px 0 0;
  color: rgba(255, 247, 238, 0.72);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------- Formular */

body.customers .panel_s {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.customers .panel_s > .panel-body {
  padding: 0;
  background: transparent;
}

body.customers .panel_s .form-group { margin: 0 0 12px; }

body.customers .panel_s label,
body.customers .panel_s .control-label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 247, 238, 0.78);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

/* Grundform ohne :has(): Rahmen um das Eingabefeld, Beschriftung darueber */
body.customers .panel_s .form-control {
  height: 50px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  caret-color: var(--skb-gold);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
body.customers .panel_s .form-control:hover { border-color: rgba(255, 255, 255, 0.3); }
body.customers .panel_s .form-control:focus {
  border-color: var(--skb-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 203, 21, 0.2);
  outline: none;
}
body.customers .panel_s .form-control::placeholder { color: rgba(255, 247, 238, 0.5); }
/* Vom Browser ausgefuellte Felder: Chrome legt eine helle Fuellfarbe darunter (nicht ueberschreibbar),
   eine dunkle Innenschattenflaeche deckt sie ab. :-webkit-autofill und :autofill als getrennte Regeln,
   damit ein Browser, der eine Schreibweise nicht kennt, nicht die ganze Regel verwirft. */
body.customers .panel_s input.form-control:-webkit-autofill,
body.customers .panel_s input.form-control:-webkit-autofill:hover,
body.customers .panel_s input.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #2a1a14 inset;
  box-shadow: 0 0 0 1000px #2a1a14 inset;
  caret-color: var(--skb-gold);
}
body.customers .panel_s input.form-control:autofill,
body.customers .panel_s input.form-control:autofill:hover,
body.customers .panel_s input.form-control:autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #2a1a14 inset;
  caret-color: var(--skb-gold);
}

/* Mit :has(): Beschriftung im Rahmen wie das Kontaktformular der Website */
@supports selector(:has(*)) {
  body.customers .panel_s .form-group:has(> .form-control) {
    padding: 11px 16px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    cursor: text;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  }
  body.customers .panel_s .form-group:has(> .form-control):hover { border-color: rgba(255, 255, 255, 0.3); }
  body.customers .panel_s .form-group:has(> .form-control):focus-within {
    border-color: var(--skb-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 203, 21, 0.2);
  }
  body.customers .panel_s .form-group:has(> .form-control) > label { margin: 0; }
  body.customers .panel_s .form-group:has(> .form-control) > .form-control,
  body.customers .panel_s .form-group:has(> .form-control) > .form-control:hover,
  body.customers .panel_s .form-group:has(> .form-control) > .form-control:focus {
    height: auto;
    padding: 4px 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Ausgefuellt durch den Browser: Die Regel oben (box-shadow: none) ist staerker als die Autofill-Regel
     weiter oben; dann stand weisse Schrift auf Chromes hellem Grund (gemeldet vom Inhaber, 21.11.2026).
     Hier mit hoeherer Gewichtung, und der Rahmen bekommt dieselbe Farbe wie die Deckflaeche. */
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:-webkit-autofill,
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:-webkit-autofill:hover,
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #2a1a14 inset;
    box-shadow: 0 0 0 1000px #2a1a14 inset;
  }
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:autofill,
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:autofill:hover,
  body.customers .panel_s .form-group:has(> .form-control) > input.form-control:autofill:focus {
    -webkit-text-fill-color: #fff;
    box-shadow: 0 0 0 1000px #2a1a14 inset;
  }
  body.customers .panel_s .form-group:has(> input.form-control:-webkit-autofill),
  body.customers .panel_s .form-group:has(> input.form-control:-webkit-autofill):hover,
  body.customers .panel_s .form-group:has(> input.form-control:-webkit-autofill):focus-within { background-color: #2a1a14; }
  body.customers .panel_s .form-group:has(> input.form-control:autofill),
  body.customers .panel_s .form-group:has(> input.form-control:autofill):hover,
  body.customers .panel_s .form-group:has(> input.form-control:autofill):focus-within { background-color: #2a1a14; }
}

/* Sprachauswahl (bootstrap-select ersetzt das select durch einen Knopf mit Liste) */
body.customers .panel_s .bootstrap-select > .dropdown-toggle,
body.customers .panel_s .bootstrap-select > .dropdown-toggle:hover,
body.customers .panel_s .bootstrap-select > .dropdown-toggle:focus,
body.customers .panel_s .bootstrap-select.open > .dropdown-toggle {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  outline: none;
  transform: none;
}
/* Auch mit :hover, sonst gewinnt beim Zeigen die Rahmenregel oben (mit :has) und gibt dem Huellelement
   4/8 px Innenabstand: die Sprachauswahl wurde 12 px hoeher (gemeldet vom Inhaber, 21.11.2026). */
body.customers .panel_s .form-group > .bootstrap-select.form-control,
body.customers .panel_s .form-group > .bootstrap-select.form-control:hover,
body.customers .panel_s .form-group > .bootstrap-select.form-control:focus {
  height: auto;
  padding: 0;
}
body.customers .panel_s .bootstrap-select > .dropdown-toggle {
  height: auto;
  min-height: 0;
  padding: 4px 28px 8px 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}
body.customers .panel_s .bootstrap-select > .dropdown-toggle .filter-option-inner-inner { color: #fff; }
body.customers .panel_s .bootstrap-select .dropdown-menu {
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -24px rgba(10, 10, 13, 0.8);
  color: var(--skb-tinte);
}
body.customers .panel_s .bootstrap-select .dropdown-menu .bs-searchbox .form-control {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(10, 10, 13, 0.16);
  border-radius: 12px;
  background: #f6f6f9;
  color: var(--skb-tinte);
  font-size: 15px;
  caret-color: var(--skb-fokus);
}
body.customers .panel_s .bootstrap-select .dropdown-menu li a {
  border-radius: 10px;
  color: var(--skb-tinte);
}
body.customers .panel_s .bootstrap-select .dropdown-menu li a:hover,
body.customers .panel_s .bootstrap-select .dropdown-menu li.selected a,
body.customers .panel_s .bootstrap-select .dropdown-menu li.active a {
  background: rgba(247, 135, 31, 0.14);
  color: var(--skb-tinte);
}

/* Haken "Eingeloggt bleiben": Perfex blendet das echte Feld aus und zeichnet das Kaestchen am label */
body.customers .panel_s .checkbox {
  position: relative;
  margin: 18px 0 0;
  padding: 0 0 0 34px;
}
body.customers .panel_s .checkbox input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
  opacity: 0;
}
/* label nicht positioniert (Perfex: relative), damit sich das Kaestchen an .checkbox ausrichtet */
body.customers .panel_s .checkbox label {
  position: static;
  display: inline-block;
  min-height: 22px;
  margin: 0;
  padding: 0;
  color: rgba(255, 247, 238, 0.84);
  font-size: 14.5px;
  line-height: 22px;
  cursor: pointer;
}
body.customers .panel_s .checkbox label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transition: background-color 0.25s, border-color 0.25s;
}
body.customers .panel_s .checkbox label::after,
body.customers .panel_s .checkbox input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  background: #0c0708;
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 20%, 86% 7%, 38% 72%);
  font-family: inherit;
  transform: scale(0);
  transition: transform 0.3s var(--skb-feder);
}
body.customers .panel_s .checkbox input[type="checkbox"]:checked + label::before {
  border-color: var(--skb-gold);
  background: var(--skb-gold);
}
body.customers .panel_s .checkbox input[type="checkbox"]:checked + label::after { transform: scale(1); }
body.customers .panel_s .checkbox input[type="checkbox"]:focus-visible + label::before {
  outline: 3px solid var(--skb-gold);
  outline-offset: 2px;
}

/* reCAPTCHA: das Feld selbst zeichnet Google */
body.customers .panel_s .g-recaptcha { margin: 6px 0 4px; }

/* Knopf "Anmelden": weisse Pille mit rotem Pfeilkreis */
body.customers .panel_s .btn-primary,
body.customers .panel_s .btn-primary:focus,
body.customers .panel_s .btn-primary:hover,
body.customers .panel_s .btn-primary:active {
  border: 0;
  background: #fff;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
  color: var(--skb-tinte);
}
body.customers .panel_s .btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  margin-top: 6px;
  padding: 0 10px 0 26px;
  font-size: 15.5px;
  font-weight: 500;
  white-space: normal;
}
body.customers .panel_s .btn-primary::after {
  content: "";
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--skb-rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9.5M8.5 4l4 4-4 4'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.4s var(--skb-feder);
}
body.customers .panel_s .btn-primary:hover::after { transform: translateX(3px); }
body.customers .panel_s .form-group.tw-mt-6 { margin-top: 26px; }

/* Weitere Knoepfe (z. B. Passkey auf labor): helle Kontur */
body.customers .panel_s .btn-default,
body.customers .panel_s .btn-default:hover,
body.customers .panel_s .btn-default:focus,
body.customers .panel_s .btn-default:active {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: var(--skb-creme);
}
body.customers .panel_s .btn-default { min-height: 50px; padding: 12px 20px; }

/* "Passwort vergessen?" */
body.customers .panel_s .text-muted {
  color: #ffd98a;
  font-size: 14.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.customers .panel_s .text-muted:hover { color: #fff; }

/* Meldungen */
body.customers .alert {
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--skb-creme);
}
body.customers .alert-danger {
  border-color: rgba(255, 151, 131, 0.5);
  background: rgba(212, 0, 53, 0.22);
  color: #ffd2c8;
}
body.customers .alert-success {
  border-color: rgba(255, 203, 21, 0.45);
  background: rgba(255, 203, 21, 0.12);
}
body.customers .alert .close { color: #fff; opacity: 0.7; text-shadow: none; }
body.customers .text-danger,
body.customers .panel_s .text-danger { margin: 6px 4px 0; color: #ffc2b4; font-size: 13.5px; }

/* --------------------------------------------------------------- Fusszeile */

body.customers .footer {
  padding: 0 clamp(30px, 6vw, 88px) calc(var(--skb-abstand) + 26px);
  color: rgba(255, 247, 238, 0.62);
}
body.customers .footer .container { width: auto; max-width: 1180px; padding: 0; }
body.customers .footer .row { margin: 0; }
body.customers .footer .text-center { padding: 0; text-align: left; }
body.customers .footer a:hover { color: #fff; }

/* ------------------------------------------------------------ schmaler */

@media (max-width: 991px) {
  body.customers.customers_login .mtop40 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  body.customers.customers_login .mtop40 > :last-child { justify-self: stretch; max-width: none; }
}

@media (max-width: 767px) {
  body.customers::before {
    background:
      url("../bilder/s-motiv.svg") no-repeat right -120px top 40px / 300px auto,
      radial-gradient(70% 90% at 92% 120%, rgba(247, 135, 31, 0.8) 0%, rgba(247, 135, 31, 0) 62%),
      radial-gradient(70% 90% at 4% -10%, rgba(211, 32, 47, 0.42) 0%, rgba(211, 32, 47, 0) 60%),
      linear-gradient(168deg, #2a0f0a 0%, #190907 45%, #0c0505 100%);
  }
  body.customers #wrapper { padding: 100px 18px 24px; }
  body.customers .mtop40 h1.login-heading { font-size: 46px; }
  body.customers .footer { padding: 0 18px calc(var(--skb-abstand) + 18px); }
  body.customers .footer .text-center { text-align: center; }
}
