/* Meme-Generator und Collage – Logik in web/src/meme/ (auch von /collage-erstellen geladen) */
@import url("/feierplaner/fonts.css");
@font-face { font-family: 'Anton'; font-style: normal; font-display: swap; font-weight: 400; src: url(./fonts/anton-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-style: normal; font-display: swap; font-weight: 400; src: url(./fonts/anton-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
.mc-main { max-width: 1160px; }
#mc { margin-bottom: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.mc-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: mcUp .28s cubic-bezier(.2, .9, .3, 1); }
@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 mcUp { from { transform: translateY(24px); opacity: 0; } }

/* Start */
.mc-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 20px 28px; 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; }
.mc-hero:hover { border-color: var(--c2, #ea580c); box-shadow: 0 20px 40px -26px var(--c2, #ea580c); }
.mc-hero > b { font-size: 1.25rem; }
.mc-hero-sub { color: var(--muted); font-size: var(--fs-s); max-width: 48ch; }
.mc-hero-art { display: flex; align-items: center; gap: 12px; font-size: 2.6rem; margin-bottom: 6px; }
.mc-hero-art span:nth-child(2) { font-size: 1.5rem; color: var(--muted); }
.mc-hero-t { font-family: 'Anton', Impact, sans-serif; font-size: 2.2rem; color: #fff; letter-spacing: .02em; -webkit-text-stroke: 2px #000; paint-order: stroke fill; text-shadow: 0 2px 0 #000; animation: mcWackel 2.6s ease-in-out infinite; }
.mc-hero-c { display: grid; grid-template-columns: 46px 30px; grid-template-rows: 30px 30px; gap: 5px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.mc-hero-c i { border-radius: 5px; background: linear-gradient(135deg, #fbbf24, #ea580c); }
.mc-hero-c i:first-child { grid-row: span 2; background: linear-gradient(135deg, #38bdf8, #4f46e5); }
.mc-hero-c i:last-child { background: linear-gradient(135deg, #4ade80, #059669); }
@keyframes mcWackel { 50% { transform: rotate(-5deg) scale(1.06); } }
.mc-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; }
.mc-feats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mc-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); }
.mc-recht { text-align: center; margin: 0; }
.mc-startv { display: flex; flex-direction: column; gap: 10px; }
.mc-vorl { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mc-vorl button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 14px; padding: 6px; cursor: pointer; font-size: var(--fs-xs, .8rem); }
.mc-vorl button:hover { border-color: var(--c2, #ea580c); }
.mc-vorl img { display: block; border-radius: 9px; width: 96px; height: 96px; }
.mc-vorl--gross { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); overflow: visible; margin-bottom: 10px; }
.mc-vorl--gross img { width: 100%; height: auto; }
body.mc-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 */
.mc-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px; align-items: start; }
@media (max-width: 860px) { .mc-edit { grid-template-columns: 1fr; gap: 12px; padding: 12px; } }
.mc-buehne { position: sticky; top: 8px; display: flex; justify-content: center; }
@media (max-width: 860px) { .mc-buehne { top: 0; z-index: 5; margin: -12px -12px 0; padding: 8px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border-radius: var(--r-l) var(--r-l) 0 0; } }
.mc-rahmen { line-height: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--border), 0 14px 30px -18px rgba(0, 0, 0, .45); background: repeating-conic-gradient(#dfe3ea 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; }
.mc-stage { display: block; width: auto; height: auto; max-width: 100%; max-height: 70vh; touch-action: none; cursor: grab; }
.mc-stage:active { cursor: grabbing; }
@media (max-width: 860px) { .mc-stage { max-height: 46vh; } }
.mc-rechts { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--border) 40%, transparent); }
.mc-tab { border: 0; background: none; color: var(--text); padding: 9px 2px; border-radius: 10px; font: inherit; font-size: var(--fs-s); font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tab[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.mc-tab--ziel[aria-selected="false"] { color: var(--c2, #ea580c); }
.mc-seite { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mc-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--border) 28%, transparent); }
.mc-box .h-chips { flex-wrap: wrap; }
.mc-box .h-hint { margin: 0; }
.mc-klein { font-size: var(--fs-s); font-weight: 600; }
.mc-regler { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: var(--fs-s); }
.mc-regler input { accent-color: var(--c2, #ea580c); width: 100%; }
.mc-feld { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-s); font-weight: 600; }
.mc-feld .h-input, .mc-box textarea.h-input { width: 100%; font-weight: 400; resize: vertical; }
.mc-mehr summary { cursor: pointer; font-size: var(--fs-s); font-weight: 600; padding: 4px 0; }
.mc-mehr[open] { display: flex; flex-direction: column; gap: 10px; }
.mc-font { flex: 1; min-width: 140px; }
.mc-check { display: flex; align-items: center; gap: 6px; font-size: var(--fs-s); }
.mc-farben { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mc-farben button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.mc-farben button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c2, #ea580c); }
.mc-farbe-frei { position: relative; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px dashed var(--border); cursor: pointer; font-size: .95rem; }
.mc-farbe-frei input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mc-layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.mc-layouts button { aspect-ratio: 1; border: 2px solid var(--border); background: var(--surface); border-radius: 12px; padding: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mc-layouts svg { width: 100%; height: 100%; fill: color-mix(in srgb, var(--text) 30%, transparent); }
.mc-layouts button[aria-pressed="true"] { border-color: var(--c2, #ea580c); }
.mc-layouts button[aria-pressed="true"] svg { fill: var(--c2, #ea580c); }
.mc-lagen { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-plus { border-style: dashed; }
.mc-ideen .h-chip { text-align: left; }
.mc-streifen { display: flex; gap: 8px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.mc-mini { position: relative; flex: none; width: 64px; height: 64px; border-radius: 12px; border: 2px solid var(--border); padding: 0; overflow: hidden; cursor: pointer; background: var(--surface); color: var(--muted); }
.mc-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-mini span { position: absolute; left: 3px; top: 3px; background: rgba(17, 24, 39, .75); color: #fff; font-size: .7rem; border-radius: 999px; min-width: 18px; padding: 0 4px; line-height: 18px; }
.mc-mini[aria-pressed="true"] { border-color: var(--c2, #ea580c); box-shadow: 0 0 0 2px var(--c2, #ea580c); }
.mc-mini--neu { border-style: dashed; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.4rem; line-height: 1; }
.mc-mini--neu small { font-size: .7rem; }
.mc-info { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.mc-ziel .h-btn { flex: 1; }
.mc-emo { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.mc-emo button { font-size: 1.6rem; border: 0; background: none; padding: 6px 0; border-radius: 10px; cursor: pointer; }
.mc-emo button:hover { background: color-mix(in srgb, var(--border) 50%, transparent); }
@media (prefers-reduced-motion: reduce) { .mc-hero-t, .tg-sheet { animation: none; } }
