/* Lokales Stylesheet -- bewusst ohne jegliche externe Schriftarten/CDNs,
   damit die Seite komplett offline funktioniert. */

:root {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --dark: #22252b;
  --accent: #2f6fed;
  --border: #e2e4e9;
  --text: #23262b;
  --muted: #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header.topbar {
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

header.topbar a.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}

nav.tabs {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav.tabs a {
  color: #c7c9cf;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

nav.tabs a.active,
nav.tabs a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

form.searchbar {
  display: flex;
  gap: 0.5rem;
}

form.searchbar input[type="text"] {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 200px;
}

form.searchbar button {
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.notice {
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

h1.page-title {
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: #dfe3e8 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
}

.card .body dt {
  font-weight: 600;
  float: left;
  clear: left;
  margin-right: 0.4rem;
}

.card .body dd {
  margin: 0 0 0.15rem 0;
  word-break: break-all;
}

.pagination {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-size: 0.85rem;
}

.pagination a:hover {
  background: var(--accent);
  color: #fff;
}

.pagination span.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}
