/* Handy-Ansicht */
body { min-height: 100vh; padding: 0 0 env(safe-area-inset-bottom); }

.top { text-align: center; padding: 0 16px 6px; }
.logos { display: block; width: calc(100% + 32px); max-width: 720px; margin: 0 auto 4px; margin-left: -16px; mix-blend-mode: multiply; }
@media (min-width: 720px) { .logos { margin-left: auto; width: 100%; } }
.date { font-size: 1.35rem; margin-top: 4px; }
.title { font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: .9; margin: 4px 0 0; }
.title span { display: block; font-size: .62em; letter-spacing: .04em; }
.lead { margin: 10px auto 0; max-width: 30em; color: var(--muted); font-size: .98rem; }

main { max-width: 640px; margin: 0 auto; padding: 12px 16px 24px; }
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px 18px 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px rgba(80,60,40,.12);
  position: relative;
  /* Luftpost-Rand oben */
  border-top: 6px solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--red) 0 14px, var(--card) 14px 22px, var(--teal) 22px 36px, var(--card) 36px 44px) 6;
}
.step h2 { font-family: var(--text); font-weight: 800; font-size: 1.22rem; line-height: 1.3; margin: 2px 0 6px; color: var(--teal-dark); }
.stepno { font: 700 1.3rem var(--caps); color: var(--red); letter-spacing: .15em; }
.hint { color: var(--muted); font-size: .92rem; margin: 4px 0 12px; }
.center { text-align: center; }
.error { color: var(--red-dark); font-weight: 700; min-height: 1.2em; margin: 8px 0 0; text-align: center; }

input, textarea {
  width: 100%;
  font: 600 1.05rem var(--text);
  color: var(--ink);
  background: #fff;
  border: 2px solid #d9cdb9;
  border-radius: 12px;
  padding: .75em .9em;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(49,122,108,.15); }
textarea { resize: vertical; min-height: 5.2em; font-size: 1.2rem; }
.lbl { display: block; font-weight: 800; font-size: .9rem; color: var(--teal-dark); margin: 14px 0 6px; }
.counter { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 2px; }

.search { position: relative; margin-bottom: 10px; }
.results { list-style: none; margin: 4px 0 0; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.results:empty { display: none; }
.results li { padding: .7em .9em; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; cursor: pointer; border-bottom: 1px solid #f0e8da; }
.results li:last-child { border-bottom: 0; }
.results li:active, .results li.active { background: #eef6f3; }
.results .n { font-weight: 800; }
.results .c { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.results .none { color: var(--muted); cursor: default; }

.btn.small { padding: .55em 1.1em; font-size: .95rem; }
.map-wrap { margin-top: 10px; }
#map { height: 56vh; min-height: 300px; border-radius: 14px; background: #a9d3c9; box-shadow: inset 0 0 0 2px rgba(31,79,71,.2); }
.leaflet-container { font-family: var(--text); background: #a9d3c9; }
.leaflet-popup-content { margin: 12px 14px; font-size: .95rem; }
.popup-add { margin-top: 8px; }
.pin { font-size: 26px; line-height: 26px; text-align: center; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }

.chosen { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chosen li {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e6f1ed; color: var(--teal-dark);
  border-radius: 999px; padding: .4em .5em .4em .85em;
  font-weight: 800; font-size: .95rem;
  animation: pop .35s cubic-bezier(.2,1.6,.4,1);
}
.chosen li small { font-weight: 600; color: var(--teal); }
.chosen button { border: 0; background: var(--teal); color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.actions.column { flex-direction: column; align-items: stretch; }
.actions .btn { flex: 1 1 auto; }
.linkish { background: none; border: 0; color: var(--teal); font: 700 .95rem var(--text); text-decoration: underline; cursor: pointer; padding: 8px; }

.spinner { font-size: 3.4rem; animation: spin 2.2s linear infinite; display: inline-block; margin: 8px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-emoji { font-size: 3.6rem; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }

.mini-card {
  margin: 16px auto 4px; max-width: 420px; padding: 16px 14px;
  background: #fffdf8; border: 2px dashed var(--teal-light); border-radius: 12px;
  transform: rotate(-1.2deg);
}
.mini-greeting { font: 400 2rem/1.15 var(--brush); color: var(--teal-dark); word-wrap: break-word; }
.mini-greeting:empty { display: none; }
.mini-places { margin-top: 8px; color: var(--red); font-weight: 800; font-size: .95rem; }

footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 28px; }
footer .singers { width: 150px; mix-blend-mode: multiply; opacity: .95; display: block; margin: 0 auto 4px; }
footer .small { font-size: .75rem; }
footer a { color: inherit; }
