/* Sticker-Maker – Logik in web/src/sticker/ */
@import url("/feierplaner/fonts.css");
.sm-main { max-width: 1120px; }
#sm { margin-bottom: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.sm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tg-noscroll { overflow: hidden; }
.tg-modal { position: fixed; inset: 0; background: rgba(10, 12, 25, .55); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .tg-modal { align-items: center; } }
.tg-sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px 18px 22px; animation: smUp .28s cubic-bezier(.2, .9, .3, 1); }
.tg-modal.full .tg-sheet { max-width: 720px; }
@media (min-width: 700px) { .tg-sheet { border-radius: var(--r-l); } }
.tg-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.tg-x { border: 0; background: none; font-size: 1.2rem; padding: 4px 8px; color: var(--text); cursor: pointer; }
.tg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: var(--r-m); opacity: 0; pointer-events: none; transition: .2s; z-index: 1100; max-width: calc(100% - 32px); text-align: center; }
.tg-toast.on { opacity: 1; transform: translate(-50%, 0); }
@keyframes smUp { from { transform: translateY(24px); opacity: 0; } }
@keyframes smPop { from { transform: scale(.8); opacity: 0; } }
.sm-checker { background: repeating-conic-gradient(#dfe3ea 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; }

/* Start */
.sm-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 38px 20px 30px; border-radius: var(--r-l); cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--c2, #ea580c) 45%, var(--border)); background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c1, #fbbf24) 16%, transparent), transparent 60%), var(--surface); transition: border-color .2s, box-shadow .2s; }
.sm-hero:hover { border-color: var(--c2, #ea580c); box-shadow: 0 20px 40px -26px var(--c2, #ea580c); }
.sm-hero > b { font-size: 1.25rem; }
.sm-hero-sub { color: var(--muted); font-size: var(--fs-s); max-width: 46ch; }
.sm-hero-art { display: flex; align-items: center; gap: 14px; font-size: 2.8rem; margin-bottom: 6px; }
.sm-hero-art span:nth-child(2) { font-size: 1.6rem; color: var(--muted); }
.sm-hero-st { filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); animation: smWackel 2.4s ease-in-out infinite; }
@keyframes smWackel { 50% { transform: rotate(-8deg) scale(1.08); } }
.sm-private { margin-top: 6px; font-size: var(--fs-xs, .8rem); color: var(--muted); background: color-mix(in srgb, #22c55e 12%, transparent); padding: 5px 12px; border-radius: 999px; }
.sm-feats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sm-feat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-s); }
body.sm-dropping::after { content: "📥  Loslassen zum Hinzufügen"; position: fixed; inset: 10px; z-index: 900; display: flex; align-items: center; justify-content: center; border: 3px dashed var(--c2, #ea580c); border-radius: 22px; background: color-mix(in srgb, var(--surface) 82%, transparent); font-size: 1.3rem; font-weight: 700; }

/* Editor */
.sm-edit { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 820px) { .sm-edit { grid-template-columns: 1fr; gap: 14px; } }
.sm-buehne { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; }
@media (max-width: 820px) { .sm-buehne { position: static; } }
.sm-buehne .sm-checker { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); max-width: 420px; width: 100%; margin: 0 auto; }
.sm-stage { display: block; width: 100%; aspect-ratio: 1; touch-action: none; cursor: grab; }
.sm-stage:active { cursor: grabbing; }
.sm-guide { position: absolute; inset: 3.125%; border: 1px dashed rgba(79, 70, 229, .45); border-radius: 6px; pointer-events: none; }
.sm-pruef { margin: 0; font-size: var(--fs-s); text-align: center; color: var(--muted); }
.sm-ok { color: #15803d; } .sm-warn { color: #b45309; }
.sm-tipp { text-align: center; margin: 0; }
.sm-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sm-lagen { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sm-lagen .h-chip { flex: none; }
.sm-plus { border-style: dashed; }
.sm-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--border) 28%, transparent); }
.sm-box .h-chips { flex-wrap: wrap; }
.sm-box .h-hint { margin: 0; }
.sm-regler { display: flex; flex-direction: column; gap: 6px; }
.sm-regler label, label.sm-regler { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; font-size: var(--fs-s); }
.sm-regler input { accent-color: var(--c2, #ea580c); width: 100%; }
.sm-font { flex: 1; min-width: 140px; }
.sm-farben { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-farben button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.sm-farben button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c2, #ea580c); }
.sm-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); }
.sm-emolabel { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-s); }
.sm-emoin { width: 130px; font-size: 1.2rem; }
.sm-fertig { margin-top: 4px; }
.sm-emo { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.sm-emo button { font-size: 1.6rem; border: 0; background: none; padding: 6px 0; border-radius: 10px; cursor: pointer; }
.sm-emo button:hover { background: color-mix(in srgb, var(--border) 50%, transparent); }

/* Freistellen von Hand */
.sm-mask { display: flex; flex-direction: column; gap: 10px; }
.sm-mask .h-hint { margin: 0; }
.sm-mask-wrap { border-radius: 12px; overflow: hidden; align-self: center; max-width: 100%; box-shadow: 0 0 0 1px var(--border); }
.sm-mask-cv { display: block; max-width: 100%; max-height: 56vh; touch-action: none; cursor: crosshair; }

/* Pack */
.sm-pack { display: flex; flex-direction: column; gap: 14px; }
.sm-packkopf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .sm-packkopf { grid-template-columns: 1fr; } }
.sm-packkopf label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); font-weight: 700; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.sm-kachel { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; padding: 0; cursor: pointer; overflow: hidden; box-shadow: 0 0 0 1px var(--border); animation: smPop .35s cubic-bezier(.34, 1.56, .64, 1); }
.sm-kachel img { width: 100%; height: 100%; display: block; }
.sm-stern { position: absolute; top: 4px; left: 6px; font-size: .9rem; }
.sm-kachel-emo { position: absolute; right: 5px; bottom: 3px; font-size: .8rem; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 0 5px; }
.sm-neu { background: none; border: 2px dashed var(--border); box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); }
.sm-neu span { font-size: 1.8rem; line-height: 1; }
.sm-stand { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.sm-menue { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.sm-menue-bild { align-self: center; border-radius: 14px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px var(--border); }
.sm-wege { display: flex; flex-direction: column; gap: 10px; }
.sm-wege h2 { margin: 0; font-size: 1.15rem; }
.sm-weg { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--border) 28%, transparent); }
.sm-weg--ich { background: color-mix(in srgb, var(--c1, #fbbf24) 18%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c2, #ea580c) 35%, transparent); }
.sm-weg b small { font-weight: 400; color: var(--muted); }
.sm-weg p { margin: 4px 0 0; font-size: var(--fs-s); }
@media (prefers-reduced-motion: reduce) { .sm-hero-st, .sm-kachel, .tg-sheet { animation: none; } }
