@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(modern/fonts/archivo.woff2) format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(modern/fonts/jetbrains-mono.woff2) format("woff2");
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0f1a2e;
  --text: #3a4357;
  --muted: #646c7e;
  --soft: #5a6275;
  --line: #e3e6eb;
  --line-soft: #eceef2;
  --accent: #1d4fa3;
  --accent-bg: #eef2f9;
  --hover: #f8f9fb;
  --open: #18804a;
  --closed: #3a4357;
  --footer-text: #c6ccd8;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: #fff;
  transform: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
}

.site-nav a:hover,
.site-nav a[aria-current] {
  background: var(--accent-bg);
  color: var(--accent);
  text-decoration: none;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 200px;
}

.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}

.search kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid #d5d9e0;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ------------------------------------------------------------------ main */

main {
  flex: 1;
  width: 100%;
  padding-top: 56px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head a {
  font-family: var(--mono);
  font-size: 14px;
}

.page-title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.page-title p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.tag {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 5px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 40px;
  align-items: start;
}

.hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}

.hero-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status {
  background: var(--closed);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
}

.status[data-state="open"] {
  background: var(--open);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-label {
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.status-sub {
  font-size: 14px;
}

.status-empty {
  display: none;
}

.status[data-state="closed"] .status-empty {
  display: block;
}

.pulse {
  position: relative;
  width: 12px;
  height: 12px;
}

.pulse::before,
.pulse::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

.pulse::after {
  inset: 2px;
}

.status[data-state="open"] .pulse::before {
  inset: 0;
  opacity: 0.6;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.visit {
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visit p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.visit strong {
  color: var(--ink);
}

.visit hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line-soft);
}

.visit dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}

.visit dt {
  font-family: var(--mono);
  color: var(--muted);
}

.visit dd {
  margin: 0;
}

/* ------------------------------------------------------------- post rows */

.rows {
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px 24px;
  color: inherit;
}

.row + .row {
  border-top: 1px solid var(--line-soft);
}

.row:hover {
  background: var(--hover);
  color: inherit;
  text-decoration: none;
}

.row time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 3px;
}

.row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.row-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.row-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

.row-arrow {
  color: var(--accent);
  font-size: 18px;
  align-self: center;
}

.rows.no-date .row {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(15, 26, 46, 0.25);
  text-decoration: none;
}

.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--line);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  background: rgba(15, 26, 46, 0.78);
  color: #fff;
  padding: 3px 7px;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
  text-wrap: pretty;
}

.event {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event .label {
  color: var(--accent);
}

/* ----------------------------------------------------------- search page */

.row .label {
  padding-top: 4px;
}

.row-text mark {
  background: var(--accent-bg);
  color: var(--ink);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
}

.more {
  align-self: center;
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}

.more:hover {
  background: var(--accent-bg);
}

/* --------------------------------------------------------------- content */

.article {
  padding: 40px;
}

.prose {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 820px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
}

.prose h2 {
  font-size: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.prose h3 {
  font-size: 20px;
}

.prose h4 {
  font-size: 17px;
}

.prose strong {
  color: var(--ink);
}

.prose a,
.page-title p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.prose iframe {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
}

.prose blockquote {
  margin: 1.2em 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
}

.prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.2em 0;
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}

.prose th {
  color: var(--ink);
  font-weight: 600;
}

.cover {
  margin: 0 0 32px;
}

.cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
}

/* figure and gallery shortcodes */
figure[data-zoomable-group] {
  display: inline-block;
  max-width: 100%;
  margin: 1.2em 0;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

figure[data-zoomable-group] img {
  margin: 0;
  max-height: 360px;
  width: auto;
  cursor: zoom-in;
}

figure[data-zoomable-group] figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

div[data-zoomable-group] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 1.4em 0;
}

div[data-zoomable-group] p {
  display: contents;
}

div[data-zoomable-group] img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

span[title="backspace Mitglied"] {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.term-list {
  columns: 2 260px;
  list-style: none;
  margin: 0;
  padding: 24px;
}

.term-list li {
  break-inside: avoid;
  padding: 4px 0;
}

.term-list span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

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

.site-footer .container {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.site-footer a:hover {
  color: #fff;
}

/* -------------------------------------------------------------- lightbox */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 26, 46, 0.92);
  cursor: zoom-out;
}

#lightbox.flex {
  display: flex;
}

#lightbox img {
  max-width: 95vw;
  max-height: 88vh;
  border-radius: 8px;
}

#lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
}

#lightbox button:hover {
  color: #fff;
}

#lightbox .lb-close { right: 20px; top: 12px; }
#lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
#lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

#lightbox .lb-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
  color: var(--footer-text);
  font-size: 14px;
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .status[data-state="open"] .pulse::before {
    animation: none;
  }

  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

/* ---------------------------------------------------------- small screens */

@media (max-width: 760px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
  }

  .site-header .container {
    gap: 12px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .search {
    width: 100%;
  }

  main {
    padding-top: 32px;
  }

  .home {
    gap: 48px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px;
  }

  .row-arrow {
    display: none;
  }

  .article {
    padding: 22px 18px;
  }
}
