/* HolyHub Experience – Fotos & Videos (17.11.2026). Farben nur über die Tokens aus app.css, damit Hell und Dunkel stimmen. */
.med-neu{display:flex;gap:8px;margin:4px 0 14px}
.med-neu input{flex:1;min-width:0}
.med-s{border-top:1px solid var(--line);padding:16px 0 6px;border-radius:12px;transition:background .15s,box-shadow .15s}
.med-s:first-of-type{border-top:0}
.med-s.ziehen{background:var(--violet-soft);box-shadow:0 0 0 2px var(--lila) inset}
.med-kopf{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:10px}
.med-kopf h3{font-size:1.05rem;font-weight:700;letter-spacing:-.01em}
.med-notiz{margin-top:4px;font-size:.9rem;color:var(--ink-soft);white-space:pre-line}
.med-status{flex:none;font-size:.75rem;font-weight:600;padding:4px 10px;border-radius:99px;background:var(--muted);color:var(--ink-soft)}
.med-status.an{background:var(--green-soft);color:var(--green)}
.med-rot{color:var(--red)}
.med-team{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.med-feld{display:inline-flex;gap:6px;align-items:center;font-size:.82rem;color:var(--ink-soft)}
.med-feld select,.med-feld input{padding:5px 8px;border-radius:9px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:.82rem}
.med-drop{display:flex;gap:12px;align-items:center;padding:14px 16px;margin-bottom:12px;border:1.5px dashed var(--line);border-radius:12px;cursor:pointer;font-size:.88rem;color:var(--ink-soft);transition:border-color .15s,background .15s}
.med-drop:hover{border-color:var(--lila);background:var(--muted2)}
.med-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.med-drop svg,.med-fuss svg,.med-lb-dl svg,.me-knoepfe svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.med-drop b{color:var(--ink)}
/* Raster: Zeilen im Blocksatz, jede Kachel behält ihr Seitenverhältnis */
.med-raster{display:flex;flex-wrap:wrap;gap:6px}
.med-raster .med-rest{flex:999 1 0;height:0}
.med-raster{--zeile:170px}
.med-k{flex:var(--ar) 1 calc(var(--ar) * var(--zeile));aspect-ratio:var(--ar);position:relative;min-width:0;max-height:300px;border-radius:10px;overflow:hidden;background:var(--muted);cursor:zoom-in;outline-offset:2px}
.med-k img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s cubic-bezier(.2,.8,.2,1),filter .2s}
.med-k:hover img{transform:scale(1.025)}
.med-k:focus-visible{outline:2px solid var(--lila)}
.med-k.leer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px;text-align:center;cursor:default;font-size:.8rem;color:var(--ink-soft)}
.med-k.leer small{font-size:.72rem;opacity:.8;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.med-k.leer.verarbeitung span,.med-k.leer.upload span{animation:med-puls 1.6s ease-in-out infinite}
.med-k.leer.fehler{background:var(--red-soft);color:var(--red)}
.med-k-akt{display:flex;gap:6px;margin-top:4px}
@keyframes med-puls{50%{opacity:.45}}
.med-badge{position:absolute;left:8px;top:8px;display:inline-flex;gap:4px;align-items:center;padding:3px 8px 3px 6px;border-radius:99px;background:rgba(8,12,18,.66);color:#fff;font-size:.72rem;font-weight:600;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.med-badge.unten{top:auto;bottom:8px}
.med-badge.offen{background:var(--lila);color:#0E1218}
.med-badge svg{width:13px;height:13px;fill:currentColor;stroke:none}
.med-badge.unten svg{fill:none;stroke:currentColor;stroke-width:2.2}
.med-herz{position:absolute;right:6px;top:6px;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:99px;background:rgba(8,12,18,.42);color:#fff;cursor:pointer;opacity:0;transition:opacity .15s,transform .12s,background .15s;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.med-herz svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.med-herz.an{opacity:1;color:#ff6b8a}.med-herz.an svg{fill:currentColor}
.med-herz.fix{cursor:default;width:auto;min-width:30px;height:30px;padding:0 8px;gap:3px;display:inline-flex;align-items:center}
.med-herz.fix b{font-size:.72rem;color:#fff}
.med-herz:active{transform:scale(.9)}
.med-k:hover .med-herz,.med-k:focus-within .med-herz{opacity:1}
@media (hover:none){.med-herz{opacity:1}}
.med-mehr{text-align:center;margin-top:10px}
.med-k[draggable=true]{cursor:grab}.med-k.zieht{opacity:.35}
.med-k.davor{box-shadow:inset 4px 0 0 var(--lila)}.med-k.danach{box-shadow:inset -4px 0 0 var(--lila)}
.med-fuss{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0 4px}
.med-fuss .btn{display:inline-flex;gap:6px;align-items:center;text-decoration:none}
.med-fuss .hint{margin-left:4px}
/* Hochladen: kleine Leiste unten links, bleibt beim Weiterklicken stehen */
#med-up{position:fixed;left:16px;bottom:16px;z-index:999;width:min(340px,calc(100vw - 32px));background:var(--card);color:var(--ink);border-radius:14px;box-shadow:var(--shadow),0 0 0 1px var(--line);padding:12px 14px;display:grid;gap:6px;font-size:.85rem}
#med-up .med-up-kopf{display:flex;align-items:center;justify-content:space-between;gap:8px}
#med-up .med-up-kopf button{border:0;background:none;color:var(--ink-soft);cursor:pointer;width:26px;height:26px;display:grid;place-items:center}
#med-up svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
#med-up .cap-bar{height:6px;background:var(--muted)}#med-up .cap-bar i{background:var(--grad);transition:width .4s}
#med-up small{color:var(--ink-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:820px){
  .med-raster{--zeile:96px;gap:4px}
  .med-k{max-height:none;border-radius:8px}
  .med-herz{width:30px;height:30px;right:4px;top:4px}
  .med-badge{left:5px;top:5px}.med-badge.unten{bottom:5px}
  .med-team .btn.primary{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.med-k img{transition:none}}
/* Entwürfe zur Freigabe (18.11.2026): Kacheln ohne Bild (PDF ohne Vorschau, Website, Ton, Datei) und Stand je Datei */
.med-k.datei{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;text-align:center;background:var(--muted2,var(--muted));color:var(--ink)}
.med-k.datei .med-k-ico{font-size:34px;line-height:1}
.med-k.datei small{font-size:.76rem;color:var(--ink-soft);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.med-st{position:absolute;right:8px;bottom:8px;padding:3px 9px;border-radius:99px;font-size:.7rem;font-weight:700;background:rgba(8,12,18,.66);color:#fff;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.med-st.zur_freigabe{background:#f5c94c;color:#2b2208}.med-st.aenderung{background:#f0a197;color:#3a120c}.med-st.freigegeben{background:#7fd1a6;color:#0d3020}.med-st.final{background:var(--lila);color:#0E1218}.med-st.aus{background:rgba(8,12,18,.66);color:#fff}.med-st-i.aus{background:var(--muted);color:var(--ink-soft)}
.med-st.entwurf{background:rgba(8,12,18,.66);color:#fff}
/* Stand gilt gerade nicht beim Kunden (verborgen / neuere Fassung liegt dort): gleiche Farbe, gestrichelt */
.med-st.halb,.med-st-i.halb{outline:1.5px dashed currentColor;outline-offset:-3px;opacity:.85}
.med-art{flex:none;font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--violet-soft,var(--muted));color:var(--ink)}
.med-neu select{padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:.86rem}
/* Entwürfe groß in der Karte (18.11.2026): Website zum Durchscrollen, PDF, Video, Bild – ohne erst ins Vollbild zu gehen */
.med-entwurf{display:grid;gap:10px;margin:4px 0 18px}
.me-kopf{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.me-kopf b{font-size:.98rem;word-break:break-word}
.med-st-i{font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--muted);color:var(--ink-soft)}
.med-st-i.zur_freigabe{background:#f5c94c;color:#2b2208}.med-st-i.aenderung{background:#f0a197;color:#3a120c}.med-st-i.freigegeben{background:#7fd1a6;color:#0d3020}.med-st-i.final{background:var(--lila);color:#0E1218}
.me-web{position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--line)}
.me-web iframe{position:absolute;left:0;top:0;width:1280px;height:800px;border:0;transform-origin:0 0;background:#fff}
.me-web.schmal{aspect-ratio:auto;height:min(72vh,640px)}
.me-web.schmal iframe{width:100%;height:100%}
.me-pdf{width:100%;height:min(78vh,720px);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--line)}
.me-pdf iframe{width:100%;height:100%;border:0}
.me-video{width:100%;max-height:70vh;border-radius:12px;background:#000}
.me-bild{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:var(--muted);cursor:zoom-in}
.me-datei{padding:22px;border-radius:12px;background:var(--muted);font-weight:600;text-align:center}
.me-knoepfe{display:flex;flex-wrap:wrap;gap:8px}
.me-knoepfe .btn{text-decoration:none;display:inline-flex;align-items:center;gap:6px}
@media(max-width:600px){.me-knoepfe .btn{flex:1 1 0;justify-content:center;white-space:nowrap;padding-inline:8px;min-height:40px}.me-knoepfe .btn:first-child{flex-basis:100%}}
.me-knoepfe .me-zahl{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:rgba(255,255,255,.22);font-size:.74rem;font-weight:700;font-variant-numeric:tabular-nums}

/* 19.11.2026: einzeln verborgene Dateien (nur das Team sieht sie, blass mit Hinweis) */
.med-k.aus img,.med-k.aus .med-ico{opacity:.35;filter:grayscale(1)}
.med-k.aus::after{content:"Verborgen";position:absolute;left:8px;top:8px;padding:3px 9px;border-radius:99px;background:rgba(8,12,18,.72);color:#fff;font-size:.72rem;font-weight:700}
.med-entwurf.aus .me-web,.med-entwurf.aus .me-pdf,.med-entwurf.aus video,.med-entwurf.aus img{opacity:.5}
