/* Presse-Cloud dergamingtrupp.de/presse/cloud. Baut auf presse.css und grafiken.css auf, Werte aus tokens.css. */
.cl { padding-bottom: 72px; }
.cl-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end; padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.cl-lead { font-size: 18px; max-width: 52ch; }
@media (max-width: 900px) { .cl-kopf { grid-template-columns: 1fr; padding-top: 40px; } }

.cl-konto { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--dgt-radius-lg); background: var(--surface); }
.cl-konto__aus, .cl-konto__an { display: grid; gap: 10px; justify-items: start; }
.cl-konto[data-zustand="aus"] .cl-konto__an, .cl-konto[data-zustand="an"] .cl-konto__aus { display: none; }
.cl-konto__an { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
.cl-konto__an p { margin: 0; font-size: 18px; }
.cl-konto p { margin: 0; }

.cl-hinweis { margin: 24px 0 0; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--surface); }
.cl-hinweis[hidden] { display: none; }

.cl-raster { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; }
@media (max-width: 760px) { .cl-raster { grid-template-columns: 1fr; gap: 24px; } }

.cl-ordner { display: grid; gap: 10px; position: sticky; top: 24px; }
.cl-ordner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cl-ordner [role="group"] { margin-top: 2px; }
.cl-zeile { display: flex; align-items: center; gap: 2px; padding-left: calc(var(--tiefe, 0) * 14px); }
.cl-zeile .cl-ordner__knopf { flex: 1; min-width: 0; }
.cl-ordner__knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-klapp { flex: none; display: grid; place-items: center; width: 24px; height: 32px; padding: 0; border: 0; border-radius: var(--dgt-radius-sm); background: none; color: var(--muted); cursor: pointer; }
button.cl-klapp:hover { color: var(--fg); background: var(--surface); }
button.cl-klapp:focus-visible { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: 1px; }
.cl-klapp svg { transition: transform var(--dgt-dur-fast) var(--dgt-ease-out); }
.cl-klapp[data-offen] svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .cl-klapp svg { transition: none; } }
.cl-ordner__knopf { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--dgt-radius-md); background: none; color: var(--fg); font: 600 15px/1.3 var(--dgt-font-ui); text-align: left; cursor: pointer;
  transition: border-color var(--dgt-dur-fast) var(--dgt-ease-out), background-color var(--dgt-dur-fast) var(--dgt-ease-out); }
.cl-ordner__knopf small { font: 500 12px/1.3 var(--dgt-font-mono); color: var(--muted); }
.cl-ordner__knopf:hover { border-color: var(--line); }
.cl-ordner__knopf[aria-current="true"] { border-color: var(--accent); background: var(--surface); }
@media (max-width: 760px) {
  .cl-ordner { position: static; }
  .cl-ordner > div { max-height: 50vh; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); }
}

.cl-inhalt { display: grid; gap: 20px; min-width: 0; }
.cl-inhalt__kopf { display: grid; gap: 6px; }
.cl-inhalt__kopf p:empty { display: none; }
.cl-leer[hidden] { display: none; }
.cl-dateityp { font: 700 28px/1 var(--dgt-font-mono); color: var(--muted); }
.cl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.3 var(--dgt-font-mono); }
.cl .gr__fuss { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.cl .gr__fuss .datei-info { display: block; }
.cl .gr, .cl .gr__wahl, .cl .gr__fuss { min-width: 0; }
.cl .gr__fuss > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cl-unter { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cl-unter[hidden] { display: none; }
.cl-unter__knopf { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); background: var(--surface); color: var(--fg); font: 600 15px/1.3 var(--dgt-font-ui); text-align: left; cursor: pointer;
  transition: border-color var(--dgt-dur-fast) var(--dgt-ease-out); }
.cl-unter__knopf svg { grid-row: span 2; color: var(--accent); }
.cl-unter__knopf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-unter__knopf small { font: 500 12px/1.3 var(--dgt-font-mono); color: var(--muted); }
.cl-unter__knopf:hover { border-color: var(--accent); }
.cl .gr-leiste[hidden] { display: none; }

/* Werkzeugleiste: Suche, Typ-Filter, Ordner als ZIP */
.cl-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cl-werkzeug[hidden] { display: none; }
.cl-suche { flex: 1 1 220px; max-width: 320px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); background: var(--surface); color: var(--fg); font: 400 15px/1 var(--dgt-font-ui); }
.cl-suche:focus-visible { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: 1px; }
.cl-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-filter[hidden] { display: none; }
.cl-filter button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--dgt-radius-sm); background: none; color: var(--muted); font: 500 13px/1 var(--dgt-font-ui); cursor: pointer; }
.cl-filter button:hover { color: var(--fg); }
.cl-filter button[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); background: var(--surface); }
.cl-filter button:focus-visible { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: 1px; }
.cl-werkzeug .cl-zip { margin-left: auto; }
.cl-keine[hidden] { display: none; }

