* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-1: #061b35;
  --navy-2: #02152d;
  --navy-3: #000b18;
  --gold: #e7a933;
  --gold-light: #ffd56f;
  --gold-dark: #b9780b;
  --white: #ffffff;
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.32);
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--white);
  background-color: #020c1b;
  background-image:
    linear-gradient(rgba(1, 8, 18, .08), rgba(1, 8, 18, .08)),
    url("assets/infinity-background-desktop.webp?v=20260804-bg-master-1");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px 34px;
}

.login-card {
  width: min(100%, 700px);
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(92%, 570px);
  height: auto;
  margin: 0 auto 62px;
  border: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: screen;
}

h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -.02em;
}

.subtitle {
  margin: 14px 0 42px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
}

form {
  text-align: left;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 72px;
  padding: 0 64px 0 72px;
  color: var(--white);
  font-size: 19px;
  background: rgba(0, 14, 34, .48);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
}

.input-wrap input::placeholder {
  color: rgba(255,255,255,.55);
}

.input-wrap input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(231,169,51,.13);
}

.icon,
.toggle-password {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-light);
}

.icon {
  left: 22px;
  font-size: 30px;
  line-height: 1;
}

.icon.lock {
  font-size: 23px;
}

.toggle-password {
  right: 20px;
  border: 0;
  background: transparent;
  font-size: 29px;
  cursor: pointer;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 28px 0 38px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
}

.remember input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.text-link {
  color: var(--gold-light);
  font-size: 18px;
  text-underline-offset: 6px;
}

.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 74px;
  border-radius: 13px;
  font-size: 24px;
  text-decoration: none;
}

.primary-button {
  border: 1px solid #ffe28e;
  color: var(--navy-2);
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), transparent 42%),
    linear-gradient(135deg, var(--gold-light), var(--gold) 58%, var(--gold-dark));
  cursor: pointer;
}

.button-icon {
  font-size: 34px;
  font-weight: 400;
}

.divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 36px 0 32px;
  color: var(--muted);
  font-size: 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231,169,51,.78), transparent);
}

.secondary-button {
  width: min(100%, 450px);
  min-height: 68px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 500;
  background: rgba(0, 11, 28, .26);
}

footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(231,169,51,.48);
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 680px) {
  body {
    background-image:
      linear-gradient(rgba(1, 8, 18, .08), rgba(1, 8, 18, .08)),
      url("assets/infinity-background-mobile.webp?v=20260804-bg-master-1");
    background-position: center top;
    background-attachment: scroll;
  }

  .page {
    padding-top: 26px;
  }

  .brand-logo {
    width: min(92%, 460px);
    margin-bottom: 42px;
  }

  .subtitle {
    margin-bottom: 34px;
  }

  .input-wrap input {
    height: 64px;
    padding-left: 58px;
    font-size: 17px;
  }

  .icon {
    left: 18px;
    font-size: 27px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .primary-button,
  .secondary-button {
    min-height: 64px;
    font-size: 20px;
  }

  footer {
    margin-top: 52px;
  }
}


.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
}


.status-message {
  display: none;
  margin: -18px 0 28px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
}

.status-message.visible {
  display: block;
}

.status-message.success {
  color: #d9ffe5;
  background: rgba(42, 151, 78, .18);
  border: 1px solid rgba(112, 224, 145, .55);
}

.status-message.error {
  color: #ffe2e2;
  background: rgba(170, 44, 44, .20);
  border: 1px solid rgba(255, 126, 126, .55);
}

.status-message.info {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: .65;
  cursor: wait;
}

.dashboard-panel {
  margin: 20px 0 34px;
  padding: 30px;
  border: 1px solid rgba(231,169,51,.42);
  border-radius: 13px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  background: rgba(0, 11, 28, .26);
}

.action-button {
  cursor: pointer;
}


/* Registrierung – Adressdaten */
.optional-label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(150px, .65fr) minmax(220px, 1.35fr);
  gap: 18px;
}

.select-wrap select {
  width: 100%;
  height: 72px;
  padding: 0 50px 0 22px;
  color: var(--white);
  font-size: 19px;
  background: rgba(0, 14, 34, .48);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  cursor: pointer;
}

.select-wrap select:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(231,169,51,.13);
}

.select-wrap select option {
  color: #02152d;
  background: #ffffff;
}

