html, body {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #f1faee;
  background: url('../img/backgroundKCAsp.png') no-repeat center center fixed;
  background-size: cover;
  height: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.layout-container {
  max-width: 30%;
  min-width: 175px;
  width: 100%; /* ← wichtig */
  margin: 5% auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 0;
  
  /* NEU: besserer Umgang mit geringer Höhe */
  max-height: 90vh;
  overflow: auto;
}


/* 🔼 Oben: Gedrehtes Logo mit weißem Hintergrund */

.kc-top-logo,
.kc-form,
.kc-bottom-logo {
  width: 100%;
  box-sizing: border-box; /* verhindert Überlauf durch Padding */
}

.kc-form-header {
  font-size: 12px;
  color: white;
  text-align: left;
  margin: -23px 0px 35px -5px;  /* nach oben und links raus aus dem Padding */
  align-self: flex-start;
}

.kc-top-logo {
  width: 100%;
  height: 100px; /* vorher: 150px */
  overflow: hidden;
  position: relative;
  background-color: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kc-top-logo img {
  max-height: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  contain: layout paint;
}

.kc-top-logo::before {
  content: "";
  position: absolute;
  top: -40px;               /* Statt %-Wert: kontrollierbarer Abstand */
  left: -50px;              /* Kontrolliert aus dem sichtbaren Bereich */
  width: 500px;
  height: 500px;

  background-image: url('../img/reifenspurV-lang150.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;

  transform: rotate(40deg);
  z-index: 0;
  pointer-events: none;     /* sicherstellen, dass nichts blockiert wird */
}

/* 🧾 Loginfeld */
.kc-form {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin: 0 auto;

  background-image: linear-gradient(270deg, rgba(255, 255, 225, 0.2), transparent);
  background-color: #333951;

  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  backdrop-filter: blur(10px);
  z-index: 1;
  min-height: unset; /* vorher: 250px → kann entfallen */
  width: 100%;
  max-width: 100%;  /* ← damit es nie breiter als Container wird */
}

.kc-form-group.full-width {
  margin-top: 3%;
  align-self: flex-end; /* Button wird unten im Formblock ausgerichtet */
  width: 100%;
}

.kc-form-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
    gap: 10px;
}

.kc-label {
  width: 100px;
  text-align: left;
  font-size: 13px;
  color: white;
  flex: 0 0 auto;
}

.kc-input {
  flex: 1 1 auto;
  padding: 10px;
  font-size: 13px;
  border: none;
  border-radius: 5px;
  margin-left: 10px;
  min-width: 0;
  width: auto;
}
/* Liste der erforderlichen Aktionen */
.kc-req-list {
  list-style: disc;
  margin: 10px 0 20px 20px;
  text-align: left;
}

/* Link wie Button stylen (gleicher Look wie .kc-button) */
.kc-button-link {
  display: inline-block;
  width: 100%;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  color: #333951;
  background: linear-gradient(to bottom, #FFFFFF 0%, #DEE0E2 100%);
  border-radius: 5px;
  transition: color 0.3s ease, background 0.3s ease;
}
.kc-button-link:hover {
  background: linear-gradient(to top, #DEE0E2 0%, #FFFFFF 100%);
  color: #A20067;
}

.kc-button {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  background: linear-gradient(to bottom, #FFFFFF 0%, #DEE0E2 100%);
  color: #333951;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.3s ease, background 0.3s ease;
  text-decoration: none;
}
.kc-button:hover {
  background: linear-gradient(to top, #DEE0E2 0%, #FFFFFF 100%);
  color: #A20067;
}
.kc-form-options {
  text-align: right;
  margin-top: 5px;
}

.kc-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  width: 100%;
  font-size: 13px;
}

.kc-remember-me {
  color: #f1faee;
  display: flex;
  align-items: center;
}

.kc-remember-me input {
  margin-right: 5px;
}

.kc-forgot-password {
  color: #ccc;
  text-decoration: underline;
  font-size: 13px;
}

.kc-forgot-password:hover {
  color: #A20067;
}
.kc-header-wrapper {
  font-size: 18px;
  color: #A20067;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 3%;
}
.kc-header-wrapper img {
  max-height: 12vh;
  width: auto;
}
.kc-header-wrapper a {
	font-size: 14px;
	color: #005eb8;
	text-align: center;
	text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
}

.kc-fixed-corner-logo {
  position: fixed;
  bottom: 2%;
  right: 2%;
  z-index: 1000;
}

.kc-fixed-corner-logo img {
  max-width: 10vw; /* passe nach Wunsch an */
  height: auto;
  opacity: 0.85;
}

.kc-fixed-corner-logo img:hover {
  opacity: 1;
  transform: scale(1.15);
  transition: all 0.2s ease-in-out;
}

.kc-error {
  background-color: #A20067;
  background-image: none;
  color: white;
  text-align: center;
  font-size: 22px;
  padding: 40px;
  border-radius: 0 0 10px 10px;
  min-height: 150px;
    display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.kc-error-message {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding: 30px 10px;
  color: white;
}

.kc-footer {
  position: fixed;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;

  font-size: 10px;
  color: #A20067;

  background: transparent;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.kc-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-bottom: 0.8%;
}

.kc-footer-link {
  font-size: 10px;
  color: #005eb8;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kc-footer-link:hover {
  color: #A20067;
}

.kc-footer-separator {
  color: #A20067;
}