:root {
  --bg: #f5f2ec;
  --karte: #ffffff;
  --tinte: #26221c;
  --gedaempft: #6f675c;
  --akzent: #d97706;
  --akzent-dunkel: #b45309;
  --kopf-bg: #211c15;
  --rand: #e6dfd3;
  --gefahr: #b91c1c;
  --ok: #15803d;
  --radius: 14px;
  --schatten: 0 2px 10px rgba(38, 34, 28, 0.08);
}

* { box-sizing: border-box; }

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

a { color: var(--akzent-dunkel); }

/* ---------- Kopfbereich ---------- */

.kopf { background: var(--kopf-bg); color: #fff; }

.kopf-innen {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-symbol { color: var(--akzent); font-size: 1.5rem; }

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

.haupt-nav a {
  color: #e8e2d8;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.haupt-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.haupt-nav a.aktiv { background: var(--akzent); color: #fff; }

.admin-leiste {
  background: #3b2f1e;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.admin-label { color: #d3b98a; font-weight: 600; }
.admin-leiste a { color: #f0e9dc; text-decoration: none; }
.admin-leiste a:hover { text-decoration: underline; }

/* ---------- Inhalt ---------- */

.inhalt {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  min-height: 60vh;
}

h1 { margin: 10px 0 6px; }
.abschnitt-titel { margin-top: 40px; }
.einleitung { color: var(--gedaempft); max-width: 720px; margin-top: 0; }

.flash {
  background: #e7f6ec;
  border: 1px solid #b7e2c5;
  color: var(--ok);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
}

.fehler-box {
  background: #fdecec;
  border: 1px solid #f3c1c1;
  color: var(--gefahr);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
}

.leer { color: var(--gedaempft); font-style: italic; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, #2c2417, #4a381f);
  color: #fff;
  border-radius: var(--radius);
  padding: 46px 36px;
  margin-bottom: 30px;
}

.hero h1 { margin: 0 0 10px; font-size: 2rem; }
.hero p { max-width: 640px; color: #eadfcd; margin: 0 0 22px; }
.hero-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-block;
  background: var(--akzent);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.knopf:hover { background: var(--akzent-dunkel); }

.knopf.sekundaer { background: #fff; color: var(--tinte); border: 1px solid var(--rand); }
.knopf.sekundaer:hover { background: #f3eee4; }

.knopf.gefahr { background: #fff; color: var(--gefahr); border: 1px solid #f0c9c9; }
.knopf.gefahr:hover { background: #fdecec; }

.knopf.klein { padding: 7px 13px; font-size: 0.88rem; }

.link-knopf {
  background: none;
  border: none;
  color: #f0e9dc;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: underline;
}

.inline { display: inline; }

/* ---------- Karten & Gitter ---------- */

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
}

.karte-inhalt { padding: 18px 20px; }
.karte-inhalt h3 { margin: 6px 0; }

.karte-bild {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #efe9dd;
}

.datum { color: var(--gedaempft); font-size: 0.85rem; }

.news-liste { display: grid; gap: 18px; max-width: 760px; }

.produkt-gitter,
.team-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.produkt-fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.preis { font-size: 1.15rem; font-weight: 700; color: var(--akzent-dunkel); }

.team-foto {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #efe9dd;
}

.rolle { color: var(--gedaempft); margin: 0; }

/* ---------- Formulare ---------- */

.formular { padding: 22px; max-width: 680px; display: grid; gap: 16px; }

.formular label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular input[type="number"],
.formular input[type="password"],
.formular select,
.formular textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rand);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fdfcf9;
}

.formular input:focus,
.formular select:focus,
.formular textarea:focus {
  outline: 2px solid var(--akzent);
  border-color: var(--akzent);
}

.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkbox-zeile {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.pflicht { color: var(--gefahr); }

/* ---------- Impressum ---------- */

.impressum-karte { max-width: 720px; }
.impressum-text { line-height: 1.8; }

/* ---------- Danke / Fehler ---------- */

.danke { text-align: center; padding: 60px 20px; }

.danke-symbol {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 2.2rem;
  line-height: 72px;
  margin: 0 auto 16px;
}

.danke-symbol.fehler-symbol { background: var(--gefahr); }
.danke .hero-knoepfe { justify-content: center; margin-top: 20px; }

/* ---------- Admin ---------- */

.login-box { max-width: 420px; margin: 40px auto; }

.titel-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.statistik-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.statistik-karte {
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--tinte);
}

.statistik-zahl { font-size: 2.2rem; font-weight: 800; color: var(--akzent-dunkel); }
.statistik-zahl.hervorgehoben { color: var(--gefahr); }

.verwaltung-zeile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.verwaltung-zeile.inaktiv { opacity: 0.55; }
.verwaltung-info { flex: 1; min-width: 200px; }
.verwaltung-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.mini-bild {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--rand);
  background: #efe9dd;
}

.filter-leiste { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }

.filter {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--rand);
  background: #fff;
  color: var(--tinte);
  text-decoration: none;
  font-size: 0.92rem;
}

.filter.aktiv { background: var(--akzent); border-color: var(--akzent); color: #fff; }

.anfrage-karte { margin-bottom: 14px; }
.anfrage-karte.ungelesen { border-left: 5px solid var(--akzent); }

.anfrage-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.anfrage-kopf .datum { margin-left: auto; }

.abzeichen {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.abzeichen-kauf { background: #e0edff; color: #1d4ed8; }
.abzeichen-personalisiert { background: #f6e6cc; color: var(--akzent-dunkel); }

.anfrage-kontakt { color: var(--gedaempft); font-size: 0.95rem; }
.anfrage-nachricht {
  background: #faf7f0;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 10px 14px;
}

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

.fuss {
  background: var(--kopf-bg);
  color: #cfc6b8;
  text-align: center;
  padding: 22px;
  font-size: 0.9rem;
}

.fuss a { color: #e8e2d8; }

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
  .feld-reihe { grid-template-columns: 1fr; }
  .hero { padding: 32px 22px; }
  .hero h1 { font-size: 1.5rem; }
  .anfrage-kopf .datum { margin-left: 0; }
}
