/*
 * Einstiegsseite auf app.vicinio.ch/ (Wahl des Zugangs). Ohne Build und ohne
 * JavaScript; Farben wie libs/web/ui/src/styles/vicinio.css (Marke, nicht
 * die Darstellung eines Mandanten), hell und dunkel nach Systemeinstellung.
 */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/schibsted-grotesk.woff2') format('woff2');
}

:root {
  --background: #f2f1ec;
  --foreground: #16181b;
  --card: #ffffff;
  --muted-foreground: #5d6168;
  --border: #e3e0d8;
  --solar: #f5b800;
  --ring: color-mix(in oklab, var(--solar) 70%, white);
  --schatten: 0 1px 2px rgb(22 24 27 / 0.05);
  --logo-graphit: #24292f;
  --logo-flaeche: var(--logo-graphit);
  --logo-haus: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141413;
    --foreground: #ecebe6;
    --card: #1c1c1a;
    --muted-foreground: #a3a29b;
    --border: #2d2c29;
    --ring: color-mix(in oklab, var(--solar) 70%, #1c1c1a);
    --schatten: none;
    --logo-flaeche: #ffffff;
    --logo-haus: var(--logo-graphit);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--background);
  color: var(--foreground);
  font-family:
    'Schibsted Grotesk',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 30rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.marke {
  display: block;
  margin: 0 auto 1.25rem;
}
.marke .flaeche {
  fill: var(--logo-flaeche);
}
.marke .gelb {
  fill: var(--solar);
}
.marke .strahlen {
  fill: none;
  stroke: var(--solar);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.marke .haus {
  fill: var(--logo-haus);
  stroke: var(--logo-haus);
  stroke-width: 4;
  stroke-linejoin: round;
}
.marke .haus-gelb {
  stroke: var(--solar);
  stroke-width: 4;
  stroke-linejoin: round;
}

h1 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

header p {
  margin: 0.25rem 0 0;
  color: var(--muted-foreground);
}

nav {
  display: grid;
  gap: 0.75rem;
}

.zugang {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--schatten);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 120ms,
    transform 120ms;
}
.zugang:hover {
  border-color: var(--solar);
}
.zugang:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.zugang:active {
  transform: translateY(1px);
}

.titel {
  font-weight: 600;
  font-size: 1.0625rem;
}
.text {
  grid-column: 1;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.pfeil {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}
.zugang:hover .pfeil {
  color: var(--foreground);
}

footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .zugang {
    transition: none;
  }
}
