/* Fehlerseiten (403, 404, 500, 502–504) und die Seiten von oauth2-proxy — mercatis: Source Sans Pro, Akzent #FF993D.
   Das Bild trägt Logo und Roboter links; der Text steht rechts daneben, auf schmalen Schirmen unter dem Roboter. */
@font-face { font-family: "Source Sans Pro"; font-weight: 400; src: url("fonts/SourceSansPro-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Source Sans Pro"; font-weight: 600 700; src: url("fonts/SourceSansPro-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  --mc-accent: #FF993D;
  --mc-accent-hover: #F28A2E;
  --mc-on-accent: #1A1A19;
  --mc-fg: #1A1A19;
  --mc-fg-muted: #55534F;
  --mc-border: #D6D3CE;
  --mc-surface: #FFFFFF;
  --mc-radius-sm: 4px;
  --mc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mc-shadow-focus: 0 0 0 3px rgba(255, 153, 61, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: "Source Sans Pro", system-ui, sans-serif;
  color: var(--mc-fg);
  background: #FFF8F1 url("mercatis-robot.jpg") left center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Das Logo oben links über dem Bild (das Bild selbst trägt keins). */
body::before {
  content: "";
  position: fixed;
  top: 40px;
  left: max(4vw, 24px);
  width: 260px;
  height: 54px;
  background: url("mercatis-logo.svg") left center / contain no-repeat;
  pointer-events: none;
}

main {
  width: min(560px, 100%);
  margin-right: max(4vw, 24px);
  padding: 32px;
}

.code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 153, 61, 0.14);
  color: #8A4A10;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.code svg { width: 18px; height: 18px; }

h1 { margin: 0; font-size: clamp(48px, 7vw, 72px); font-weight: 700; line-height: 1; }
h2 { margin: 12px 0 20px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 400; line-height: 1.25; }
p.text { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: var(--mc-fg-muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--mc-radius-sm);
  border: 1px solid var(--mc-border);
  background: var(--mc-surface);
  color: var(--mc-fg);
  font: 600 16px/1 "Source Sans Pro", system-ui, sans-serif;
  text-decoration: none;
  box-shadow: var(--mc-shadow);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--mc-accent); border-color: var(--mc-accent); color: var(--mc-on-accent); }
.btn.primary:hover { background: var(--mc-accent-hover); }
.btn:focus-visible { outline: none; box-shadow: var(--mc-shadow-focus); }

/* Schmale Schirme: Logo und Roboter oben, der Text darunter auf hellem Grund. */
@media (max-width: 760px) {
  body { display: block; background-size: 190% auto; background-position: 0 0; }
  body::before { position: absolute; top: 20px; left: 20px; width: 170px; height: 36px; }
  main { width: auto; margin: 56vw 0 0; padding: 24px 20px 32px; background: rgba(255, 255, 255, 0.94); border-radius: 8px 8px 0 0; }
  h2 { font-size: 22px; }
  p.text { font-size: 16px; }
}
