*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gelb: #e8a020;
  --gelb-hell: #faeeda;
  --dunkel: #1a1a18;
  --text: #2c2c28;
  --text-weich: #6a6a65;
  --hintergrund: #f7f4ef;
  --weiss: #ffffff;
  --rahmen: #e0ddd6;
  --radius: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--hintergrund);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.site-header {
  background: var(--dunkel);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0ede6;
  font-weight: 600;
  font-size: 16px;
}

.logo-hex { color: var(--gelb); font-size: 22px; line-height: 1; }
.logo-text { color: #f0ede6; }

.btn-nav {
  background: var(--gelb);
  color: var(--dunkel);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-header { margin-bottom: 40px; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.subtitle { color: var(--text-weich); font-size: 15px; }
.zurueck { color: var(--text-weich); text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 12px; }
.zurueck:hover { color: var(--text); }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

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

.volk-karte {
  background: var(--weiss);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}
.volk-karte:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.volk-karte-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.volk-nummer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gelb);
  background: var(--gelb-hell);
  padding: 3px 8px;
  border-radius: 6px;
}

.volk-datum { font-size: 12px; color: var(--text-weich); }
.volk-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.volk-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.meta-item { font-size: 13px; color: var(--text-weich); }
.volk-notizen-count { font-size: 12px; color: var(--text-weich); border-top: 1px solid var(--rahmen); padding-top: 12px; }

.leer-zustand { text-align: center; padding: 80px 20px; }
.leer-hex { font-size: 64px; color: #d0cdc6; margin-bottom: 20px; }
.leer-zustand h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.leer-zustand p { color: var(--text-weich); margin-bottom: 24px; }

.btn-primary {
  background: var(--dunkel);
  color: #f0ede6;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #333330; }

.btn-qr {
  background: var(--gelb);
  color: var(--dunkel);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.formular {
  background: var(--weiss);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feld-gruppe { display: flex; flex-direction: column; gap: 6px; }
.feld-gruppe label { font-size: 14px; font-weight: 500; }

input[type="text"], textarea {
  border: 1px solid var(--rahmen);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--weiss);
  transition: border-color 0.15s;
  width: 100%;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--gelb); }
textarea { resize: vertical; }

.volk-nummer-gross {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gelb);
  display: block;
  margin-bottom: 6px;
}

.zwei-spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .zwei-spalten { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; }
}

.notiz-bereich h2, .verlauf-bereich h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rahmen);
}

.notiz-formular { display: flex; flex-direction: column; gap: 14px; }

.kontrolle-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-weich);
}

.notizen-liste { display: flex; flex-direction: column; }
.notiz-eintrag { padding: 14px 0; border-bottom: 1px solid var(--rahmen); }
.notiz-eintrag:last-child { border-bottom: none; }
.notiz-eintrag.kontrolle { border-left: 3px solid var(--gelb); padding-left: 12px; }

.notiz-datum {
  font-size: 12px;
  color: var(--text-weich);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kontrolle-badge {
  background: var(--gelb-hell);
  color: #854F0B;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.notiz-text { font-size: 14px; line-height: 1.5; }
.leer-text { color: var(--text-weich); font-size: 14px; }

.site-footer {
  text-align: center;
  padding: 32px;
  font-size: 13px;
  color: var(--text-weich);
  border-top: 1px solid var(--rahmen);
  margin-top: 60px;
}
