/* ==========================================================================
   Weihnachts-Gästeliste
   Palette: Tannengrün · Weinrot · Gold · Creme
   Nur Systemschriften, keine externen Assets.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Tannengrün */
  --tannengruen-dunkel: #082a20;
  --tannengruen: #14513c;
  --tannengruen-hell: #1f6b4f;

  /* Weinrot */
  --weinrot: #7b2233;
  --weinrot-hell: #9c2f42;

  /* Gold */
  --gold: #c9a227;
  --gold-hell: #e8c65a;
  --gold-blass: #f7e9bd;

  /* Creme & Text */
  --creme: #fdf6e3;
  --creme-dunkel: #f2e5c6;
  --weiss: #fffdf7;
  --text: #241c16;
  --text-gedaempft: #52473a;
  --text-invers: #fdf6e3;
  --fehler: #94203a;
  --fehler-hintergrund: #fdecef;

  --linie: rgba(20, 81, 60, 0.16);
  --linie-stark: rgba(20, 81, 60, 0.32);

  --schatten: 0 18px 44px rgba(8, 42, 32, 0.14), 0 2px 8px rgba(8, 42, 32, 0.06);
  --schatten-klein: 0 2px 10px rgba(8, 42, 32, 0.09);

  --radius: 20px;
  --radius-klein: 12px;
  --abstand: 1rem;
  --max-breite: 64rem;
  --schrift: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fokus: #14513c;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 3rem;
  min-height: 100vh;
  font-family: var(--schrift-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--creme);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(201, 162, 39, 0.22), transparent 58%),
    radial-gradient(circle at 100% 12%, rgba(20, 81, 60, 0.1), transparent 42%),
    radial-gradient(circle at 0% 55%, rgba(123, 34, 51, 0.07), transparent 38%);
}

/* --- Grundtypografie ----------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--schrift);
  line-height: 1.2;
  color: var(--tannengruen-dunkel);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--weinrot);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--weinrot-hell);
}

strong {
  color: var(--tannengruen-dunkel);
}

/* Nur für Screenreader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Fokus: deutlich sichtbar, nie entfernt ------------------------------ */

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 4px;
}

.button:focus-visible,
.quick-reply:focus-visible,
.chat-input-row input:focus-visible,
.entry-edit:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

/* --- Sprunglink / Struktur ---------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--gold-hell);
  color: var(--tannengruen-dunkel);
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header,
.wrap,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}

.site-kicker {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.15rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--weinrot);
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(123, 34, 51, 0.28);
  border-radius: 999px;
}

.site-title {
  margin: 0 0 0.35rem;
  font-family: var(--schrift);
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  font-weight: 700;
  color: var(--tannengruen-dunkel);
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-sub {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--text-gedaempft);
  text-wrap: pretty;
}

.wrap {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 1.25rem 1.1rem 2rem;
  display: grid;
  gap: 2.25rem;
}

/* --- Lichterkette (rein dekorativ) -------------------------------------- */

.lights {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.4rem, 5.5vw, 3.4rem);
  height: 2.4rem;
  padding-top: 0.4rem;
  overflow: hidden;
}

.lights::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0.45rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(20, 81, 60, 0.3) 12%, rgba(20, 81, 60, 0.3) 88%, transparent);
}

.light {
  width: 0.55rem;
  height: 0.7rem;
  margin-top: 0.5rem;
  border-radius: 45% 45% 50% 50%;
  background: linear-gradient(180deg, #fff8dc, var(--gold-hell) 55%, var(--gold));
  box-shadow: 0 0 10px 2px rgba(232, 198, 90, 0.55), 0 0 26px 7px rgba(232, 198, 90, 0.22);
  animation: flackern 4.2s ease-in-out infinite;
}

.light:nth-child(2n) {
  animation-delay: -1.4s;
}

.light:nth-child(3n) {
  animation-delay: -2.7s;
}

@keyframes flackern {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.68;
  }
}

/* --- Intro & Countdown -------------------------------------------------- */

.intro {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 253, 247, 0.95), rgba(253, 246, 227, 0.6));
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.intro-title {
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
}

.intro-text {
  color: var(--text-gedaempft);
  max-width: 46rem;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--tannengruen-dunkel), var(--tannengruen));
  color: var(--text-invers);
  border: 2px solid var(--gold);
  box-shadow: var(--schatten-klein);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-hell);
}

