/* Aach-Gotthelf Strassenfest – Mobile first, Grüntöne wie Einladung */
:root {
  --green: #2d5a3d;
  --green-dark: #1e3d2a;
  --green-soft: #e8f0eb;
  --green-mid: #3d7a52;
  --green-muted: #d4e8da;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --border: #c5d9cc;
  --danger: #a33;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(45, 90, 61, 0.1);
  --max: 560px;
  --header-pad: max(1rem, env(safe-area-inset-top));
  --side-pad: max(1rem, env(safe-area-inset-left));
  --side-pad-r: max(1rem, env(safe-area-inset-right));
  --bottom-pad: max(1.25rem, env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--green-soft);
  color: var(--text);
  line-height: 1.45;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Header with photo (better: image + dark green gradient for text) ── */
.header {
  background: var(--green);
  color: var(--white);
  padding: calc(var(--header-pad) + 0.5rem) var(--side-pad) 1.35rem var(--side-pad-r);
  text-align: center;
}

.header-photo {
  position: relative;
  min-height: 9.5rem;
  padding: 0;
  background-color: var(--green-dark);
  /* Mehr Bildsichtbarkeit: leichtere Überlagerung */
  background-image:
    linear-gradient(
      180deg,
      rgba(30, 61, 42, 0.28) 0%,
      rgba(30, 61, 42, 0.42) 45%,
      rgba(30, 61, 42, 0.62) 100%
    ),
    url("images/quartier.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.header-overlay {
  padding: calc(var(--header-pad) + 1.35rem) var(--side-pad) 1.6rem var(--side-pad-r);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.4);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* ── Sticky Anmelden ── */
.fab-anmelden {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 6px 24px rgba(45, 90, 61, 0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, background 0.15s;
}

.fab-anmelden:hover {
  background: var(--green-dark);
}

.fab-anmelden:active {
  transform: scale(0.97);
}

.fab-anmelden[hidden] {
  display: none !important;
}

/* ── Login-first screen (full page) ── */
body.is-locked {
  overflow: hidden;
}

body.is-locked .app {
  visibility: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

.login-screen[hidden] {
  display: none !important;
}

.login-hero {
  position: absolute;
  inset: 0;
  background-color: var(--green-dark);
  background-image:
    linear-gradient(
      180deg,
      rgba(30, 61, 42, 0.25) 0%,
      rgba(30, 61, 42, 0.4) 50%,
      rgba(30, 61, 42, 0.58) 100%
    ),
    url("images/quartier.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Info-Button oben links (Foto) */
.photo-info-btn {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 5;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(30, 61, 42, 0.55);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}

.photo-info-btn:hover {
  background: rgba(30, 61, 42, 0.8);
}

.photo-info-btn-header {
  top: max(0.65rem, env(safe-area-inset-top));
  left: max(0.65rem, env(safe-area-inset-left));
}

.photo-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 40, 28, 0.5);
  backdrop-filter: blur(3px);
}

.photo-info-overlay[hidden] {
  display: none !important;
}

.photo-info-dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.photo-info-dialog h2 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 1.15rem;
  padding-right: 1.75rem;
}

.photo-info-text {
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text);
}

.photo-info-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.photo-info-close:hover {
  background: var(--green-muted);
}

.photo-download-btn {
  display: flex;
  width: 100%;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.login-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  /* Unten, damit das Quartierfoto oben frei sichtbar bleibt */
  border-radius: 18px 18px 14px 14px;
}

.login-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.login-dialog h2 {
  margin: 0 0 0.35rem;
  color: var(--green);
}

/* Bring lists */
.bring-block {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 1rem;
  margin-bottom: 1rem;
}

.bring-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.bring-note {
  margin: 0 0 0.75rem !important;
}

.bring-section {
  margin-top: 0.75rem;
}

.bring-section + .bring-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--green-soft);
}

.bring-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--green);
}

.chip-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 500;
}

.chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-remove {
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chip-remove:hover {
  background: var(--green-dark);
}

.add-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.add-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.add-row .btn-small {
  flex-shrink: 0;
  white-space: nowrap;
}

.device-hint {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-contact {
  margin: 0.45rem 0 0.15rem !important;
  font-size: 0.82rem;
}

.footer-contact a {
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* ── Main ── */
main {
  flex: 1;
  padding: 1rem var(--side-pad) 5.5rem var(--side-pad-r);
}

textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  resize: vertical;
  min-height: 4.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.18);
}

.card-einladung h2 {
  margin: 0 0 0.85rem;
}

.einladung-text p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}

.einladung-text p:last-child {
  margin-bottom: 0;
}

.einladung-gruss {
  margin-top: 1rem !important;
  color: var(--green-dark);
}

.card-wann-wo {
  background: linear-gradient(145deg, #ffffff 0%, var(--green-soft) 100%);
  border: 1.5px solid var(--green-muted);
}

.card-wann-wo h2 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
  color: var(--green);
}

.wann-wo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wann-wo-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(45, 90, 61, 0.06);
}

.wann-wo-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--green);
  display: block;
}

.wann-wo-item > span {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.35;
  min-width: 0;
}

.wann-wo-weather {
  background: rgba(232, 240, 235, 0.95);
  border: 1px solid var(--green-muted);
}

.wann-wo-weather .wann-wo-icon {
  color: var(--green-mid);
}

.card-location .location-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

/* Alle Anmeldungen – Card-Grid */
.card-anmeldungen {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.card-anmeldungen .overview-head {
  padding: 0 0.15rem;
  margin-bottom: 0.75rem;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.anmeldung-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
}

.anmeldung-card.is-me {
  border-color: var(--green);
  background: linear-gradient(160deg, #fff 0%, var(--green-soft) 100%);
}

.anmeldung-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.anmeldung-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--green-dark);
}

.anmeldung-card-persons {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.anmeldung-card.is-me .anmeldung-card-persons {
  background: var(--green);
  color: var(--white);
}

.anmeldung-card-address {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.anmeldung-card-bring {
  margin: 0.15rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.anmeldung-card-bring p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.35;
}

.anmeldung-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-right: 0.25rem;
}

.anmeldung-card-none {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.anmeldung-card-note {
  margin: 0.15rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(45, 90, 61, 0.06);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
}

.anmeldung-card-actions {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--green-soft);
}

@media (min-width: 640px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--green-muted);
  box-shadow: none;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--green);
}

.card h3,
.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: var(--green);
}

.section-title.list-heading,
.bring-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Material Design Icons (official SVGs via CSS mask) */
.section-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background-color: var(--green);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* SVG Repo salad: https://www.svgrepo.com/svg/47726/salad */
.icon-set-meal,
.icon-salad {
  -webkit-mask-image: url("icons/material/salad.svg");
  mask-image: url("icons/material/salad.svg");
}

/* SVG Repo cake: https://www.svgrepo.com/svg/107372/cake */
.icon-cake {
  -webkit-mask-image: url("icons/material/cake.svg");
  mask-image: url("icons/material/cake.svg");
}

.overview-head .section-title {
  margin: 0;
}

.card-participants > h2 {
  margin: 0 0 0.85rem;
}

.hint {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Form ── */
.field {
  display: block;
  margin-bottom: 1rem;
}

.field > span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

.field > span em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

input[type="text"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.18);
}

input[type="text"]::placeholder {
  color: #999;
}

.contribution {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.85rem;
  margin: 0 0 1rem;
}

.contribution legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.choice:active {
  background: var(--green-soft);
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--green);
  flex-shrink: 0;
}

/* ── Buttons ── */
.actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid #e0b4b4;
}

.btn-ghost:hover {
  background: #fdf0f0;
}

.btn-small {
  padding: 0.4rem 0.7rem;
  font-size: 0.82rem;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--border);
}

