:root {
  --rot: #b3202a;
  --rot-dunkel: #8e1820;
  --gruen: #1f6b3a;
  --bg: #fdf8f3;
  --card: #fff;
  --text: #222;
  --muted: #6b6b6b;
  --border: #e6ddd3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
header {
  background: var(--rot);
  color: #fff;
  padding: .75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
}
header a, header .link { color: #fff; text-decoration: none; }
.logo { font-weight: 700; font-size: 1.2rem; }
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .5rem; color: var(--rot); }
a { color: var(--rot); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.narrow { max-width: 26rem; margin-inline: auto; }
.meta { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.badge { background: var(--gruen); color: #fff; border-radius: 4px; padding: 0 .4rem; font-size: .8rem; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.flash.ok { background: #e3f3e8; color: var(--gruen); }
.flash.err { background: #fbe4e6; color: var(--rot-dunkel); }

.pending { background: #fff7e0; border-radius: 8px; padding: .75rem; }
.reveal { background: #e3f3e8; border-radius: 8px; padding: .75rem; }
.reveal p { margin: .25rem 0; }
.recipient { font-size: 1.6rem; font-weight: 700; color: var(--gruen); }
.label { font-weight: 600; margin-top: .75rem !important; }
.wishes { white-space: pre-wrap; }

details { margin: .75rem 0; }
summary { cursor: pointer; color: var(--muted); }

label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
  padding: .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
textarea { resize: vertical; }
button {
  font: inherit;
  margin-top: .75rem;
  padding: .7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--rot);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
button:hover { background: var(--rot-dunkel); }
button.secondary { background: #fff; color: var(--rot); border: 1px solid var(--rot); }
button.link {
  background: none; color: var(--rot); padding: 0; margin: 0; min-height: 0;
  font-weight: 400; text-decoration: underline;
}
header button.link { color: #fff; }
button.danger, button.link.danger { color: var(--rot-dunkel); }
form.inline { display: inline; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .6rem 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
