/* Einbürgerungstest Trainer website. Colors follow the app theme (petrol #0F6E6E). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f4fbfa;
  --surface: #ffffff;
  --text: #161d1c;
  --muted: #4a5655;
  --primary: #0f6e6e;
  --primary-soft: #d9efed;
  --accent: #e0a526;
  --border: #d4e2e0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1514;
    --surface: #161f1e;
    --text: #dde4e3;
    --muted: #a3b1af;
    --primary: #7fd4d1;
    --primary-soft: #1d3634;
    --accent: #f0bf55;
    --border: #2a3836;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.25rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.site-nav .lang {
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

/* Content */

main {
  padding: 2rem 0 3rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1.075rem;
  margin: 1.5rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.notice {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 1.5rem 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
  margin: 0 0 1rem;
}

/* Landing */

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero img {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  flex-shrink: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.cards a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
}

.cards a:hover {
  border-color: var(--primary);
}

.cards strong {
  display: block;
  color: var(--primary);
}

.cards span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.25rem 0 2rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

@media (max-width: 30rem) {
  h1 {
    font-size: 1.6rem;
  }

  .hero img {
    width: 4rem;
    height: 4rem;
  }
}