.countdown-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.entry-count {
  margin: 0;
  color: var(--text-gedaempft);
  font-size: 0.95rem;
}

/* --- Danke-Banner ------------------------------------------------------- */

.thanks-banner {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--weinrot), var(--tannengruen-dunkel));
  color: var(--text-invers);
  box-shadow: var(--schatten);
}

.thanks-text {
  margin: 0 0 0.4rem;
  font-family: var(--schrift);
  font-size: 1.2rem;
}

.thanks-title {
  margin: 0;
  color: var(--gold-hell);
}

.thanks-title strong {
  color: #fff;
}

/* --- Chat mit dem Listen-Elf -------------------------------------------- */

.chat {
  border-radius: 24px;
  border: 1px solid var(--linie-stark);
  background: var(--weiss);
  box-shadow: var(--schatten);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  color: var(--text-invers);
  background: radial-gradient(circle at 88% -30%, rgba(201, 162, 39, 0.33), transparent 58%),
    linear-gradient(135deg, var(--tannengruen-dunkel), var(--tannengruen) 58%, var(--weinrot));
  border-bottom: 3px solid var(--gold);
}

.chat-avatar {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold-hell);
  background: radial-gradient(circle at 32% 26%, #fff, var(--creme-dunkel));
  box-shadow: inset 0 0 0 3px #fff, 0 4px 12px rgba(8, 42, 32, 0.35);
}

.chat-identity {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.chat-name {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  color: rgba(253, 246, 227, 0.86);
}

.chat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #7fe0b0;
  box-shadow: 0 0 0 3px rgba(127, 224, 176, 0.22);
}

.chat-stamp {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hell);
  border: 1px solid rgba(232, 198, 90, 0.55);
  border-radius: 999px;
}

.chat-log {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 1.15rem 1rem;
  list-style: none;
  background: linear-gradient(180deg, rgba(253, 246, 227, 0.65), var(--weiss) 70%);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: msg-in 320ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.msg + .msg {
  animation-delay: 60ms;
}

.msg.guest {
  justify-content: flex-end;
}

.msg-avatar {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 1px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--creme-dunkel);
  border: 1px solid rgba(201, 162, 39, 0.75);
}

.bubble {
  max-width: min(86%, 36rem);
  margin: 0;
  padding: 0.7rem 1rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-line;
  border-radius: 4px 18px 18px 18px;
  background: #fff;
  border: 1px solid var(--linie-stark);
  border-left: 4px solid var(--tannengruen);
  box-shadow: var(--schatten-klein);
}

.msg.guest .bubble {
  border-radius: 18px 18px 4px 18px;
  border: 1px solid var(--weinrot);
  background: linear-gradient(135deg, var(--weinrot-hell), var(--weinrot));
  color: #fff9ef;
  box-shadow: 0 6px 16px rgba(123, 34, 51, 0.2);
}

.msg.is-thanks .bubble {
  max-width: min(94%, 40rem);
  padding: 0.9rem 1.05rem;
  border: 2px solid var(--gold);
  border-left-width: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--weinrot), var(--tannengruen-dunkel));
  color: var(--text-invers);
  font-family: var(--schrift);
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(123, 34, 51, 0.26);
}

.msg.is-thanks .bubble::before {
  content: "✦ ";
  color: var(--gold-hell);
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(253, 246, 227, 0.4), rgba(242, 229, 198, 0.55));
  border-top: 2px dashed rgba(20, 81, 60, 0.2);
}

.chat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--weinrot);
}

.chat-input-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.chat-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-size: 1rem; /* verhindert Zoom auf iOS */
  color: var(--text);
  background: #fff;
  border: 2px solid var(--linie-stark);
  border-radius: 999px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.chat-input-row input::placeholder {
  color: #6d6154;
  opacity: 1;
}

.chat-input-row input:hover {
  border-color: var(--tannengruen-hell);
}

.chat-input-row input:focus {
  border-color: var(--weinrot);
}

.chat-input-row input:focus-visible {
  border-color: var(--weinrot);
}

.chat-send {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.6rem 1.15rem;
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.quick-replies-label {
  margin-right: 0.15rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gedaempft);
}

