/* Grundlayout */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #f5f5f7;
  color: #111827;
  line-height: 1.5;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Seite soll normal scrollen, nicht vertikal zentriert sein */
.signup-page {
  min-height: 100vh;
  display: block;
  padding: 0;
}

/* Wrapper und Card */

.signup-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.signup-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow:
    0 18px 28px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

/* Header mit Logos – schwarzer Balken oben */

.branding-header {
  background-color: #000000;
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;      /* kein sticky mehr, damit nichts überlappt */
  z-index: 10;
}

.signup-header {
  text-align: center;
  margin-bottom: 16px;
}

.logo-pair {
  display: inline-flex;
  align-items: center;
  gap: 32px;              /* mehr Abstand zwischen den Logos */
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Basis: nicht mehr global beschneiden */
.logo-link img {
  display: block;
  height: auto;
  width: auto;
}

/* Keine zusätzliche Max-Height mehr für alle Logos im Header */
.branding-header .logo-link img {
  max-height: none;
}

/* Individuelle Größensteuerung */
.logo-metzeler img {
  height: 28px;           /* Metzeler eher flach → etwas kleiner */
}

.logo-pirelli img {
  height: 32px;           /* PIRELLI minimal höher für optische Balance */
}

.logo-divider {
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.6);
}

/* Überschriften und Texte */

.signup-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0f172a;
}

.signup-intro {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #4b5563;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #111827;
}

.options-intro,
.legal-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Grid-System (leicht an Bootstrap angelehnt, aber eigenständig) */

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

[class^="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.col-12,
.col-md-6,
.col-md-8,
.col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Breakpoints */

@media (min-width: 768px) {
  .signup-card {
    padding: 40px 32px;
  }

  /* Nur die 2-Spalten-Felder (Vorname/Nachname, etc.) splitten */
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Kein zusätzliches Verkleinern des äußeren Containers mehr
@media (min-width: 1024px) {
  ... bewusst leer gelassen ...
}
*/

/* Formular-Elemente */

.signup-form {
  margin-top: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 4px;
}

.form-control,
.form-control[type="text"],
.form-control[type="email"],
.form-control[type="password"],
.form-control[type="tel"],
select.form-control {
  width: 100%;
  display: block;
  padding: 9px 11px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control:focus,
select.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

/* Checkboxes */

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.form-check-input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  line-height: 1;           /* engerer Zeilenabstand */
}

.form-check-label strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0;           /* kaum Abstand zwischen Titel und Beschreibung */
  font-weight: 600;
}

/* Button */

.form-actions {
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

.btn-primary {
  background-color: #111827;
  color: #ffffff;
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background-color: #020617;
  box-shadow:
    0 14px 24px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: #020617;
  box-shadow:
    0 8px 12px rgba(15, 23, 42, 0.3),
    0 0 0 1px rgba(15, 23, 42, 0.25);
  transform: translateY(0);
}

/* Kleinere Helferklassen */

.b2b-signup {
  padding: 0;
}

.checkbox-row {
  margin-bottom: 10px;
}

/* Mobile-Tuning */

@media (max-width: 480px) {
  .signup-card {
    padding: 24px 16px;
  }

  .signup-title {
    font-size: 1.5rem;
  }
}

/* Inline-Validation */

/* Abschlussradius/Border bei Fehlern */
.field-error .form-control,
.field-error .form-check-input {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.15);
}

.field-valid .form-control,
.field-valid .form-check-input {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08);
}

/* Fehlermeldung unter dem Feld */
.error-message {
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 4px;
}

/* Märkte-Fehlertext soll wie normale Fehler aussehen */
#markets-error.error-message {
  margin-bottom: 4px;
}