/* Marketenderei 2026 — Feedback-Portal */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --desk: #E7DCC7;
  --cream: #FAF5EA;
  --ink: #2B2117;
  --muted: #6E5F49;
  --muted2: #9C8C72;
  --border: #E2D5BC;
  --brick: #091E41;
  --brick-d: #143A6B;
  --ochre: #091E41;
  --tan: #CCAE7E;
  --tan-d: #B8955F;
  --green: #4E6E45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--desk);
  background-image: radial-gradient(#dccdb2 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
  padding: 28px 18px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a { color: var(--brick); }
a:hover { color: var(--brick-d); }

input, textarea, button, select { font-family: inherit; }
textarea { resize: vertical; }
::placeholder { color: #A99B82; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Card (Formular / Danke / Login) ---------- */
.card {
  width: 100%;
  max-width: 412px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px -30px rgba(60,40,18,.55);
  overflow: hidden;
  animation: fadeUp .4s ease both;
}
.card-pad { padding: 26px 24px 28px; }

.brand-header {
  background: var(--tan);
  color: var(--brick);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brick);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Newsreader', serif; font-weight: 600; font-size: 19px; color: var(--tan); flex-shrink: 0;
}
.brand-name { font-family: 'Newsreader', serif; font-size: 17px; font-weight: 600; line-height: 1.15; }
.brand-kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #3d537a; }

h1.title { font-family: 'Newsreader', serif; font-weight: 500; font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
p.lead { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }

label.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
label.field-label .opt { font-weight: 400; color: var(--muted2); }

input.field, textarea.field {
  width: 100%; padding: 13px 15px; font-size: 15px; line-height: 1.55; color: var(--ink);
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px; outline: none;
}
textarea.field { min-height: 150px; }
input.field:focus, textarea.field:focus {
  border-color: var(--brick); box-shadow: 0 0 0 3px rgba(154,59,38,.12);
}

.hint {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 11px;
  font-size: 13.5px; line-height: 1.4; margin: 12px 0 20px;
}
.hint-anon { background: rgba(9,30,65,0.06); border: 1px solid rgba(9,30,65,0.18); color: rgba(9,30,65,0.75); }
.hint-named { background: #F6EAD6; border: 1px solid #E7CFA2; color: #8A5A18; }

button.primary {
  width: 100%; padding: 15px; font-size: 16px; font-weight: 600; color: var(--brick);
  background: var(--tan); border: none; border-radius: 13px; cursor: pointer; letter-spacing: .01em;
  transition: background .15s;
}
button.primary:hover { background: var(--tan-d); }

button.ghost {
  padding: 13px 26px; font-size: 15px; font-weight: 600; color: var(--brick);
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer;
  transition: border-color .15s;
}
button.ghost:hover { border-color: var(--brick); }

.fineprint { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted2); text-align: center; }
code { background: #EFE6D3; padding: 1px 5px; border-radius: 5px; font-size: .92em; }

/* ---------- Danke ---------- */
.success-circle {
  width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%;
  background: #EEF1E8; border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  animation: popIn .5s ease both;
}

/* ---------- Login ---------- */
.lock {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 14px; background: var(--brick);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* ---------- Übersicht ---------- */
.list-wrap { width: 100%; max-width: 640px; animation: fadeUp .4s ease both; }
.list-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.list-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); font-weight: 600; margin-bottom: 3px; }
.list-head h1 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 30px; margin: 0; }
.list-head h1 .count { color: var(--muted2); font-size: 20px; }
.list-actions { display: flex; gap: 8px; }
.list-actions a, .list-actions button {
  padding: 10px 15px; font-size: 13.5px; font-weight: 600; color: var(--brick);
  background: var(--cream); border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.list-actions a:hover, .list-actions button:hover { border-color: var(--brick); }
.list-actions .logout { color: var(--muted); }

.entries { display: flex; flex-direction: column; gap: 12px; }
.entry {
  background: var(--cream); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 10px 30px -24px rgba(60,40,18,.6);
}
.entry-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.entry-time { font-size: 12.5px; color: var(--muted2); }
.entry p { margin: 0; font-size: 15px; line-height: 1.6; color: #33291C; white-space: pre-wrap; }

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; border-radius: 999px;
}
.badge-anon { background: #EEF1E8; color: var(--green); border: 1px solid #D6DEC6; }
.badge-named { background: #F6EAD6; color: #8A5A18; border: 1px solid #E7CFA2; }

.empty {
  text-align: center; padding: 50px 20px; color: var(--muted2); font-size: 15px;
  background: var(--cream); border: 1px dashed var(--border); border-radius: 16px;
}

.error-box {
  background: #F6E1DC; border: 1px solid #E0B0a5; color: #7C2E1D;
  padding: 11px 14px; border-radius: 11px; font-size: 13.5px; margin-bottom: 16px;
}

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
