/*
 * CI von aldi-reisen.de wie in Newsletter-Studio und VA Extranet: Navy #202b78, Petrol #227979,
 * Text #363645, Flächen #f3f3f7. Josefin Sans ersetzt die lizenzpflichtige Brandon.
 */
@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #202b78;
  --brand-600: #181f5c;
  --brand-light: #4d5593;
  --accent: #227979;
  --accent-50: #eaf3f3;
  --text: #363645;
  --muted: #6d6d7d;
  --line: #e5e5ec;
  --bg: #f3f3f7;
  --danger-bg: #fef2f2;
  --danger: #b91c1c;
  --display: "Josefin Sans", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(32 43 120 / 0.04), 0 2px 8px rgb(32 43 120 / 0.05);
  --shadow-hover: 0 2px 4px rgb(32 43 120 / 0.06), 0 8px 24px rgb(32 43 120 / 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter Variable",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

/* Kopfzeile */
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
}
.stripe {
  height: 4px;
  background: var(--accent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 0.2em;
}
.brand span {
  font-weight: 600;
  opacity: 0.9;
}
.brand em {
  font-style: normal;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.8);
  border-left: 1px solid rgb(255 255 255 / 0.25);
  padding-left: 12px;
  margin-left: 4px;
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
}
.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.who-text {
  display: none;
  text-align: right;
  line-height: 1.2;
  min-width: 0;
}
.who-text strong,
.who-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-text small {
  color: rgb(255 255 255 / 0.7);
  font-size: 12px;
}
.who form {
  margin: 0;
}
.logout {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.logout:hover {
  background: rgb(255 255 255 / 0.1);
}

/* Inhalt */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
  padding-top: 0.15em;
}
.hello span {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.35em 0.4em 0.15em;
}
.lead {
  margin: 8px 0 24px;
  color: var(--muted);
}
.hint {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.alert {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
}

.notice {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #a7d3d3;
  border-radius: 6px;
  background: var(--accent-50);
  color: #1b5f5f;
  font-size: 14px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}
.login {
  max-width: 440px;
  margin: 24px auto 0;
}

.ms-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border: 1px solid #d2d5e4;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.ms-button:hover {
  border-color: var(--brand-light);
  color: var(--brand);
}
.ms-logo {
  width: 18px;
  height: 18px;
}

.tiles {
  display: grid;
  gap: 16px;
}
.tile {
  color: inherit;
  text-decoration: none;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.tile:hover {
  box-shadow: var(--shadow-hover);
  border-color: #d2d5e4;
}
.tile h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  padding-top: 0.15em;
}
.tile p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.tile .note {
  font-size: 12px;
}
.open {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

@media (min-width: 640px) {
  .topbar-inner {
    padding: 0 28px;
  }
  .who-text {
    display: block;
  }
  .main {
    padding: 48px 28px 64px;
  }
  .title {
    font-size: 2rem;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