/* Großansicht anklickbar */
.cl .gr__bild { cursor: zoom-in; }
.cl-name { padding: 0; border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; }
.cl-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-name:focus-visible { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: 2px; }

/* Lightbox */
.cl-gross { width: min(1200px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 1px solid var(--line); border-radius: var(--dgt-radius-lg); background: var(--bg); color: var(--fg); }
.cl-gross::backdrop { background: rgb(0 0 0 / .78); }
.cl-gross[open] { display: grid; overflow: hidden; grid-template-rows: minmax(0, 1fr) auto; }
.cl-gross__buehne { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 24px 64px; background: var(--dgt-ink-950); }
.cl-gross__buehne img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cl-gross__typ { font: 700 48px/1 var(--dgt-font-mono); color: var(--muted); }
.cl-gross__nav, .cl-gross__zu { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--dgt-radius-md); background: var(--bg); color: var(--fg); cursor: pointer; }
.cl-gross__nav { top: 50%; translate: 0 -50%; }
.cl-gross__nav[data-r="zurueck"] { left: 12px; }
.cl-gross__nav[data-r="vor"] { right: 12px; }
.cl-gross__nav:disabled { opacity: .35; cursor: default; }
.cl-gross__zu { top: 12px; right: 12px; }
.cl-gross__nav:hover:not(:disabled), .cl-gross__zu:hover { border-color: var(--accent); }
.cl-gross button:focus-visible { outline: var(--dgt-focus-width) solid var(--accent); outline-offset: 2px; }
.cl-gross__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border-top: 1px solid var(--line); }
.cl-gross__info { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.cl-gross__info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.3 var(--dgt-font-mono); }
.cl-gross__info small { font: 500 13px/1.3 var(--dgt-font-mono); color: var(--muted); }
.cl-gross__aktionen { display: flex; gap: 8px; }
.cl-gross__aktionen [hidden] { display: none; }
@media (max-width: 560px) {
  .cl-gross { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .cl-gross__buehne { padding: 56px 8px 64px; }
  .cl-gross__nav { top: auto; bottom: 10px; translate: none; }
  .cl-gross__aktionen { flex: 1 1 100%; }
  .cl-gross__aktionen .knopf { flex: 1 1 0; justify-content: center; }
  .cl-werkzeug .cl-zip { margin-left: 0; }
  .cl-suche { max-width: none; }
}

/* Hintergrund für transparente Dateien: *-hell.* startet hell, Umschalter in der Großansicht */
.cl .gr__bild[data-grund="hell"], .cl-gross__buehne[data-grund="hell"] { background: var(--dgt-paper-050); }
.cl-gross__buehne[data-grund="schach"] { background: repeating-conic-gradient(var(--dgt-ink-300) 0 25%, var(--dgt-paper-050) 0 50%) 50% / 24px 24px; }
.cl-gross__grund { display: flex; gap: 4px; }
.cl-gross__grund button { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--dgt-radius-sm); background: none; color: var(--muted); font: 500 13px/1 var(--dgt-font-ui); cursor: pointer; }
.cl-gross__grund button:hover { color: var(--fg); }
.cl-gross__grund button[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); background: var(--surface); }