.consent-group {
  margin: 6px 0 34px;
}

.consent-group .consent {
  margin: 0 0 14px;
}

@media (max-width: 680px) {
  .address-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .select-wrap select {
    height: 64px;
    font-size: 17px;
  }
}


.legal-inline-link {
  color: var(--gold-light);
  text-underline-offset: 4px;
}

/* =========================================================
   INFINITY – Sprachschalter Login V2
   ========================================================= */
.login-shell {
  width: 100%;
  max-width: 700px;
  min-width: 0;
  margin-inline: auto;
}

.login-shell .login-card {
  width: 100%;
}

.language-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 8px 13px;
  border: 1px solid rgba(231, 169, 51, .38);
  border-radius: 12px;
  background: rgba(0, 11, 24, .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.active {
  color: var(--gold-light);
}

.language-option.active {
  font-weight: 700;
}

.language-flag {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.language-separator {
  color: rgba(255, 255, 255, .28);
  font-size: 14px;
}

@media (max-width: 680px) {
  .language-switch {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 22px;
    padding: 7px 8px;
  }

  .language-option {
    flex: 0 0 auto;
    gap: 4px;
    font-size: 13px;
    letter-spacing: .02em;
  }

  .language-flag {
    width: 20px;
    height: 14px;
  }

  .language-separator {
    display: none;
  }
}

@media (max-width: 360px) {
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .language-switch {
    padding-left: 6px;
    padding-right: 6px;
  }

  .language-option {
    gap: 3px;
    font-size: 12px;
  }

  .language-flag {
    width: 18px;
    height: 13px;
  }
}

/* =========================================================
   INFINITY – öffentliche Angebotskachel Login 041A
   ========================================================= */
.offer-tile {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 26px 28px 22px;
  color: var(--white);
  text-decoration: none;
  background: rgba(0, 14, 34, .56);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 0 0 rgba(231,169,51,0);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.offer-tile:hover,
.offer-tile:focus-visible {
  border-color: var(--gold-light);
  background: rgba(0, 18, 42, .68);
  box-shadow: 0 0 18px rgba(231,169,51,.34), 0 10px 28px rgba(0,0,0,.24);
  outline: none;
}

.offer-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.offer-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 18px;
  text-align: center;
}

.offer-benefit + .offer-benefit {
  border-left: 1px solid rgba(255,255,255,.16);
}

.offer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-bottom: 7px;
  color: var(--gold);
}

.offer-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-benefit strong {
  margin-bottom: 7px;
  font-size: 20px;
  line-height: 1.2;
}

.offer-benefit > span:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(231,169,51,.48);
  color: var(--gold);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: .015em;
}

.offer-arrow {
  font-size: 34px;
  line-height: 1;
  transition: transform .22s ease;
}

.offer-tile:hover .offer-arrow,
.offer-tile:focus-visible .offer-arrow {
  transform: translateX(4px);
}

.offer-subline {
  margin-top: 10px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.login-intro {
  margin-top: 38px;
}

.login-intro .subtitle {
  margin-bottom: 42px;
}

@media (max-width: 680px) {
  .offer-tile {
    margin-top: 6px;
    padding: 20px 14px 18px;
    border-width: 2px;
    border-radius: 16px;
  }

  .offer-benefit {
    padding: 0 8px;
  }

  .offer-icon {
    min-height: 34px;
  }

  .offer-icon svg {
    width: 34px;
    height: 34px;
  }

  .offer-benefit strong {
    font-size: 16px;
  }

  .offer-benefit > span:last-child {
    font-size: 12px;
    line-height: 1.32;
  }

  .offer-cta {
    gap: 10px;
    margin-top: 18px;
    padding-top: 15px;
    font-size: 21px;
  }

  .offer-arrow {
    font-size: 27px;
  }

  .offer-subline {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .login-intro {
    margin-top: 36px;
  }

  .login-intro .subtitle {
    margin-bottom: 34px;
  }
}

@media (max-width: 420px) {
  .offer-tile { padding-left: 9px; padding-right: 9px; }
  .offer-benefit { padding-left: 5px; padding-right: 5px; }
  .offer-benefit strong { font-size: 14px; }
  .offer-benefit > span:last-child { font-size: 10.5px; }
  .offer-icon svg { width: 30px; height: 30px; }
  .offer-cta { font-size: 19px; }
}