.quick-reply {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tannengruen-dunkel);
  background: linear-gradient(180deg, #fffaeb, var(--gold-blass));
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.quick-reply:hover {
  background: var(--gold-hell);
  border-color: var(--gold);
}

.quick-reply:active {
  transform: translateY(1px);
}

.chat-reset {
  margin: 0;
  padding: 0 1rem 1.1rem;
  background: rgba(242, 229, 198, 0.55);
}

.chat-reset-button {
  min-height: 2.75rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.92rem;
}

/* --- Formular ----------------------------------------------------------- */

.list-section {
  display: grid;
  gap: 0.75rem;
}

.list-head {
  display: grid;
  gap: 0.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding-bottom: 0.45rem;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  border-bottom: 2px dashed rgba(123, 34, 51, 0.28);
}

.section-star {
  color: var(--gold);
  font-size: 0.9em;
}

.entry-form,
.delete-form {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.entry-form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  color: var(--tannengruen-dunkel);
}

.field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--creme);
  border: 2px solid var(--linie-stark);
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:hover {
  border-color: var(--tannengruen-hell);
}

.field input:focus {
  border-color: var(--weinrot);
  background: #fff;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-gedaempft);
}

.field-error {
  margin: 0;
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fehler);
  background: var(--fehler-hintergrund);
  border-left: 4px solid var(--fehler);
  border-radius: 6px;
}

.field.has-error input {
  border-color: var(--fehler);
  background: var(--fehler-hintergrund);
}

/* Honeypot: für Menschen unsichtbar, für Bots verlockend. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Buttons ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--creme);
  background: linear-gradient(180deg, var(--weinrot), var(--weinrot-hell));
  border: 2px solid var(--tannengruen-dunkel);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 0 var(--tannengruen-dunkel);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  background: linear-gradient(180deg, var(--weinrot-hell), var(--weinrot));
  color: #fff;
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tannengruen-dunkel);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-danger {
  background: linear-gradient(180deg, #5c1a10, #7d2a1c);
}

.delete-form {
  margin-top: 1.5rem;
  border-color: rgba(148, 32, 58, 0.3);
}

/* --- Liste & Karten ---------------------------------------------------- */

.group {
  margin-top: 1.5rem;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  font-size: 1.15rem;
  color: var(--weinrot);
  border-bottom: 1px solid var(--linie);
}

.group-emoji {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 50%;
  background: var(--gold-blass);
  border: 1px solid rgba(201, 162, 39, 0.6);
}

.group-count {
  font-family: var(--schrift-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-gedaempft);
}

.entry-grid {
  list-style: none;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  margin: 0;
  padding: 0;
}

.entry-card {
  --karte-akzent: var(--tannengruen);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 0.85rem;
  border-radius: 4px var(--radius-klein) var(--radius-klein) var(--radius-klein);
  background: #fff;
  border: 1px solid var(--linie);
  border-left: 5px solid var(--karte-akzent);
  box-shadow: var(--schatten-klein);
  scroll-margin-top: 1.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 42, 32, 0.13);
}

.entry-card[data-category="getraenke"] {
  --karte-akzent: var(--tannengruen-hell);
}

.entry-card[data-category="suesses"] {
  --karte-akzent: var(--weinrot-hell);
}

.entry-card[data-category="essen"] {
  --karte-akzent: #8a5a12;
}

.entry-card[data-category="deko"] {
  --karte-akzent: var(--gold);
}

.entry-card[data-category="sonstiges"] {
  --karte-akzent: #6b6257;
}

.entry-card.is-own {
  border-color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(180deg, #fffdf2, #fff 55%);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.28), var(--schatten-klein);
}

.entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.entry-name {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tannengruen-dunkel);
  overflow-wrap: anywhere;
}

.entry-contribution {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.entry-title {
  margin: 0;
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--weinrot);
  overflow-wrap: anywhere;
}

.entry-title::before {
  content: "✦";
  margin-right: 0.35rem;
  font-style: normal;
  color: var(--gold);
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.85rem;
  border-top: 1px dashed var(--linie);
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--creme-dunkel);
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
}

.entry-badge-emoji {
  font-size: 0.85em;
  line-height: 1;
}

.entry-edit {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-left: auto;
  padding: 0 0.15rem;
  font-weight: 700;
}

.entry-own-badge {
  flex: 0 0 auto;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--tannengruen-dunkel);
  background: var(--gold-blass);
  border: 1px solid rgba(201, 162, 39, 0.7);
  border-radius: 999px;
}

