/* Fotodatenbank – gemeinsam für das Serviceportal (index.html) und die Monteur-App (foto-app.html) */
  .foto-kopf { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; margin-bottom:10px; } .foto-hoch-knopf { font-size:17px; padding:12px 20px; }
  .foto-leiste { flex-wrap:wrap; } .foto-arten { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 10px; }
  .foto-raster { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; } .foto-raster.klein { grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); }
  .foto-kachel { position:relative; padding:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#f3efe9; cursor:pointer; aspect-ratio:1; display:block; width:100%; }
  .foto-kachel img { width:100%; height:100%; object-fit:cover; display:block; }
  .foto-marke { position:absolute; top:5px; left:5px; background:#fffe; border-radius:8px; padding:1px 6px; font-size:13px; }
  .foto-unter { position:absolute; left:0; right:0; bottom:0; padding:14px 7px 5px; background:linear-gradient(transparent,#000a); color:#fff; font-size:12px; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .foto-dlg { width:min(1100px,96vw); max-height:94vh; padding:0; border:0; border-radius:14px; } .foto-dlg::backdrop { background:#000b; }
  .foto-dlg-kopf { display:flex; gap:10px; align-items:baseline; padding:12px 16px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:2; } .foto-dlg-kopf .link-x { margin-left:auto; font-size:26px; }
  .foto-dlg-inhalt { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); }
  .foto-gross { position:relative; background:#111; display:flex; align-items:center; justify-content:center; min-height:300px; } .foto-gross img { max-width:100%; max-height:78vh; display:block; }
  .foto-pfeil { position:absolute; top:50%; transform:translateY(-50%); background:#fffc; border:0; border-radius:50%; width:42px; height:42px; font-size:28px; line-height:1; cursor:pointer; } .foto-pfeil.links { left:8px; } .foto-pfeil.rechts { right:8px; }
  .foto-nur-mini { opacity:.6; filter:blur(1px); } .foto-nas-hinweis { position:absolute; inset:auto 12px 12px; background:#fffe; border-radius:10px; padding:10px 12px; margin:0; font-size:13px; }
  .foto-info { padding:14px 16px; display:flex; flex-direction:column; gap:8px; font-size:14px; } .foto-ki { background:#f6f2ee; border-radius:10px; padding:10px 12px; }
  .foto-hoch-schritte { padding:14px 16px; display:flex; flex-direction:column; gap:16px; } .foto-hoch-schritte > div > b { display:block; margin-bottom:6px; font-size:16px; }
  .fh-liste { display:flex; flex-direction:column; gap:6px; margin-top:6px; max-height:280px; overflow:auto; } #fhSuche, .fh-notiz { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; font-size:16px; }
  .fh-v { text-align:left; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; font:inherit; cursor:pointer; } .fh-v:hover { border-color:var(--ink); }
  .fh-gewaehlt { padding:10px 12px; background:#eef8ee; border-radius:10px; }
  .fh-knoepfe { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px; } .fh-gross { font-size:18px; padding:18px 10px; text-align:center; justify-content:center; }
  .fh-balken { height:12px; background:#eee; border-radius:6px; overflow:hidden; } .fh-balken span { display:block; height:100%; background:var(--ink); transition:width .3s; }
  .fh-fertig { font-size:18px; padding:12px; background:#eef8ee; border-radius:10px; }
  @media (max-width:760px) { .foto-dlg { width:100vw; max-width:100vw; max-height:100dvh; height:100dvh; border-radius:0; margin:0; } .foto-dlg-inhalt { grid-template-columns:1fr; } .foto-gross img { max-height:60vh; }
    .foto-raster { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; } .foto-unter { font-size:11px; } .fh-knoepfe { grid-template-columns:1fr; } }
  .fh-ablage { margin:6px 0 10px; padding:34px 16px; min-height:120px; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; border:3px dashed var(--line); border-radius:14px; text-align:center; color:var(--muted, #777); font-size:17px; background:#faf8f5; }
  .fh-ablage.voll { border-color:var(--ink); color:var(--ink); background:#f6f2ee; }
  body.foto-ziehen #fotos, body.foto-ziehen #vgFotosKarte, body.foto-ziehen .fh-ablage, body.foto-ziehen .foto-app-ablage { outline:3px dashed var(--ink); outline-offset:4px; }
  .foto-nas { display:flex; flex-direction:column; gap:6px; background:#f6f2ee; border-radius:10px; padding:10px 12px; } .foto-nas code { word-break:break-all; font-size:12px; }
  .foto-platz { display:flex; flex-direction:column; gap:6px; margin:8px 0 12px; }
  .fh-betrieb .chip { font-size:15px; padding:8px 14px; }
  @media (hover:none) { .foto-drop-tipp, .fh-ablage:not(.voll) { display:none; } }   /* Handy: kein Ziehen */
  .cloud-zeile { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; } .cloud-zeile input[type=range] { flex:1 1 220px; accent-color:var(--ink); }
  .cloud-balken { position:relative; height:16px; background:#ece7e1; border-radius:8px; overflow:hidden; }
  .cloud-balken .c-belegt { position:absolute; left:0; top:0; bottom:0; background:var(--ink); }
  .cloud-balken .c-budget { position:absolute; top:0; bottom:0; width:3px; margin-left:-1px; background:var(--red, #e63741); }
  .fh-knoepfe.drei { grid-template-columns:1fr 1fr 1fr; } .fh-video { background:#5b4b8a; }
  @media (max-width:760px) { .fh-knoepfe.drei { grid-template-columns:1fr 1fr; } .fh-knoepfe.drei label:last-child { grid-column:1 / -1; } }
  .foto-gross video { max-width:100%; max-height:78vh; display:block; background:#000; }
  textarea.fh-notiz { margin-top:6px; resize:vertical; } select.fh-notiz { background:#fff; }
  .fh-melde-kopf { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; font-size:17px; }
  .foto-app-melden { width:100%; margin-bottom:14px; font-size:17px; padding:14px; }
  .foto-369 { font-size:10px; background:#1f4e79; color:#fff; border-radius:5px; padding:0 4px; vertical-align:1px; }
  /* Cloud */
  .cloud-kat { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:10px 0 8px; } .cloud-kat .chip .hinweis { font-size:11px; }
  .cloud-ansicht { margin-left:auto; }
  .foto-kachel.dok { background:#fff; } .foto-kachel.dok img { object-fit:contain; background:#fff; }
  .dok-icon { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; font-size:44px; gap:2px; } .dok-icon small { font-size:11px; font-weight:700; color:var(--muted, #777); }
  .foto-gross.dok { background:#f3efe9; } .foto-gross iframe { width:100%; height:78vh; border:0; background:#fff; }
  .dok-gross { display:flex; flex-direction:column; align-items:center; gap:10px; padding:30px; text-align:center; } .dok-gross span { font-size:80px; } .dok-gross img { max-height:60vh; max-width:100%; }
  .cloud-akte { background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 12px; margin-bottom:8px; } .cloud-akte summary { cursor:pointer; padding:4px 0; }
  .cloud-akte-kat { margin:8px 0; } .cloud-akte-kat > .hinweis { display:block; margin-bottom:4px; }
  @media (max-width:760px) { .foto-gross iframe { height:60vh; } .cloud-ansicht { margin-left:0; } }
  .cloud-preise { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:10px; }
  .cloud-preis-h { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:4px; }
  .cloud-preis { display:block; padding:6px 8px; border-radius:8px; text-decoration:none; color:var(--ink); background:#f6f2ee; font-size:14px; } .cloud-preis:hover { background:#ece5dc; }
  .cloud-preis .hinweis { display:block; } .cloud-preis.gesperrt { color:var(--muted, #777); }
  .fh-info { display:flex; flex-direction:column; gap:4px; margin-top:8px; font-size:14px; }
  /* Intern → Apps */
  .apps-titel { margin:18px 0 8px; } .apps-raster { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:10px; }
  .app-karte { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; }
  .app-karte p { margin:8px 0 0; font-size:14px; flex:1; } .app-karte .btns { margin-top:10px; }
  .app-kopf { display:flex; gap:10px; align-items:center; } .app-kopf b { display:block; } .app-kopf .hinweis { display:block; }
  .app-icon { width:46px; height:46px; border-radius:11px; background:#f3efe9; display:flex; align-items:center; justify-content:center; font-size:26px; overflow:hidden; flex:none; } .app-icon img { width:100%; height:100%; object-fit:cover; }
  .app-dlg { width:min(560px,96vw); padding:0; border:0; border-radius:14px; } .app-dlg::backdrop { background:#0008; }
  .app-dlg-kopf { display:flex; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); } .app-dlg-kopf .link-x { margin-left:auto; font-size:26px; }
  .app-dlg-inhalt { display:grid; grid-template-columns:auto 1fr; gap:16px; padding:16px; font-size:14px; } .app-qr { width:200px; height:200px; }
  .app-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:16px; } .app-form .breit { grid-column:1 / -1; }
  @media (max-width:560px) { .app-dlg-inhalt { grid-template-columns:1fr; justify-items:center; } .app-form { grid-template-columns:1fr; } }
  .app-icon.gross { width:60px; height:60px; border-radius:14px; box-shadow:0 2px 6px #0003; }
  .app-vorschau { display:flex; flex-direction:column; align-items:center; gap:4px; margin-top:12px; font-size:12px; } .app-vorschau img { width:60px; height:60px; border-radius:14px; box-shadow:0 2px 6px #0003; }
  .fh-suche-zeile { display:flex; gap:8px; } .fh-suche-zeile input { flex:1; min-width:0; } .fh-suche-zeile .btn { white-space:nowrap; }
  .fh-kunde-neu { border:1px solid var(--line); border-radius:12px; padding:12px; background:#faf8f5; display:flex; flex-direction:column; gap:10px; }
  .fh-kn-raster { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; } .fh-kn-raster label { display:flex; flex-direction:column; gap:3px; font-size:13px; }
  .fh-kn-raster input, .fh-kn-raster select { padding:9px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; font-size:16px; background:#fff; width:100%; box-sizing:border-box; }
  .fh-kn-raster .breit { grid-column:span 1; } .fh-herkunft { display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
  @media (max-width:640px) { .fh-kn-raster { grid-template-columns:1fr 1fr; } .fh-suche-zeile { flex-direction:column; } }

/* Großansicht: drehen & zoomen */
.foto-gross { overflow:hidden; } .foto-gross img { transition:transform .12s ease-out; transform-origin:center; touch-action:none; user-select:none; -webkit-user-drag:none; cursor:zoom-in; } .foto-gross.gezoomt img { transition:none; }
.foto-werkz { position:absolute; left:50%; bottom:10px; transform:translateX(-50%); display:flex; gap:4px; align-items:center; background:rgba(20,20,20,.72); border-radius:12px; padding:4px 6px; z-index:3; backdrop-filter:blur(4px); }
.foto-werkz button { width:38px; height:38px; border:0; border-radius:8px; background:transparent; color:#fff; font-size:20px; line-height:1; cursor:pointer; } .foto-werkz button:hover { background:rgba(255,255,255,.18); } .foto-werkz span { width:1px; height:22px; background:rgba(255,255,255,.35); margin:0 4px; }

/* Vorgang: Cloud nach Art sortiert; Löschen-Auswahl; Papierkorb */
.foto-gruppe { margin:14px 0 6px; font-size:15px; } .foto-gruppe:first-child { margin-top:2px; }
#fotoWegDlg { max-width:min(520px, 94vw); } .foto-weg-wahl { display:grid; gap:8px; margin-top:10px; } .foto-weg-wahl .btn { text-align:left; white-space:normal; line-height:1.35; height:auto; padding:10px 14px; }
.foto-pk-liste { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:8px; } .foto-pk-liste li { display:flex; gap:10px; align-items:center; background:#faf7f4; border-radius:10px; padding:8px; } .foto-pk-liste img { width:72px; height:72px; object-fit:cover; border-radius:8px; flex-shrink:0; background:#ddd; } .foto-pk-liste li > span { flex:1; min-width:0; word-break:break-word; }
@media (max-width:600px) { .foto-pk-liste li { flex-wrap:wrap; } }
.foto-technik { list-style:none; margin:4px 0 8px; padding:0; display:grid; gap:4px; } .foto-technik li { font-size:14px; }