.save-msg {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--green-soft);
  color: var(--green-dark);
}

.save-msg.is-error {
  background: #fdecec;
  color: var(--danger);
}

/* ── Info ── */
.info-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.info-card li {
  margin-bottom: 0.35rem;
}

.info-card li:last-child {
  margin-bottom: 0;
}

/* ── Overview ── */
.overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.overview-head h2 {
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.stats-participants {
  grid-template-columns: repeat(3, 1fr);
}

.stats-participants .stat-highlight strong {
  font-size: 1.75rem;
}

.card-participants h2 {
  margin: 0;
}

.contrib-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}

/* Titel eng an der eigenen Liste */
.list-heading {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  padding-top: 0;
  border-top: none;
}

/* Abstand zwischen den beiden Listen (nach Salate, vor Desserts) */
#salad-list {
  margin-bottom: 1.35rem;
}

#salad-empty:not([hidden]) {
  margin-bottom: 1.35rem;
}

.stats-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 420px) {
  .stats-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field-row .field {
  margin-bottom: 0.35rem;
}

.field-note {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

input[type="number"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: textfield;
}

input[type="number"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.18);
}

input[type="password"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.18);
}

.admin-edit-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fff3cd;
  color: #5c4a00;
  font-size: 0.9rem;
  font-weight: 500;
}

.link-btn {
  display: inline;
  margin-left: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.admin-item {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid var(--green-soft);
}

.admin-item:last-child {
  border-bottom: none;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-danger-small {
  background: #fdecec !important;
  color: var(--danger) !important;
  border-color: #e0b4b4 !important;
}

.btn-ghost-small {
  background: transparent !important;
  color: var(--danger) !important;
  border: 1px solid #e0b4b4 !important;
}

@media (min-width: 520px) {
  .admin-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-item-actions {
    flex-shrink: 0;
  }
}

.stat {
  text-align: center;
  padding: 0.75rem 0.4rem;
  background: var(--green-soft);
  border-radius: 10px;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  color: var(--green);
  line-height: 1.1;
}

.stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Salate / Desserts – eine Zeile, gleichmässig */
.bring-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bring-list li {
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: none;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text);
}

/* Trennlinie nur zwischen Einträgen – letzter Eintrag nie */
.bring-list li:not(:last-child) {
  border-bottom: 1px solid var(--green-soft);
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--green-soft);
}

.item-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.empty[hidden],
[hidden] {
  display: none !important;
}

/* ── Footer ── */
.footer {
  padding: 0.85rem var(--side-pad) calc(var(--bottom-pad) + 3.5rem) var(--side-pad-r);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0.15rem 0;
}

.footer-greeting {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--green-dark);
  max-width: 28rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-links {
  margin-top: 0.55rem !important;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-admin-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  opacity: 0.7;
}

.footer-admin-link:hover,
.footer-admin-link.is-active {
  color: var(--green);
  opacity: 1;
}

/* ── Desktop ── */
@media (min-width: 720px) {
  :root {
    --max: 720px;
  }

  body {
    background: linear-gradient(180deg, var(--green-soft) 0%, #dce8e0 100%);
  }

  .app {
    margin: 1.5rem auto 2rem;
    min-height: calc(100dvh - 3.5rem);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(45, 90, 61, 0.15);
    background: var(--green-soft);
  }

  .header {
    padding: 1.75rem 2rem 1.5rem;
  }

  .tabs {
    padding: 0.75rem 1.5rem;
  }

  main {
    padding: 1.35rem 1.5rem 1rem;
  }

  .card {
    padding: 1.35rem 1.45rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-primary {
    min-width: 220px;
  }

  .btn-ghost {
    min-width: 160px;
  }
}

@media (min-width: 960px) {
  :root {
    --max: 840px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .panel,
  .btn,
  .tab {
    transition: none;
    animation: none;
  }
}