.empty-state {
  margin-top: 0.5rem;
  padding: 2rem 1.25rem;
  text-align: center;
  border: 2px dashed rgba(20, 81, 60, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
}

.empty-state-icon {
  margin: 0 0 0.35rem;
  font-size: 2.3rem;
  line-height: 1;
}

.empty-state-title {
  margin: 0 0 0.35rem;
  font-family: var(--schrift);
  font-size: 1.3rem;
  color: var(--tannengruen-dunkel);
}

.empty-state-text {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--text-gedaempft);
}

/* --- Bearbeiten / Fehler ----------------------------------------------- */

.back-link {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.edit-title-preview {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.error-section {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid var(--weinrot);
  box-shadow: var(--schatten);
}

.error-status {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--creme);
  background: var(--weinrot);
  border-radius: 999px;
}

.error-message {
  color: var(--text-gedaempft);
}

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 2rem 1.25rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gedaempft);
  border-top: 2px solid var(--linie);
}

.site-footer-small {
  font-size: 0.78rem;
}

/* --- Größere Bildschirme ------------------------------------------------ */

@media (min-width: 44rem) {
  .site-header {
    padding-top: 2.25rem;
  }

  .wrap {
    padding: 1.75rem 1.5rem 3rem;
    gap: 2.75rem;
  }

  .chat-header {
    padding: 1.15rem 1.4rem;
  }

  .chat-name {
    font-size: 1.35rem;
  }

  .chat-log {
    padding: 1.4rem 1.4rem 1.2rem;
  }

  .chat-form {
    padding: 1.1rem 1.4rem 1.35rem;
  }

  .chat-reset {
    padding: 0 1.4rem 1.35rem;
  }

  .entry-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
  }

  .empty-state {
    padding: 2.75rem 2rem;
  }
}

/* --- Kleine Bildschirme ------------------------------------------------- */

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
    padding-bottom: 2rem;
  }

  .site-header {
    padding-inline: 0.9rem;
  }

  .wrap {
    padding: 1rem 0.85rem 1.75rem;
    gap: 1.9rem;
  }

  .intro,
  .entry-form,
  .delete-form,
  .thanks-banner {
    padding: 1rem;
  }

  .chat {
    border-radius: 18px;
  }

  .chat-header {
    padding: 0.9rem 1rem;
  }

  .chat-stamp {
    display: none;
  }

  .chat-log {
    padding: 1rem 0.85rem;
  }

  .chat-form {
    padding: 0.9rem 0.85rem 1rem;
  }

  .chat-reset {
    padding: 0 0.85rem 1rem;
  }

  .bubble,
  .msg.is-thanks .bubble {
    max-width: 92%;
  }

  .chat-reset-button {
    width: 100%;
  }

  .entry-card {
    padding: 0.9rem 1rem 0.75rem;
  }
}

@media (max-width: 24rem) {
  .lights {
    gap: 1.15rem;
  }

  .light:nth-child(n + 9) {
    display: none;
  }

  .chat-input-row {
    gap: 0.4rem;
  }

  .chat-send {
    padding-inline: 0.9rem;
  }

  .quick-replies-label {
    display: none;
  }
}

/* --- Bewegung reduzieren ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .light {
    opacity: 1;
  }

  .entry-card:hover {
    transform: none;
  }
}

/* --- Druck: ohne Deko, ohne Schnee -------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .snow,
  .lights,
  .site-kicker,
  .countdown,
  .entry-form,
  .delete-form,
  .thanks-banner,
  .chat-form,
  .chat-reset,
  .quick-replies,
  .skip-link,
  .entry-actions,
  .site-footer {
    display: none !important;
  }

  .wrap,
  .site-header {
    max-width: none;
    padding: 0;
  }

  .chat {
    border: 1px solid #999;
    box-shadow: none;
  }

  .chat-header {
    color: #000;
    background: none;
  }

  .chat-name,
  .chat-status {
    color: #000;
  }

  .bubble,
  .msg.guest .bubble,
  .msg.is-thanks .bubble {
    color: #000;
    background: #fff;
    border: 1px solid #999;
    box-shadow: none;
  }

  .entry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .entry-card,
  .intro,
  .error-section {
    box-shadow: none;
    border: 1px solid #999;
    background: #fff;
    break-inside: avoid;
  }

  .site-title,
  h1,
  h2,
  h3 {
    color: #000;
  }
}
