/* ==========================================================================
   Schülertreff auf dem Loh – Stylesheet
   Inhalt: 1 Variablen · 2 Basis · 3 Layout · 4 Kopfbereich · 5 Startseite
           6 Inhalt · 7 Karten · 8 Fußbereich · 9 Barrierefreiheit
   Reihenfolge der Eigenschaften: Layout → Box → Schrift → Farben → Sonstiges
   ========================================================================== */


/* 1 Variablen
   -------------------------------------------------------------------------- */

:root {
  --text: #111;
  --bg: #fff;
  --soft: #f5f5f5;
  --line: #e2e2e2;
  --footer: #efefef;
  --radius: 14px;
}


/* 2 Basis
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 18px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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


/* 3 Layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section.wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}


/* 4 Kopfbereich und Navigation
   -------------------------------------------------------------------------- */

.site-header {
  color: var(--text);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  padding: .25rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a[aria-current] {
  border-color: var(--text);
}


/* 5 Startseite
   -------------------------------------------------------------------------- */

.hero {
  padding: 4rem 0;
  background: var(--soft);
}

.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.lead {
  max-width: 36rem;
  font-size: 1.25rem;
}

.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--text);
  border-radius: 999px;
}

.button:hover {
  background: #333;
}


/* 6 Inhalt (Texte, Bilder, Downloads, Unterseiten)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 44rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.prose h1 {
  line-height: 1.2;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.subpages,
.downloads {
  padding-left: 1.2rem;
}

.subpages li,
.downloads li {
  margin: .3rem 0;
}


/* 7 Karten (Aktuelles)
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.1rem;
  color: inherit;
  text-decoration: none;
  background: var(--soft);
  border-radius: var(--radius);
}

.card:hover {
  outline: 2px solid var(--text);
}

.card small,
.entry small {
  display: block;
  opacity: .7;
}


/* 8 Fußbereich
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: .95rem;
  color: var(--text);
  background: var(--footer);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--text);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}


/* 9 Barrierefreiheit
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 9;
  padding: .5rem;
  background: #fff;
}

:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 2px;
}
