/* Logo grösser */
#navHeader .wrapper-logo img.logo {
  height: 50px !important;
  width: auto !important;
}

/* Erkunden und Warum mitmachen ausblenden */
#navHeader .wrapper-entries a[href*="contribute"],
#navHeader .wrapper-entries a[title="Erkunden"] {
  display: none !important;
}

/* Hide the legend/info widget */
pnx-widget-legend {
  display: none !important;
}

/* ── Footer: nativen Footer kapern ── */
footer.footer {
  all: unset !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  background: rgba(248,248,248,0.85) !important;
  height: 18px !important;
  max-height: 18px !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
footer.footer *,
footer.footer ul,
footer.footer li,
footer.footer a,
footer.footer div {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
footer.footer::after {
  content: "\00A9  ][wir" !important;
  display: block !important;
  visibility: visible !important;
  font-size: 8px !important;
  color: #666 !important;
  height: auto !important;
  width: auto !important;
}

/* Fix: Ordner Upload und Fotos teilen nebeneinander */
.folder-upload-btn + a,
.folder-upload-btn + button {
  display: inline-flex !important;
}
.folder-upload-btn {
  margin-right: 10px !important;
  vertical-align: middle !important;
}

/* Force the parent wrapper to be horizontal */
#navHeader .wrapper-entries {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
}

pnx-widget-semantics-filters {
  display: none !important;
}

pnx-mini[slot="bottom-left"] {
  margin-bottom: 65px !important;
}

pnx-widget-zoom.pnx-print-hidden[slot="bottom-right"],
div[slot="bottom-right"] {
  transform: translateY(-15px) !important;
}

body {
  margin: 0 !important;
}

/* Map volle Höhe - weissen Balken unten entfernen */
#app {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
}
#app > div {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
pnx-viewer {
  flex: 1 !important;
}
main.entry-page:has(pnx-viewer) {
  flex: 1 !important;
  overflow: hidden !important;
}

/* Footer auf Meine Bilder Seite ausblenden */
.my-pictures footer.footer,
.upload-page footer.footer,
main.entry-page ~ footer.footer {
  display: none !important;
}

/* Meine Bilder: kaputten Viewer ausblenden, Liste volle Breite */
main.entry-page .section-viewer {
  display: none !important;
}
main.entry-page .section-sequence {
  width: 100% !important;
  max-width: 100% !important;
}

/* Sprachauswahl ausblenden */
.lang-selector,
[data-v-fa1e9c23] .dropdown-lang,
.navbar .dropdown:last-child,
.entry-lang-switcher {
  display: none !important;
}

/* ── Upload-Seite Layout ── */

/* Titel der Sequenzen fett */
.entry-title .label {
  font-weight: 700 !important;
  font-size: 16px !important;
}

/* wrapper-form-top als Grid Layout */
.wrapper-form-top {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* Upload-Bereich volle Breite, kompakte Hoehe */
.wrapper-form-top > .form {
  grid-column: 1 / -1 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Params (Titel, Sichtbarkeit, Fortbewegung) volle Breite */
.wrapper-form-top > .wrapper-params-top {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
}

/* Einstellungen-Bereich (Deduplikation etc.) volle Breite */
.wrapper-form-top > .entry-params {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
.entry-params .collapse,
.entry-params .wrapper-collapse-params,
.entry-params .wrapper-collapse {
  width: 100% !important;
  max-width: 100% !important;
}

/* Abstand reduzieren */
.sub-section {
  gap: 0 !important;
  padding-top: 0 !important;
}

/* Upload-Zone kompakter */
.wrapper-input-upload {
  min-height: 0 !important;
  height: auto !important;
}
.wrapper-input-license {
  min-height: 0 !important;
  height: auto !important;
}
.entry-input-upload {
  min-height: 0 !important;
}
.file-upload {
  padding: 30px 20px !important;
  min-height: 0 !important;
}

.button-collapse {
  display: none !important;
}
