:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1d2421;
  --muted: #6c7670;
  --accent: #1f6f54;
  --accent-ink: #ffffff;
  --line: #e4e2da;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, 0.06), 0 6px 20px rgba(20, 30, 25, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { font-size: 34px; line-height: 1; }
.site-header h1 { margin: 0; font-size: 20px; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.notify-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.notify-btn:hover { opacity: 0.9; }
.notify-btn.is-on { background: transparent; color: var(--accent); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
}
.filters input,
.filters select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
}
.filters input[type="search"] { flex: 1 1 240px; }
.filters select {
  flex: 0 1 auto;
  cursor: pointer;
  /* Native Pfeil entfernen und durch eigenen ersetzen, der mit Abstand
     vom rechten Rand sitzt. */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236c7670' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
}
.ghost:hover { color: var(--ink); }

.result-count { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(20, 30, 25, 0.12); }
.card-img {
  aspect-ratio: 1 / 1;
  background: #eceae3 center/cover no-repeat;
  position: relative;
}
.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.card-body { padding: 12px 14px 14px; }
.card-name { margin: 0; font-size: 16px; font-weight: 600; }
.card-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  background: #f0efe9;
  border-radius: 6px;
  padding: 2px 8px;
}

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Footer */
.site-footer { color: var(--muted); font-size: 12px; padding: 24px 20px 40px; }
.site-footer a { color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 50;
}
